signbit: Avoid "guessing no" when cross-compiling to glibc systems.
[gnulib.git] / ChangeLog
1 2012-05-05  Bruno Haible  <bruno@clisp.org>
2
3         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5         compiling to a glibc system, set gl_cv_func_signbit and
6         gl_cv_func_signbit_gcc to "guessing yes".
7
8 2012-05-05  Bruno Haible  <bruno@clisp.org>
9
10         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
11         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
12         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
13         to "guessing yes".
14         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
15         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
16
17 2012-05-05  Bruno Haible  <bruno@clisp.org>
18
19         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
20         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
21         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
22         gl_cv_func_realpath_works to "guessing yes".
23
24 2012-05-05  Bruno Haible  <bruno@clisp.org>
25
26         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
27         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
28         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
29
30 2012-05-04  Bruno Haible  <bruno@clisp.org>
31
32         Tweak last commit.
33         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
34         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35
36 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
37
38         unistd_h: make it easier to avoid sys_types_h
39         This is useful for Emacs, which has its own method of porting to
40         Windows, and which therefore does not need the sys_types_h module.
41         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
42         code moved here from gl_SYS_TYPES_H.
43         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
44         using the code directly.
45         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
46         gl_SYS_TYPES_H.
47         * modules/sys_types (Files):
48         * modules/unistd (Files): Add m4/off_t.m4.
49
50 2012-05-03  Bruno Haible  <bruno@clisp.org>
51
52         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
53         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
54         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
55         "guessing yes" or "guessing no".
56         (gl_FUNC_LSTAT): Update.
57         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
58         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
59         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
60
61 2012-05-03  Bruno Haible  <bruno@clisp.org>
62
63         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
64         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
65         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
66         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
67         cross-compiling, choose the first alternative on glibc systems.
68         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
69
70 2012-05-03  Bruno Haible  <bruno@clisp.org>
71
72         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
73         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
74         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
75
76 2012-05-03  Bruno Haible  <bruno@clisp.org>
77
78         chown: Avoid "guessing no" when cross-compiling to glibc systems.
79         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
80
81 2012-05-03  Bruno Haible  <bruno@clisp.org>
82
83         Avoid "guessing no" guesses when cross-compiling to glibc systems.
84         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
85         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
86         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
87         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
88         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
89         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
90         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
91         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
92         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
93         compiling to glibc systems, set gl_cv_func_chown_slash_works,
94         gl_cv_func_chown_ctime_works to "guessing yes".
95         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
96         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
97         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
98         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
99         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
101         compiling to glibc systems, set gl_cv_func_open_directory_works to
102         "guessing yes".
103         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
104         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
105         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
106         "guessing yes".
107         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
108         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
109         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
110         compiling to glibc systems, set gl_cv_func_floorf_ieee to
111         "guessing yes".
112         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
113         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
114         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
115         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
116         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
117         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
118         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
119         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
120         "guessing yes".
121         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
122         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
123         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
124         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
125         "guessing yes".
126         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
127         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
128         "guessing yes".
129         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
130         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
131         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
132         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
133         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
134         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
135         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
136         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
137         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
138         compiling to glibc systems, set gl_cv_func_log10f_ieee to
139         "guessing yes".
140         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
141         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
142         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
143         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
144         "guessing yes".
145         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
146         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
147         "guessing yes".
148         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
149         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
150         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
151         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
152         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
153         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
154         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
155         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
156         compiling to glibc systems, set gl_cv_func_mkfifo_works to
157         "guessing yes".
158         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
159         compiling to glibc systems, set gl_cv_func_mknod_works to
160         "guessing yes".
161         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
162         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
163         "guessing yes".
164         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
165         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
166         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
167         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
168         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
169         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
170         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
171         compiling to glibc systems, set gl_cv_func_svid_putenv to
172         "guessing yes".
173         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
174         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
175         "guessing yes".
176         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
177         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
178         "guessing yes".
179         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
180         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
181         to "guessing yes".
182         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
183         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
184         to "guessing yes".
185         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
186         compiling to glibc systems, set gl_cv_func_rmdir_works to
187         "guessing yes".
188         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
189         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
190         gl_cv_func_unlink_parent_fails to "guessing yes".
191         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
192         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
193         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
194         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
195         gl_cv_func_rename_dest_works to "guessing yes".
196         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
197         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
198         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
199         compiling to glibc systems, set gl_cv_func_roundf_ieee to
200         "guessing yes".
201         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
202         compiling to glibc systems, set gl_cv_func_roundl_ieee to
203         "guessing yes".
204         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
205         compiling to glibc systems, set gl_cv_func_setenv_works to
206         "guessing yes".
207         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
208         compiling to glibc systems, set gl_cv_func_unsetenv_works to
209         "guessing yes".
210         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
211         compiling to glibc systems, set gl_cv_func_sleep_works to
212         "guessing yes".
213         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
214         compiling to glibc systems, set gl_cv_func_stat_file_slash to
215         "guessing yes".
216         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
217         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
218         "guessing yes".
219         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
220         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
221         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
222         compiling to glibc systems, set gl_cv_func_truncf_ieee to
223         "guessing yes".
224         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
225         compiling to glibc systems, set gl_cv_func_truncl_ieee to
226         "guessing yes".
227         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
228         compiling to glibc systems, set gl_cv_func_usleep_works to
229         "guessing yes".
230         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
231         compiling to glibc systems, set gl_cv_func_futimesat_works to
232         "guessing yes".
233
234 2012-05-03  Bruno Haible  <bruno@clisp.org>
235
236         Say "guessing yes" or "guessing no" when cross-compiling.
237         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
238         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
239         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
240         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
241         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
242         am_cv_func_working_getline to "guessing yes" or "guessing no".
243         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
244         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
245         (gl_FUNC_MEMMEM): When cross-compiling, set
246         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
248         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
250         set gl_cv_func_strcasestr_works_always to "guessing yes" or
251         "guessing no".
252         (gl_FUNC_STRCASESTR): When cross-compiling, set
253         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
254         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
255         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
256         (gl_FUNC_STRSTR): When cross-compiling, set
257         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
258         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
259         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
260         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
261         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
262
263 2012-05-01  Bruno Haible  <bruno@clisp.org>
264
265         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
266         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
267         * build-aux/reloc-ldflags: Likewise.
268         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
269
270 2012-05-01  Bruno Haible  <bruno@clisp.org>
271
272         gnulib-tool: Remove transitional code.
273         * gnulib-tool: Don't warn about --import with 0 arguments any more.
274         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
275
276 2012-05-01  Bruno Haible  <bruno@clisp.org>
277
278         getcwd: Fix misindentation.
279         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
280
281 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
282
283         exclude: process exclude and include directives in order
284         This restores the pre-2009 behavior, and is part of a fix of a
285         grep bug reported by Quentin Arce in
286         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
287         * lib/exclude.c (struct exclude): Remove 'tail' member.
288         (new_exclude_segment): Prepend the new segment instead of appending.
289         Return void, since that's now more convenient.
290         (file_pattern_matches): Renamed from excluded_file_pattern_p.
291         (file_name_matches): Renamed from excluded_file_name_p.
292         (file_pattern_matches, file_name_matches):
293         Return true if the pattern matches, not if it excludes.
294         All callers changed.
295         (excluded_file_name): Process the list in reverse order;
296         since the list is now reversed this restores the pre-2009 behavior.
297         (add_exclude): Adjust to new reversed-order list.  Use local var
298         rather than macro, for clarity.
299         * tests/test-exclude7.sh: Adjust to corrected behavior.
300
301         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
302         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
303         it's not possible here.  Handle the case of \ at end of pattern
304         without dumping core.
305         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
306
307         _Noreturn: future-proof non-GNU and non-MSVC compilers
308         * build-aux/snippet/_Noreturn.h (_Noreturn):
309         * m4/gnulib-common.m4 (gl_COMMON_BODY):
310         Do not define _Noreturn if __STDC_VERSION__ indicates this is
311         C11 or later.  This is more likely to work with random future C
312         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
313         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
314
315         exclude: handle wildcards with FNM_EXTMATCH
316         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
317         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
318         comment that "has wildcards" really means "has or may have
319         wildcards".  Simplify by avoiding the need to call strcspn.
320
321 2012-04-29  Bruno Haible  <bruno@clisp.org>
322
323         gnulib-tool: Fix list of authors.
324         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
325
326 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
327
328         bootstrap: support Automake-NG in $buildreq
329         * bootstrap (check_versions): Handle automake and aclocal from
330         Automake-NG specially.  They can be specified as respectively
331         the "automake-ng" and "aclocal-ng" requirements.
332
333 2012-04-25  Eric Blake  <eblake@redhat.com>
334
335         bootstrap: only force latest Makefile.in.in for gettext module
336         * build-aux/bootstrap (with_gettext): Only install latest
337         Makefile.in.in for projects requesting bleeding edge gettext.
338
339 2012-04-22  Bruno Haible  <bruno@clisp.org>
340
341         doc: Mention reason for replacement on glibc/Linux systems.
342         * doc/posix-functions/dprintf.texi: Mention the problem with special
343         'long double' values.
344         * doc/posix-functions/fprintf.texi: Likewise.
345         * doc/posix-functions/printf.texi: Likewise.
346         * doc/posix-functions/snprintf.texi: Likewise.
347         * doc/posix-functions/sprintf.texi: Likewise.
348         * doc/posix-functions/vdprintf.texi: Likewise.
349         * doc/posix-functions/vfprintf.texi: Likewise.
350         * doc/posix-functions/vprintf.texi: Likewise.
351         * doc/posix-functions/vsnprintf.texi: Likewise.
352         * doc/posix-functions/vsprintf.texi: Likewise.
353         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
354         platforms with F_DUPFD_CLOEXEC problems.
355         * doc/posix-functions/glob.texi: Mention which platforms are affected
356         by the problem with symbolic links.
357         * doc/posix-functions/linkat.texi: Mention the problem with
358         AT_SYMLINK_FOLLOW on Linux.
359
360 2012-04-22  Bruno Haible  <bruno@clisp.org>
361
362         pwrite: Don't replace on all platforms.
363         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
364
365 2012-04-22  Bruno Haible  <bruno@clisp.org>
366
367         rint* tests: Avoid gcc warnings.
368         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
369         * tests/test-rintf.c (INFINITY, NAN): Likewise.
370         * tests/test-rintl.c (INFINITY, NAN): Likewise.
371
372 2012-04-21  Bruno Haible  <bruno@clisp.org>
373
374         users.txt: Update.
375         * users.txt: Add freedink, wdiff. Update URLs for projects that have
376         switched from CVS to git, bzr, or svn.
377
378 2012-04-21  Bruno Haible  <bruno@clisp.org>
379
380         Large File Support for native Windows platforms.
381
382         * m4/largefile.m4 (gl_LARGEFILE): New macro.
383         * modules/largefile (configure.ac): Require gl_LARGEFILE.
384
385         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
386         type.
387         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
388         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
389         * doc/posix-headers/sys_types.texi: Mention the effect of the
390         'largefile' module.
391
392         * lib/fcntl.in.h: Add comments about off_t.
393         * modules/fcntl-h (Depends-on): Add sys_types.
394
395         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
396         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
397         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
398         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
399         * modules/unistd (Depends-on): Add sys_types.
400         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
401
402         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
403         instead of lseek.
404         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
405         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
406         * modules/lseek (Depends-on): Add sys_types.
407
408         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
409         msvc-nothrow.h.
410         (SetFileSize): New function.
411         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
412         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
413         if Large File Support is requested.
414         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
415         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
416
417         * lib/stdio.in.h: Add comments about off_t.
418         * modules/stdio (Depends-on): Add sys_types.
419
420         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
421         instead of ftello.
422         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
423         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
424         (gl_PREREQ_FTELLO): New macro.
425         * modules/ftello (Depends-on): Add sys_types.
426         (configure.ac): Incoke gl_PREREQ_FTELLO.
427
428         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
429         instead of fseeko.
430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
431         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
432         (gl_PREREQ_FSEEKO): New macro.
433         * modules/fseeko (Depends-on): Add sys_types.
434         (configure.ac): Invoke gl_PREREQ_FSEEKO.
435
436         * lib/sys_stat.in.h: Add comments about off_t.
437         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
438         64-bit integer for st_size in 'struct stat'.
439         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
440         Define _GL_WINDOWS_64_BIT_ST_SIZE.
441         * modules/sys_stat (Depends-on): Add sys_types.
442         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
443
444         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
445         instead of stat or _stat.
446
447         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
448         'struct _stati64' instead of fstat and 'struct stat'.
449         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
450         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
451
452         Reported by Ray Satiro <raysatiro@yahoo.com>.
453
454 2012-04-19  Eric Blake  <eblake@redhat.com>
455
456         bootstrap: accommodate older libtool
457         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
458         Reported by Daniel P. Berrange.
459
460 2012-04-19  Jim Meyering  <meyering@redhat.com>
461
462         announce-gen: avoid failure due to lack of Digest::SHA1
463         Even with the preferred Digest::SHA available, this script
464         would fail when the backup module, Digest::SHA1, was not installed.
465         * build-aux/announce-gen: Quote the conditional use of "use".
466         Reported by Reuben Thomas in:
467         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
468
469         bootstrap: don't let a user's CDPATH setting affect this script
470         When CDPATH is set, cd will sometimes generate output.
471         When "cd" is run in a subshell whose output matters, that
472         surprising-to-some output can cause malfunction.
473         Unsetting CDPATH turns off this shell "feature."
474         * build-aux/bootstrap (CDPATH): Unset.
475         Reported by Reuben Thomas in:
476         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
477         and inspired by his patch here:
478         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
479
480 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
481         and Jim Meyering  <meyering@redhat.com>
482
483         maint.mk: catch "see @xref{}" and similar
484         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
485         prohibit "See also @xref{", "Also see @pxref{", and similar.
486
487 2012-04-16  Jim Meyering  <meyering@redhat.com>
488
489         bootstrap: really use gnulib's po/Makefile.in.in
490         * build-aux/bootstrap: Correct the source file name in previous change.
491         Reported by Akim Demaille.
492
493         configmake: correct minor inconsistency in Makefile rule
494         * modules/configmake (Makefile.am): All other rules like this one
495         run the final "mv -f ..." in the same backslash-continued command
496         as the one that does everything else.  This one put the mv -f ...
497         command on a separate, non-backslash-continued line.
498         Make it like the others.
499
500         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
501         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
502         the one from gettext.  Reported by Akim Demaille.
503
504 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
505
506         Fix recursion of install-* into po directories.
507         Bison's install-pdf bug reported by Hans Aberg at
508         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
509         * build-aux/po/Makefile.in.in (install-dvi, install-html)
510         (install-info, install-pdf, install-ps): New targets.
511
512 2012-04-16  Jim Meyering  <meyering@redhat.com>
513
514         maint: avoid spurious "make sc_maint" failure
515         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
516         exempt all *.class file names, for lib/javaversion.class.
517
518 2012-04-15  Bruno Haible  <bruno@clisp.org>
519
520         lseek: Make configure test independent of environment.
521         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
522         Windows, we know that lseek() on pipes is broken; skip the runtime
523         test.
524
525 2012-04-14  Bruno Haible  <bruno@clisp.org>
526
527         stat: Bypass buggy override in mingw64.
528         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
529         * lib/stat.c (stat) [mingw64]: Define to _stat.
530         * doc/posix-functions/stat.texi: Mention mingw64 bug.
531
532 2012-04-14  Bruno Haible  <bruno@clisp.org>
533
534         pathmax: Fix compilation error on MSVC 9.
535         * modules/pathmax (Depends-on): Add unistd.
536
537 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
538
539         README: document pointer comparison assumption
540         * README (Portability guidelines): Document assumption about
541         pointer comparisons, in response to a recent bug-gnulib comment by
542         Jeffrey Kegler.
543
544 2012-04-12  Bruno Haible  <bruno@clisp.org>
545
546         Tests for module 'getrusage'.
547         * modules/getrusage-tests: New file.
548         * tests/test-getrusage.c: New file.
549
550         New module 'getrusage'.
551         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
552         warn-on-use.h.
553         (getrusage): New declaration.
554         * lib/getrusage.c: New file.
555         * m4/getrusage.m4: New file.
556         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
557         is declared.
558         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
559         HAVE_GETRUSAGE.
560         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
561         snippet/c++defs, snippet/warn-on-use.
562         (Makefile.am): Update generation of sys/resource.h. Substitute
563         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
564         * modules/getrusage: New file.
565         * doc/posix-functions/getrusage.texi: Mention the new module.
566
567 2012-04-12  Bruno Haible  <bruno@clisp.org>
568
569         Tests for module 'sys_resource'.
570         * modules/sys_resource-tests: New file.
571         * tests/test-sys_resource.c: New file.
572
573         New module 'sys_resource'.
574         * lib/sys_resource.in.h: New file.
575         * m4/sys_resource_h.m4: New file.
576         * modules/sys_resource: New file.
577         * doc/posix-headers/sys_resource.texi: Mention the new module.
578
579 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
580
581         ioctl: Fix compilation error on mingw.
582         * lib/ioctl.c: Include <windows.h>.
583         Also reported by Ray Satiro <raysatiro@yahoo.com>.
584
585 2012-04-04  Jim Meyering  <meyering@redhat.com>
586
587         regex: correct #pragma guard expression
588         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
589         not 4.3.  Correct its cpp guard expression.
590
591 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
592
593         regex: remove unnecessary type punning
594         Problem reported by Vladimir Serbinenko in
595         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
596         * lib/regex.h (struct re_pattern_buffer): Change the type of
597         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
598         Fix comment to match code.
599         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
600         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
601         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
602         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
603         (set_regs):
604         Omit no-longer-necessary casts.
605
606 2012-04-03  Bruno Haible  <bruno@clisp.org>
607
608         Tests for module 'ilogbl'.
609         * modules/ilogbl-tests: New file.
610         * tests/test-ilogbl.c: New file.
611
612         New module 'ilogbl'.
613         * lib/math.in.h (ilogbl): New declaration.
614         * lib/ilogbl.c: New file.
615         * m4/ilogbl.m4: New file.
616         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
618         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
619         Split sed invocation, to avoid the limit of 100 substitutions of
620         HP-UX 'sed'.
621         * modules/ilogbl: New file.
622         * tests/test-math-c++.cc: Check the declaration of ilogbl.
623         * doc/posix-functions/ilogbl.texi: Mention the new module.
624
625 2012-04-03  Bruno Haible  <bruno@clisp.org>
626
627         Tests for module 'ilogbf'.
628         * modules/ilogbf-tests: New file.
629         * tests/test-ilogbf.c: New file.
630
631         New module 'ilogbf'.
632         * lib/math.in.h (ilogbf): New declaration.
633         * lib/ilogbf.c: New file.
634         * m4/ilogbf.m4: New file.
635         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
637         REPLACE_ILOGBF.
638         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
639         REPLACE_ILOGBF.
640         * modules/ilogbf: New file.
641         * tests/test-math-c++.cc: Check the declaration of ilogbf.
642         * doc/posix-functions/ilogbf.texi: Mention the new module.
643
644 2012-04-03  Bruno Haible  <bruno@clisp.org>
645
646         Tests for module 'ilogb'.
647         * modules/ilogb-tests: New file.
648         * tests/test-ilogb.c: New file.
649         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
650         tests/test-logb-ieee.h.
651
652         New module 'ilogb'.
653         * lib/math.in.h (ilogb): New declaration.
654         * lib/ilogb.c: New file.
655         * m4/ilogb.m4: New file.
656         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
658         REPLACE_ILOGB.
659         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
660         REPLACE_ILOGB.
661         * modules/ilogb: New file.
662         * tests/test-math-c++.cc: Check the declaration of ilogb.
663         * doc/posix-functions/ilogb.texi: Mention the new module.
664
665 2012-04-03  Bruno Haible  <bruno@clisp.org>
666
667         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
668         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
669         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
670         (main): Check their values.
671         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
672         problem.
673
674 2012-04-03  Bruno Haible  <bruno@clisp.org>
675
676         Tests for module 'logbl-ieee'.
677         * modules/logbl-ieee-tests: New file.
678         * tests/test-logbl-ieee.c: New file.
679
680         New module 'logbl-ieee'.
681         * modules/logbl-ieee: New file.
682
683         Tests for module 'logb-ieee'.
684         * modules/logb-ieee-tests: New file.
685         * tests/test-logb-ieee.c: New file.
686
687         New module 'logb-ieee'.
688         * modules/logb-ieee: New file.
689
690         Tests for module 'logbf-ieee'.
691         * modules/logbf-ieee-tests: New file.
692         * tests/test-logbf-ieee.c: New file.
693         * tests/test-logb-ieee.h: New file.
694
695         New module 'logbf-ieee'.
696         * modules/logbf-ieee: New file.
697
698 2012-04-03  Bruno Haible  <bruno@clisp.org>
699
700         Tests for module 'logbl'.
701         * modules/logbl-tests: New file.
702         * tests/test-logbl.c: New file.
703
704         New module 'logbl'.
705         * lib/math.in.h (logbl): New declaration.
706         * lib/logbl.c: New file.
707         * m4/logbl.m4: New file.
708         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
710         REPLACE_LOGBL.
711         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
712         REPLACE_LOGBL.
713         * modules/logbl: New file.
714         * tests/test-math-c++.cc: Check the declaration of logbl.
715         * doc/posix-functions/logbl.texi: Mention the new module.
716
717 2012-04-02  Bruno Haible  <bruno@clisp.org>
718
719         Tests for module 'logbf'.
720         * modules/logbf-tests: New file.
721         * tests/test-logbf.c: New file.
722
723         New module 'logbf'.
724         * lib/math.in.h (logbf): New declaration.
725         * lib/logbf.c: New file.
726         * m4/logbf.m4: New file.
727         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
729         REPLACE_LOGBF.
730         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
731         REPLACE_LOGBF.
732         * modules/logbf: New file.
733         * tests/test-math-c++.cc: Check the declaration of logbf.
734         * doc/posix-functions/logbf.texi: Mention the new module.
735
736 2012-04-02  Bruno Haible  <bruno@clisp.org>
737
738         logb tests: More tests.
739         * tests/test-logb.h: New file, based on tests/test-logb.c and
740         tests/test-frexp.h.
741         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
742         (main): Just invoke test_function.
743         * modules/logb-tests (Files): Add tests/test-logb.h,
744         tests/minus-zero.h, tests/randomd.c.
745         (Makefile.am): Add randomd.c to test_logb_SOURCES.
746
747         logb: Provide replacement and workarounds.
748         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
749         is 1.
750         * lib/logb.c: New file.
751         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
752         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
754         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
755         * modules/logb (Files): Add lib/logb.c.
756         (Depends-on): Add isfinite, frexp, isnand.
757         (configure.ac): Compile the replacement code logb.c if needed.
758         * tests/test-math-c++.cc: Check the declaration of logb.
759         * doc/posix-functions/logb.texi: Mention the replacement and the bug
760         with subnormal numbers.
761
762 2012-04-02  Bruno Haible  <bruno@clisp.org>
763
764         log10* tests: Speed up.
765         * tests/test-log10.h (test_function): Reduce amount of random numbers
766         to test.
767
768 2012-04-01  Bruno Haible  <bruno@clisp.org>
769
770         logf-ieee: Fix test whether logf works.
771         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
772
773 2012-04-01  Bruno Haible  <bruno@clisp.org>
774
775         log10l: Work around log10l-ieee test failure on IRIX 6.5.
776         * lib/log10l.c: Include <float.h>
777         (log10l): On IRIX, normalize the +Infinity value.
778         * modules/log10l (Depends-on): Add 'float'.
779         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
780         +Infinity.
781
782         log10f-ieee: Work around test failure on NetBSD 5.1.
783         * m4/log10f-ieee.m4: New file.
784         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
785         test whether log10f works with a negative argument. Replace it if not.
786         * lib/log10f.c (log10f): For negative arguments, return NaN.
787         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
788         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
789         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
790
791         log10f-ieee: Work around test failure on Solaris 9.
792         * modules/log10f-ieee (Depends-on): Add log10-ieee.
793         (configure.ac): Require gl_FUNC_LOG10F.
794
795         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
796         * m4/log10-ieee.m4: New file.
797         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
798         whether log10 works with a negative argument. Replace it if not.
799         * lib/log10.c (log10): For negative arguments, return NaN.
800         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
801         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
802         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
803
804         Tests for module 'log10l-ieee'.
805         * modules/log10l-ieee-tests: New file.
806         * tests/test-log10l-ieee.c: New file.
807
808         New module 'log10l-ieee'.
809         * modules/log10l-ieee: New file.
810
811         Tests for module 'log10-ieee'.
812         * modules/log10-ieee-tests: New file.
813         * tests/test-log10-ieee.c: New file.
814
815         New module 'log10-ieee'.
816         * modules/log10-ieee: New file.
817
818         Tests for module 'log10f-ieee'.
819         * modules/log10f-ieee-tests: New file.
820         * tests/test-log10f-ieee.c: New file.
821         * tests/test-log10-ieee.h: New file.
822
823         New module 'log10f-ieee'.
824         * modules/log10f-ieee: New file.
825
826 2012-04-01  Bruno Haible  <bruno@clisp.org>
827
828         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
829         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
830         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
831         workaround.
832         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
833         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
835         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
836         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
837         (Depends-on): Update conditions.
838         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
839         IRIX 6.5, OSF/1 5.1 problems.
840
841 2012-04-01  Bruno Haible  <bruno@clisp.org>
842
843         log10f: Work around OSF/1 5.1 bug.
844         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
845         * lib/log10f.c (log10f): If logf exists, use it and provide just the
846         workaround.
847         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
848         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
850         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
851         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
852         (Depends-on): Update conditions.
853         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
854
855 2012-04-01  Bruno Haible  <bruno@clisp.org>
856
857         log10: Work around OSF/1 5.1 bug.
858         * lib/math.in.h (log10): New declaration.
859         * lib/log10.c: New file.
860         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
861         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
862         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
864         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
865         * modules/log10 (Files): Add lib/log10.c.
866         (Depends-on): Add math.
867         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
868         * tests/test-math-c++.cc: Check the declaration of log10.
869         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
870
871 2012-03-31  Bruno Haible  <bruno@clisp.org>
872
873         log10l tests: More tests.
874         * modules/log10l-tests (Files): Add tests/test-log10l.h,
875         tests/minus-zero.h, tests/randoml.c.
876         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
877         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
878         (main): Invoke test_function.
879
880         log10f tests: More tests.
881         * modules/log10f-tests (Files): Add tests/test-log10.h,
882         tests/minus-zero.h, tests/randomf.c.
883         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
884         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
885         (main): Invoke test_function.
886
887         log10 tests: More tests.
888         * tests/test-log10.h: New file.
889         * modules/log10-tests (Files): Add tests/test-log10.h,
890         tests/minus-zero.h, tests/randomd.c.
891         (Makefile.am): Add randomd.c to test_log10_SOURCES.
892         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
893         (main): Invoke test_function.
894
895 2012-03-31  Simon Josefsson  <simon@josefsson.org>
896
897         fflush: Fix syntax error.
898         * lib/fflush.c: Include unused-parameter.h, needed for
899         _GL_UNUSED_PARAMETER.
900         * modules/fflush (Depends-on): Add snippet/unused-parameter.
901
902 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
903
904         regex: pacify GCC when compiling GRUB
905         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
906         a diagnostic.  Reported by Vladimir Serbinenko in
907         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
908
909 2012-03-29  Eric Blake  <eblake@redhat.com>
910
911         stdio: don't assume gets any more
912         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
913         support.
914         * modules/stdio (Makefile.am): Likewise.
915         * lib/stdio-read.c (gets): Likewise.
916         * tests/test-stdio-c++.cc: Likewise.
917         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
918         * lib/stdio.in.h (gets): Make warning occur in more places.
919         * doc/posix-functions/gets.texi (gets): Update documentation.
920         Reported by Christer Solskogen.
921
922         maint.mk: fix syntax checks without exclusions
923         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
924         Reported by Daniel P. Berrange.
925
926         strerror_r: avoid compiler warning
927         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
928         level.
929
930         fflush: avoid compiler warning
931         * lib/fflush.c (update_fpos_cache): Mark variables that are
932         potentially unused.
933
934 2012-03-25  Bruno Haible  <bruno@clisp.org>
935
936         Tests for module 'localeconv'.
937         * modules/localeconv-tests: New file.
938         * tests/test-localeconv.c: New file.
939
940         New module 'localeconv'.
941         * lib/locale.in.h (localeconv): New declaration.
942         * lib/localeconv.c: New file.
943         * m4/localeconv.m4: New file.
944         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
945         REPLACE_LOCALECONV.
946         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
947         REPLACE_LOCALECONV.
948         * modules/localeconv: New file.
949         * modules/nl_langinfo (Depends-on): Add localeconv.
950         * modules/human (Depends-on): Likewise.
951         * doc/posix-functions/localeconv.texi: Mention the new module.
952
953 2012-03-25  Bruno Haible  <bruno@clisp.org>
954
955         locale: Provide a complete 'struct lconv'.
956         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
957         'struct lconv' does not contain int_p_cs_precedes.
958         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
959         * doc/posix-headers/locale.texi: Update.
960
961         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
962         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
963         * doc/posix-headers/locale.texi: Update.
964
965         locale: Provide a working 'struct lconv'.
966         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
967         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
968         'struct lconv' does not even contain decimal_point.
969         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
970         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
971         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
972         * doc/posix-headers/locale.texi: Mention the problems with
973         'struct lconv'.
974         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
975
976 2012-03-24  Bruno Haible  <bruno@clisp.org>
977
978         Enable common subexpression optimization in GCC.
979         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
980         macros.
981         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
982         GCC attribute 'const'.
983         (uc_locale_language): Declare with GCC attribute 'pure'.
984         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
985         with GCC attribute 'const'.
986         * lib/unictype.in.h (uc_is_general_category_withtable,
987         uc_combining_class, uc_combining_class_name,
988         uc_combining_class_long_name, uc_bidi_class_name,
989         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
990         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
991         uc_decimal_value, uc_digit_value, uc_numeric_value,
992         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
993         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
994         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
995         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
996         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
997         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
998         Declare with GCC attribute 'const'.
999         (uc_general_category_name, uc_general_category_long_name,
1000         uc_general_category_byname, uc_general_category,
1001         uc_is_general_category, uc_combining_class_byname,
1002         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1003         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1004         Declare with GCC attribute 'pure'.
1005         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1006         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1007         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1008         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1009         with GCC attribute 'pure'.
1010         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1011         'const'.
1012         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1013         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1014         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1015         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1016         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1017         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1018         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1019         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1020         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1021         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1022         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1023         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1024         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1025         GCC attribute 'pure'.
1026         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1027         'const'.
1028         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1029         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1030         u32_strwidth): Declare with GCC attribute 'pure'.
1031
1032         Enable common subexpression optimization in GCC.
1033         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1034         (alphasort): Declare with GCC attribute 'pure'.
1035         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1036         (atoll): Declare with GCC attribute 'pure'.
1037         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1038         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1039         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1040         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1041         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1042         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1043         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1044
1045 2012-03-24  Bruno Haible  <bruno@clisp.org>
1046
1047         gnulib-tool: Avoid unintended error output from 'cmp'.
1048         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1049         "cmp -s", not "cmp > /dev/null".
1050
1051 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1052
1053         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1054
1055         It's not just Automake versions < 1.9b that creates an empty
1056         pkgdatadir at installation time if pkgdata_DATA is specified
1057         to empty; modern automake versions do this as well, at least
1058         until automake 1.11.4 (not yet released at the moment of writing,
1059         but soon to appear).  That behaviour was generally considered a
1060         feature rather than a bug, at least until this discussion:
1061         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1062
1063         See also automake bugs #10997 and #11030.
1064
1065         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1066         reference to relevant automake bug numbers.
1067         (func_emit_tests_Makefile_am): Likewise.
1068
1069 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1070
1071         announce-gen: use Digest::SHA when possible
1072         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1073         back to Digest::SHA1 if necessary.
1074
1075 2012-03-20  Jim Meyering  <meyering@redhat.com>
1076
1077         tests: avoid gcc warnings about argv vs. const initializers
1078         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1079         warnings about discarding 'const' qualifier from pointer target type.
1080         * tests/test-posix_spawn2.c (main): Likewise.
1081
1082 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1083
1084         README-release: simplify slightly
1085         * top/README-release: Run "git checkout master" only once.
1086
1087 2012-03-15  Mark Wielaard  <mark@klomp.org>
1088
1089         git-merge-changelog: add specific example on how to use with hg.
1090         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1091
1092 2012-03-18  Mark Wielaard  <mark@klomp.org>
1093
1094         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1095
1096 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1097
1098         git-version-gen: don't let "prefix" envvar cause trouble
1099         * build-aux/git-version-gen (prefix): Initialize properly,
1100         so as not to use a value specified via the environment.
1101         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1102
1103 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1104
1105         regex: diagnose too-large repeat counts in EREs
1106         Previously, the code did not diagnose the too-large repeat count
1107         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1108         as if it were 'b\{1000000000}', which is unexpected.
1109         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1110         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1111         is a reasonable one for this problem.  Another option would be to
1112         create a new REG_OVERFLOW error for repeat counts that are too large.
1113         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1114         count is too large, so that the caller can distinguish the two cases.
1115         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1116         "Too large" return code, and that repeat counts are one example of this.
1117
1118 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1119
1120         doc: some glibc x32 integer width issues
1121         * doc/posix-headers/sys_types.texi (sys/types.h):
1122         * doc/posix-headers/time.texi (time.h):
1123         Mention that glibc x32 does not conform to POSIX in a couple of
1124         areas related to integer widths.
1125
1126 2012-03-15  Bruno Haible  <bruno@clisp.org>
1127
1128         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1129         * lib/fma.c (VOLATILE): New macro.
1130         (FUNC): Use it to work around a GCC compiler bug.
1131
1132 2012-03-13  Bruno Haible  <bruno@clisp.org>
1133
1134         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1135         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1136         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1137         REPLACE_HYPOTL to 1.
1138         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1139
1140 2012-03-13  Bruno Haible  <bruno@clisp.org>
1141
1142         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1143         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1144         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1145         REPLACE_REMAINDERL to 1.
1146         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1147         bug.
1148
1149 2012-03-13  Bruno Haible  <bruno@clisp.org>
1150
1151         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1152         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1153         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1154         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1155         too big rounding errors.
1156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1157         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1158         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1159         (Depends-on): Update conditions.
1160         * tests/test-sqrtl.c (my_ldexpl): New function.
1161         (main): Add test of a particular value.
1162         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1163
1164 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1165
1166         doc: Update timer_* platform portability notes.
1167         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1168         that always return ENOSYS.
1169         * doc/posix-functions/timer_delete.texi: Likewise.
1170         * doc/posix-functions/timer_gettime.texi: Likewise.
1171         * doc/posix-functions/timer_settime.texi: Likewise.
1172
1173 2012-03-13  Bruno Haible  <bruno@clisp.org>
1174
1175         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1176         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1177         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1178         REPLACE_CBRTL to 1.
1179         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1180
1181 2012-03-13  Bruno Haible  <bruno@clisp.org>
1182
1183         remainderl: Avoid compilation error on AIX >= 5.2.
1184         * lib/math.in.h (remainderl): Undefine macro from the system header.
1185
1186 2012-03-13  Bruno Haible  <bruno@clisp.org>
1187
1188         Avoid compilation errors with MSVC option -fp:strict.
1189         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1190         * lib/cbrtf.c: Likewise.
1191         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1192
1193 2012-03-12  Bruno Haible  <bruno@clisp.org>
1194
1195         uninorm: Don't crash in out-of-memory conditions.
1196         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1197         gracefully.
1198         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1199         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1200
1201 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1202
1203         quote: fix syntax-check
1204         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1205         also exports quote_quoting_options.
1206
1207 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1208
1209         Collapse list of copyright years to ranges.  See
1210         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1211         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1212         build-aux/csharpexec.sh.in, build-aux/gnupload,
1213         build-aux/install-reloc, build-aux/javacomp.sh.in,
1214         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1215         build-aux/move-if-change, build-aux/reloc-ldflags,
1216         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1217
1218 2012-03-11  Bruno Haible  <bruno@clisp.org>
1219
1220         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1221         * m4/log2f-ieee.m4: New file.
1222         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1223         whether log2f works with a minus zero argument. Replace it if not.
1224         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1225         (Depends-on): Add log2-ieee.
1226         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1227         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1228
1229         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1230         * m4/log2-ieee.m4: New file.
1231         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1232         whether log2 works with a minus zero argument. Replace it if not.
1233         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1234         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1235         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1236
1237         Tests for module 'log2l-ieee'.
1238         * modules/log2l-ieee-tests: New file.
1239         * tests/test-log2l-ieee.c: New file.
1240
1241         New module 'log2l-ieee'.
1242         * modules/log2l-ieee: New file.
1243
1244         Tests for module 'log2-ieee'.
1245         * modules/log2-ieee-tests: New file.
1246         * tests/test-log2-ieee.c: New file.
1247
1248         New module 'log2-ieee'.
1249         * modules/log2-ieee: New file.
1250
1251         Tests for module 'log2f-ieee'.
1252         * modules/log2f-ieee-tests: New file.
1253         * tests/test-log2f-ieee.c: New file.
1254         * tests/test-log2-ieee.h: New file.
1255
1256         New module 'log2f-ieee'.
1257         * modules/log2f-ieee: New file.
1258
1259 2012-03-11  Bruno Haible  <bruno@clisp.org>
1260
1261         Tests for module 'log2l'.
1262         * modules/log2l-tests: New file.
1263         * tests/test-log2l.c: New file.
1264
1265         New module 'log2l'.
1266         * lib/math.in.h (log2l): New declaration.
1267         * lib/log2l.c: New file.
1268         * m4/log2l.m4: New file.
1269         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1271         REPLACE_LOG2L.
1272         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1273         REPLACE_LOG2L.
1274         * modules/log2l: New file.
1275         * tests/test-math-c++.cc: Check the declaration of log2l.
1276         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1277         and OSF/1 problems.
1278
1279 2012-03-11  Bruno Haible  <bruno@clisp.org>
1280
1281         Tests for module 'log2f'.
1282         * modules/log2f-tests: New file.
1283         * tests/test-log2f.c: New file.
1284
1285         New module 'log2f'.
1286         * lib/math.in.h (log2f): New declaration.
1287         * lib/log2f.c: New file.
1288         * m4/log2f.m4: New file.
1289         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1291         REPLACE_LOG2F.
1292         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1293         REPLACE_LOG2F.
1294         * modules/log2f: New file.
1295         * tests/test-math-c++.cc: Check the declaration of log2f.
1296         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1297         and OSF/1 and Cygwin problems.
1298
1299 2012-03-11  Bruno Haible  <bruno@clisp.org>
1300
1301         Tests for module 'log2'.
1302         * modules/log2-tests: New file.
1303         * tests/test-log2.c: New file.
1304         * tests/test-log2.h: New file.
1305
1306         New module 'log2'.
1307         * lib/math.in.h (log2): New declaration.
1308         * lib/log2.c: New file.
1309         * m4/log2.m4: New file.
1310         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1312         REPLACE_LOG2.
1313         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1314         REPLACE_LOG2.
1315         * modules/log2: New file.
1316         * tests/test-math-c++.cc: Check the declaration of log2.
1317         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1318         and OSF/1 and Cygwin problems.
1319
1320 2012-03-11  Bruno Haible  <bruno@clisp.org>
1321
1322         exp2* tests: More tests.
1323         * tests/test-exp2.h (test_function): Test all integral arguments that
1324         don't need to overflow or denormalized numbers.
1325         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1326         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1327         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1328
1329 2012-03-10  Bruno Haible  <bruno@clisp.org>
1330
1331         log1pl-ieee: Work around test failure on AIX 7.1.
1332         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1333
1334         log1pl-ieee: Work around test failure on IRIX 6.5.
1335         * m4/log1pl-ieee.m4: New file.
1336         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1337         test whether log1pl works with a minus zero argument. Replace it if
1338         not.
1339         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1341         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1342         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1343         (Depends-on): Update conditions.
1344         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1345         m4/signbit.m4.
1346         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1347         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1348
1349         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1350         * m4/log1pf-ieee.m4: New file.
1351         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1352         test whether log1pf works with a minus zero argument. Replace it if
1353         not.
1354         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1355         m4/signbit.m4.
1356         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1357         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1358
1359         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1360         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1361         (configure.ac): Require gl_FUNC_LOG1PF.
1362
1363         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1364         * m4/log1p-ieee.m4: New file.
1365         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1366         whether log1p works with a minus zero argument. Replace it if not.
1367         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1369         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1370         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1371         (Depends-on): Update conditions.
1372         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1373         m4/signbit.m4.
1374         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1375         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1376
1377         Tests for module 'log1pl-ieee'.
1378         * modules/log1pl-ieee-tests: New file.
1379         * tests/test-log1pl-ieee.c: New file.
1380
1381         New module 'log1pl-ieee'.
1382         * modules/log1pl-ieee: New file.
1383
1384         Tests for module 'log1p-ieee'.
1385         * modules/log1p-ieee-tests: New file.
1386         * tests/test-log1p-ieee.c: New file.
1387
1388         New module 'log1p-ieee'.
1389         * modules/log1p-ieee: New file.
1390
1391         Tests for module 'log1pf-ieee'.
1392         * modules/log1pf-ieee-tests: New file.
1393         * tests/test-log1pf-ieee.c: New file.
1394         * tests/test-log1p-ieee.h: New file.
1395
1396         New module 'log1pf-ieee'.
1397         * modules/log1pf-ieee: New file.
1398
1399 2012-03-10  Bruno Haible  <bruno@clisp.org>
1400
1401         Tests for module 'log1pl'.
1402         * modules/log1pl-tests: New file.
1403         * tests/test-log1pl.c: New file.
1404
1405         New module 'log1pl'.
1406         * lib/math.in.h (log1pl): New declaration.
1407         * lib/log1pl.c: New file.
1408         * m4/log1pl.m4: New file.
1409         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1411         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1412         * modules/log1pl: New file.
1413         * tests/test-math-c++.cc: Check the declaration of log1pl.
1414         * doc/posix-functions/log1pl.texi: Mention the new module.
1415
1416 2012-03-10  Bruno Haible  <bruno@clisp.org>
1417
1418         Tests for module 'log1pf'.
1419         * modules/log1pf-tests: New file.
1420         * tests/test-log1pf.c: New file.
1421
1422         New module 'log1pf'.
1423         * lib/math.in.h (log1pf): New declaration.
1424         * lib/log1pf.c: New file.
1425         * m4/log1pf.m4: New file.
1426         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1427         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1428         REPLACE_LOG1PF.
1429         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1430         REPLACE_LOG1PF.
1431         * modules/log1pf: New file.
1432         * tests/test-math-c++.cc: Check the declaration of log1pf.
1433         * doc/posix-functions/log1pf.texi: Mention the new module.
1434
1435 2012-03-10  Bruno Haible  <bruno@clisp.org>
1436
1437         log1p tests: More tests.
1438         * tests/test-log1p.h: New file.
1439         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1440         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1441         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1442         (main): Invoke test_function.
1443
1444         log1p: Provide replacement for Minix and MSVC.
1445         * lib/math.in.h (log1p): New declaration.
1446         * lib/log1p.c: New file.
1447         * m4/log1p.m4: New file.
1448         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1450         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1451         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1452         (Depends-on): Add math, isnand, log, round.
1453         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1454         HAVE_LOG1P is 0.
1455         * tests/test-math-c++.cc: Check the declaration of log1p.
1456         * doc/posix-functions/log1p.texi: Mention the replacement.
1457
1458 2012-03-10  Bruno Haible  <bruno@clisp.org>
1459
1460         math tests: Small simplification.
1461         * tests/test-exp.h (test_function): Use the same err_bound for
1462         'double' on platforms with sizeof (long double) == sizeof (double)
1463         than on platforms with sizeof (long double) > sizeof (double).
1464         * tests/test-exp2.h (test_function): Likewise.
1465         * tests/test-expm1.h (test_function): Likewise.
1466         * tests/test-log.h (test_function): Likewise.
1467
1468 2012-03-10  Bruno Haible  <bruno@clisp.org>
1469
1470         Fix some comments.
1471         * lib/expl.c: Fix an ambiguous comment.
1472         * lib/expm1.c: Likewise.
1473         * lib/expm1l.c: Likewise.
1474         * lib/exp2.c: Likewise.
1475         * lib/exp2l.c: Likewise.
1476
1477 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         regex: allow inclusion of <regex.h> before <limits.h>
1480         Without this patch, portable programs had to include <limits.h> before
1481         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1482         I ran into this problem with a test version of GNU grep on Solaris 8.
1483         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1484         This is done conditionally so that this change can be merged
1485         back to glibc.
1486         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1487         using the included regex.
1488
1489         fts: depend on fdopendir
1490         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1491         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1492         problem was introduced when fdopendir was split out.
1493
1494 2012-03-10  Bruno Haible  <bruno@clisp.org>
1495
1496         Remove unused variables.
1497         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1498         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1499
1500 2012-03-10  Bruno Haible  <bruno@clisp.org>
1501
1502         isnanf-nolibm: Fix last commit.
1503         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1504
1505         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1506         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1507
1508 2012-03-10  Bruno Haible  <bruno@clisp.org>
1509
1510         logf-ieee: Work around test failure on NetBSD 5.1.
1511         * m4/logf-ieee.m4: New file.
1512         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1513         whether logf works with a negative argument. Replace it if not.
1514         * lib/logf.c (logf): For negative arguments, return NaN.
1515         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1516         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1517         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1518
1519         logf-ieee: Work around test failure on Solaris 9.
1520         * modules/logf-ieee (Depends-on): Add log-ieee.
1521         (configure.ac): Require gl_FUNC_LOGF.
1522
1523         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1524         * m4/log-ieee.m4: New file.
1525         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1526         log works with a negative argument. Replace it if not.
1527         * lib/log.c (log): For negative arguments, return NaN.
1528         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1529         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1530         * doc/posix-functions/log.texi: Mention the log-ieee module.
1531
1532         Tests for module 'logl-ieee'.
1533         * modules/logl-ieee-tests: New file.
1534         * tests/test-logl-ieee.c: New file.
1535
1536         New module 'logl-ieee'.
1537         * modules/logl-ieee: New file.
1538
1539         Tests for module 'log-ieee'.
1540         * modules/log-ieee-tests: New file.
1541         * tests/test-log-ieee.c: New file.
1542
1543         New module 'log-ieee'.
1544         * modules/log-ieee: New file.
1545
1546         Tests for module 'logf-ieee'.
1547         * modules/logf-ieee-tests: New file.
1548         * tests/test-logf-ieee.c: New file.
1549         * tests/test-log-ieee.h: New file.
1550
1551         New module 'logf-ieee'.
1552         * modules/logf-ieee: New file.
1553
1554 2012-03-10  Bruno Haible  <bruno@clisp.org>
1555
1556         log: Fix bug introduced on 2012-03-09.
1557         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1558
1559 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1560
1561         timer-time: link explicitly with pthreads on glibc
1562         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1563         to support static linking, when newer glibc is
1564         detected, as that contains pthread emulation of
1565         POSIX timer functions where required.
1566         * modules/timer-time: Depend on threadlib to
1567         pull in the appropriate library to link.
1568
1569 2012-03-10  Bruno Haible  <bruno@clisp.org>
1570
1571         log* tests: More tests.
1572         * tests/test-log.h: New file.
1573         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1574         (main): Invoke test_function.
1575         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1576         (main): Invoke test_function.
1577         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1578         (main): Invoke test_function.
1579         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1580         tests/randomd.c.
1581         (Makefile.am): Add randomd.c to test_log_SOURCES.
1582         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1583         tests/randomf.c.
1584         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1585         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1586         tests/randoml.c.
1587         (Depends-on): Add 'float'.
1588         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1589
1590 2012-03-09  Bruno Haible  <bruno@clisp.org>
1591
1592         logl: Work around OSF/1 5.1 bug.
1593         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1594         * lib/logl.c (logl): If logl exists, use it and provide just the
1595         workaround.
1596         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1597         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1599         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1600         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1601         (Depends-on): Update conditions.
1602         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1603
1604 2012-03-09  Bruno Haible  <bruno@clisp.org>
1605
1606         logf: Work around OSF/1 5.1 bug.
1607         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1608         * lib/logf.c (logf): If logf exists, use it and provide just the
1609         workaround.
1610         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1611         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1613         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1614         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1615         (Depends-on): Update conditions.
1616         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1617
1618 2012-03-09  Bruno Haible  <bruno@clisp.org>
1619
1620         log: Work around OSF/1 5.1 bug.
1621         * lib/math.in.h (log): New declaration.
1622         * lib/log.c: New file.
1623         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1624         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1625         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1627         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1628         * modules/log (Files): Add lib/log.c.
1629         (Depends-on): Add math.
1630         (configure.ac): If REPLACE_LOG is 1, compile an override.
1631         * tests/test-math-c++.cc: Check the declaration of log.
1632         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1633
1634 2012-03-09  Jim Meyering  <meyering@redhat.com>
1635
1636         readtokens.c: adjust wording in a comment
1637         * lib/readtokens.c: Insert omitted "that" in a comment.
1638
1639 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1640
1641         modechange: add notations +40, 00440, etc.
1642         * lib/modechange.c (mode_compile): Support new notations
1643         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1644
1645 2012-03-08  Bruno Haible  <bruno@clisp.org>
1646
1647         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1648         * m4/exp2l-ieee.m4: New file.
1649         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1650         test whether exp2l works with a NaN argument and with a negative
1651         infinity argument. Replace it if not.
1652         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1654         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1655         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1656         (Depends-on): Update conditions.
1657         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1658         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1659         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1660
1661         Tests for module 'exp2l-ieee'.
1662         * modules/exp2l-ieee-tests: New file.
1663         * tests/test-exp2l-ieee.c: New file.
1664
1665         New module 'exp2l-ieee'.
1666         * modules/exp2l-ieee: New file.
1667
1668         Tests for module 'exp2-ieee'.
1669         * modules/exp2-ieee-tests: New file.
1670         * tests/test-exp2-ieee.c: New file.
1671
1672         New module 'exp2-ieee'.
1673         * modules/exp2-ieee: New file.
1674
1675         Tests for module 'exp2f-ieee'.
1676         * modules/exp2f-ieee-tests: New file.
1677         * tests/test-exp2f-ieee.c: New file.
1678         * tests/test-exp2-ieee.h: New file.
1679
1680         New module 'exp2f-ieee'.
1681         * modules/exp2f-ieee: New file.
1682
1683 2012-03-08  Bruno Haible  <bruno@clisp.org>
1684
1685         Tests for module 'exp2l'.
1686         * modules/exp2l-tests: New file.
1687         * tests/test-exp2l.c: New file.
1688
1689         New module 'exp2l'.
1690         * lib/math.in.h (exp2l): New declaration.
1691         * lib/exp2l.c: New file.
1692         * lib/expl-table.c: New file, extracted from lib/expl.c.
1693         * lib/expl.c (gl_expl_table): New declaration.
1694         (expl): Remove expl_table. Update reference.
1695         * m4/exp2l.m4: New file.
1696         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1698         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1699         * modules/exp2l: New file.
1700         * modules/expl (Files): Add lib/expl-table.c.
1701         (configure.ac): Compile also expl-table.c.
1702         * tests/test-math-c++.cc: Check the declaration of exp2l.
1703         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1704         problem.
1705
1706 2012-03-08  Bruno Haible  <bruno@clisp.org>
1707
1708         Tests for module 'exp2f'.
1709         * modules/exp2f-tests: New file.
1710         * tests/test-exp2f.c: New file.
1711
1712         New module 'exp2f'.
1713         * lib/math.in.h (exp2f): New declaration.
1714         * lib/exp2f.c: New file.
1715         * m4/exp2f.m4: New file.
1716         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1718         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1719         * modules/exp2f: New file.
1720         * tests/test-math-c++.cc: Check the declaration of exp2f.
1721         * doc/posix-functions/exp2f.texi: Mention the new module and the
1722         IRIX problem.
1723
1724 2012-03-08  Bruno Haible  <bruno@clisp.org>
1725
1726         Tests for module 'exp2'.
1727         * modules/exp2-tests: New file.
1728         * tests/test-exp2.c: New file.
1729         * tests/test-exp2.h: New file.
1730
1731         New module 'exp2'.
1732         * lib/math.in.h (exp2): New declaration.
1733         * lib/exp2.c: New file.
1734         * m4/exp2.m4: New file.
1735         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1736         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1737         REPLACE_EXP2.
1738         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1739         REPLACE_EXP2.
1740         * modules/exp2: New file.
1741         * tests/test-math-c++.cc: Check the declaration of exp2.
1742         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1743         and OpenBSD problems.
1744
1745 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1746
1747         savedir: fix comment typo
1748         * lib/savedir.c (savedirstream): Fix typo in comment.
1749
1750 2012-03-08  Bruno Haible  <bruno@clisp.org>
1751
1752         test-readtokens.c: use const; remove unwarranted cast
1753         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1754
1755 2012-03-08  Bruno Haible  <bruno@clisp.org>
1756
1757         fmal: Avoid compilation error on AIX.
1758         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1759         AIX 5.2..7.1.
1760
1761 2012-03-08  Bruno Haible  <bruno@clisp.org>
1762
1763         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1764         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1765         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1766         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1767         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1768         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1769         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1770
1771 2012-03-08  Bruno Haible  <bruno@clisp.org>
1772
1773         remainderf: Override buggy system function on IRIX 6.5.
1774         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1775         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1776         when it exists.
1777         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1778
1779 2012-03-08  Jim Meyering  <meyering@redhat.com>
1780
1781         test-readtokens.c: avoid const-related compilation warnings
1782         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1783
1784 2012-03-07  Jim Meyering  <meyering@redhat.com>
1785             Bruno Haible  <bruno@clisp.org>
1786
1787         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1788         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1789         tests/randomd.c.
1790         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1791         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1792         tests/randoml.c.
1793         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1794
1795 2012-03-07  Bruno Haible  <bruno@clisp.org>
1796
1797         expm1l: Avoid compilation error on AIX.
1798         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1799         AIX 5.2..7.1.
1800
1801 2012-03-07  Bruno Haible  <bruno@clisp.org>
1802
1803         expm1l: Don't override undeclared system function on IRIX 6.5.
1804         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1805         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1806         it exists. Set HAVE_DECL_EXPM1L.
1807         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1808         HAVE_EXPM1L.
1809         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1810         HAVE_EXPM1L.
1811         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1812
1813 2012-03-07  Bruno Haible  <bruno@clisp.org>
1814
1815         remainderl: Don't override undeclared system function on IRIX 6.5.
1816         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1817         HAVE_REMAINDERL.
1818         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1819         declared when it exists. Set HAVE_DECL_REMAINDERL.
1820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1821         not HAVE_REMAINDERL.
1822         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1823         HAVE_REMAINDERL.
1824         * doc/posix-functions/remainderl.texi: Mention missing declaration
1825         problem.
1826
1827 2012-03-07  Bruno Haible  <bruno@clisp.org>
1828
1829         rintf: Don't override undeclared system function on IRIX 6.5.
1830         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1831         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1832         exists. Set HAVE_DECL_RINTF.
1833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1834         HAVE_RINTF.
1835         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1836         HAVE_RINTF.
1837         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1838
1839 2012-03-07  Bruno Haible  <bruno@clisp.org>
1840
1841         roundl: Avoid compilation error on AIX.
1842         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1843         AIX 5.2..7.1.
1844
1845 2012-03-07  Bruno Haible  <bruno@clisp.org>
1846
1847         roundl: Don't override undeclared system function on IRIX 6.5.
1848         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1849         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1850         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1851         * modules/roundl (configure.ac): For replacement code, test
1852         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1853         (Depends-on): Update conditions.
1854         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1855
1856 2012-03-07  Bruno Haible  <bruno@clisp.org>
1857
1858         roundf: Don't override undeclared system function on IRIX 6.5.
1859         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1860         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1861         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1862         * modules/roundf (configure.ac): For replacement code, test
1863         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1864         (Depends-on): Update conditions.
1865         * modules/roundf-ieee (Depends-on): Update conditions.
1866         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1867
1868 2012-03-07  Bruno Haible  <bruno@clisp.org>
1869
1870         round: Don't override undeclared system function on IRIX 6.5.
1871         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1872         argument.
1873         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1874         also when it is not declared. Set HAVE_ROUND. For replacement code,
1875         test HAVE_ROUND, not HAVE_DECL_ROUND.
1876         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1877         not HAVE_DECL_ROUND.
1878         (Depends-on): Update conditions.
1879         * modules/round-ieee (Depends-on): Update conditions.
1880         * doc/posix-functions/round.texi: Mention the IRIX problem.
1881
1882 2012-03-07  Bruno Haible  <bruno@clisp.org>
1883
1884         copysignf: Don't override undeclared system function on IRIX 6.5.
1885         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1886         HAVE_COPYSIGNF.
1887         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1888         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1890         not HAVE_COPYSIGNF.
1891         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1892         HAVE_COPYSIGNF.
1893         * doc/posix-functions/copysignf.texi: Mention missing declaration
1894         problem.
1895
1896 2012-03-07  Jim Meyering  <meyering@redhat.com>
1897
1898         readtokens: add tests
1899         * modules/readtokens-tests: New file.
1900         * tests/test-readtokens.c: New file.
1901
1902 2012-03-07  Jim Meyering  <meyering@redhat.com>
1903
1904         quotearg: the module must now include quote.h
1905         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1906         So must the module.
1907         * modules/quotearg (Files): Add quote.h.
1908
1909 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1910
1911         readtokens: avoid core dumps with unusual calling patterns
1912         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1913         * lib/readtokens.c: Include limits.h.
1914         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1915         (readtoken): Don't cache the delimiters; the cache code was buggy
1916         if !delim && saved_delim, or if the new n_delim differs from the old.
1917         Also, it wasn't thread-safe.
1918
1919 2012-03-07  Bruno Haible  <bruno@clisp.org>
1920
1921         quote: Adhere to common module description layout.
1922         * modules/quote (Makefile.am): Add back empty section.
1923
1924 2012-03-06  Akim Demaille  <demaille@gostai.com>
1925
1926         quote: fuse into quotearg
1927         This patch is made for the benefit of Bison.
1928         quote does not leave the choice of the quoting style to the user.
1929         quoting_style provides poor customizability, yet quoting_options,
1930         which is very rich, is hidden inside quotearg.c.  So in order to
1931         allow quote customization, move its implementation to quotearg.c.
1932         * lib/quote.c: Remove.
1933         * modules/quote: Adjust.
1934         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1935         warning: provide all the members of literal structs.
1936         (quote_quoting_options): New.
1937         (quote, quote_n): Import implementation from quote.c.
1938         * lib/quote.h: Import the comments from quote.c.
1939         (quote_quoting_options): New.
1940
1941 2012-03-06  Bruno Haible  <bruno@clisp.org>
1942
1943         Tests for module 'expm1l-ieee'.
1944         * modules/expm1l-ieee-tests: New file.
1945         * tests/test-expm1l-ieee.c: New file.
1946
1947         New module 'expm1l-ieee'.
1948         * modules/expm1l-ieee: New file.
1949
1950         Tests for module 'expm1f-ieee'.
1951         * modules/expm1f-ieee-tests: New file.
1952         * tests/test-expm1f-ieee.c: New file.
1953
1954         New module 'expm1f-ieee'.
1955         * modules/expm1f-ieee: New file.
1956
1957         Tests for module 'expm1-ieee'.
1958         * modules/expm1-ieee-tests: New file.
1959         * tests/test-expm1-ieee.c: New file.
1960         * tests/test-expm1-ieee.h: New file.
1961
1962         New module 'expm1-ieee'.
1963         * modules/expm1-ieee: New file.
1964         * m4/expm1-ieee.m4: New file.
1965         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1966         whether expm1 works with a minus zero argument. Replace it if not.
1967         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1969         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1970         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1971         (Depends-on): Update conditions.
1972         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1973         AIX problem.
1974
1975 2012-03-06  Bruno Haible  <bruno@clisp.org>
1976
1977         Work around expm1f bug on IRIX 6.5.
1978         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1979         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1980         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1981         not work.
1982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1983         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1984         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1985         (Depends-on): Update conditions.
1986         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1987
1988 2012-03-06  Bruno Haible  <bruno@clisp.org>
1989
1990         Tests for module 'expm1l'.
1991         * modules/expm1l-tests: New file.
1992         * tests/test-expm1l.c: New file.
1993
1994         New module 'expm1l'.
1995         * lib/math.in.h (expm1l): New declaration.
1996         * lib/expm1l.c: New file.
1997         * m4/expm1l.m4: New file.
1998         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2000         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2001         * modules/expm1l: New file.
2002         * tests/test-math-c++.cc: Check the declaration of expm1l.
2003         * doc/posix-functions/expm1l.texi: Mention the new module.
2004
2005 2012-03-06  Bruno Haible  <bruno@clisp.org>
2006
2007         Tests for module 'expm1f'.
2008         * modules/expm1f-tests: New file.
2009         * tests/test-expm1f.c: New file.
2010
2011         New module 'expm1f'.
2012         * lib/math.in.h (expm1f): New declaration.
2013         * lib/expm1f.c: New file.
2014         * m4/expm1f.m4: New file.
2015         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2017         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2018         * modules/expm1f: New file.
2019         * tests/test-math-c++.cc: Check the declaration of expm1f.
2020         * doc/posix-functions/expm1f.texi: Mention the new module.
2021
2022 2012-03-06  Bruno Haible  <bruno@clisp.org>
2023
2024         Tests for module 'expm1'.
2025         * modules/expm1-tests: New file.
2026         * tests/test-expm1.c: New file.
2027         * tests/test-expm1.h: New file.
2028
2029         New module 'expm1'.
2030         * lib/math.in.h (expm1): New declaration.
2031         * lib/expm1.c: New file.
2032         * m4/expm1.m4: New file.
2033         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2035         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2036         * modules/expm1: New file.
2037         * tests/test-math-c++.cc: Check the declaration of expm1.
2038         * doc/posix-functions/expm1.texi: Mention the new module.
2039
2040 2012-03-06  Bruno Haible  <bruno@clisp.org>
2041
2042         math: Ensure declarations of math functions.
2043         * modules/acosf (Depends-on): Add 'extensions'.
2044         * modules/asinf (Depends-on): Likewise.
2045         * modules/atan2f (Depends-on): Likewise.
2046         * modules/atanf (Depends-on): Likewise.
2047         * modules/cbrt (Depends-on): Likewise.
2048         * modules/cbrtf (Depends-on): Likewise.
2049         * modules/cbrtl (Depends-on): Likewise.
2050         * modules/copysignf (Depends-on): Likewise.
2051         * modules/copysignl (Depends-on): Likewise.
2052         * modules/cosf (Depends-on): Likewise.
2053         * modules/coshf (Depends-on): Likewise.
2054         * modules/expf (Depends-on): Likewise.
2055         * modules/fabsf (Depends-on): Likewise.
2056         * modules/fabsl (Depends-on): Likewise.
2057         * modules/fmaf (Depends-on): Likewise.
2058         * modules/fmal (Depends-on): Likewise.
2059         * modules/fmodf (Depends-on): Likewise.
2060         * modules/fmodl (Depends-on): Likewise.
2061         * modules/frexpf (Depends-on): Likewise.
2062         * modules/frexpl (Depends-on): Likewise.
2063         * modules/hypot (Depends-on): Likewise.
2064         * modules/hypotf (Depends-on): Likewise.
2065         * modules/hypotl (Depends-on): Likewise.
2066         * modules/ldexpf (Depends-on): Likewise.
2067         * modules/ldexpl (Depends-on): Likewise.
2068         * modules/log10f (Depends-on): Likewise.
2069         * modules/log10l (Depends-on): Likewise.
2070         * modules/log1p (Depends-on): Likewise.
2071         * modules/logb (Depends-on): Likewise.
2072         * modules/logf (Depends-on): Likewise.
2073         * modules/modff (Depends-on): Likewise.
2074         * modules/modfl (Depends-on): Likewise.
2075         * modules/powf (Depends-on): Likewise.
2076         * modules/remainderf (Depends-on): Likewise.
2077         * modules/remainderl (Depends-on): Likewise.
2078         * modules/rintf (Depends-on): Likewise.
2079         * modules/rintl (Depends-on): Likewise.
2080         * modules/sinf (Depends-on): Likewise.
2081         * modules/sinhf (Depends-on): Likewise.
2082         * modules/sqrtf (Depends-on): Likewise.
2083         * modules/tanf (Depends-on): Likewise.
2084         * modules/tanhf (Depends-on): Likewise.
2085         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2086         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2087         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2088         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2089         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2090         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2091         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2092         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2093         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2094         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2095         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2096         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2097         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2098         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2099         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2100         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2101         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2102         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2103         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2104         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2105         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2106         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2107         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2108         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2109         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2110         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2111         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2112         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2113         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2114         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2115         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2116         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2117         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2118         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2119         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2120         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2121         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2122         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2123         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2124         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2125         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2126
2127 2012-03-06  Bruno Haible  <bruno@clisp.org>
2128
2129         math: Update module names in warnings.
2130         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2131         tanl): Use specific module name in warn-on-use warning.
2132
2133 2012-03-06  Bruno Haible  <bruno@clisp.org>
2134
2135         expl: Simplify computation.
2136         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2137
2138 2012-03-05  Bruno Haible  <bruno@clisp.org>
2139
2140         exp* tests: More tests.
2141         * tests/test-exp.h: New file.
2142         * tests/test-exp.c: Include <float.h> and test-exp.h.
2143         (main): Invoke test_function.
2144         * tests/test-expf.c: Include <float.h> and test-exp.h.
2145         (main): Invoke test_function.
2146         * tests/test-expl.c: Include <float.h> and test-exp.h.
2147         (main): Invoke test_function.
2148         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2149         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2150         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2151         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2152         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2153         (Depends-on): Add 'float'.
2154         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2155
2156         expl: Fix precision of computed result.
2157         * lib/expl.c: Completely rewritten.
2158         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2159         (Maintainer): Add me.
2160         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2161
2162 2012-03-05  Bruno Haible  <bruno@clisp.org>
2163
2164         cbrt* tests: More tests.
2165         * tests/test-cbrt.h: New file.
2166         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2167         (main): Invoke test_function.
2168         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2169         (main): Invoke test_function.
2170         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2171         (main): Invoke test_function.
2172         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2173         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2174         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2175         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2176         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2177         (Depends-on): Add 'float'.
2178         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2179
2180 2012-03-05  Bruno Haible  <bruno@clisp.org>
2181
2182         hypot* tests: More tests.
2183         * tests/test-hypot.h: New file, partially extracted from
2184         tests/test-hypotl.c.
2185         * tests/test-hypot.c: Include test-hypot.h.
2186         (main): Invoke test_function.
2187         * tests/test-hypotf.c: Include test-hypot.h.
2188         (main): Invoke test_function.
2189         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2190         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2191         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2192         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2193         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2194         tests/randomf.c.
2195         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2196         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2197         tests/randoml.c.
2198         (Depends-on): Add 'fpucw', 'float'.
2199         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2200
2201 2012-03-05  Bruno Haible  <bruno@clisp.org>
2202
2203         fpucw: Doc about FreeBSD.
2204         * lib/fpucw.h: Mention FreeBSD in comments.
2205
2206 2012-03-04  Bruno Haible  <bruno@clisp.org>
2207
2208         sqrt* tests: More tests.
2209         * tests/test-sqrt.h: New file.
2210         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2211         (main): Invoke test_function.
2212         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2213         (main): Invoke test_function.
2214         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2215         (main): Invoke test_function.
2216         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2217         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2218         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2219         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2220         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2221         (Depends-on): Add 'float'.
2222         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2223
2224 2012-03-04  Bruno Haible  <bruno@clisp.org>
2225
2226         remainder* tests: More tests.
2227         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2228         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2229         (main): Invoke test_function.
2230         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2231         (main): Invoke test_function.
2232         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2233         (main): Invoke test_function.
2234         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2235         tests/randomd.c.
2236         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2237         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2238         tests/randomf.c.
2239         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2240         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2241         tests/randoml.c.
2242         (Depends-on): Add 'float'.
2243         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2244
2245 2012-03-04  Bruno Haible  <bruno@clisp.org>
2246
2247         remainder, remainderf, remainderl: Fix computation for large quotients.
2248         * lib/remainder.c: Completely rewritten.
2249         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2250         USE_FLOAT.
2251         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2252         USE_LONG_DOUBLE.
2253         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2254         isnand, isinf. Remove round, fma.
2255         * modules/remainderf (Files): Add lib/remainder.c.
2256         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2257         Remove roundf, fmaf.
2258         * modules/remainderl (Files): Add lib/remainder.c.
2259         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2260         isinf. Remove roundl, fmal.
2261         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2262         REMAINDER_LIBM.
2263         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2264         REMAINDERF_LIBM.
2265         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2266         REMAINDERL_LIBM.
2267
2268 2012-03-04  Bruno Haible  <bruno@clisp.org>
2269
2270         fmod* tests: More tests.
2271         * tests/test-fmod.h (my_ldexp): New function.
2272         (test_function): Reduce amount of random numbers to test. Add tests
2273         of very large quotients x / y.
2274         * tests/test-fmod.c (MAX_EXP): New macro.
2275         * tests/test-fmodf.c (MAX_EXP): Likewise.
2276         * tests/test-fmodl.c (MAX_EXP): Likewise.
2277
2278 2012-03-04  Bruno Haible  <bruno@clisp.org>
2279
2280         fmod, fmodl: Fix computation for large quotients x / y.
2281         * lib/fmod.c: Completely rewritten.
2282         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2283         USE_LONG_DOUBLE.
2284         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2285         isnand. Remove fma.
2286         * modules/fmodl (Files): Add lib/fmod.c.
2287         (Depends-on): Add float, isfinite, signbit, fabsl,
2288         frexpl, ldexpl, isnanl. Remove fma.
2289         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2290         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2291
2292 2012-03-03  Bruno Haible  <bruno@clisp.org>
2293
2294         fmod* tests: More tests.
2295         * tests/test-fmod.h: New file.
2296         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2297         (main): Invoke test_function.
2298         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2299         (main): Invoke test_function.
2300         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2301         (main): Invoke test_function.
2302         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2303         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2304         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2305         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2306         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2307         (Depends-on): Add 'float'.
2308         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2309
2310 2012-03-03  Bruno Haible  <bruno@clisp.org>
2311
2312         rint* tests: More tests.
2313         * tests/test-rint.h: New file, partially extracted from
2314         tests/test-rintl.c.
2315         * tests/test-rint.c: Include test-rint.h.
2316         (main): Invoke test_function.
2317         * tests/test-rintf.c: Include test-rint.h.
2318         (main): Invoke test_function.
2319         * tests/test-rintl.c: Include test-rint.h.
2320         (main): Invoke test_function.
2321         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2322         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2323         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2324         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2325         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2326         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2327
2328 2012-03-03  Bruno Haible  <bruno@clisp.org>
2329
2330         modf* tests: More tests.
2331         * tests/test-modf.h: New file.
2332         * tests/test-modf.c: Include <float.h> and test-modf.h.
2333         (main): Invoke test_function.
2334         * tests/test-modff.c: Include <float.h> and test-modf.h.
2335         (main): Invoke test_function.
2336         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2337         (main): Invoke test_function.
2338         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2339         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2340         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2341         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2342         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2343         (Depends-on): Add 'float'.
2344         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2345
2346 2012-03-03  Bruno Haible  <bruno@clisp.org>
2347
2348         fabs* tests: More tests.
2349         * tests/test-fabs.h: New file, partially extracted from
2350         tests/test-fabsl.c.
2351         * tests/test-fabs.c (RANDOM): New macro.
2352         * tests/test-fabsf.c (RANDOM): New macro.
2353         * tests/test-fabsl.c (RANDOM): New macro.
2354         * modules/fabs-tests (Files): Add tests/randomd.c.
2355         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2356         * modules/fabsf-tests (Files): Add tests/randomf.c.
2357         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2358         * modules/fabsl-tests (Files): Add tests/randoml.c.
2359         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2360
2361 2012-03-03  Bruno Haible  <bruno@clisp.org>
2362
2363         ldexp* tests: More tests.
2364         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2365         * tests/test-ldexp.c (RANDOM): New macro.
2366         * tests/test-ldexpf.c (RANDOM): New macro.
2367         * tests/test-ldexpl.c (RANDOM): New macro.
2368         * modules/ldexp-tests (Files): Add tests/randomd.c.
2369         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2370         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2371         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2372         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2373         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2374
2375 2012-03-03  Bruno Haible  <bruno@clisp.org>
2376
2377         frexp* tests: More tests.
2378         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2379         * tests/test-frexp.c (RANDOM): New macro.
2380         * tests/test-frexpf.c (RANDOM): New macro.
2381         * tests/test-frexpl.c (RANDOM): New macro.
2382         * modules/frexp-tests (Files): Add tests/randomd.c.
2383         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2384         * modules/frexpf-tests (Files): Add tests/randomf.c.
2385         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2386         * modules/frexpl-tests (Files): Add tests/randoml.c.
2387         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2388
2389 2012-03-03  Bruno Haible  <bruno@clisp.org>
2390
2391         Support for pseudo-random numbers in tests.
2392         * tests/randomf.c: New file.
2393         * tests/randomd.c: New file.
2394         * tests/randoml.c: New file.
2395         * tests/macros.h (randomf, randomd, randoml): New declarations.
2396
2397 2012-03-03  Bruno Haible  <bruno@clisp.org>
2398
2399         frexp* tests: Refactor.
2400         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2401         * tests/test-frexp.c: Include and use it.
2402         * tests/test-frexpf.c: Likewise.
2403         * tests/test-frexpl.c: Likewise.
2404         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2405         * modules/frexpf-tests (Files): Likewise.
2406         * modules/frexpl-tests (Files): Likewise.
2407
2408 2012-03-02  Jim Meyering  <meyering@redhat.com>
2409
2410         maint: don't specify XZ_OPT=-9ev in dist-related rule
2411         Using xz's -9 option is warranted only if you have a very large
2412         tarball (see xz's documentation for the sizes vs. presets), and
2413         requires 64MiB of memory at decompression time.
2414         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2415         Automake's default of just "-e" is fine.  Override on a
2416         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2417
2418 2012-03-01  Eric Blake  <eblake@redhat.com>
2419
2420         maint.mk: allow announcement for non-gnulib project
2421         * maint.mk (announcement): Skip gnulib version if not used.
2422
2423 2012-03-01  Jim Meyering  <meyering@redhat.com>
2424
2425         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2426         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2427         envvar settings cannot interfere.  Otherwise, setting envvars like
2428         prohibit=foo require=bar, etc. would cause spurious test failures.
2429
2430 2012-03-01  Eric Blake  <eblake@redhat.com>
2431
2432         maint.mk: add per-line exclusions to prohibitions
2433         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2434         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2435         (sc_const_long_option): Use it.
2436
2437 2012-03-01  Bruno Haible  <bruno@clisp.org>
2438
2439         Tests for module 'expl-ieee'.
2440         * modules/expl-ieee-tests: New file.
2441         * tests/test-expl-ieee.c: New file.
2442
2443         New module 'expl-ieee'.
2444         * modules/expl-ieee: New file.
2445
2446         Tests for module 'exp-ieee'.
2447         * modules/exp-ieee-tests: New file.
2448         * tests/test-exp-ieee.c: New file.
2449
2450         New module 'exp-ieee'.
2451         * modules/exp-ieee: New file.
2452
2453         Tests for module 'expf-ieee'.
2454         * modules/expf-ieee-tests: New file.
2455         * tests/test-expf-ieee.c: New file.
2456         * tests/test-exp-ieee.h: New file.
2457
2458         New module 'expf-ieee'.
2459         * modules/expf-ieee: New file.
2460
2461 2012-02-29  Bruno Haible  <bruno@clisp.org>
2462
2463         cbrtl-ieee: Work around test failure on IRIX 6.5.
2464         * m4/cbrtl-ieee.m4: New file.
2465         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2466         test whether cbrtl works with a minus zero argument. Replace it if not.
2467         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2469         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2470         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2471         (Depends-on): Update conditions.
2472         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2473         m4/signbit.m4.
2474         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2475         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2476         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2477
2478         Tests for module 'cbrtl-ieee'.
2479         * modules/cbrtl-ieee-tests: New file.
2480         * tests/test-cbrtl-ieee.c: New file.
2481
2482         New module 'cbrtl-ieee'.
2483         * modules/cbrtl-ieee: New file.
2484
2485         Tests for module 'cbrt-ieee'.
2486         * modules/cbrt-ieee-tests: New file.
2487         * tests/test-cbrt-ieee.c: New file.
2488
2489         New module 'cbrt-ieee'.
2490         * modules/cbrt-ieee: New file.
2491
2492         Tests for module 'cbrtf-ieee'.
2493         * modules/cbrtf-ieee-tests: New file.
2494         * tests/test-cbrtf-ieee.c: New file.
2495         * tests/test-cbrt-ieee.h: New file.
2496
2497         New module 'cbrtf-ieee'.
2498         * modules/cbrtf-ieee: New file.
2499
2500 2012-02-29  Bruno Haible  <bruno@clisp.org>
2501
2502         cbrtf: Work around bug in IRIX 6.5 system function.
2503         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2504         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2505         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2506         work.
2507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2508         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2509         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2510         (Depends-on): Update conditions.
2511         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2512
2513 2012-02-29  Bruno Haible  <bruno@clisp.org>
2514
2515         Tests for module 'cbrtl'.
2516         * modules/cbrtl-tests: New file.
2517         * tests/test-cbrtl.c: New file.
2518
2519         New module 'cbrtl'.
2520         * lib/math.in.h (cbrtl): New declaration.
2521         * lib/cbrtl.c: New file.
2522         * m4/cbrtl.m4: New file.
2523         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2525         HAVE_DECL_CBRTL.
2526         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2527         HAVE_DECL_CBRTL.
2528         * modules/cbrtl: New file.
2529         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2530         * doc/posix-functions/cbrtl.texi: Mention the new module.
2531
2532 2012-02-29  Bruno Haible  <bruno@clisp.org>
2533
2534         Tests for module 'cbrtf'.
2535         * modules/cbrtf-tests: New file.
2536         * tests/test-cbrtf.c: New file.
2537
2538         New module 'cbrtf'.
2539         * lib/math.in.h (cbrtf): New declaration.
2540         * lib/cbrtf.c: New file.
2541         * m4/cbrtf.m4: New file.
2542         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2544         HAVE_DECL_CBRTF.
2545         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2546         HAVE_DECL_CBRTF.
2547         * modules/cbrtf: New file.
2548         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2549         * doc/posix-functions/cbrtf.texi: Mention the new module.
2550
2551 2012-02-29  Bruno Haible  <bruno@clisp.org>
2552
2553         cbrt: Provide replacement on MSVC and Minix.
2554         * lib/math.in.h (cbrt): New declaration.
2555         * lib/cbrt.c: New file.
2556         * m4/cbrt.m4: New file.
2557         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2559         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2560         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2561         (Depends-on): Add dependencies.
2562         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2563         * tests/test-math-c++.cc: Check the declaration of cbrt.
2564         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2565         replacement.
2566
2567 2012-02-29  Bruno Haible  <bruno@clisp.org>
2568
2569         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2570         * m4/hypotl-ieee.m4: New file.
2571         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2572         test whether hypotl works with mixed NaN and Infinity arguments.
2573         Replace it if not.
2574         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2576         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2577         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2578         (Depends-on): Update conditions.
2579         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2580         (Depends-on): Add hypot-ieee.
2581         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2582         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2583
2584         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2585         * m4/hypotf-ieee.m4: New file.
2586         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2587         test whether hypotf works with mixed NaN and Infinity arguments.
2588         Replace it if not.
2589         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2590         (Depends-on): Add hypot-ieee.
2591         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2592         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2593
2594         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2595         * lib/math.in.h (hypot): New declaration.
2596         * lib/hypot.c: New file.
2597         * m4/hypot-ieee.m4: New file.
2598         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2599         whether hypot works with mixed NaN and Infinity arguments. Replace it
2600         if not.
2601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2602         REPLACE_HYPOT.
2603         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2604         * modules/hypot (Files): Add lib/hypot.c.
2605         (Depends-on): Add dependencies.
2606         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2607         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2608         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2609         * tests/test-math-c++.cc: Check the declaration of hypot.
2610         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2611
2612         Tests for module 'hypotl-ieee'.
2613         * modules/hypotl-ieee-tests: New file.
2614         * tests/test-hypotl-ieee.c: New file.
2615
2616         New module 'hypotl-ieee'.
2617         * modules/hypotl-ieee: New file.
2618
2619         Tests for module 'hypot-ieee'.
2620         * modules/hypot-ieee-tests: New file.
2621         * tests/test-hypot-ieee.c: New file.
2622
2623         New module 'hypot-ieee'.
2624         * modules/hypot-ieee: New file.
2625
2626         Tests for module 'hypotf-ieee'.
2627         * modules/hypotf-ieee-tests: New file.
2628         * tests/test-hypotf-ieee.c: New file.
2629         * tests/test-hypot-ieee.h: New file.
2630
2631         New module 'hypotf-ieee'.
2632         * modules/hypotf-ieee: New file.
2633
2634 2012-02-29  Bruno Haible  <bruno@clisp.org>
2635
2636         Remove unused variables.
2637         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2638         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2639         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2640         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2641
2642 2012-02-29  Eric Blake  <eblake@redhat.com>
2643
2644         termios: fix pid_t always, not just for tcgetsid
2645         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2646         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2647         just when building tcgetsid.
2648
2649 2012-02-29  Bruno Haible  <bruno@clisp.org>
2650
2651         Tests for module 'hypotl'.
2652         * modules/hypotl-tests: New file.
2653         * tests/test-hypotl.c: New file.
2654
2655         New module 'hypotl'.
2656         * lib/math.in.h (hypotl): New declaration.
2657         * lib/hypotl.c: New file.
2658         * m4/hypotl.m4: New file.
2659         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2661         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2662         * modules/hypotl: New file.
2663         * tests/test-math-c++.cc: Check the hypotl declaration.
2664         * doc/posix-functions/hypotl.texi: Mention the new module.
2665
2666 2012-02-29  Eric Blake  <eblake@redhat.com>
2667
2668         tcgetsid: fix cygwin header bug
2669         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2670
2671         docs: update cygwin progress
2672         * doc/posix-functions/llround.texi (llround): Added in cygwin
2673         1.7.8.
2674         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2675         * doc/glibc-functions/program_invocation_name.texi
2676         (program_invocation_name): Likewise.
2677         * doc/glibc-functions/program_invocation_short_name.texi
2678         (program_invocation_short_name): Likewise.
2679         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2680         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2681         Likewise.
2682         * doc/posix-functions/pthread_spin_destroy.texi
2683         (pthread_spin_destroy): Added in cygwin 1.7.10.
2684         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2685         Likewise.
2686         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2687         Likewise.
2688         * doc/posix-functions/pthread_spin_trylock.texi
2689         (pthread_spin_trylock): Likewise.
2690         * doc/posix-functions/pthread_spin_unlock.texi
2691         (pthread_spin_unlock): Likewise.
2692         * doc/posix-functions/pthread_setschedprio.texi
2693         (pthread_setschedprio): Likewise.
2694         * doc/posix-functions/pthread_attr_getstack.texi
2695         (pthread_attr_getstack): Likewise.
2696         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2697         (pthread_attr_getstackaddr): Likewise.
2698         * doc/glibc-functions/pthread_getattr_np.texi
2699         (pthread_getattr_np): Likewise.
2700         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2701         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2702         * doc/posix-functions/clock_settime.texi (clock_settime):
2703         Likewise.
2704         * doc/posix-functions/pthread_attr_getguardsize.texi
2705         (pthread_attr_getguardsize): Likewise.
2706         * doc/posix-functions/pthread_attr_setguardsize.texi
2707         (pthread_attr_setguardsize): Likewise.
2708         * doc/posix-functions/pthread_attr_setstack.texi
2709         (pthread_attr_setstack): Likewise.
2710         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2711         (pthread_attr_setstackaddr): Likewise.
2712         * doc/posix-functions/clock_getcpuclockid.texi
2713         (clock_getcpuclockid): Likewise.
2714         * doc/posix-functions/pthread_getcpuclockid.texi
2715         (pthread_getcpuclockid): Likewise.
2716         * doc/glibc-functions/error.texi (error): Likewise.
2717         * doc/glibc-functions/error_at_line.texi (error_at_line):
2718         Likewise.
2719         * doc/glibc-functions/error_message_count.texi
2720         (error_message_count): Likewise.
2721         * doc/glibc-functions/error_one_per_line.texi
2722         (error_one_per_line): Likewise.
2723         * doc/glibc-functions/error_print_progname.texi
2724         (error_print_progname): Likewise.
2725         * doc/posix-functions/pthread_condattr_getclock.texi
2726         (pthread_condattr_getclock): Likewise.
2727         * doc/posix-functions/pthread_condattr_setclock.texi
2728         (pthread_condattr_setclock): Likewise.
2729         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2730         Likewise.
2731         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2732         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2733         * doc/glibc-functions/get_current_dir_name.texi
2734         (get_current_dir_name): Likewise.
2735         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2736         Likewise.
2737         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2738         wrong return type.
2739         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2740         1.7.11.
2741
2742 2012-02-29  Bruno Haible  <bruno@clisp.org>
2743
2744         Tests for module 'hypotf'.
2745         * modules/hypotf-tests: New file.
2746         * tests/test-hypotf.c: New file.
2747
2748         New module 'hypotf'.
2749         * lib/math.in.h (hypotf): New declaration.
2750         * lib/hypotf.c: New file.
2751         * m4/hypotf.m4: New file.
2752         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2753         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2754         REPLACE_HYPOTF.
2755         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2756         REPLACE_HYPOTF.
2757         * modules/hypotf: New file.
2758         * tests/test-math-c++.cc: Check the hypotf declaration.
2759         * doc/posix-functions/hypotf.texi: Mention the new module.
2760
2761         hypot: Prepare for hypotf module.
2762         * m4/hypot.m4: New file.
2763         * modules/hypot (Files): Add m4/hypot.m4.
2764         (configure.ac): Invoke gl_FUNC_HYPOT.
2765
2766 2012-02-29  Bruno Haible  <bruno@clisp.org>
2767
2768         hypot tests: More tests.
2769         * tests/test-hypot.c: Include <float.h>.
2770         (main): Add tests about overflow and underflow.
2771
2772 2012-02-29  Bruno Haible  <bruno@clisp.org>
2773
2774         math code: Add comments.
2775         * lib/acosl.c: Add comment about related glibc source files.
2776         * lib/asinl.c: Likewise.
2777         * lib/atanl.c: Likewise.
2778         * lib/expl.c: Likewise.
2779         * lib/logl.c: Likewise.
2780         * lib/sincosl.c: Likewise.
2781         * lib/sinl.c: Likewise.
2782         * lib/tanl.c: Likewise.
2783         * lib/trigl.c: Likewise.
2784         * lib/cosl.c: Likewise. Fix comments.
2785
2786 2012-02-28  Bruno Haible  <bruno@clisp.org>
2787
2788         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2789         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2790         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2791         HUGE_VALL are defined.
2792         (numeric_equald): Renamed from numeric_equal.
2793         (numeric_equalf, numeric_equall): New functions.
2794         (main): Check also HUGE_VALF, HUGE_VALL.
2795         * modules/math-tests (Files): Add tests/macros.h.
2796         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2797         HUGE_VALL.
2798
2799 2012-02-28  Bruno Haible  <bruno@clisp.org>
2800
2801         doc: Move ISO C11 feature notes into POSIX chapters.
2802         * doc/posix-functions/aligned_alloc.texi: Renamed from
2803         doc/glibc-functions/aligned_alloc.texi.
2804         * doc/posix-functions/quick_exit.texi: Renamed from
2805         doc/glibc-functions/quick_exit.texi.
2806         * doc/posix-headers/uchar.texi: Renamed from
2807         doc/glibc-headers/uchar.texi.
2808         * doc/posix-functions/c16rtomb.texi: Renamed from
2809         doc/glibc-functions/c16rtomb.texi.
2810         * doc/posix-functions/c32rtomb.texi: Renamed from
2811         doc/glibc-functions/c32rtomb.texi.
2812         * doc/posix-functions/mbrtoc16.texi: Renamed from
2813         doc/glibc-functions/mbrtoc16.texi.
2814         * doc/posix-functions/mbrtoc32.texi: Renamed from
2815         doc/glibc-functions/mbrtoc32.texi.
2816         * doc/gnulib.texi: Update.
2817         (Glibc uchar.h): Remove section.
2818         Suggested by Eric Blake.
2819
2820 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2821
2822         stdnoreturn: port to MSVC better
2823         MSVC standard headers use __declspec(noreturn), so #define noreturn
2824         to empty on that platform.  Reported by Bruno Haible in
2825         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2826         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2827         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2828
2829 2012-02-28  Bruno Haible  <bruno@clisp.org>
2830
2831         doc: Mention new glibc headers and functions.
2832         * doc/glibc-headers/uchar.texi: New file.
2833         * doc/glibc-functions/aligned_alloc.texi: New file.
2834         * doc/glibc-functions/c16rtomb.texi: New file.
2835         * doc/glibc-functions/c32rtomb.texi: New file.
2836         * doc/glibc-functions/clock_adjtime.texi: New file.
2837         * doc/glibc-functions/fanotify_init.texi: New file.
2838         * doc/glibc-functions/fanotify_mark.texi: New file.
2839         * doc/glibc-functions/inet6_opt_append.texi: New file.
2840         * doc/glibc-functions/inet6_opt_find.texi: New file.
2841         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2842         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2843         * doc/glibc-functions/inet6_opt_init.texi: New file.
2844         * doc/glibc-functions/inet6_opt_next.texi: New file.
2845         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2846         * doc/glibc-functions/inet6_rth_add.texi: New file.
2847         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2848         * doc/glibc-functions/inet6_rth_init.texi: New file.
2849         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2850         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2851         * doc/glibc-functions/inet6_rth_space.texi: New file.
2852         * doc/glibc-functions/login.texi: New file.
2853         * doc/glibc-functions/mbrtoc16.texi: New file.
2854         * doc/glibc-functions/mbrtoc32.texi: New file.
2855         * doc/glibc-functions/name_to_handle_at.texi: New file.
2856         * doc/glibc-functions/ntp_gettimex.texi: New file.
2857         * doc/glibc-functions/open_by_handle_at.texi: New file.
2858         * doc/glibc-functions/prlimit.texi: New file.
2859         * doc/glibc-functions/process_vm_readv.texi: New file.
2860         * doc/glibc-functions/process_vm_writev.texi: New file.
2861         * doc/glibc-functions/recvmmsg.texi: New file.
2862         * doc/glibc-functions/scandirat.texi: New file.
2863         * doc/glibc-functions/sendmmsg.texi: New file.
2864         * doc/glibc-functions/setns.texi: New file.
2865         * doc/glibc-functions/timespec_get.texi: New file.
2866         * doc/gnulib.texi: Include them.
2867         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2868         sections.
2869         Reported by Eric Blake.
2870
2871 2012-02-28  Bruno Haible  <bruno@clisp.org>
2872
2873         Avoid compilation errors with MSVC option -fp:strict.
2874         * lib/floor.c: Use MSVC specific pragma fenv_access.
2875         * lib/ceil.c: Likewise.
2876         * lib/trunc.c: Likewise.
2877         * lib/round.c: Likewise.
2878         * lib/rint.c: Likewise.
2879         * lib/fma.c: Likewise.
2880         * lib/integer_length.c: Likewise.
2881         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2882         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2883         * tests/test-floor2.c: Likewise.
2884         * tests/test-floorf2.c: Likewise.
2885         * tests/test-ceil2.c: Likewise.
2886         * tests/test-ceilf2.c: Likewise.
2887         * tests/test-trunc2.c: Likewise.
2888         * tests/test-truncf2.c: Likewise.
2889         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2890
2891 2012-02-27  Bruno Haible  <bruno@clisp.org>
2892
2893         Tests for module 'sqrtl-ieee'.
2894         * modules/sqrtl-ieee-tests: New file.
2895         * tests/test-sqrtl-ieee.c: New file.
2896
2897         New module 'sqrtl-ieee'.
2898         * modules/sqrtl-ieee: New file.
2899
2900         Tests for module 'sqrt-ieee'.
2901         * modules/sqrt-ieee-tests: New file.
2902         * tests/test-sqrt-ieee.c: New file.
2903
2904         New module 'sqrt-ieee'.
2905         * modules/sqrt-ieee: New file.
2906
2907         Tests for module 'sqrtf-ieee'.
2908         * modules/sqrtf-ieee-tests: New file.
2909         * tests/test-sqrtf-ieee.c: New file.
2910         * tests/test-sqrt-ieee.h: New file.
2911
2912         New module 'sqrtf-ieee'.
2913         * modules/sqrtf-ieee: New file.
2914
2915 2012-02-27  Bruno Haible  <bruno@clisp.org>
2916
2917         remainderl-ieee: Work around test failure on OSF/1.
2918         * m4/remainderl-ieee.m4: New file.
2919         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2920         present, test whether remainderl works with a zero second argument.
2921         Replace it if not.
2922         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2924         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2925         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2926         (Depends-on): Update conditions.
2927         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2928         (Depends-on): Add remainder-ieee.
2929         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2930         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2931         module.
2932
2933         remainderf-ieee: Work around test failure on OSF/1.
2934         * m4/remainderf-ieee.m4: New file.
2935         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2936         present, test whether remainderf works with a zero second argument.
2937         Replace it if not.
2938         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2940         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2941         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2942         (Depends-on): Update conditions.
2943         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2944         (Depends-on): Add remainder-ieee.
2945         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2946         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2947         module.
2948
2949         remainder-ieee: Work around test failure on OSF/1.
2950         * m4/remainder-ieee.m4: New file.
2951         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2952         present, test whether remainder works with a zero second argument.
2953         Replace it if not.
2954         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2956         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2957         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2958         (Depends-on): Update dependencies.
2959         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2960         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2961         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2962
2963         Tests for module 'remainderl-ieee'.
2964         * modules/remainderl-ieee-tests: New file.
2965         * tests/test-remainderl-ieee.c: New file.
2966
2967         New module 'remainderl-ieee'.
2968         * modules/remainderl-ieee: New file.
2969
2970         Tests for module 'remainder-ieee'.
2971         * modules/remainder-ieee-tests: New file.
2972         * tests/test-remainder-ieee.c: New file.
2973
2974         New module 'remainder-ieee'.
2975         * modules/remainder-ieee: New file.
2976
2977         Tests for module 'remainderf-ieee'.
2978         * modules/remainderf-ieee-tests: New file.
2979         * tests/test-remainderf-ieee.c: New file.
2980         * tests/test-remainder-ieee.h: New file.
2981
2982         New module 'remainderf-ieee'.
2983         * modules/remainderf-ieee: New file.
2984
2985 2012-02-27  Bruno Haible  <bruno@clisp.org>
2986
2987         modff, modfl: Fix configure syntax error.
2988         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2989         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2990
2991 2012-02-27  Bruno Haible  <bruno@clisp.org>
2992
2993         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2994         * m4/fmodl-ieee.m4: New file.
2995         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2996         whether fmodl works with zero arguments. Replace it if not.
2997         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2998         (Depends-on): Add fmod-ieee.
2999         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3000         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3001
3002         fmodf-ieee: Work around test failure on OSF/1.
3003         * m4/fmodf-ieee.m4: New file.
3004         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3005         whether fmodf works with zero arguments. Replace it if not.
3006         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3008         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3009         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3010         (Depends-on): Update dependencies.
3011         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3012         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3013         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3014
3015         fmodf-ieee: Work around test failure on MSVC 9.
3016         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3017         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3018
3019         fmod-ieee: Work around test failures on OSF/1, mingw.
3020         * m4/fmod-ieee.m4: New file.
3021         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3022         whether fmod works with zero arguments. Replace it if not.
3023         * lib/math.in.h (fmod): New declaration.
3024         * lib/fmod.c: New file.
3025         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3027         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3028         * modules/fmod (Files): Add lib/fmod.c.
3029         (Depends-on): Add math, isinf, trunc, fma.
3030         (configure.ac): Arrange to compile lib/fmod.c if needed.
3031         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3032         m4/signbit.m4.
3033         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3034         * tests/test-math-c++.cc: Check the declaration of fmod.
3035         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3036
3037         fmodl-ieee: Fix test failures.
3038         * lib/fmodl.c (fmodl): Treat Inf specially.
3039         * modules/fmodl (Depends-on): Add isinf.
3040
3041         Tests for module 'fmodl-ieee'.
3042         * modules/fmodl-ieee-tests: New file.
3043         * tests/test-fmodl-ieee.c: New file.
3044
3045         New module 'fmodl-ieee'.
3046         * modules/fmodl-ieee: New file.
3047
3048         Tests for module 'fmod-ieee'.
3049         * modules/fmod-ieee-tests: New file.
3050         * tests/test-fmod-ieee.c: New file.
3051
3052         New module 'fmod-ieee'.
3053         * modules/fmod-ieee: New file.
3054
3055         Tests for module 'fmodf-ieee'.
3056         * modules/fmodf-ieee-tests: New file.
3057         * tests/test-fmodf-ieee.c: New file.
3058         * tests/test-fmod-ieee.h: New file.
3059
3060         New module 'fmodf-ieee'.
3061         * modules/fmodf-ieee: New file.
3062
3063 2012-02-27  Bruno Haible  <bruno@clisp.org>
3064
3065         Tests for module 'rintl-ieee'.
3066         * modules/rintl-ieee-tests: New file.
3067         * tests/test-rintl-ieee.c: New file.
3068
3069         New module 'rintl-ieee'.
3070         * modules/rintl-ieee: New file.
3071
3072         Tests for module 'rint-ieee'.
3073         * modules/rint-ieee-tests: New file.
3074         * tests/test-rint-ieee.c: New file.
3075
3076         New module 'rint-ieee'.
3077         * modules/rint-ieee: New file.
3078
3079         Tests for module 'rintf-ieee'.
3080         * modules/rintf-ieee-tests: New file.
3081         * tests/test-rintf-ieee.c: New file.
3082         * tests/test-rint-ieee.h: New file.
3083
3084         New module 'rintf-ieee'.
3085         * modules/rintf-ieee: New file.
3086
3087 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3088
3089         regex: re_search etc. should return -2 when memory exhausted
3090         This bug was uncovered when testing 'grep'.  Without the fix,
3091         re_search and friends return -1 when memory is exhausted, but -1
3092         means no match, and this causes grep to falsely report no-match
3093         instead of memory-exhaustion.  See
3094         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3095         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3096         trouble; this can occur if re_search_internal ran out of memory.
3097
3098 2012-02-26  Bruno Haible  <bruno@clisp.org>
3099
3100         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3101         * m4/modfl-ieee.m4: New file.
3102         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3103         whether modfl works with Inf. Replace it if not.
3104         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3106         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3107         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3108         (Depends-on): Update dependencies.
3109         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3110         m4/signbit.m4.
3111         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3112         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3113
3114         modfl-ieee: Fix dependencies.
3115         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3116
3117         modfl-ieee: Fix test failures.
3118         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3119         * modules/modfl (Depends-on): Add isfinite, isinf.
3120
3121         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3122         * m4/modff-ieee.m4: New file.
3123         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3124         whether modff works with NaN and Inf. Replace it if not.
3125         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3127         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3128         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3129         (Depends-on): Update dependencies.
3130         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3131         m4/signbit.m4.
3132         (Depends-on): Add modf-ieee.
3133         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3134         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3135
3136         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3137         * m4/modf-ieee.m4: New file.
3138         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3139         whether modf works with NaN and Inf. Replace it if not.
3140         * lib/math.in.h (modf): New declaration.
3141         * lib/modf.c: New file.
3142         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3144         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3145         * modules/modf (Files): Add lib/modf.c.
3146         (Depends-on): Add math, isfinite, trunc, isinf.
3147         (configure.ac): Addrange to compile lib/modf.c if needed.
3148         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3149         m4/signbit.m4.
3150         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3151         * tests/test-math-c++.cc: Check the declaration of modf.
3152         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3153
3154         Tests for module 'modfl-ieee'.
3155         * modules/modfl-ieee-tests: New file.
3156         * tests/test-modfl-ieee.c: New file.
3157
3158         New module 'modfl-ieee'.
3159         * modules/modfl-ieee: New file.
3160
3161         Tests for module 'modf-ieee'.
3162         * modules/modf-ieee-tests: New file.
3163         * tests/test-modf-ieee.c: New file.
3164
3165         New module 'modf-ieee'.
3166         * modules/modf-ieee: New file.
3167
3168         Tests for module 'modff-ieee'.
3169         * modules/modff-ieee-tests: New file.
3170         * tests/test-modff-ieee.c: New file.
3171         * tests/test-modf-ieee.h: New file.
3172
3173         New module 'modff-ieee'.
3174         * modules/modff-ieee: New file.
3175
3176 2012-02-26  Bruno Haible  <bruno@clisp.org>
3177
3178         Tests for module 'fabsl-ieee'.
3179         * modules/fabsl-ieee-tests: New file.
3180         * tests/test-fabsl-ieee.c: New file.
3181
3182         New module 'fabsl-ieee'.
3183         * modules/fabsl-ieee: New file.
3184
3185         Tests for module 'fabs-ieee'.
3186         * modules/fabs-ieee-tests: New file.
3187         * tests/test-fabs-ieee.c: New file.
3188
3189         New module 'fabs-ieee'.
3190         * modules/fabs-ieee: New file.
3191
3192         Tests for module 'fabsf-ieee'.
3193         * modules/fabsf-ieee-tests: New file.
3194         * tests/test-fabsf-ieee.c: New file.
3195         * tests/test-fabs-ieee.h: New file.
3196
3197         New module 'fabsf-ieee'.
3198         * modules/fabsf-ieee: New file.
3199
3200 2012-02-26  Bruno Haible  <bruno@clisp.org>
3201
3202         Tests for module 'fmal-ieee'.
3203         * modules/fmal-ieee-tests: New file.
3204         * tests/test-fmal-ieee.c: New file.
3205
3206         New module 'fmal-ieee'.
3207         * modules/fmal-ieee: New file.
3208
3209         Tests for module 'fma-ieee'.
3210         * modules/fma-ieee-tests: New file.
3211         * tests/test-fma-ieee.c: New file.
3212
3213         New module 'fma-ieee'.
3214         * modules/fma-ieee: New file.
3215
3216         Tests for module 'fmaf-ieee'.
3217         * modules/fmaf-ieee-tests: New file.
3218         * tests/test-fmaf-ieee.c: New file.
3219         * tests/test-fma-ieee.h: New file.
3220
3221         New module 'fmaf-ieee'.
3222         * modules/fmaf-ieee: New file.
3223
3224 2012-02-26  Bruno Haible  <bruno@clisp.org>
3225
3226         Tests for module 'ldexpl-ieee'.
3227         * modules/ldexpl-ieee-tests: New file.
3228         * tests/test-ldexpl-ieee.c: New file.
3229
3230         New module 'ldexpl-ieee'.
3231         * modules/ldexpl-ieee: New file.
3232
3233         Tests for module 'ldexp-ieee'.
3234         * modules/ldexp-ieee-tests: New file.
3235         * tests/test-ldexp-ieee.c: New file.
3236
3237         New module 'ldexp-ieee'.
3238         * modules/ldexp-ieee: New file.
3239
3240         Tests for module 'ldexpf-ieee'.
3241         * modules/ldexpf-ieee-tests: New file.
3242         * tests/test-ldexpf-ieee.c: New file.
3243         * tests/test-ldexp-ieee.h: New file.
3244
3245         New module 'ldexpf-ieee'.
3246         * modules/ldexpf-ieee: New file.
3247
3248 2012-02-26  Bruno Haible  <bruno@clisp.org>
3249
3250         Refactor frexp*-ieee tests.
3251         * tests/test-frexp-ieee.h: New file.
3252         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3253         (main): Just call test_function.
3254         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3255         (main): Just call test_function.
3256         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3257         (main): Just call test_function.
3258         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3259         * modules/frexp-ieee-tests (Files): Likewise.
3260         * modules/frexpl-ieee-tests (Files): Likewise.
3261
3262         Tests for module 'frexpl-ieee'.
3263         * modules/frexpl-ieee-tests: New file.
3264         * tests/test-frexpl-ieee.c: New file.
3265
3266         New module 'frexpl-ieee'.
3267         * modules/frexpl-ieee: New file.
3268
3269         Tests for module 'frexp-ieee'.
3270         * modules/frexp-ieee-tests: New file.
3271         * tests/test-frexp-ieee.c: New file.
3272
3273         New module 'frexp-ieee'.
3274         * modules/frexp-ieee: New file.
3275
3276         Tests for module 'frexpf-ieee'.
3277         * modules/frexpf-ieee-tests: New file.
3278         * tests/test-frexpf-ieee.c: New file.
3279
3280         New module 'frexpf-ieee'.
3281         * modules/frexpf-ieee: New file.
3282
3283 2012-02-26  Bruno Haible  <bruno@clisp.org>
3284
3285         roundl-ieee tests: More tests.
3286         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3287         (main): Add tests for [MX] shaded specification in POSIX.
3288         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3289         (Depends-on): Add isnanl-nolibm.
3290
3291         round-ieee tests: More tests.
3292         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3293         (main): Add tests for [MX] shaded specification in POSIX.
3294         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3295         (Depends-on): Add isnand-nolibm.
3296
3297         roundf-ieee tests: More tests.
3298         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3299         (main): Add tests for [MX] shaded specification in POSIX.
3300         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3301         (Depends-on): Add isnanf-nolibm.
3302
3303         truncl-ieee tests: More tests.
3304         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3305         (main): Add tests for [MX] shaded specification in POSIX.
3306         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3307         (Depends-on): Add isnanl-nolibm.
3308
3309         trunc-ieee tests: More tests.
3310         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3311         (main): Add tests for [MX] shaded specification in POSIX.
3312         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3313         (Depends-on): Add isnand-nolibm.
3314
3315         truncf-ieee tests: More tests.
3316         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3317         (main): Add tests for [MX] shaded specification in POSIX.
3318         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3319         (Depends-on): Add isnanf-nolibm.
3320
3321         ceill-ieee tests: More tests.
3322         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3323         (main): Add tests for [MX] shaded specification in POSIX.
3324         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3325         (Depends-on): Add isnanl-nolibm.
3326
3327         ceil-ieee tests: More tests.
3328         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3329         (main): Add tests for [MX] shaded specification in POSIX.
3330         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3331         (Depends-on): Add isnand-nolibm.
3332
3333         ceilf-ieee tests: More tests.
3334         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3335         (main): Add tests for [MX] shaded specification in POSIX.
3336         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3337         (Depends-on): Add isnanf-nolibm.
3338
3339         floorl-ieee tests: More tests.
3340         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3341         (main): Add tests for [MX] shaded specification in POSIX.
3342         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3343         (Depends-on): Add isnanl-nolibm.
3344
3345         floor-ieee tests: More tests.
3346         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3347         (main): Add tests for [MX] shaded specification in POSIX.
3348         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3349         (Depends-on): Add isnand-nolibm.
3350
3351         floorf-ieee tests: More tests.
3352         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3353         (main): Add tests for [MX] shaded specification in POSIX.
3354         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3355         (Depends-on): Add isnanf-nolibm.
3356
3357 2012-02-26  Bruno Haible  <bruno@clisp.org>
3358
3359         fpieee: More comments.
3360         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3361
3362 2012-02-25  Bruno Haible  <bruno@clisp.org>
3363
3364         Tests for module 'log10l'.
3365         * modules/log10l-tests: New file.
3366         * tests/test-log10l.c: New file.
3367         * tests/test-math-c++.cc: Check the declaration of log10l.
3368
3369         New module 'log10l'.
3370         * lib/math.in.h (log10l): New declaration.
3371         * lib/log10l.c: New file.
3372         * m4/log10l.m4: New file.
3373         * modules/log10l: New file.
3374         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3376         HAVE_DECL_LOG10L.
3377         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3378         HAVE_DECL_LOG10L.
3379         * doc/posix-functions/log10l.texi: Mention the new module.
3380
3381 2012-02-25  Bruno Haible  <bruno@clisp.org>
3382
3383         fmodl, remainder*: Avoid wrong results due to rounding errors.
3384         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3385         expected bounds.
3386         * lib/remainderf.c (remainderf): Likewise.
3387         * lib/remainder.c (remainder): Likewise.
3388         * lib/remainderl.c (remainderl): Likewise.
3389
3390 2012-02-25  Bruno Haible  <bruno@clisp.org>
3391
3392         Tests for module 'remainderl'.
3393         * modules/remainderl-tests: New file.
3394         * tests/test-remainderl.c: New file.
3395         * tests/test-math-c++.cc: Check the declaration of remainderl.
3396
3397         New module 'remainderl'.
3398         * lib/math.in.h (remainderl): New declaration.
3399         * lib/remainderl.c: New file.
3400         * m4/remainderl.m4: New file.
3401         * modules/remainderl: New file.
3402         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3404         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3405         HAVE_REMAINDERL.
3406         * doc/posix-functions/remainderl.texi: Mention the new module.
3407
3408 2012-02-25  Bruno Haible  <bruno@clisp.org>
3409
3410         Tests for module 'remainderf'.
3411         * modules/remainderf-tests: New file.
3412         * tests/test-remainderf.c: New file.
3413         * tests/test-math-c++.cc: Check the declaration of remainderf.
3414
3415         New module 'remainderf'.
3416         * lib/math.in.h (remainderf): New declaration.
3417         * lib/remainderf.c: New file.
3418         * m4/remainderf.m4: New file.
3419         * modules/remainderf: New file.
3420         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3422         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3423         HAVE_REMAINDERF.
3424         * doc/posix-functions/remainderf.texi: Mention the new module.
3425
3426 2012-02-25  Bruno Haible  <bruno@clisp.org>
3427
3428         remainder: Support for MSVC.
3429         * lib/math.in.h (remainder): New declaration.
3430         * lib/remainder.c: New file.
3431         * m4/remainder.m4: New file.
3432         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3433         (Depends-on): Add math, round, fma.
3434         (configure.ac): Use results of gl_FUNC_REMAINDER.
3435         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3437         HAVE_DECL_REMAINDER.
3438         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3439         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3440         * tests/test-math-c++.cc: Check the declaration of remainder.
3441         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3442         problems are fixed.
3443
3444 2012-02-25  Bruno Haible  <bruno@clisp.org>
3445
3446         Tests for module 'fmodl'.
3447         * modules/fmodl-tests: New file.
3448         * tests/test-fmodl.c: New file.
3449         * tests/test-math-c++.cc: Check the declaration of fmodl.
3450
3451         New module 'fmodl'.
3452         * lib/math.in.h (fmodl): New declaration.
3453         * lib/fmodl.c: New file.
3454         * m4/fmodl.m4: New file.
3455         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3457         REPLACE_FMODL.
3458         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3459         REPLACE_FMODL.
3460         * modules/fmodl: New file.
3461         * doc/posix-functions/fmodl.texi: Mention the new module.
3462
3463 2012-02-25  Bruno Haible  <bruno@clisp.org>
3464
3465         Tests for module 'modfl'.
3466         * modules/modfl-tests: New file.
3467         * tests/test-modfl.c: New file.
3468         * tests/test-math-c++.cc: Check the declaration of modfl.
3469
3470         New module 'modfl'.
3471         * lib/math.in.h (modfl): New declaration.
3472         * lib/modfl.c: New file.
3473         * m4/modfl.m4: New file.
3474         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3476         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3477         * modules/modfl: New file.
3478         * doc/posix-functions/modfl.texi: Mention the new module.
3479
3480 2012-02-25  Bruno Haible  <bruno@clisp.org>
3481
3482         Tests for module 'fabsl'.
3483         * modules/fabsl-tests: New file.
3484         * tests/test-fabsl.c: New file.
3485         * tests/test-math-c++.cc: Check the declaration of fabsl.
3486
3487         New module 'fabsl'.
3488         * lib/math.in.h (fabsl): New declaration.
3489         * lib/fabsl.c: New file.
3490         * m4/fabsl.m4: New file.
3491         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3493         REPLACE_FABSL.
3494         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3495         REPLACE_FABSL.
3496         * modules/fabsl: New file.
3497         * doc/posix-functions/fabsl.texi: Mention the new module.
3498
3499 2012-02-25  Bruno Haible  <bruno@clisp.org>
3500
3501         fabs tests: More tests.
3502         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3503         (zero): New variable.
3504         (main): Add tests for signed zero.
3505         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3506
3507         fabsf tests: More tests.
3508         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3509         (zero): New variable.
3510         (main): Add tests for signed zero.
3511         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3512
3513 2012-02-24  Bruno Haible  <bruno@clisp.org>
3514
3515         atanl: Provide function definition on MSVC.
3516         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3517         function pointer.
3518         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3519
3520 2012-02-24  Bruno Haible  <bruno@clisp.org>
3521
3522         acosl: Provide function definition on MSVC.
3523         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3524         function pointer.
3525         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3526
3527 2012-02-24  Bruno Haible  <bruno@clisp.org>
3528
3529         asinl: Provide function definition on MSVC.
3530         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3531         function pointer.
3532         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3533
3534 2012-02-24  Bruno Haible  <bruno@clisp.org>
3535
3536         tanl: Provide function definition on MSVC.
3537         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3538         function pointer.
3539         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3540
3541 2012-02-24  Bruno Haible  <bruno@clisp.org>
3542
3543         cosl: Provide function definition on MSVC.
3544         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3545         function pointer.
3546         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3547
3548 2012-02-24  Bruno Haible  <bruno@clisp.org>
3549
3550         sinl: Provide function definition on MSVC.
3551         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3552         function pointer.
3553         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3554
3555 2012-02-24  Bruno Haible  <bruno@clisp.org>
3556
3557         logl: Provide function definition on MSVC.
3558         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3559         function pointer.
3560         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3561
3562 2012-02-24  Bruno Haible  <bruno@clisp.org>
3563
3564         expl: Provide function definition on MSVC.
3565         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3566         function pointer.
3567         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3568
3569 2012-02-24  Bruno Haible  <bruno@clisp.org>
3570
3571         sqrtl: Provide function definition on MSVC.
3572         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3573         a function pointer.
3574         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3575
3576 2012-02-24  Bruno Haible  <bruno@clisp.org>
3577
3578         ceill: Provide function definition on MSVC.
3579         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3580         used as a function pointer.
3581         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3582
3583 2012-02-24  Bruno Haible  <bruno@clisp.org>
3584
3585         floorl: Provide function definition on MSVC.
3586         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3587         used as a function pointer.
3588         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3589
3590 2012-02-24  Bruno Haible  <bruno@clisp.org>
3591
3592         ceilf: Provide function definition on MSVC.
3593         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3594         used as a function pointer.
3595         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3596
3597 2012-02-24  Bruno Haible  <bruno@clisp.org>
3598
3599         floorf: Provide function definition on MSVC.
3600         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3601         used as a function pointer.
3602         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3603
3604 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3605
3606         stdnoreturn: new module
3607         This implements a replacement for C11's <stdnoreturn.h>.
3608         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3609         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3610         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3611         * tests/test-stdnoreturn.c: New files.
3612
3613 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3614
3615         regex: fix false multibyte matches in some regular expressions
3616         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3617         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3618         * lib/regex_internal.c (re_string_skip_chars):
3619         Fix miscomputation of remain_len that may cause incomplete
3620         multi-byte character and false match.
3621
3622 2012-02-24  Jim Meyering  <meyering@redhat.com>
3623
3624         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3625         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3626         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3627         Remove now-unnecessary str''cmp obfuscation.
3628         Suggested by Akim Demaille.
3629
3630 2012-02-24  Bruno Haible  <bruno@clisp.org>
3631
3632         streq: Rename macro.
3633         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3634         * NEWS: Mention the change.
3635         * lib/mbrtowc.c (mbrtowc): Update.
3636         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3637         * lib/wcwidth.c (wcwidth): Update.
3638         Suggested by Akim Demaille and Jim Meyering.
3639
3640 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3641
3642         regex: fix typo in definition of MIN
3643         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3644         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3645
3646 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3647             Bruno Haible  <bruno@clisp.org>
3648
3649         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3650         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3651         entries into a stack-allocated buffer directly.
3652         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3653
3654 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3655             Bruno Haible  <bruno@clisp.org>
3656
3657         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3658
3659          - There were several instances of this pattern:
3660
3661              for (;;) {
3662                n = acl (f, GETACLCNT, 0, NULL);
3663                [ allocate an array A of size N ]
3664                if (acl (f, GETACL, n, a) == n)
3665                  break;
3666              }
3667
3668            This loop might never terminate if some other process is constantly
3669            manipulating the file's ACL.  The loop should be rewritten to
3670            terminate.
3671
3672          - The acl (... GETACLNT ...) call is merely an optimization; its value
3673            is merely a hint as to how big to make the array.  A better
3674            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3675            and just guess a reasonably-big size, growing the size and trying
3676            again if it's not large enough.  This guarantees termination, and
3677            saves a system call.
3678
3679         * lib/acl-internal.h: Include <limits.h>.
3680         (MIN, SIZE_MAX): New macros.
3681         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3682         a stack-allocated buffer, and use malloc if it does not fit. Don't
3683         use GETACLCNT.
3684         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3685
3686 2012-02-19  Bruno Haible  <bruno@clisp.org>
3687
3688         acl: Fix endless loop on Solaris with vxfs.
3689         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3690         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3691         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3692         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3693         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3694         Reported by Bill Jones in
3695         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3696
3697 2012-02-19  Bruno Haible  <bruno@clisp.org>
3698
3699         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3700         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3701         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3702         that this function returns 0 in some more cases.
3703
3704 2012-02-19  Bruno Haible  <bruno@clisp.org>
3705
3706         acl: Update doc references.
3707         * doc/acl-resources.txt: Update links to Solaris documentation.
3708
3709 2012-02-19  Bruno Haible  <bruno@clisp.org>
3710
3711         Fix test failure in many locales on Solaris 11.
3712         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3713         'tr' arguments.
3714         * tests/test-pipe-filter-ii1.c (main): Likewise.
3715         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3716         expressions in the C locale.
3717         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3718         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3719
3720 2012-02-19  Bruno Haible  <bruno@clisp.org>
3721
3722         gnulib-tool: Improve usage message.
3723         * gnulib-tool (func_usage): Move doc of --help and --version to the
3724         section "Operation modes".
3725
3726 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3727
3728         README-release: make it easier to execute commands
3729         * top/README-release: break commands out on to separate lines.
3730
3731 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3732
3733         GNUmakefile: simplify detection of unconfigured trees
3734         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3735         whether the tree make is being run from is already configured or
3736         not.  Related simplifications.
3737
3738 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3739
3740         * gnulib-tool (func_usage): Document --help and --version.
3741
3742 2012-02-11  Jim Meyering  <meyering@redhat.com>
3743
3744         bootstrap: don't exit 0 upon gnulib-tool failure
3745         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3746         its exit status, not 0.
3747
3748 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3749
3750         README-release: various improvements
3751         * top/README-release: Give a command to push changes for the
3752         release.  Add "distcheck" to list of other pre-release checks.
3753         Fix instance of "make stable" which should be "make TYPE".
3754
3755 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3756
3757         maint: replace FSF snail-mail addresses with URLs
3758         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3759         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3760         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3761         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3762         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3763         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3764         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3765         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3766         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3767         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3768         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3769         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3770         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3771         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3772         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3773         * lib/glthread/thread.c, lib/glthread/thread.h:
3774         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3775         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3776         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3777         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3778         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3779         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3780         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3781         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3782         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3783         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3784         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3785         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3786         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3787         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3788         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3789         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3790         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3791         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3792         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3793         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3794         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3795         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3796         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3797         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3798         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3799         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3800         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3801         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3802         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3803         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3804         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3805         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3806         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3807         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3808         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3809         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3810         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3811         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3812         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3813         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3814         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3815         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3816         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3817         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3818         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3819         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3820         * tests/test-poll.c, tests/test-quotearg-simple.c:
3821         * tests/test-quotearg.c, tests/test-quotearg.h:
3822         * tests/test-round-ieee.c, tests/test-round1.c:
3823         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3824         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3825         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3826         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3827         * tests/test-strerror.c, tests/test-strerror_r.c:
3828         * tests/test-strsignal.c, tests/test-strverscmp.c:
3829         * tests/test-xmemdup0.c:
3830         Replace FSF snail mail addresses with URLs, as per GNU coding
3831         standards.  See glibc bug
3832         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3833
3834 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3835
3836         README-release: capitalize a word and split a line
3837         * top/README-release: Fix punctuation and spacing.
3838
3839 2012-02-08  Akim Demaille  <demaille@gostai.com>
3840
3841         fatal-signal: use C prototypes (with explicit void).
3842         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3843         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3844
3845 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3846
3847         regex: spelling fix
3848         * lib/regexec.c: spelling fix
3849
3850         regex: rely on stdint.h for SIZE_MAX
3851         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3852
3853 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3854
3855         regex: merge glibc changes
3856
3857         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3858         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3859         (init_word_char): Work even if bitset words are not exactly 32 or
3860         64 bits wide.  Don't assume there are no padding bits.
3861         * lib/regex.c [_LIBC]: Do not include <config.h>.
3862         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3863         and -Wtype-limits.
3864         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3865         needless disagreement with glibc.  All uses changed.  Define it to
3866         1 only if _GNU_SOURCE, to match glibc.
3867         (_REG_RM_NAME): Remove; no longer needed, since the names in
3868         question are now all protected by __USE_GNU.
3869         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3870         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3871         * lib/regex_internal.h (MIN): New macro.
3872
3873         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3874         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3875
3876         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3877         * lib/regex_internal.c (re_string_fetch_byte_case):
3878         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3879         is miscompiled, and it turns out it is because of an incorrect
3880         attribute on re_string_fetch_byte_case.  Unlike
3881         re_string_peek_byte_case, this one is really not pure, it modifies
3882         memory (increments pstr->cur_idx), and with the pure attribute GCC
3883         assumed it doesn't and it cached the presumed value of
3884         regexp->cur_idx in a variable across the
3885          for (;; ++i)
3886            {
3887              if (i >= BRACKET_NAME_BUF_SIZE)
3888                return REG_EBRACK;
3889              if (token->type == OP_OPEN_CHAR_CLASS)
3890                ch = re_string_fetch_byte_case (regexp);
3891              else
3892                ch = re_string_fetch_byte (regexp);
3893              if (re_string_eoi(regexp))
3894                return REG_EBRACK;
3895              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3896                break;
3897              elem->opr.name[i] = ch;
3898            }
3899
3900         2011-11-29 Andreas Schwab <schwab@redhat.com>
3901         * lib/regcomp.c (build_equiv_class):
3902         Fix access after end of search string in regex matcher.
3903
3904         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3905         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3906
3907         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3908         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3909
3910         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3911         * lib/regcomp.c (parse_branch, parse_sub_exp):
3912         More regex memory leak fixes and tests.
3913         (parse_sub_exp, parse_bracket_exp):
3914         Fix memory leak for some invalid regular expressions.
3915
3916         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3917         * lib/regex_internal.c, lib/regexec.c:
3918         Fix unnecessary overallocation due to incomplete character.  When
3919         incomplete characters are found at the end of a string the code
3920         ran amok and allocated lots of memory.  Stricter limits are now in
3921         place.
3922
3923         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3924         * lib/regex.h: Update documentation.
3925
3926         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3927         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3928
3929         2010-05-05 Andreas Schwab <schwab@redhat.com>
3930         * lib/regexec.c (find_collation_sequence_value):
3931         Fix lookup of collation sequence value during regexp matching.
3932
3933         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3934         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3935
3936         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3937         * lib/regex.h: Cleanup namespace.
3938
3939         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3940         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3941
3942         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3943         * lib/regex_internal.h: Prevent some declarations and definitions
3944         to be seen when used in tests.
3945
3946         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3947         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3948         __libc_lock_* macros if not _LIBC.
3949         (struct re_dfa_t): Add lock.
3950
3951 2012-02-07  Eric Blake  <eblake@redhat.com>
3952
3953         maint.mk: also prohibit lower-case @var@
3954         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3955         lower case, like @top_srcdir@.
3956
3957 2012-02-04  Eric Blake  <eblake@redhat.com>
3958
3959         canonicalize: avoid uninitialized memory use
3960         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3961         random '/' left in dest.
3962         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3963
3964 2012-02-04  Bruno Haible  <bruno@clisp.org>
3965
3966         isatty: Fix test failure of ptsname_r on native Windows.
3967         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3968         and don't set errno.
3969         (isatty): Test first whether fd is valid. Set errno when returning 0.
3970
3971 2012-02-04  Bruno Haible  <bruno@clisp.org>
3972
3973         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3974         * tests/test-spawn-pipe-main.c: Include progname.h.
3975         (main): Invoke set_program_name.
3976         * modules/spawn-pipe-tests (Depends-on): Add progname.
3977
3978         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3979         * tests/test-nonblocking-socket-main.c: Include progname.h.
3980         (main): Invoke set_program_name.
3981         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3982
3983         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3984         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3985         (main): Invoke set_program_name.
3986         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3987
3988 2012-02-04  Eric Blake  <eblake@redhat.com>
3989
3990         canonicalize-lgpl: fix // handling
3991         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3992
3993         canonicalize: fix // handling
3994         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3995         /// to //, since only // is special.
3996
3997 2012-02-04  Bruno Haible  <bruno@clisp.org>
3998
3999         ioctl: Fix test failure on native Windows.
4000         * lib/ioctl.c: Include msvc-nothrow.h.
4001         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4002
4003 2012-02-04  Bruno Haible  <bruno@clisp.org>
4004
4005         fsync: Avoid test failure on native Windows.
4006         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4007         read-only.
4008
4009 2012-02-04  Bruno Haible  <bruno@clisp.org>
4010
4011         sys_select: Avoid syntax error on OpenBSD 5.0.
4012         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4013         currently being included, just include the system's <sys/select.h>.
4014
4015 2012-02-04  Bruno Haible  <bruno@clisp.org>
4016
4017         sys_select: Avoid syntax error on OpenBSD 5.0.
4018         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4019         <sys/select.h>, not before.
4020         Reported by Jiri B <jirib@devio.us>.
4021
4022 2012-02-04  Bruno Haible  <bruno@clisp.org>
4023
4024         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4025         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4026         global variables.
4027         * tests/test-get-rusage-data.c (main): Likewise.
4028         Reported by Jim Meyering.
4029
4030 2012-02-04  Bruno Haible  <bruno@clisp.org>
4031
4032         stdioext: Fix last commit.
4033         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4034
4035 2012-02-03  Bruno Haible  <bruno@clisp.org>
4036
4037         stdioext: Add tentative support for Plan9.
4038         * lib/stdio-impl.h: Include <errno.h>.
4039         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4040         * lib/freadable.c (freadable): Likewise.
4041         * lib/fwritable.c (fwritable): Likewise.
4042         * lib/fbufmode.c (fbufmode): Likewise.
4043         * lib/freading.c (freading): Likewise.
4044         * lib/fwriting.c (fwriting): Likewise.
4045         * lib/freadptr.c (freadptr): Likewise.
4046         * lib/freadseek.c (freadptrinc): Likewise.
4047         * lib/freadahead.c (freadahead): Likewise.
4048         * lib/fpurge.c (fpurge): Likewise.
4049         * lib/fseeko.c (rpl_fseeko): Likewise.
4050         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4051         Reported by Jens Staal <staal1978@gmail.com>.
4052
4053 2012-02-02  Jim Meyering  <meyering@redhat.com>
4054
4055         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4056         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4057         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4058         not even to try to add the attribute.  Instead, add a pragma to suppress
4059         the suggestion/warning.
4060
4061 2012-01-31  Karl Berry  <karl@gnu.org>
4062
4063         setstate doc: typo.
4064         * doc/posix-functions/setstate.texi (setstate): { not (.
4065
4066 2012-01-31  Bruno Haible  <bruno@clisp.org>
4067
4068         popen: Make more robust on Windows.
4069         * lib/popen.c: On native Windows, use the _popen based code even if
4070         HAVE_POPEN is set.
4071         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4072         environment variable on native Windows.
4073
4074 2012-01-30  Bruno Haible  <bruno@clisp.org>
4075
4076         pclose: Fix typo.
4077         * lib/stdio.in.h (pclose): Fix typo in warning message.
4078
4079 2012-01-30  Bruno Haible  <bruno@clisp.org>
4080
4081         doc about getlogin_r, setstate.
4082         * doc/posix-functions/getlogin_r.texi: List the incompatible
4083         declaration problem under "not fixed by gnulib".
4084         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4085         problem on Solaris 11 and other platforms.
4086
4087 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4088             Bruno Haible  <bruno@clisp.org>
4089
4090         poll tests: Make test more robust.
4091         * tests/test-poll.c: Include macros.h.
4092         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4093         return value of various I/O operations.
4094         * modules/poll-tests (Files): Add tests/macros.h.
4095
4096 2012-01-30  Bruno Haible  <bruno@clisp.org>
4097
4098         sys_stat: Fix support for mingw64 and MSVC.
4099         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4100         header files already do it.
4101         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4102         stat itself.
4103         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4104
4105 2012-01-30  Bruno Haible  <bruno@clisp.org>
4106
4107         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4109         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4110
4111 2012-01-29  Bruno Haible  <bruno@clisp.org>
4112
4113         quotearg: Fix test failure on MacOS X 10.5.
4114         * tests/test-quotearg-simple.c: Include localcharset.h.
4115         (main): If the locale encoding is not ASCII, bypass the tests of
4116         locale_quoting_style and clocale_quoting_style.
4117         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4118
4119 2012-01-29  Jim Meyering  <meyering@redhat.com>
4120
4121         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4122         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4123         detect uses of canonicalize_file_name.
4124
4125 2012-01-28  Bruno Haible  <bruno@clisp.org>
4126
4127         test-framework-sh: Fix test failure with AIX 7.1 diff.
4128         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4129         in column 1, like 'diff -c' does.
4130         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4131         whether 'diff -u' is used. Instead, test whether the output contains
4132         some '@' character.
4133
4134 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4135
4136         strtoimax: eliminate need for stdint.h, inttypes.h checks
4137         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4138         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4139         the prerequisites for a recently-introduced strtoimax test.
4140         I guess this might cause strtoimax to be replaced when not
4141         strictly necessary on older hosts, but this shouldn't introduce
4142         any bugs and it should make Emacs 'configure' faster on typical
4143         modern hosts.  Problem discovered when importing the latest gnulib
4144         to an Emacs test version.
4145         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4146
4147 2012-01-28  Bruno Haible  <bruno@clisp.org>
4148
4149         sys_time: Override 'struct timeval' on some native Windows platforms.
4150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4151         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4152         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4153         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4154         needs to be overridden.
4155         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4156         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4157         * tests/test-sys_select.c: Check that the tv_sec member has the same
4158         size as a 'time_t'.
4159         * tests/test-sys_time.c: Likewise.
4160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4161         is set, set also REPLACE_GETTIMEOFDAY.
4162         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4163         convert the resulting 'struct timeval' before returning.
4164         * lib/select.c: Include <sys/time.h>.
4165         (select, timeval): Undefine at the right place.
4166         * modules/select (Depends-on): Add sys_time.
4167         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4168         some Windows platforms.
4169         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4170
4171 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4172
4173         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4174         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4175         an integer.
4176         * lib/fcntl.c (dupfd): Likewise.
4177         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4178
4179 2012-01-28  Bruno Haible  <bruno@clisp.org>
4180
4181         fcntl: Avoid compilation error on native Windows.
4182         * modules/fcntl (Depends-on): Add 'close'.
4183
4184 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4185
4186         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4187         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4188         pointer to an integer.
4189         * lib/poll.c (IsConsoleHandle): Likewise.
4190         * lib/isatty.c (IsConsoleHandle): Likewise.
4191
4192 2012-01-28  Jim Meyering  <meyering@redhat.com>
4193
4194         doc: clarify README-release
4195         * top/README-release: Clarify: you should make a point to have
4196         the latest stable versions of build tools in your PATH, and the
4197         reference to buildreq is solely for its list of tool names, not
4198         for its minimal-functional version numbers.
4199         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4200
4201         maint.mk: use more readable (yet functionally equivalent) quoting
4202         It is common to quote a single quote in a single quoted string like
4203         this:  '...'\''...'.  Unless you know the idiom, that looks like
4204         gibberish, so prefer to double-quote the string when possible.
4205         Then you can use a more readable, lone single quote: "...'..."
4206         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4207         "don't" is more readable than the equivalent 'don'\''t'.
4208         (sc_cast_of_x_alloc_return_value): Likewise.
4209         (sc_cast_of_alloca_return_value): Likewise.
4210         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4211         rather than '\'':'\''.
4212
4213 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4214
4215         stdalign: relax _Alignof and tighten _Alignas test
4216         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4217         as it was too strict: alignof must divide offsetof, but it need
4218         not equal offsetof.  Inspired by Joseph S. Myers's comment
4219         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4220         Conversely, tighten the _Alignas test a bit, as the resulting
4221         alignment must be exactly 8.
4222
4223 2012-01-27  Bruno Haible  <bruno@clisp.org>
4224
4225         stdalign: Document the last change.
4226         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4227
4228 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4229
4230         stdalign: check that alignof and offsetof are consistent
4231         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4232         Problem reported for gnulib by Richard W.M. Jones in
4233         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4234
4235 2012-01-27  Jim Meyering  <meyering@redhat.com>
4236
4237         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4238         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4239         convert a sequence with gaps to the minimal containing range.
4240         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4241         * tests/test-update-copyright.sh: Test for this.
4242         The FSF confirmed it is ok to do this, assuming there is at
4243         least one significant change per year in the affected range:
4244         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4245
4246 2012-01-26  Bruno Haible  <bruno@clisp.org>
4247
4248         pipe2: refine doc about thread-safety
4249         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4250         multithread-safety problem.
4251         * doc/glibc-functions/accept4.texi: Likewise.
4252
4253 2012-01-26  Bruno Haible  <bruno@clisp.org>
4254
4255         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4256         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4257         In the test program, include <fcntl.h>, for O_RDONLY.
4258
4259 2012-01-26  Eric Blake  <eblake@redhat.com>
4260
4261         pipe2: document lack of thread-safety in replacement
4262         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4263         issue in replacement.
4264         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4265         Based on a report by Eric Wong.
4266
4267 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4268             Bruno Haible  <bruno@clisp.org>
4269
4270         malloca: Avoid warnings on x86_64 mingw64.
4271         * lib/malloca.c: Include <stdint.h>.
4272         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4273         * modules/malloca (Depends-on): Add stdint.
4274         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4275
4276 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4277
4278         obstack: remove __STDC__ conditionals
4279         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4280         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4281         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4282         m4/include_next.m4 as the only gnulib-maintained places that still
4283         refer to __STDC__.
4284
4285 2012-01-24  Bruno Haible  <bruno@clisp.org>
4286
4287         havelib: Modern quoting.
4288         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4289         the recent change to the GNU coding standards.
4290
4291 2012-01-24  Bruno Haible  <bruno@clisp.org>
4292
4293         stdint: Improve support for Android.
4294         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4295         Reported by Simon Josefsson <simon@josefsson.org>.
4296
4297 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4298
4299         doc: omit trailing empty lines from INSTALL etc.
4300         * doc/Makefile (INSTALL): Omit trailing empty lines.
4301         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4302         omit trailing empty lines.  This simplifies the build procedure.
4303
4304 2012-01-23  Jim Meyering  <meyering@redhat.com>
4305
4306         tests: avoid spurious warnings about gl_sockets_startup
4307         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4308         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4309         reporting a "statement with no effect".
4310         * tests/test-accept.c (main): Mark as "(void)".
4311         * tests/test-accept4.c (main): Likewise.
4312         * tests/test-bind.c (main): Likewise.
4313         * tests/test-connect.c (main): Likewise.
4314         * tests/test-getpeername.c (main): Likewise.
4315         * tests/test-getsockname.c (main): Likewise.
4316         * tests/test-getsockopt.c (main): Likewise.
4317         * tests/test-listen.c (main): Likewise.
4318         * tests/test-recv.c (main): Likewise.
4319         * tests/test-recvfrom.c (main): Likewise.
4320         * tests/test-send.c (main): Likewise.
4321         * tests/test-sendto.c (main): Likewise.
4322         * tests/test-setsockopt.c (main): Likewise.
4323         * tests/test-shutdown.c (main): Likewise.
4324
4325 2012-01-21  Bruno Haible  <bruno@clisp.org>
4326
4327         locale-fr.m4: Fix for Android.
4328         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4329         failure of the test program on Bionic libc.
4330
4331 2012-01-21  Jim Meyering  <meyering@redhat.com>
4332
4333         bootstrap: fail when bootstrap_post_import_hook fails
4334         Otherwise, it's far too easy to miss diagnostics emitted
4335         between gnulib-tool's output and that of running configure.
4336         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4337
4338 2012-01-17  Jim Meyering  <meyering@redhat.com>
4339
4340         maint: enable sc_trailing_blank
4341         * build-aux/pmccabe.css: Remove trailing blanks.
4342         * doc/acl-cygwin.txt: Likewise.
4343         * doc/gnu-oids.texi: Likewise
4344         * cfg.mk: Enable sc_trailing_blank.
4345         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4346
4347 2012-01-17  Jim Meyering  <meyering@redhat.com>
4348
4349         maint: enable sc_prohibit_openat_without_use
4350         * cfg.mk: Enable sc_prohibit_openat_without_use.
4351         Exempt lib/selinux-at.c.
4352
4353 2012-01-17  Jim Meyering  <meyering@redhat.com>
4354
4355         maint: enable sc_prohibit_cloexec_without_use
4356         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4357         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4358
4359 2012-01-17  Jim Meyering  <meyering@redhat.com>
4360
4361         maint: enable sc_prohibit_intprops_without_use
4362         * cfg.mk: Enable sc_prohibit_intprops_without_use
4363         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4364
4365 2012-01-17  Jim Meyering  <meyering@redhat.com>
4366
4367         maint: enable sc_prohibit_hash_pjw_without_use
4368         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4369         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4370         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4371         following " (".
4372
4373 2012-01-17  Jim Meyering  <meyering@redhat.com>
4374
4375         maint: enable double-word-prohibiting rule
4376         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4377         Exempt three files.
4378
4379 2012-01-17  Jim Meyering  <meyering@redhat.com>
4380
4381         maint: remove empty lines at EOF, but excluding modules/*
4382         Apply syntax rules at home as well as abroad.  Most changes
4383         were induced by running this:
4384           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4385             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4386             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4387         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4388         Exempt modules/* and two binary files.
4389         Also exempt doc/INSTALL*, per request from Bruno Haible.
4390         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4391         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4392         * doc/Copyright/request-assign.future: Likewise.
4393         * doc/Copyright/request-disclaim.changes: Likewise.
4394         * doc/INSTALL: Likewise.
4395         * doc/INSTALL.ISO: Likewise.
4396         * doc/INSTALL.UTF-8: Likewise.
4397         * doc/acl-cygwin.txt: Likewise.
4398         * doc/acl-resources.txt: Likewise.
4399         * doc/fdl-1.2.texi: Likewise.
4400         * doc/fdl-1.3.texi: Likewise.
4401         * doc/fdl.texi: Likewise.
4402         * lib/argp-pin.c: Likewise.
4403         * lib/round.c: Likewise.
4404         * lib/unicase/u16-totitle.c: Likewise.
4405         * lib/unictype/block_test.c: Likewise.
4406         * lib/uninorm/canonical-decomposition.c: Likewise.
4407         * m4/README: Likewise.
4408         * m4/relocatable-lib.m4: Likewise.
4409         * tests/test-isnand-nolibm.c: Likewise.
4410         * tests/test-isnand.c: Likewise.
4411         * tests/uninorm/NormalizationTest.txt: Likewise.
4412
4413 2012-01-17  Jim Meyering  <meyering@redhat.com>
4414
4415         maint: add framework to run syntax-check rules against gnulib sources
4416         * cfg.mk: New file, to disable all currently-failing tests.
4417         We'll enable them one by one, as they are made to pass.
4418         * Makefile (sc_maint): New rule.
4419
4420 2012-01-21  Bruno Haible  <bruno@clisp.org>
4421
4422         stdint: Add support for Android.
4423         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4424         include the system's <stdint.h>.
4425         Reported by Simon Josefsson <simon@josefsson.org>.
4426
4427 2012-01-19  Jim Meyering  <meyering@redhat.com>
4428
4429         bootstrap: add bootstrap_post_import_hook
4430         Bison does still need something like the gnulib_mk_hook whose
4431         invocation I had to remove along with slurp in commit 767ccd40.
4432         Technically, we could get along without it, but doing so would
4433         have required living with a warning and a mandatory post-bootstrap
4434         automake rerun.
4435         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4436         (bootstrap_post_import_hook): New function.
4437         Invoke it after gnulib-tool --import and before autoreconf.
4438
4439 2012-01-18  Jim Meyering  <meyering@redhat.com>
4440
4441         gitlog-to-changelog: don't use "no_"-prefixed variable name
4442         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4443         to enable both --cluster and --no-cluster.  Change variable name,
4444         s/\$no_cluster/$cluster/, and reverse usage to match.
4445
4446         gitlog-to-changelog: use "||", not "or" in expressions
4447         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4448         expressions.
4449
4450 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4451
4452         gitlog-to-changelog: new option --no-cluster
4453         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4454         clustering of adjacent commit messages.
4455
4456 2012-01-17  Jim Meyering  <meyering@redhat.com>
4457
4458         maint: spell file systems with two words, not one
4459         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4460         two words, not one.
4461
4462 2012-01-16  Jim Meyering  <meyering@redhat.com>
4463
4464         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4465         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4466
4467 2012-01-16  Eric Blake  <eblake@redhat.com>
4468
4469         bootstrap: cater to autoconf 2.59
4470         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4471         is not available.
4472
4473         bootstrap: properly check for libtool
4474         * build-aux/bootstrap (libtoolize): Also run libtool when older
4475         usage is detected.
4476
4477 2012-01-15  Bruno Haible  <bruno@clisp.org>
4478
4479         Improve support for MSVC 9.
4480         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4481         clashes on MSVC.
4482         * lib/fcntl.in.h: Likewise.
4483         * lib/stdlib.in.h: Likewise.
4484         * lib/sys_stat.in.h: Likewise.
4485
4486 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4487
4488         gnupload: we hold the master copy of this script now
4489         For motivation and more information, see:
4490         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4491         * build-aux/gnupload: Make it clear in the heading comments that the
4492         master copy of this file is maintained by gnulib.  Since we are at
4493         it, bump its copyright year and ...
4494         ($scriptversion): ... the date in its version.
4495         ($usage): Patches and bug reports should be sent to the gnulib list,
4496         not the automake one.
4497         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4498         anymore.
4499
4500 2012-01-15  Bruno Haible  <bruno@clisp.org>
4501
4502         Fix module 'random'.
4503         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4504         initstate, setstate are declared.
4505
4506 2012-01-14  Bruno Haible  <bruno@clisp.org>
4507
4508         Tests for module 'random'.
4509         * modules/random-tests: New file.
4510         * tests/test-random.c: New file, based on tests/test-random_r.c.
4511
4512         New module 'random'.
4513         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4514         declarations.
4515         * lib/random.c: New file, based on glibc/stdlib/random.c.
4516         * m4/random.m4: New file.
4517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4518         HAVE_RANDOM.
4519         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4520         * modules/random: New file.
4521         * config/srclist.txt: Add an entry for random.c.
4522         * doc/posix-functions/random.texi: Mention the 'random' module.
4523         * doc/posix-functions/initstate.texi: Likewise.
4524         * doc/posix-functions/setstate.texi: Likewise.
4525         * doc/posix-functions/srandom.texi: Likewise.
4526
4527 2012-01-12  Bruno Haible  <bruno@clisp.org>
4528
4529         random_r: Use common idioms.
4530         * lib/random_r.c: Include <stdlib.h> first.
4531
4532         random_r: Override incompatible API on AIX, OSF/1.
4533         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4534         Override the system function if REPLACE_RANDOM_R is 1.
4535         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4536         and OSF/1, set REPLACE_RANDOM_R.
4537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4538         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4539         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4540         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4541         * doc/glibc-functions/random_r.texi: Likewise.
4542         * doc/glibc-functions/setstate_r.texi: Likewise.
4543
4544         random_r: Support for MSVC 9.
4545         * lib/random_r.c: Include stdint.h, not inttypes.h.
4546
4547 2012-01-12  Eric Blake  <eblake@redhat.com>
4548
4549         inet_ntop: guard extra work by IF_LINT
4550         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4551         better code generation when not checking for warnings.
4552         Suggested by Paul Eggert and Jim Meyering.
4553
4554         strptime: fix regression on mingw
4555         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4556         Fix regression.  Reported by Bruno Haible.
4557
4558 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4559             Bruno Haible  <bruno@clisp.org>
4560
4561         copy-file: add error-code-returning variant.
4562         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4563         (qcopy_file_preserving): New declaration.
4564         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4565         copy_file_preserving. Change return type to 'int'. Don't emit an error
4566         message here.
4567         (copy_file_preserving): New function.
4568         * tests/test-copy-file.c: Include <stdlib.h>.
4569         (main): Test qcopy_file_preserving if the environment variable
4570         NO_STDERR_OUTPUT is set.
4571         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4572         with NO_STDERR_OUTPUT
4573         * tests/test-copy-file-2.sh: Likewise.
4574
4575 2012-01-10  Bruno Haible  <bruno@clisp.org>
4576
4577         copy-file: Use 'quote' module consistently.
4578         * lib/copy-file.c (copy_file_preserving): Use quote().
4579
4580         copy-file: Refactor.
4581         * lib/copy-file.c: Include quote.h.
4582         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4583         message here.
4584         * modules/copy-file (Depends-on): Add quote.
4585
4586         acl: Export qcopy_acl.
4587         * lib/acl.h (qcopy_acl): New declaration.
4588         * lib/copy-acl.c (qcopy_acl): Make non-static.
4589
4590         acl: Rename a local variable.
4591         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4592
4593         acl: Align return values of copy_acl and qcopy_acl.
4594         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4595         maybe < -1.
4596
4597 2012-01-11  Eric Blake  <eblake@redhat.com>
4598
4599         strptime: silence gcc warnings
4600         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4601         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4602         Reported by Daniel P. Berrange.
4603
4604         inet_ntop: silence gcc warning
4605         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4606         Reported by Daniel P. Berrange.
4607
4608 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4609
4610         getloadavg test: skip the test on GNU/Linux without /proc mounted
4611         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4612         file.  When /proc is not mounted, it always fails with ENOENT.
4613         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4614         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4615
4616 2012-01-10  Bruno Haible  <bruno@clisp.org>
4617
4618         regex: Avoid link error on MSVC 9.
4619         * modules/regex (Depends-on): Add wctype.
4620
4621 2012-01-10  Bruno Haible  <bruno@clisp.org>
4622
4623         doc: Mention --with-tests option.
4624         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4625         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4626         --with-tests.
4627         Reported by Reuben Thomas.
4628
4629 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4630
4631         users.txt: order package names lexicographically.
4632         * users.txt: Order package names lexicographically.
4633
4634 2012-01-10  Jim Meyering  <meyering@redhat.com>
4635
4636         maint.mk: fix description in comment
4637         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4638
4639         ignore-value: remove deprecated ignore_ptr function
4640         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4641         * NEWS: Note this.
4642
4643 2012-01-09  Jim Meyering  <meyering@redhat.com>
4644
4645         test-init.sh: avoid a subshell
4646         * tests/test-init.sh: Remove protective subshell.
4647         Suggested by Bernhard Voelker.  While a subshell is normally
4648         required to protect against older shells (Solaris, FreeBSD) that
4649         warn about a missing program before performing redirection, the
4650         shell-selection tests performed by init.sh probably exclude any
4651         offending shell.
4652
4653 2012-01-08  Bruno Haible  <bruno@clisp.org>
4654
4655         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4656         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4657         variable.
4658
4659 2012-01-08  Bruno Haible  <bruno@clisp.org>
4660
4661         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4662         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4663         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4664         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4665         macro.
4666         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4667         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4668         * lib/spawn_faction_addopen.c: Add workaround implementation if
4669         HAVE_WORKING_POSIX_SPAWN.
4670         * modules/spawn (Makefile): Substitute
4671         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4672         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4673         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4674         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4675         (Depends-on): Update conditions.
4676         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4677         the Solaris 11 bug.
4678
4679 2012-01-08  Bruno Haible  <bruno@clisp.org>
4680
4681         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4682         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4683         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4684         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4685         macro.
4686         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4687         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4688         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4689         HAVE_WORKING_POSIX_SPAWN.
4690         * modules/spawn (Makefile): Substitute
4691         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4692         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4693         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4694         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4695         (Depends-on): Update conditions.
4696         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4697         the Solaris 11 bug.
4698
4699 2012-01-08  Bruno Haible  <bruno@clisp.org>
4700
4701         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4702         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4703         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4704         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4705         HAVE_WORKING_POSIX_SPAWN.
4706         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4707         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4708         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4709         * lib/spawn_faction_addclose.c: Add workaround implementation if
4710         HAVE_WORKING_POSIX_SPAWN.
4711         * modules/spawn (Makefile): Substitute
4712         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4713         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4714         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4715         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4716         (Depends-on): Update conditions.
4717         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4718         the Solaris 11 bug.
4719
4720 2012-01-08  Bruno Haible  <bruno@clisp.org>
4721
4722         doc: Update for Solaris 11 2011-11.
4723         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4724         * m4/printf.m4: Update comments.
4725
4726 2012-01-08  Bruno Haible  <bruno@clisp.org>
4727
4728         mktime: Avoid compilation error on Solaris 11.
4729         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4730
4731 2012-01-08  Bruno Haible  <bruno@clisp.org>
4732
4733         doc: Small fix.
4734         * doc/posix-headers/nl_types.texi: Correct platforms list.
4735
4736 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4737
4738         Add lgpl-3.0 module.
4739         * MODULES.html.sh (Support for building documentation): Add
4740         lgpl-3.0.
4741         * modules/lgpl-3.0: New file.
4742
4743 2012-01-08  Jim Meyering  <meyering@redhat.com>
4744
4745         select.c: indent with spaces, not TABs
4746         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4747
4748 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4749
4750         quotearg: do not use grave accent for left quote
4751         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4752         locale_quoting_style.
4753         (quotearg_buffer_restyled): Fix example.
4754         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4755
4756 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4757
4758         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4759         Most programs do not have translation catalogs for English and much
4760         less separate catalogs for British and American English.  Drop the
4761         suggestion to translators about these two, and provide it
4762         automatically for Unicode locales.  Like most programs, even those
4763         using American English, we use single quotation marks.  This conflicts
4764         with the American typographic convention, but works better when you
4765         cite the entire error message within double quotes.  It also tries not
4766         to clash with established practice and with what non-gnulib programs
4767         will usually do.
4768         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4769         using an UTF-8 or GB-18030 locale.  The list of other locales with
4770         quotes was provided by Bruno Haible.
4771         (quotearg_buffer_restyled): Adjust instructions to translators.
4772         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4773         text, since this would be wrong when using Unicode.
4774         * modules/quotearg: Depend on c-strcaseeq.
4775
4776 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4777
4778         quotearg: fix Wikipedia link
4779         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4780
4781 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4782
4783         Fix for mingw with MSVC9.
4784         * m4/ld-version-script.m4: Check that compiler rejects version
4785         scripts with syntax errors.  Reported by Bruno Haible
4786         <bruno@clisp.org>.
4787
4788 2012-01-06  Bruno Haible  <bruno@clisp.org>
4789
4790         Talk about "native Windows API", not "Woe32".
4791         * lib/accept4.c: Update comments to mention native Windows.
4792         * lib/execute.c: Likewise.
4793         * lib/fatal-signal.c: Likewise.
4794         * lib/localcharset.c: Likewise.
4795         * lib/nanosleep.c: Likewise.
4796         * lib/nl_langinfo.c: Likewise.
4797         * lib/pclose.c: Likewise.
4798         * lib/pipe-filter-gi.c: Likewise.
4799         * lib/pipe-filter-ii.c: Likewise.
4800         * lib/pipe.c: Likewise.
4801         * lib/pipe2.c: Likewise.
4802         * lib/popen.c: Likewise.
4803         * lib/progreloc.c: Likewise.
4804         * lib/relocatable.c: Likewise.
4805         * lib/sigaction.c: Likewise.
4806         * lib/sigprocmask.c: Likewise.
4807         * lib/spawn-pipe.h: Likewise.
4808         * lib/spawn-pipe.c: Likewise.
4809         * lib/spawni.c: Likewise.
4810         * lib/stat-time.h: Likewise.
4811         * lib/w32spawn.h: Likewise.
4812         * tests/test-isatty.c: Likewise.
4813         * lib/config.charset: More comments.
4814         * doc/gnulib-intro.texi: Mention native Windows.
4815         * doc/posix-functions/_Exit_C99.texi: Likewise.
4816         * doc/posix-headers/fcntl.texi: Likewise.
4817
4818 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4819
4820         argp: Avoid crash if translator uses % characters in a translation.
4821         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4822         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4823
4824 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4825
4826         doc: C11 and C++11 are now official
4827         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4828         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4829         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4830         * modules/stdalign:
4831         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4832
4833 2012-01-06  Bruno Haible  <bruno@clisp.org>
4834
4835         uc-is-grapheme-break tests: Tweak.
4836         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4837         message.
4838
4839 2012-01-06  Bruno Haible  <bruno@clisp.org>
4840
4841         test-init.sh: correct the test for diff -u
4842         * tests/test-init.sh: Also redirect stdout to /dev/null.
4843
4844 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4845
4846         Use ', not `, for quoting output.
4847         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4848         (print_changelog_deltas, get_tool_versions, main program):
4849         * build-aux/git-version-gen:
4850         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4851         * build-aux/move-if-change (help):
4852         * build-aux/useless-if-before-free (usage, main program):
4853         * check-module (parse_module_file, usage)
4854         (find_included_lib_files, check_module):
4855         * lib/argmatch.c (main) [TEST]:
4856         * lib/argp-help.c (_help):
4857         * lib/getopt1.c (main) [TEST]:
4858         * lib/git-merge-changelog.c (usage):
4859         * lib/xstrtol-error.c (xstrtol_error):
4860         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4861         * m4/argz.m4 (gl_FUNC_ARGZ):
4862         * m4/bison.m4 (gl_BISON):
4863         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4864         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4865         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4866         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4867         * m4/gc-random.m4 (gl_GC_RANDOM):
4868         * m4/intl.m4 (gt_CHECK_DECL):
4869         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4870         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4871         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4873         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4874         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4875         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4876         * tests/test-dirname.c (main):
4877         * tests/test-getpass.c (main):
4878         * tests/test-iconvme.c (main):
4879         * tests/test-parse-datetime.c (LOG):
4880         * tests/test-xstrtoimax.sh:
4881         * tests/test-xstrtol.sh:
4882         * tests/test-xstrtoll.sh:
4883         * tests/test-xstrtoumax.sh:
4884         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4885         * top/GNUmakefile (abort-due-to-no-makefile):
4886         Quote 'like this', not `like this', as per the recent change to
4887         the GNU coding standards.
4888
4889 2012-01-05  Bruno Haible  <bruno@clisp.org>
4890
4891         strtoimax: Don't force a replacement on systems where intmax_t is int.
4892         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4893         'intmax_t' is not larger than 'int'.
4894         Reported by Pádraig Brady <P@draigBrady.com>.
4895
4896 2012-01-05  Bruno Haible  <bruno@clisp.org>
4897
4898         doc: Mention NetBSD bugs.
4899         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4900         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4901
4902 2012-01-05  Bruno Haible  <bruno@clisp.org>
4903
4904         strtoumax tests: Enhance tests.
4905         * tests/test-strtoumax.c (main): Add tests for large values.
4906
4907 2012-01-05  Bruno Haible  <bruno@clisp.org>
4908
4909         strtoimax: Work around AIX 5.1 bug.
4910         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4911         definition.
4912         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4913         Set HAVE_STRTOIMAX.
4914         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4915         REPLACE_STRTOIMAX.
4916         * modules/inttypes-incomplete (Makefile.am): Substitute
4917         REPLACE_STRTOIMAX.
4918         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4919         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4920         (Depends-on): Update conditions.
4921         * tests/test-strtoimax.c (main): Add tests for large values.
4922         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4923
4924 2012-01-05  Bruno Haible  <bruno@clisp.org>
4925
4926         inttypes: Modernize.
4927         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4928         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4929         (Makefile.am): Update inttypes.h rule.
4930
4931 2012-01-05  Jim Meyering  <meyering@redhat.com>
4932
4933         init.sh: don't waste a subshell just to redirect stderr
4934         * tests/init.sh: In testing for diff -u and diff -c, use a
4935         stderr-redirecting exec inside `...` rather than a subshell.
4936
4937         test-init.sh: avoid failure on HP-UX 11.00
4938         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4939         resolves to diff -c or cmp.  Reported by Bruno Haible.
4940
4941 2012-01-05  Bruno Haible  <bruno@clisp.org>
4942
4943         Tests for module 'strtoull'.
4944         * modules/strtoull-tests: New file.
4945         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4946
4947 2012-01-05  Bruno Haible  <bruno@clisp.org>
4948
4949         Tests for module 'strtoll'.
4950         * modules/strtoll-tests: New file.
4951         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4952
4953 2012-01-05  Bruno Haible  <bruno@clisp.org>
4954
4955         Tests for module 'strtoul'.
4956         * modules/strtoul-tests: New file.
4957         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4958
4959 2012-01-05  Bruno Haible  <bruno@clisp.org>
4960
4961         Tests for module 'strtol'.
4962         * modules/strtol-tests: New file.
4963         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4964
4965 2012-01-04  Jim Meyering  <meyering@redhat.com>
4966
4967         test-init.sh: accommodate Solaris 5.10's different diff -u output
4968         * tests/test-init.sh: Also exempt @@ lines from the comparison
4969         of diff output, since Solaris 5.10 and GNU diff formats differ.
4970         Reported by Stefano Lattarini.
4971
4972 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4973
4974         test-posixtm: don't assume signed integer wraparound
4975         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4976         after signed integer overflow.  Inspired by (though it may not
4977         fix) Bruno Haible's bug report in
4978         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4979
4980         Spell out "Windows 9x" and "Windows XP".
4981         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4982         "Windows 9x" and "WinXP" with "Windows XP".
4983
4984 2012-01-04  Jim Meyering  <meyering@redhat.com>
4985
4986         test-vc-list-files-cvs.sh: remove obsolete comment
4987         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4988         double exit.  Now that's all encapsulated via skip_ and Exit.
4989
4990 2012-01-04  Bruno Haible  <bruno@clisp.org>
4991
4992         Talk about "native Windows API", not "Win32".
4993         * lib/classpath.c: Update comments to mention native Windows.
4994         * lib/csharpexec.c: Likewise.
4995         * lib/dup2.c: Likewise.
4996         * lib/error.c: Likewise.
4997         * lib/fcntl.c: Likewise.
4998         * lib/filename.h: Likewise.
4999         * lib/findprog.c: Likewise.
5000         * lib/get-rusage-as.c: Likewise.
5001         * lib/get-rusage-data.c: Likewise.
5002         * lib/getpagesize.c: Likewise.
5003         * lib/javaexec.c: Likewise.
5004         * lib/msvc-inval.c: Likewise.
5005         * lib/msvc-nothrow.c: Likewise.
5006         * lib/nanosleep.c: Likewise.
5007         * lib/nonblocking.c: Likewise.
5008         * lib/printf-parse.c: Likewise.
5009         * lib/setlocale.c: Likewise.
5010         * lib/sigaction.c: Likewise.
5011         * lib/strerror_r.c: Likewise.
5012         * lib/tmpdir.c: Likewise.
5013         * lib/vasnprintf.c: Likewise.
5014         * lib/w32spawn.h: Likewise.
5015         * lib/waitpid.c: Likewise.
5016         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5017         * m4/locale-ar.m4: Likewise.
5018         * m4/locale-fr.m4: Likewise.
5019         * m4/locale-ja.m4: Likewise.
5020         * m4/locale-tr.m4: Likewise.
5021         * m4/locale-zh.m4: Likewise.
5022         * m4/printf.m4: Likewise.
5023         * tests/test-cloexec.c: Likewise.
5024         * tests/test-copy-acl.sh: Likewise.
5025         * tests/test-copy-file.sh: Likewise.
5026         * tests/test-file-has-acl.sh: Likewise.
5027         * tests/test-set-mode-acl.sh: Likewise.
5028         * tests/test-dup-safer.c: Likewise.
5029         * tests/test-dup2.c: Likewise.
5030         * tests/test-dup3.c: Likewise.
5031         * tests/test-fcntl.c: Likewise.
5032         * tests/test-nonblocking-pipe.h: Likewise.
5033         * tests/test-nonblocking-socket.h: Likewise.
5034         * tests/test-pipe.c: Likewise.
5035         * tests/test-pipe2.c: Likewise.
5036         * tests/test-spawn-pipe-child.c: Likewise.
5037         * doc/acl-resources.txt: Likewise.
5038         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5039         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5040         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5041         * lib/localcharset.c: Update comments to mention native Windows.
5042         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5043         * lib/localename.c: Likewise.
5044         * lib/progreloc.c: Likewise.
5045         * lib/relocatable.c: Likewise.
5046         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5047         (windows_compute_revents): Renamed from win32_compute_revents.
5048         (windows_compute_revents_socket): Renamed from
5049         win32_compute_revents_socket.
5050         * lib/select.c: Update comments to mention native Windows.
5051         (windows_poll_handle): Renamed from win32_poll_handle.
5052         * m4/threadlib.m4: Update comments to mention native Windows.
5053         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5054         --enable-threads=windows instead of --enable-threads=win32. Set
5055         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5056         * lib/glthread/lock.h: Update comments to mention native Windows.
5057         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5058         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5059         USE_WIN32_THREADS.
5060         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5061         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5062         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5063         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5064         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5065         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5066         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5067         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5068         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5069         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5070         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5071         * tests/test-tls.c: Likewise.
5072         Rationale:
5073         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5074         on both 32-bit and 64-bit Windows systems.
5075         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5076         line of distinction is between "native Windows" on one side and Unix/
5077         POSIX systems on the other side. More details in
5078         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5079         Suggested by Paul Eggert.
5080
5081 2012-01-03  Bruno Haible  <bruno@clisp.org>
5082
5083         isatty: Support for MSVC 9.
5084         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5085         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5086         (_isatty_nothrow): New function.
5087         (isatty): Use it instead of _isatty.
5088         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5089         * lib/poll.c (IsConsoleHandle): Likewise.
5090         * lib/select.c (IsConsoleHandle): Likewise.
5091         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5092         (gl_PREREQ_ISATTY): New macro.
5093         * modules/isatty (Depends-on): Add msvc-inval.
5094         (configure.ac): Invoke gl_PREREQ_ISATTY.
5095
5096 2012-01-03  Jim Meyering  <meyering@redhat.com>
5097
5098         maint.mk: remove temporary transition aid from over 1.5 years ago
5099         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5100         purpose was to aid in the transition (avoiding silent malfunction)
5101         from that old name to the new _sc_search_regexp.  This shim was
5102         added by commit 219c504b.
5103
5104         init.sh: do not try to accommodate compare arguments starting with "-"
5105         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5106         compare arguments that start with "-".  Besides, we do not worry
5107         about this when invoking diff or cmp; why start now with sed?
5108         Using "--" to separate options from argument would trigger sed
5109         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5110         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5111
5112 2012-01-02  Bruno Haible  <bruno@clisp.org>
5113
5114         Enhance tests for module 'isatty'.
5115         * modules/isatty-tests (Depends-on): Add pipe-posix.
5116         * tests/test-isatty.c: Include <fcntl.h>.
5117         (DEV_NULL): New macro.
5118         (main): Test the resut of isatty() also on regular files, pipes, and
5119         /dev/null.
5120
5121         New module 'isatty'.
5122         * lib/unistd.in.h (isatty): New declaration.
5123         * lib/isatty.c: New file, based on an idea of
5124         Bastien Roucariès <roucaries.bastien@gmail.com>.
5125         * m4/isatty.m4: New file.
5126         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5127         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5128         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5129         REPLACE_ISATTY.
5130         * modules/isatty: New file.
5131         * doc/posix-functions/isatty.texi: Mention the new module.
5132         Suggested by Paolo Bonzini.
5133
5134 2012-01-02  Bruno Haible  <bruno@clisp.org>
5135
5136         canonicalize: Tweak 2011-12-29 commit.
5137         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5138         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5139
5140 2012-01-02  Jim Meyering  <meyering@redhat.com>
5141
5142         gitlog-to-changelog: describe input syntax in --help output
5143         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5144
5145         gitlog-to-changelog: fix typo in --help: show backslash before email @
5146         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5147         in sources, but not in actual output.
5148
5149 2011-12-30  Jim Meyering  <meyering@redhat.com>
5150
5151         gitlog-to-changelog: don't malfunction when name contains %-directive
5152         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5153         in a name string cause trouble.  E.g., with a user name of "%s",
5154         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5155
5156 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5157
5158         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5159         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5160         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5161         the "  (tiny change)" notation that is appended to the standard
5162         ChangeLog "date  name  email" header line.
5163
5164 2012-01-01  Jim Meyering  <meyering@redhat.com>
5165
5166         test-framework-sh: init.sh: fix "make dist" failure
5167         When using gnulib-tool's --with-tests option and any module that
5168         depends on test-framework-sh, "make dist" would fail due to the
5169         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5170         in the gltests directory, and not in the gllib/ directory.
5171         One way to work around that is to move the EXTRA_DIST += init.sh
5172         from the primary module to the -tests one:
5173         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5174         * modules/test-framework-sh (Makefile.am): ...not here.
5175         Reported by Tom G. Christensen in
5176         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5177
5178         version-etc: update copyright year reported by --version
5179         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5180
5181 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5182
5183         canonicalize: only stat() if required
5184         * lib/canonicalize.c (canonicalize_filename_mode):
5185         Avoid calling l?stat() when both CAN_MISSING,
5186         and CAN_NOLINKS are set, as we neither need
5187         to resolve symlinks or test component existence.
5188
5189 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5190
5191         doc: cover st_ino issues once; add OpenVMS etc.
5192         * doc/posix-functions/stat.texi (stat):
5193         * doc/posix-functions/lstat.texi (lstat):
5194         * doc/posix-functions/fstatat.texi (fstatat):
5195         * doc/posix-functions/fstat.texi (fstat):
5196         Move general 'struct stat' stuff to sys_stat.texi,
5197         leaving behind a pointer.
5198         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5199         Merge duplicate info about 'struct stat' problems into here.
5200         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5201         and suggest partial workarounds.
5202
5203         same-inode: port to OpenVMS
5204         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5205         three st_ino values.
5206
5207 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5208
5209         canonicalize: fix references to stat() and lstat()
5210         * lib/canonicalize.c (canonicalize_filename_mode):
5211         Ensure references always resolve to a replacement
5212         function if required (even via a macro).
5213
5214 2011-12-30  Jim Meyering  <meyering@redhat.com>
5215
5216         gitlog-to-changelog: remove a little duplication
5217         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5218         rather than twice.
5219
5220 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5221
5222         canonicalize: add support for not resolving symlinks
5223         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5224         indicate we don't want to follow symlinks.  Also
5225         provide CAN_MODE_MASK to aid setting these existing
5226         mutually exclusive values.
5227         * lib/canonicalize.c (canonicalize_filename_mode):
5228         Extract the flags from can_mode parameter, which
5229         are currently just used to select between stat()
5230         and lstat().  Also ensure that mutually exclusive
5231         values are flagged immediately as invalid.
5232         * tests/test-canonicalize.c: Verify symlinks are
5233         not followed, and that invalid flag combinations
5234         are diagnosed.
5235
5236 2011-12-25  Jim Meyering  <meyering@redhat.com>
5237
5238         gitlog-to-changelog: do not clump multi-paragraph entries
5239         Identical header lines (date,name,email+coauthors) are suppressed,
5240         thus putting all entries with those same characteristics under
5241         a single header.  However, when a log entry consists of two or
5242         more paragraphs, it may not be clear where it starts and ends.
5243         This change makes it so that such an entry is always separated
5244         from others by a header line, even when that header would
5245         otherwise be suppressed.
5246         * build-aux/gitlog-to-changelog: Implement the above.
5247         Inspired by a related request from Stefano Lattarini in
5248         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5249
5250 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5251
5252         announce-gen: fix `cmd' typo in diagnostic
5253         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5254         diagnostic: a missing '$' meant that the command was not output.
5255
5256 2011-12-23  Jim Meyering  <meyering@redhat.com>
5257
5258         test-framework-sh: distribute init.sh
5259         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5260         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5261         fail due to the lack of init.sh.
5262
5263         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5264         * modules/atexit-tests: Rather than listing tests/init.sh,
5265         now that there's a module for it, simply depend on that new module.
5266         * modules/closein-tests: Likewise.
5267         * modules/exclude-tests: Likewise.
5268         * modules/getcwd-tests: Likewise.
5269         * modules/perror-tests: Likewise.
5270         * modules/pread-tests: Likewise.
5271         * modules/pwrite-tests: Likewise.
5272         * modules/vc-list-files-tests: Likewise.
5273         * modules/verify-tests: Likewise.
5274         * modules/xalloc-die-tests: Likewise.
5275         * modules/xstrtoimax-tests: Likewise.
5276         * modules/xstrtol-tests: Likewise.
5277         * modules/xstrtoll-tests: Likewise.
5278         * modules/xstrtoumax-tests: Likewise.
5279         * modules/yesno-tests: Likewise.
5280
5281 2011-12-22  Jim Meyering  <meyering@redhat.com>
5282
5283         test-framework-sh: add minimal tests of init.sh's compare function
5284         * modules/test-framework-sh-tests: New file.
5285         * tests/test-init.sh: New file.
5286
5287         test-framework-sh: new module
5288         * modules/test-framework-sh: New file.
5289         * MODULES.html.sh (Support for maintaining and releasing projects):
5290         List it.
5291
5292         init.sh: do not emit simulated diff output to stderr
5293         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5294
5295 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5296
5297         .gitignore: ignore gnulib.dvi and regex.info
5298         * doc/.gitignore:add gnulib.dvi and regex.info
5299
5300 2011-12-22  Jim Meyering  <meyering@redhat.com>
5301
5302         init.sh: correct previous change
5303         * tests/init.sh (compare): My previous change was wrong.
5304         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5305
5306         init.sh: avoid unwarranted test failure when using "set -e"
5307         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5308         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5309         a use like "compare exp out" would get evoke an unconditional failure.
5310
5311 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5312
5313         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5314         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5315         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5316         autoreconf that did not.
5317         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5318         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5319
5320 2011-12-17  Jim Meyering  <meyering@redhat.com>
5321
5322         bootstrap: remove some now-unneeded code
5323         This script arose back when gnulib-tool was young.
5324         Since then, it has seen improvements that render much of this
5325         script unnecessary.  In particular, it can now make symlinks
5326         to the files it uses.  Also, I no longer see as much value in
5327         marking files as read-only via comments.
5328         If you relied on the symlink-creation feature of the preceding
5329         version of this script, you can get most of that functionality
5330         by adding the --symlink option to the definition of
5331         gnulib_tool_option_extras in your bootstrap.conf file.
5332         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5333         Run autopoint and libtoolize *before* gnulib-tool.
5334         After it, run an abbreviated autoreconf, rather than a loop around
5335         all tools.
5336         (slirp, bt_mark_as_generated): Remove functions.
5337
5338 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5339
5340         ftoastr: fix typo
5341         * lib/ftoastr.h: Fix misspelling in comment.
5342
5343 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5344
5345         * top/README-release: fix punctuation.
5346
5347 2011-12-17  Jim Meyering  <meyering@redhat.com>
5348
5349         bootstrap: correct the recent buildreq change
5350         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5351         had no effect.
5352         * build-aux/bootstrap (buildreq): Bracket each search term with
5353         "*...*", so that the shell "case" statement works as intended.
5354         Add comments.
5355
5356 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5357
5358         build: let bootstrap resort to wget when downloading .po files
5359         * build-aux/bootstrap (download_po_files): Fallback to wget when
5360         downloading the .po files via rsync fails.  This is necessary to
5361         bootstrap from behind a strict firewall.
5362
5363 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5364
5365         stdint: don't assume C++11 when compiling with g++
5366         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5368         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5369         work also in C++ before C++11, as that improperly inhibits
5370         generating a substitute stdint.h for that case.
5371
5372 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5373
5374         alloca: protect comment from gnulib-tool
5375         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5376         that gnulib-tool doesn't think it's a license, and munge it to
5377         say "GCC version 3".
5378
5379 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5380
5381         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5382         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5383         $(abs_top_builddir) instead of $(top_builddir).
5384
5385 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5386
5387         strftime-tests: also test nanoseconds
5388         * tests/test-strftime.c (T): Add a test of %N.
5389
5390 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5391
5392         inttypes, stdint: add C++11 support
5393         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5394         when including inttypes.h and stdint.h.  Support this change to
5395         the standard.
5396         * doc/posix-headers/inttypes.texi (inttypes.h):
5397         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5398         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5399         Define if not defined already, for the benefit of pre-C++11 hosts.
5400         Define the standard format macros (e.g., PRId8) always.
5401         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5402         Likewise, if __cpluspus.  Define the standard constant and limit
5403         macros (e.g., INT8_C, INT8_MAX) always.
5404         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5405         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5406         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5407         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5408         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5409         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5410         Likewise.
5411
5412 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5413
5414         nonblocking tests: Fix test failure on Linux/PPC.
5415         Suggested by Prerna Saxena in
5416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5417         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5418         Set to 1100000.
5419
5420 2011-12-12  Jim Meyering  <meyering@redhat.com>
5421
5422         argmatch: don't hard-code `' when listing valid option arguments
5423         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5424         use the quote function to add quotes.  Use fputs rather than
5425         fprintf for the format string with no format directive.
5426
5427 2011-12-07  Eric Blake  <eblake@redhat.com>
5428
5429         bootstrap: detect tools required by gnulib-tool
5430         * build-aux/bootstrap (buildreq): Provide minimum implicit
5431         dependencies.
5432         * DEPENDENCIES: Mention patch as a prereq.
5433
5434 2011-12-04  Bruno Haible  <bruno@clisp.org>
5435
5436         sethostname: Port to Windows platforms.
5437         * lib/sethostname.c: Provide an alternate implementation for Windows
5438         platforms.
5439         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5440         (main): Skip the test if sethostname() fails with EPERM. On Windows
5441         platforms, don't check the result of gethostname().
5442
5443 2011-12-04  Bruno Haible  <bruno@clisp.org>
5444             Jim Meyering  <meyering@redhat.com>
5445
5446         tests: Avoid spurious error message on platforms without mktemp program.
5447         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5448
5449 2011-12-04  Bruno Haible  <bruno@clisp.org>
5450
5451         sethostname: Fix documentation.
5452         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5453         "not fixed" section.
5454
5455 2011-12-03  Bruno Haible  <bruno@clisp.org>
5456
5457         gnulib-tool: Verify that the License field is present and non-empty.
5458         * gnulib-tool (func_get_license_raw): New function, extracted from
5459         func_get_license.
5460         (func_get_license): Use it. Warn if the module is not a test module and
5461         has no license.
5462         Suggested by Jim Meyering.
5463
5464 2011-12-03  Bruno Haible  <bruno@clisp.org>
5465
5466         sethostname tests: Fix link error on mingw.
5467         * tests/test-sethostname1.c: New file, extracted from
5468         tests/test-sethostname.c.
5469         * tests/test-sethostname2.c: New file, extracted from
5470         tests/test-sethostname.c.
5471         * tests/test-sethostname.c: Remove file.
5472         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5473         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5474         (Depends-on): Add gethostname.
5475         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5476         Link the latter with $(GETHOSTNAME_LIB).
5477
5478         sethostname tests: Fix compilation error on mingw.
5479         * tests/test-sethostname.c: Don't include <sys/types.h>.
5480         (geteuid): Use a dummy value without uid_t.
5481         * modules/sethostname-tests (Depends-on): Remove sys_types.
5482
5483         sethostname tests: Avoid a gcc warning.
5484         * tests/test-sethostname.c (main): Remove an unused variable.
5485
5486         Tweak last commit.
5487         * modules/sethostname-tests (Files): Sort by decreasing importance.
5488         (configure.ac): Check for geteuid.
5489         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5490         the test when there's nothing to test. Drop an unnecessary cast.
5491         Improve an error message. Verify that the final sethostname() call
5492         succeeds.
5493
5494 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5495
5496         Add a test suite for the sethostname module.
5497         * modules/sethostname-tests: New file.  A test program
5498         for the sethostname module.
5499         * tests/test-sethostname.c: Likewise.
5500
5501 2011-12-03  Bruno Haible  <bruno@clisp.org>
5502
5503         Tweak last commit.
5504         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5505         Fix preprocessor directives indentation. Fix typos.
5506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5507         * modules/unistd (Makefile): Likewise.
5508
5509 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5510
5511         Integrate the sethostname module into unistd.
5512         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5513         into the unistd.h header.
5514         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5515         preprocessor directives.
5516         * modules/unistd: Setup the Makefile substitutions of the
5517         SETHOSTNAME preprocessor directives.
5518
5519 2011-12-03  Bruno Haible  <bruno@clisp.org>
5520
5521         Tweak last commit.
5522         * lib/sethostname.c: Don't include <string.h>.
5523         (sethostname): No need to copy the argument string to the stack. Don't
5524         call clearerr. Preserve errno when fprintf failed.
5525         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5526         Don't invoke AC_REPLACE_FUNCS.
5527         * modules/sethostname (Link): Remove empty section.
5528         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5529         failure problem.
5530
5531 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5532
5533         New module 'sethostname'.
5534         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5535         for systems that lack it.
5536         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5537         sethostname declaration and function.
5538         * modules/sethostname: New file.  Define the sethostname module.
5539
5540 2011-12-03  Bruno Haible  <bruno@clisp.org>
5541
5542         Tweak last commit.
5543         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5544
5545 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5546
5547         Split the HOST_NAME_MAX detection into a separate m4 macro.
5548         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5549         macro so it can be used by the pending sethostname module.
5550
5551 2011-12-03  Bruno Haible  <bruno@clisp.org>
5552
5553         Fix module descriptions syntax.
5554         * modules/argv-iter (License): Fix syntax.
5555         * modules/di-set (License): Likewise.
5556         * modules/ino-map (License): Likewise.
5557         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5558
5559 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5560
5561         stdalign: port to Clang 3.0
5562         Problem reported by Simon Josefsson in
5563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5564         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5565         which has <stdalign.h> but which does not define alignof.
5566         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5567
5568 2011-12-01  Eric Blake  <eblake@redhat.com>
5569
5570         mktempd: silence dd usage
5571         * build-aux/mktempd (rand_bytes): Silence dd.
5572
5573 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5574
5575         manywarnings: Don't mention gcc version in docstring.
5576         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5577         Jim Meyering <meyering@redhat.com>.
5578
5579 2011-11-30  Jim Meyering  <meyering@redhat.com>
5580
5581         hash: mark a few floating point constants with "f" suffix
5582         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5583         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5584         floating point constants with "f", since they're destined to be
5585         saved/used as "float"s.
5586
5587 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5588
5589         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5590         * tests/test-float.c (test_long_double): Correct and re-enable the
5591         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5592
5593 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5594
5595         Avoid subtracting two pointers that don't point into the same block.
5596         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5597         only pointers into the same memory block are subtracted. We cannot
5598         assume that sizeof (ptrdiff_t) == sizeof (void *).
5599
5600 2011-11-29  Eric Blake  <eblake@redhat.com>
5601
5602         maint.mk: add syntax check for use of compare from init.sh
5603         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5604         moved here from coreutils.
5605
5606         manywarnings: drop -Wunsuffixed-float-constants
5607         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5608         '1.0D', which is the only way to silence this warning for 'double'.
5609
5610 2011-11-29  Jim Meyering  <meyering@redhat.com>
5611
5612         hash: mark compute_bucket_size with the pure attribute
5613         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5614
5615         quotearg, propername: correct pragma guard expression
5616         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5617         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5618
5619 2011-11-28  Jim Meyering  <meyering@redhat.com>
5620
5621         propername: do not mark proper_name with the const attribute
5622         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5623         since it examines data pointed to by its parameter.
5624         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5625         the suggestion from -Wsuggest-attribute=const.
5626
5627         propername: mark one more function as const
5628         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5629
5630 2011-11-27  Jim Meyering  <meyering@redhat.com>
5631
5632         mark functions with const and pure attributes
5633
5634         Mark functions per suggestions from gcc-4.6 when using these options:
5635         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5636         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5637         Follow these guidelines: when possible, apply the attribute to
5638         an extern declaration, not to its definition.  Apply it to the
5639         definition only when the definition is static.
5640         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5641         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5642         * lib/base64.h (isbase64): Likewise.
5643         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5644         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5645         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5646         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5647         (c_tolower, c_toupper): Likewise.
5648         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5649         * lib/chdir-long.c (find_non_slash): Likewise.
5650         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5651         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5652         * lib/file-type.h (file_type): Likewise.
5653         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5654         * lib/filevercmp.c (verrevcmp): Likewise.
5655         * lib/freadahead.h (freadahead): Likewise.
5656         * lib/fts.c (fts_maxarglen): Likewise.
5657         * lib/hash-pjw.h (hash_pjw): Likewise.
5658         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5659         * lib/hash.c (is_prime, next_prime): Likewise.
5660         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5661         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5662         (hash_table_ok, hash_get_first, hash_string): Likewise.
5663         (compute_bucket_size): Likewise.
5664         * lib/i-ring.h (i_ring_empty): Likewise.
5665         * lib/isnan.c (isnanl): Likewise.
5666         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5667         * lib/memcasecmp.h (memcasecmp): Likewise.
5668         * lib/memchr2.h (memchr2): Likewise.
5669         * lib/memcmp2.h (memcmp2): Likewise.
5670         * lib/parse-datetime.y (lookup_zone): Likewise.
5671         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5672         [!WINDOWS_SOCKETS]: Likewise.
5673         * lib/strnlen1.h (strnlen1): Likewise.
5674         * lib/uniwidth.in.h (uc_width): Likewise.
5675         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5676         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5677         (quoting_options_from_style): Add a comment.
5678         * lib/propername.h (proper_name): Add a comment.
5679
5680 2011-11-27  Bruno Haible  <bruno@clisp.org>
5681
5682         Remove unused macros from !_LIBC code in glibc-borrowed files.
5683         * lib/fnmatch.c (STRCOLL): Remove macro.
5684         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5685         * lib/glob.c (__stat, __readdir64): Remove macros.
5686         * lib/tempname.c (__open64, __xstat64): Remove macros.
5687         Suggested by Paul Eggert.
5688
5689 2011-11-27  Bruno Haible  <bruno@clisp.org>
5690
5691         getcwd: Fix link error on MSVC 9.
5692         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5693
5694 2011-11-27  Bruno Haible  <bruno@clisp.org>
5695
5696         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5697         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5698         HAVE_OPENDIR is 0.
5699         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5700         HAVE_CLOSEDIR is 0.
5701         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5702         is 0.
5703         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5704
5705 2011-11-27  Bruno Haible  <bruno@clisp.org>
5706
5707         getcwd: Fix bug from 2011-08-17.
5708         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5709         platforms that need it.
5710         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5711         code of 4 to be a failure, not a success. This ensures that
5712         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5713
5714 2011-11-27  Bruno Haible  <bruno@clisp.org>
5715
5716         binary-io tests: Avoid test failure on mingw when libtool is used.
5717         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5718         Don't verify the size of t-bin-out1.tmp here.
5719         * tests/test-binary-io.sh: Verify it here.
5720         Reported by Simon Josefsson.
5721
5722 2011-11-26  Bruno Haible  <bruno@clisp.org>
5723
5724         Fix conflict between two instantiations of module 'unistd'.
5725         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5726         ${include_guard_prefix} also in the autoconf snippet.
5727         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5729         GNULIB_UNISTD_H_GETOPT.
5730         * modules/getopt-posix (configure.ac): Set the
5731         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5732         * modules/getopt-gnu (configure.ac): Likewise.
5733         * modules/unistd (Makefile.am): Change the substitution value of
5734         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5735         Reported by Simon Josefsson.
5736
5737 2011-11-25  Bruno Haible  <bruno@clisp.org>
5738
5739         pagealign_alloc: Doc and comments.
5740         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5741         module.
5742         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5743
5744 2011-11-25  Jim Meyering  <meyering@redhat.com>
5745
5746         test-update-copyright.sh: avoid false-positive failure
5747         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5748         around false positive failure on Cygwin/Windows.  The latter was
5749         matching erroneously-created files with names like
5750         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5751
5752 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5753
5754         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5755         * m4/valgrind-tests.m4: Check that the parameters that will be
5756         used works, not just a subset of them.  Reported by Bruno Haible
5757         <bruno@clisp.org>.
5758
5759 2011-11-24  Jim Meyering  <meyering@redhat.com>
5760
5761         test-stdalign.c: comment out long double tests
5762         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5763         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5764         error: '_Alignas' specifiers cannot reduce alignment of \
5765         'static_longdouble_alignas'.
5766
5767 2011-11-22  Jim Meyering  <meyering@redhat.com>
5768
5769         init.sh: make "compare /dev/null FILE" output more readable
5770         * tests/init.sh (compare_): Document the preferred order of arguments.
5771         (emit_diff_u_header_): New function.
5772         (compare_dev_null_): Emit a simulated diff, rather than just the
5773         contents of the unexpected file.  Suggestion from Bruno Haible.
5774
5775 2011-11-21  Jim Meyering  <meyering@redhat.com>
5776             Eric Blake  <eblake@redhat.com>
5777
5778         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5779         * tests/init.sh: Make our compare function slightly more portable.
5780         Reported by Bruno Haible in
5781         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5782
5783 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5784
5785         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5786         before using it, in code that ends up in config.h.
5787
5788 2011-11-20  Bruno Haible  <bruno@clisp.org>
5789
5790         getcwd: Work around getcwd bug on AIX 5..7.
5791         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5792         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5793         Use a different value for gl_cv_func_getcwd_path_max. Move the
5794         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5795         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5796         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5797         Define HAVE_MINIMALLY_WORKING_GETCWD.
5798         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5799         where it is not even minimally working, that is, on AIX.
5800         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5801         m4/getcwd-path-max.m4.
5802         (main): Update exit code computation.
5803         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5804         getcwd does not handle long file names.
5805
5806 2011-11-20  Bruno Haible  <bruno@clisp.org>
5807
5808         getcwd: Fix bug from 2009-09-10.
5809         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5810         like "no".
5811
5812 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5813
5814         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5815
5816 2011-11-20  Bruno Haible  <bruno@clisp.org>
5817
5818         fma tests: Avoid shadowing local variables.
5819         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5820         expected.
5821
5822 2011-11-20  Bruno Haible  <bruno@clisp.org>
5823
5824         copysignf tests: Fix.
5825         * tests/test-copysignf.c: Fix signature check.
5826
5827 2011-11-20  Bruno Haible  <bruno@clisp.org>
5828
5829         fma: Remove unused code.
5830         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5831         unused macros.
5832
5833 2011-11-20  Bruno Haible  <bruno@clisp.org>
5834
5835         sethostname: Fix doc about AIX.
5836         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5837         sethostname; it has it.
5838
5839         sethostname: Mention more portability problems.
5840         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5841         problem.
5842         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5843
5844 2011-11-19  Bruno Haible  <bruno@clisp.org>
5845
5846         Depend on module fcntl-h when AT_FDCWD is used.
5847         * modules/utimens (Depends-on): Add fcntl-h.
5848         * modules/areadlinkat (Depends-on): Likewise.
5849         * modules/areadlinkat-with-size (Depends-on): Likewise.
5850         * modules/faccessat (Depends-on): Likewise.
5851         * modules/fchmodat (Depends-on): Likewise.
5852         * modules/fchownat (Depends-on): Likewise.
5853         * modules/getcwd (Depends-on): Likewise.
5854         * modules/mkdirat (Depends-on): Likewise.
5855         * modules/mkfifoat (Depends-on): Likewise.
5856         * modules/readlinkat (Depends-on): Likewise.
5857         * modules/symlinkat (Depends-on): Likewise.
5858         * modules/dup2-tests (Depends-on): Likewise.
5859         * modules/fdutimensat-tests (Depends-on): Likewise.
5860         * modules/futimens-tests (Depends-on): Likewise.
5861
5862 2011-11-19  Bruno Haible  <bruno@clisp.org>
5863
5864         euidaccess: Update a comment.
5865         * lib/euidaccess.c: Update comment about platforms with faccessat.
5866
5867 2011-11-19  Bruno Haible  <bruno@clisp.org>
5868
5869         openat: Fix file list.
5870         * modules/openat (Files): Remove lib/at-func.c.
5871
5872 2011-11-19  Bruno Haible  <bruno@clisp.org>
5873
5874         fstatat: Simplify.
5875         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5876         gnulib should define rpl_fstatat, there is a
5877         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5878
5879 2011-11-19  Bruno Haible  <bruno@clisp.org>
5880
5881         Ensure 'inline' can be used in tests/test-utimens-common.h.
5882         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5883         * modules/futimens-tests (configure.ac): Likewise.
5884         * modules/utimens-tests (configure.ac): Likewise.
5885         * modules/utimensat-tests (configure.ac): Likewise.
5886
5887 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5888
5889         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5890         not hash_insert0.
5891         (hash_insert_if_absent): Doc fix.
5892
5893 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5894
5895         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5896
5897 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5898
5899         test-getcwd: disambiguate exit status
5900         * tests/test-getcwd.c (test_long_name): Return 0..7.
5901         (main): Exit with an unambiguous exit status.  The old
5902         code yielded a mysterious mixture of two failure codes.
5903
5904         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5905         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5906         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5907         rpl_fstatat or fstatat.  This should fix the other problem
5908         reported by Kai Habel in
5909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5910         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5912         and I reproduced it on a Solaris 8 host we still have in production.
5913
5914 2011-11-18  Jim Meyering  <meyering@redhat.com>
5915
5916         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5917         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5918         Add a sentence to the comment.
5919         (hash_insert0): New function that simply calls hash_insert_if_absent.
5920         * lib/hash.h (hash_insert_if_absent): Declare it.
5921         (hash_insert0): Add deprecation attribute.
5922         (_GL_ATTRIBUTE_DEPRECATED): Define.
5923         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5924         not hash_insert0.
5925         * NEWS: Mention it, even though it's not really an incompatible change.
5926
5927 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5928
5929         openat: avoid compilation failure due to lack of <errno.h> inclusion
5930         * lib/openat.c: Include <errno.h>.
5931
5932 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5933
5934         * modules/getcwd (Depends-on): Add fdopendir.
5935         This fixes one of the two problems reported by Kai Habel in
5936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5937
5938         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5939         stdalign problem reported by Ian Beckwith in
5940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5941         * modules/crypto/gc-arcfour (Depends-on):
5942         Depend conditionally on crypto/arcfour.
5943         * modules/crypto/gc-arctwo (Depends-on):
5944         Depend conditionally on crypto/arctwo.
5945         * modules/crypto/gc-des (Depends-on):
5946         Depend conditionally on crypto/des.
5947         * modules/crypto/gc-hmac-md5 (Depends-on):
5948         Depend conditionally on crypto/hmac-md5.
5949         * modules/crypto/gc-hmac-sha1 (Depends-on):
5950         Depend conditionally on crypto/hmac-sha1.
5951         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5952         * modules/crypto/gc-md4 (Depends-on):
5953         Depend conditionally on crypto/md4.
5954         * modules/crypto/gc-md5 (Depends-on):
5955         Depend conditionally on crypto/md5.
5956         * modules/crypto/gc-rijndael (Depends-on):
5957         Depend conditionally on crypto/rijndael.
5958         * modules/crypto/gc-sha1 (Depends-on):
5959         Depend conditionally on crypto/sha1.
5960         * modules/crypto/gc-arcfour:
5961         * modules/crypto/gc-arctwo:
5962         * modules/crypto/gc-des:
5963         * modules/crypto/gc-hmac-md5:
5964         * modules/crypto/gc-hmac-sha1:
5965         * modules/crypto/gc-md2:
5966         * modules/crypto/gc-md4:
5967         * modules/crypto/gc-md5:
5968         * modules/crypto/gc-rijndael:
5969         * modules/crypto/gc-sha1:
5970         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5971         now that the conditional dependencies do the work for us.
5972
5973 2011-11-17  Jim Meyering  <meyering@redhat.com>
5974
5975         tests: factor st_ctime-comparison out of two headers
5976         * tests/test-utimens-common.h (ctime_compare): Define.
5977         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5978         * tests/test-lutimens.h (test_lutimens): Likewise.
5979         * tests/test-utimens.h (test_utimens): Likewise.
5980
5981         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5982         Invoke the test program via an init.sh-using wrapper.
5983         * tests/test-getcwd.sh: New file.
5984         * modules/getcwd-tests (Files): Add it.
5985         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5986
5987 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5988
5989         gitlog-to-changelog: support multi-author commits.
5990         The FSF cares about keeping track of all authors of patches to its
5991         projects, but Git doesn't provide obvious support for multi-author
5992         changesets. Consensus seems to be forming around the use of extra
5993         Signed-off-by inspired lines in the log message formatted as
5994         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5995         multi-author commits between version control systems.
5996         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5997         log message and output in standard ChangeLog multi-author format.
5998         Reported by Peter Rosin <peda@lysator.liu.se>
5999
6000 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6001             Bruno Haible  <bruno@clisp.org>
6002
6003         Fix some modules' file list.
6004         * modules/fstatat (Files): Add m4/lstat.m4.
6005         * modules/openat (Files): Likewise.
6006         * modules/unlinkat (Files): Likewise.
6007
6008 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6009
6010         maint.mk: fix tight-scope.mk generation in VPATH builds.
6011         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6012         reference with $(srcdir) so that the file is found correctly even
6013         when running `make syntax-check' in a VPATH build.
6014
6015 2011-11-13  Bruno Haible  <bruno@clisp.org>
6016             Jim Meyering  <meyering@redhat.com>
6017
6018         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6019         * tests/init.sh (compare): Remove "No differences encountered" or
6020         synonymous output from the 'diff' program.
6021
6022 2011-11-13  Bruno Haible  <bruno@clisp.org>
6023
6024         Makefile: Tweak indentation.
6025         * Makefile: Use tab as first character in every line that contains rule
6026         commands.
6027
6028 2011-11-13  Bruno Haible  <bruno@clisp.org>
6029
6030         Syntax check for copyright statements.
6031         * check-copyright: New file.
6032         * Makefile (sc_check_copyright): New rule.
6033
6034 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6035
6036         * build-aux/git-version-gen: Add --prefix to configure the tag
6037         match string.
6038
6039 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6040
6041         * build-aux/git-version-gen: Add --help and --version.
6042
6043 2011-11-12  Jim Meyering  <meyering@redhat.com>
6044
6045         revamp the other test-exclude?.sh scripts to use init.sh, too
6046         * tests/test-exclude1.sh: Use init.sh.
6047         * tests/test-exclude2.sh: Likewise.
6048         * tests/test-exclude3.sh: Likewise.
6049         * tests/test-exclude4.sh: Likewise.
6050         * tests/test-exclude5.sh: Likewise.
6051         * tests/test-exclude6.sh: Likewise.
6052         * tests/test-exclude7.sh: Likewise.
6053         * tests/test-exclude8.sh: Likewise.
6054         * modules/exclude-tests (Files): List init.sh.
6055
6056         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6057         These shell scripts ignored failure of the binary test-exclude,
6058         so making the latter return 77 didn't cause them to be skipped.
6059         * tests/test-exclude5.sh: Exit with test-exclude's error status
6060         when that program fails.  Revamp to use init.sh.
6061         * tests/test-exclude2.sh: Likewise.
6062
6063         test-exclude: fix a typo
6064         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6065
6066 2011-11-11  Bruno Haible  <bruno@clisp.org>
6067
6068         obstack: Fix compilation error on MSVC 9.
6069         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6070
6071 2011-11-11  Jim Meyering  <meyering@redhat.com>
6072
6073         test-exclude: skip tests rather than failing on deficient systems
6074         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6075         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6076         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6077         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6078
6079 2011-11-10  Bruno Haible  <bruno@clisp.org>
6080
6081         ptsname_r test: Avoid gcc warning on glibc systems.
6082         * tests/test-ptsname_r.c (null_ptr): New function.
6083         (test_errors): Use it.
6084
6085 2011-11-10  Bruno Haible  <bruno@clisp.org>
6086
6087         ptsname_r: Avoid compilation error on OSF/1 5.1.
6088         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6090         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6091         function is not declared or incompatibly declared.
6092         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6093         * modules/ptsname_r (Depends-on, configure.ac): Update.
6094         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6095
6096 2011-11-10  Bruno Haible  <bruno@clisp.org>
6097
6098         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6099         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6100         When cross-compiling, guess yes on all platforms except AIX.
6101         Reported by Ludovic Courtès <ludo@gnu.org>.
6102
6103 2011-11-09  Bruno Haible  <bruno@clisp.org>
6104
6105         ptsname_r tests: Fix bugs.
6106         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6107         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6108
6109 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6110
6111         fstatat: work with cross-compilation
6112         Problem reported by Ludovic Courtès in
6113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6114         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6115         "cross-compiling" and assume the bug is present.  Replace
6116         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6117         an inverted sense, to be more conservative about our assumptions.
6118         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6119
6120 2011-11-09  Bruno Haible  <bruno@clisp.org>
6121
6122         Improve MODULES.html output.
6123         * modules/mkfifoat (Description): Use the word "function".
6124         * modules/readlinkat (Description): Likewise.
6125         * modules/symlinkat (Description): Likewise.
6126
6127 2011-11-09  Eric Blake  <eblake@redhat.com>
6128
6129         ptsname_r-tests: new test module
6130         * modules/ptsname_r-tests: New module.
6131         * tests/test-ptsname_r.c: New file.
6132
6133         ptsname_r: new module
6134         * modules/ptsname_r: New module.
6135         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6136         * lib/ptsname.c (__ptsname_r): Split...
6137         * lib/ptsname_r.c: ...into new file.
6138         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6139         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6140         * modules/stdlib (Makefile.am): Substitute witnesses.
6141         * lib/stdlib.in.h (ptsname_r): Declare it.
6142         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6143         * MODULES.html.sh (Misc): Likewise.
6144         * modules/ptsname (Depends-on): Alter dependency.
6145         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6146
6147 2011-11-09  Jim Meyering  <meyering@redhat.com>
6148
6149         announce-gen: be more concise when there's only one URL+tarball
6150         * build-aux/announce-gen (get_tool_versions): When you distribute
6151         only one type of tarball, combine the first two "Here are..."
6152         sections and make the key-checking grammar independent of
6153         how many tarballs there are.
6154
6155 2011-11-09  Eric Blake  <eblake@redhat.com>
6156
6157         openpty: provide a stub on mingw
6158         * lib/pty.in.h (includes): Provide forward declarations.
6159         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6160
6161         raise: fix mingw handling of SIGPIPE
6162         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6163
6164 2011-11-08  Bruno Haible  <bruno@clisp.org>
6165
6166         More conditional dependencies.
6167         * modules/faccessat (Depends-on): Add conditions.
6168         * modules/fchmodat (Depends-on): Likewise.
6169         * modules/fchownat (Depends-on): Likewise.
6170         * modules/fstatat (Depends-on): Likewise.
6171         * modules/mkfifoat (Depends-on): Likewise.
6172         * modules/readlinkat (Depends-on): Likewise.
6173         * modules/symlinkat (Depends-on): Likewise.
6174         * modules/unlinkat (Depends-on): Likewise.
6175         * modules/utimensat (Depends-on): Likewise.
6176         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6177         * modules/linkat (Depends-on): Refine the conditions.
6178         * modules/renameat (Depends-on): Likewise.
6179
6180 2011-11-08  Bruno Haible  <bruno@clisp.org>
6181
6182         faccessat: Move AC_LIBOBJ invocation to module description.
6183         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6184         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6185         invocation from here...
6186         * modules/faccessat (configure.ac): ... to here. Invoke
6187         gl_PREREQ_FACCESSAT.
6188
6189 2011-11-08  Bruno Haible  <bruno@clisp.org>
6190
6191         faccessat: Simplify autoconf macro.
6192         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6193         gl_FUNC_EUIDACCESS.
6194
6195 2011-11-08  Bruno Haible  <bruno@clisp.org>
6196
6197         renameat: Fix dependencies.
6198         * modules/renameat (Depends-on): Add stdbool.
6199
6200 2011-11-08  Bruno Haible  <bruno@clisp.org>
6201
6202         mkfifoat: Fix module description.
6203         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6204         not gl_UNISTD_MODULE_INDICATOR.
6205
6206 2011-11-08  Bruno Haible  <bruno@clisp.org>
6207
6208         fstatat: Remove unused dependency.
6209         * modules/fstatat (Depends-on): Remove fstat.
6210
6211 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6212
6213         GNUmakefile: behave when Makefile is missing.
6214         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6215
6216 2011-11-08  Bruno Haible  <bruno@clisp.org>
6217
6218         openat: Conditionalize dependencies.
6219         * lib/openat.c: Reduce the scope of some #includes.
6220         * modules/openat (Depends-on): Add conditions.
6221
6222 2011-11-07  Jim Meyering  <meyering@redhat.com>
6223
6224         maint.mk: extract GPG key ID without using a temporary file
6225         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6226         without using a temporary file.  Based on a suggestion from Werner Koch
6227         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6228
6229 2011-11-07  Eric Blake  <eblake@redhat.com>
6230
6231         grantpt: fix typo
6232         * lib/stdlib.in.h (grantpt): Check correct function.
6233
6234         maint.mk: silence new syntax check
6235         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6236
6237 2011-11-06  Bruno Haible  <bruno@clisp.org>
6238
6239         Doc about floating-point and math API.
6240         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6241         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6242
6243 2011-11-06  Bruno Haible  <bruno@clisp.org>
6244
6245         stdalign tests: Skip the test when compiled by Sun C.
6246         * tests/test-stdalign.c (main): Skip the test on Sun C.
6247
6248 2011-11-06  Bruno Haible  <bruno@clisp.org>
6249
6250         ansi-c++-opt: Complete the 2011-06-05 change.
6251         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6252         does not support namespaces, set the variable to "no", not to ":".
6253
6254 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6255
6256         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6257
6258 2011-11-06  Bruno Haible  <bruno@clisp.org>
6259
6260         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6261         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6262         (minus_zerol) [HP-UX]: New macro.
6263         (unary_minus) [HP-UX]: New function.
6264         (copysignl) [HP-UX]: Use unary_minus function.
6265
6266 2011-11-06  Bruno Haible  <bruno@clisp.org>
6267
6268         ldexp, ldexpf, ldexpl: Enhance tests.
6269         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6270         and tests/test-ldexpl.c.
6271         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6272         LDEXP, MIN_EXP, MAX_EXP): New macros.
6273         Include test-ldexp.h.
6274         (main): Just call test_function.
6275         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6276         infinity.h, nan.h.
6277         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6278         MAX_EXP): New macros.
6279         Include test-ldexp.h.
6280         (x, y): Remove variables.
6281         (main): Just call test_function.
6282         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6283         infinity.h, nan.h.
6284         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6285         MAX_EXP): New macros.
6286         Include test-ldexp.h.
6287         (x, y): Remove variables.
6288         (main): Just call test_function.
6289         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6290         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6291         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6292         (Depends-on): Add isnand-nolibm, signbit, float.
6293         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6294         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6295         (Depends-on): Add isnanf-nolibm, signbit, float.
6296
6297 2011-11-06  Bruno Haible  <bruno@clisp.org>
6298
6299         math tests: Cosmetics.
6300         * tests/test-math-c++.cc: Reorder declarations.
6301
6302 2011-11-05  Bruno Haible  <bruno@clisp.org>
6303
6304         fma*: Simplify test.
6305         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6306         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6307
6308         Tests for module 'fmal'.
6309         * modules/fmal-tests: New file.
6310         * tests/test-fmal1.c: New file.
6311         * tests/test-fmal2.c: New file.
6312
6313         New module 'fmal'.
6314         * lib/math.in.h (fmal): New declaration.
6315         * lib/fmal.c: New file.
6316         * m4/fmal.m4: New file.
6317         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6319         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6320         REPLACE_FMAL.
6321         * modules/fmal: New file.
6322         * doc/posix-functions/fmal.texi: Mention the new module and the various
6323         bugs.
6324
6325         Tests for module 'fmaf'.
6326         * modules/fmaf-tests: New file.
6327         * tests/test-fmaf1.c: New file.
6328         * tests/test-fmaf2.c: New file.
6329
6330         New module 'fmaf'.
6331         * lib/math.in.h (fmaf): New declaration.
6332         * lib/fmaf.c: New file.
6333         * m4/fmaf.m4: New file.
6334         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6336         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6337         REPLACE_FMAF.
6338         * modules/fmaf: New file.
6339         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6340         bugs.
6341
6342         Tests for module 'fma'.
6343         * modules/fma-tests: New file.
6344         * tests/test-fma1.c: New file.
6345         * tests/test-fma1.h: New file.
6346         * tests/test-fma2.c: New file.
6347         * tests/test-fma2.h: New file.
6348
6349         New module 'fma'.
6350         * lib/math.in.h (fma): New declaration.
6351         * lib/fma.c: New file.
6352         * m4/fma.m4: New file.
6353         * m4/fegetround.m4: New file.
6354         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6356         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6357         REPLACE_FMA.
6358         * modules/fma: New file.
6359         * doc/posix-functions/fma.texi: Mention the new module and the various
6360         bugs.
6361
6362         Extend gl_MATHFUNC.
6363         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6364         Support 'void' as argument type.
6365         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6366
6367 2011-11-05  Jim Meyering  <meyering@redhat.com>
6368
6369         maint.mk: also prohibit inclusion of dirent.h without use
6370         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6371
6372 2011-11-05  Bruno Haible  <bruno@clisp.org>
6373
6374         ldexpl tests: Avoid test failure on MSVC 9.
6375         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6376         value. Needed in order to enforce the conversion from a value greater
6377         than LDBL_MAX to Infinity.
6378
6379 2011-11-05  Bruno Haible  <bruno@clisp.org>
6380
6381         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6382         * modules/at-internal: New file, extracted from modules/openat.
6383         * modules/openat-h: New file.
6384         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6385         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6386         * modules/openat (Description): Add reference to POSIX function.
6387         (Files): Remove lib/openat.h, lib/openat-proc.c.
6388         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6389         intprops, unistd.
6390         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6391         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6392         gl_FCNTL_MODULE_INDICATOR.
6393         (Include): Remove unistd.h, openat.h.
6394         * modules/areadlinkat (Files): Add lib/at-func.c.
6395         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6396         openat-die, openat-h, save-cwd.
6397         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6398         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6399         openat-die, openat-h, save-cwd, unistd.
6400         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6401         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6402         openat-h, save-cwd. Remove fcntl-h, openat.
6403         * modules/fchmodat (Files): Remove lib/openat.h.
6404         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6405         openat, stdbool, unistd.
6406         * modules/fchownat (Files): Remove lib/openat.h.
6407         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6408         openat, stdbool, sys_stat.
6409         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6410         lib/openat-proc.c.
6411         (Depends-on): Add at-internal.
6412         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6413         * modules/fstatat (Files): Remove lib/openat.h.
6414         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6415         stdbool, unistd.
6416         * modules/fts (Depends-on): Add openat-h.
6417         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6418         openat.
6419         * modules/mkdirat (Files): Remove lib/openat.h.
6420         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6421         openat, stdbool, sys_stat.
6422         * modules/mkfifoat (Files): Add lib/at-func.c.
6423         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6424         openat-h, save-cwd. Remove fcntl-h, openat.
6425         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6426         * modules/readlinkat (Files): Add lib/at-func.c.
6427         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6428         openat-h, save-cwd. Remove fcntl-h, openat.
6429         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6430         openat.
6431         * modules/selinux-at (Files): Add lib/at-func.c.
6432         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6433         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6434         * modules/symlinkat (Files): Add lib/at-func.c.
6435         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6436         openat-h, save-cwd. Remove fcntl-h, openat.
6437         * modules/unlinkat (Files): Remove lib/openat.h.
6438         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6439         stdbool.
6440         * modules/utimensat (Files): Add lib/at-func.c.
6441         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6442         openat-die, openat-h, save-cwd.
6443         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6444         * modules/fdutimensat-tests (Depends-on): Add openat.
6445         * modules/fstatat-tests (Depends-on): Add openat-h.
6446         * modules/readlinkat-tests (Depends-on): Add openat.
6447         * modules/symlinkat-tests (Depends-on): Add openat.
6448
6449 2011-11-05  Bruno Haible  <bruno@clisp.org>
6450
6451         openat: Include <stdbool.h>.
6452         * lib/openat.c: Include <stdbool.h>.
6453
6454 2011-11-04  Bruno Haible  <bruno@clisp.org>
6455
6456         fchownat, renameat, unlinkat: Fix dependencies.
6457         * modules/fchownat (Depends-on): Add fstatat.
6458         * modules/renameat (Depends-on): Likewise.
6459         * modules/unlinkat (Depends-on): Likewise.
6460
6461 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6462
6463         openat: remove direct dependency on dirent
6464         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6465         and hasn't been needed ever since fdopendir was split into its own
6466         module on 2009-08-31.
6467         * modules/openat (Depends-on): Remove dirent.
6468
6469 2011-11-04  Bruno Haible  <bruno@clisp.org>
6470
6471         renameat: Optimize code size.
6472         * modules/renameat (configure.ac): Don't compile at-func2.c if
6473         REPLACE_RENAMEAT is 1.
6474
6475 2011-11-04  Bruno Haible  <bruno@clisp.org>
6476
6477         openat tests: Fix file list.
6478         * modules/openat-tests (Files): Add tests/test-open.h.
6479
6480 2011-11-04  Bruno Haible  <bruno@clisp.org>
6481
6482         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6483         * modules/fchmodat (Depends-on): Add openat-die.
6484         * modules/fchownat (Depends-on): Likewise.
6485         * modules/linkat (Depends-on): Likewise.
6486         * modules/renameat (Depends-on): Likewise.
6487         * modules/openat (Depends-on): Add dirent.
6488
6489 2011-11-04  Jim Meyering  <meyering@redhat.com>
6490
6491         at-func*.c: fix comments
6492         * lib/at-func2.c: Correct/improve first-line comment.
6493         * lib/at-func.c: Correct grammar in first-line comment.
6494
6495 2011-11-04  Bruno Haible  <bruno@clisp.org>
6496
6497         New module 'mkdirat', split off from module 'openat'.
6498         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6499         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6500         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6501         * modules/mkdirat: New file, extracted from modules/openat.
6502         * modules/openat (Files): Remove lib/mkdirat.c.
6503         (Depends-on): Remove mkdir.
6504         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6505         (Include): Remove <sys/stat.h>.
6506         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6507         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6508         tests/test-mkdir.h.
6509         (Depends-on): Remove ignore-value.
6510         (Makefile.am): Remove rules for test-mkdirat.
6511         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6512         of module 'openat'.
6513         * NEWS: Mention the change.
6514
6515 2011-11-04  Bruno Haible  <bruno@clisp.org>
6516
6517         closedir: Avoid warning on mingw.
6518         * lib/closedir.c: Include <unistd.h>.
6519
6520 2011-11-04  Bruno Haible  <bruno@clisp.org>
6521
6522         New module 'fstatat', split off from module 'openat'.
6523         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6524         defined.
6525         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6526         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6527         gl_FUNC_FSTATAT.
6528         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6529         * modules/fstatat: New file, extracted from modules/openat.
6530         * modules/openat (Files): Remove lib/fstatat.c.
6531         (Depends-on): Remove lstat.
6532         (configure.ac): Remove AC_LIBOBJ of fstatat.
6533         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6534         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6535         tests/test-lstat.h, tests/test-stat.h.
6536         (Depends-on): Remove getcwd-lgpl.
6537         (Makefile.am): Remove rules for test-fstatat.
6538         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6539         of module 'openat'.
6540         * NEWS: Mention the change.
6541         * modules/getcwd (Depends-on): Add fstatat.
6542         * modules/linkat (Depends-on): Likewise.
6543         * modules/mkfifoat-tests (Depends-on): Likewise.
6544         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6545
6546 2011-11-03  Bruno Haible  <bruno@clisp.org>
6547
6548         New module 'unlinkat', split off from module 'openat'.
6549         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6550         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6551         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6552         * modules/unlinkat: New file, extracted from modules/openat. Correct
6553         the dependency conditions.
6554         * modules/openat (Files): Remove lib/unlinkat.c.
6555         (Depends-on): Remove rmdir, unlink.
6556         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6557         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6558         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6559         tests/test-rmdir.h, tests/test-unlink.h.
6560         (Depends-on): Remove unlinkdir.
6561         (Makefile.am): Remove rules for test-unlinkat.
6562         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6563         of module 'openat'.
6564         * NEWS: Mention the change.
6565         * modules/linkat-tests (Depends-on): Add unlinkat.
6566         * modules/mkfifoat-tests (Depends-on): Likewise.
6567         * modules/readlinkat-tests (Depends-on): Likewise.
6568
6569 2011-11-02  Bruno Haible  <bruno@clisp.org>
6570
6571         New module 'fchmodat', split off from module 'openat'.
6572         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6573         defined.
6574         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6575         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6576         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6577         * modules/fchmodat: New file, extracted from modules/openat.
6578         * modules/openat (Files): Remove lib/fchmodat.c.
6579         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6580         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6581         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6582         (Makefile.am): Remove rules for test-fchmodat.
6583         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6584         of module 'openat'.
6585         * NEWS: Mention the change.
6586
6587 2011-11-02  Jim Meyering  <meyering@redhat.com>
6588
6589         putenv: indent #definition of "environ" to placate cppi
6590         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6591
6592         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6593         Git logs are often treated as immutable, because editing them
6594         changes the SHA1 checksums of all descendants.  Thus, errors in
6595         git logs tend to stay there forever.  However, when we generate
6596         a ChangeLog file -- typically for distribution -- from that git log,
6597         we can actually make corrections in the generated file.  The key
6598         lies in recording in machine-readable/applicable form the desired
6599         corrections.  See --help for description and an example.
6600         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6601         (usage): Describe it; alphabetize option descriptions.
6602         (main): Honor the new option, carefully.
6603
6604 2011-11-01  Jim Meyering  <meyering@redhat.com>
6605
6606         gitlog-to-changelog: avoid an infloop
6607         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6608         that ends up being empty.
6609
6610 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6611
6612         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6613         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6614         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6615         contains (possibly-quoted) backslashes.  This should avoid
6616         all-too-common shell bugs if COMPLICATED contains backslashes in
6617         the "wrong" places.  Reported by David Evans in
6618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6619         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6620         because we want ASCII ranges.  Is there some reason we don't use
6621         the C locale everywhere in this script?
6622         (func_module, top level): Avoid unwanted pathname expansion when
6623         $repo_url_prefix or $repo_url_suffix_repl contain shell
6624         metacharacters like '?' and '*'.
6625
6626 2011-11-01  Bruno Haible  <bruno@clisp.org>
6627
6628         fchownat: Improve description.
6629         * modules/fchownat (Description): Add link to function.
6630
6631 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6632
6633         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6634         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6636         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6637
6638 2011-11-01  Bruno Haible  <bruno@clisp.org>
6639
6640         alignof: Avoid collision with stdalign module.
6641         * lib/alignof.h (alignof): Remove macro.
6642         * NEWS: Mention the change.
6643         Reported by Paul Eggert.
6644
6645 2011-11-01  Bruno Haible  <bruno@clisp.org>
6646
6647         New module 'fchownat', split off from module 'openat'.
6648         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6649         defined.
6650         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6651         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6652         invoke gl_FUNC_FCHOWNAT.
6653         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6654         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6655         * modules/fchownat: New file, extracted from modules/openat.
6656         * modules/openat (Files): Remove lib/fchownat.c.
6657         (Depends-on): Remove lchown.
6658         (configure.ac): Remove AC_LIBOBJ of fchownat.
6659         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6660         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6661         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6662         (Depends-on): Remove mgetgroups, usleep, stat-time.
6663         (configure.ac): Remove test for getegid.
6664         (Makefile.am): Remove rules for test-fchownat.
6665         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6666         of module 'openat'.
6667         * NEWS: Mention the change.
6668
6669 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6670
6671         stdalign: port better to MSVC and to Sun C 5.11
6672         This fixes some of the problems reported by Bruno Haible in
6673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6674         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6675         shortcomings of MSVC and of Sun C 5.11.
6676         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6677         around __declspec arg.
6678         * modules/stdalign-tests (Files): Add tests/macros.h.
6679         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6680         Include macros.h, for ASSERT.
6681         (DECLARE_ALIGNED): Remove.
6682         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6683         to catch bug), and to 1 if not (simplifies the rest of the code).
6684         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6685         (CHECK_AUTO): Remove.
6686         (CHECK_ALIGNED): Check only the alignment of the static vars,
6687         since auto var alignment isn't supported by Sun C 5.11.
6688         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6689         ASSERT failures are easier to diagnose.
6690
6691 2011-10-31  Bruno Haible  <bruno@clisp.org>
6692
6693         doc about some IRIX 5.3 problems.
6694         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6695         on IRIX 5.3.
6696         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6697         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6698         5.3.
6699         * doc/posix-functions/grantpt.texi: Likewise.
6700         * doc/posix-functions/unlockpt.texi: Likewise.
6701         * doc/posix-functions/lgamma.texi: Likewise.
6702         * doc/posix-functions/nextafter.texi: Likewise.
6703         * doc/posix-functions/remainder.texi: Likewise.
6704         * doc/posix-functions/select.texi: Mention misplaced declaration on
6705         IRIX 5.3.
6706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6707
6708 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6709
6710         gitlog-to-changelog: fix git-log invocation.
6711         git-log mishandles date strings before 1970-01-01 UTC, and there is
6712         no use to specify --since=1970-01-01 by default anyway.
6713         * build-aux/gitlog-to-changelog: By default, when no --since option
6714         was given, do not specify explicit --since option to git-log.
6715
6716 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6717
6718         gitlog-to-changelog: new option --append-dot.
6719         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6720         first non-blank line of each commit message terminated with a dot.
6721
6722 2011-10-30  Bruno Haible  <bruno@clisp.org>
6723
6724         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6725         * lib/ffsl.h: Include <config.h>.
6726         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6727
6728 2011-10-30  Jim Meyering  <meyering@redhat.com>
6729
6730         GNUmakefile: reenable "make syntax-check" for most projects
6731         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6732         build-aux variable", "syntax-check" would do nothing but succeed with
6733         the "No version control files detected..." diagnostic (unless you
6734         happened to override _build-aux via cfg.mk).
6735         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6736         to precede inclusion of maint.mk.  Otherwise, these variables would
6737         be used undefined in any project that does not override the default.
6738
6739 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6740
6741         gitlog-to-changelog: treat a message with only blank lines as empty.
6742         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6743         trailing blank lines before the code that issues a warning about an
6744         empty commit message.
6745
6746 2011-10-30  Jim Meyering  <meyering@redhat.com>
6747
6748         test-parse-datetime.c: avoid new DST-related false positive test failure
6749         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6750         based on the time/date we'll convert, not the current time.
6751         Otherwise, the moment we cross a DST boundary like today's in
6752         Europe, (CEST to CET), that offset ends up being one hour off.
6753
6754 2011-10-27  Bruno Haible  <bruno@clisp.org>
6755
6756         fstat: Tweak documentation.
6757         * modules/fstat (Description): More precise description.
6758
6759 2011-10-27  Bruno Haible  <bruno@clisp.org>
6760
6761         Update documentation regarding 'largefile' module.
6762         * doc/posix-functions/fstat.texi: Tweak wording.
6763         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6764         problems with huge directories and/or small ino_t types.
6765         * doc/posix-functions/readdir.texi: Likewise.
6766         * doc/posix-functions/rewinddir.texi: Likewise.
6767
6768 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6769
6770         maint.mk: don't maintain a second build-aux variable.
6771         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6772         depends on GNUmakefile, which already maintains a cfg.mk
6773         overridable $(_build-aux) for projects with a non-standard
6774         build-aux directory location, although without the $(srcdir)
6775         prefix.  Use that variable consistently instead of introducing a
6776         second one.  Adjust all call sites.
6777
6778 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6779
6780         Add stdalign module and use it in other modules.
6781         This is based on a previous proposal by Bruno Haible
6782         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6783
6784         stdalign: new module
6785         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6786         * modules/stdalign: New files.
6787         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6788         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6789
6790         stdalign-tests: new module
6791         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6792
6793         argp: use stdalign
6794         * lib/argp-parse.c: Include <stdalign.h>.
6795         (alignof): Remove.
6796         * modules/argp (Depends-on): Add stdalign.
6797
6798         crypto libraries: use stdalign
6799         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6800         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6801         Do not include <stdlib.h> twice, in md4.c.
6802         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6803         because we are accessing a pointer's bit-pattern, not a size.
6804         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6805         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6806         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6807         * modules/crypto/sha512: Likewise.
6808
6809         sys_socket: use stdalign, not alignof
6810         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6811         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6812
6813 2011-10-27  Bruno Haible  <bruno@clisp.org>
6814
6815         raise test: Avoid a test failure on Linux/MIPS.
6816         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6817         because 99 is a valid signal on Linux/MIPS.
6818
6819 2011-10-27  Bruno Haible  <bruno@clisp.org>
6820
6821         nonblocking tests: Fix test failure on Linux/MIPS.
6822         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6823         Set to 270000.
6824
6825 2011-10-27  Bruno Haible  <bruno@clisp.org>
6826
6827         utimensat: Work around problem on Linux/hppa.
6828         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6829         values.
6830         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6831
6832 2011-10-25  Jim Meyering  <meyering@redhat.com>
6833
6834         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6835         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6836         after symbols like NULL, size_t, etc.
6837         Reported by Alfred M. Szmidt.
6838
6839         maint.mk: exempt ENODATA from a syntax-check rule
6840         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6841         from the sc_prohibit_always-defined_macros syntax-check rule.
6842         Add a comment.  See this for more details:
6843         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6844
6845 2011-10-23  Jim Meyering  <meyering@redhat.com>
6846
6847         fts: close parent dir FD before returning from post-traversal fts_read
6848         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6849         unlink A, even though an FD open on A remained.  This is suboptimal
6850         (holding a file descriptor open longer than needed), but otherwise not
6851         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6852         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6853         that represents a real problem: it causes the removal of A to fail
6854         with e.g., "rm: cannot remove `A': Device or resource busy"
6855
6856         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6857         directory file descriptors.  After completing the final, FTS_DP,
6858         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6859         cache, but then proceeded to add a new FD to it via the subsequent
6860         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6861         final file descriptor would be closed only via fts_close's call to
6862         fd_ring_clear.  Now, it is usually closed earlier, via the final
6863         FTS_DP-returning fts_read call.
6864         * lib/fts.c (restore_initial_cwd): New function, converted from
6865         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6866         Update callers.
6867         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6868         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6869
6870 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6871             Bruno Haible  <bruno@clisp.org>
6872             Jim Meyering  <jim@meyering.net>
6873
6874         readme-release: improve safety of release prep instructions.
6875         * README-release: Don't git pull all branches when only master
6876         is needed for the release process.
6877         Run make maintainer-clean before changing trees and merging.
6878         Don't try to run ./configure right after git pull in case files
6879         that influence the bootstrap process have changed, move the
6880         ./configure step to after running ./bootstrap.
6881         Don't bootstrap "one last time"... it's the first time!
6882
6883 2011-10-22  Bruno Haible  <bruno@clisp.org>
6884
6885         errno, strerror-override: Support for MSVC 10.
6886         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6887         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6888         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6889         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6890         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6891         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6892         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6893         Assign values compatible with MSVC 10.
6894         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6895         New macros.
6896         (GNULIB_defined_EWINSOCK): New macro.
6897         * lib/strerror-override.c (strerror_override): Update accordingly.
6898         * lib/strerror-override.h: Likewise.
6899         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6900         longer equal to the corresponding errno value.
6901         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6902
6903 2011-10-22  Bruno Haible  <bruno@clisp.org>
6904
6905         perror: Recognize when test program crashes.
6906         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6907         strerror, set gl_cv_func_perror_works to no.
6908         Reported by Daniel Richard G. <skunk@iskunk.org>.
6909
6910         perror: Fix indentation.
6911         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6912
6913 2011-10-22  Bruno Haible  <bruno@clisp.org>
6914
6915         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6916         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6917         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6918         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6919         functions, not as a macro.
6920         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6921         macros.
6922         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6923         absence of macro.
6924         Suggested by Eric Blake.
6925         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6926
6927 2011-10-21  Bruno Haible  <bruno@clisp.org>
6928
6929         relocatable-prog-wrapper: Don't leave object files behind.
6930         * build-aux/install-reloc: Re-synchronize list of .o files to be
6931         removed with list of compilation units.
6932
6933 2011-10-20  Bruno Haible  <bruno@clisp.org>
6934
6935         openpty, posix_openpt: Remove code duplication.
6936         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6937         * lib/openpty.c: Include <stdlib.h>.
6938         (openpty): Use posix_openpt on all platforms except IRIX.
6939         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6940
6941 2011-10-20  Bruno Haible  <bruno@clisp.org>
6942
6943         unlockpt: Detect invalid argument.
6944         * lib/unlockpt.c: Include <fcntl.h>.
6945         (unlockpt): Check whether fd is valid, using fcntl().
6946         * modules/unlockpt (Depends-on): Add fcntl-h.
6947
6948 2011-10-20  Bruno Haible  <bruno@clisp.org>
6949
6950         openpty: Avoid compilation error on AIX 6.1.
6951         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6952
6953 2011-10-20  Bruno Haible  <bruno@clisp.org>
6954
6955         posix_openpt: Support for OpenBSD.
6956         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6957         (posix_openpt) [OpenBSD]: New code.
6958         * lib/grantpt.c: Include <fcntl.h>.
6959         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6960         * modules/grantpt (Depends-on): Add fcntl-h.
6961
6962 2011-10-20  Bruno Haible  <bruno@clisp.org>
6963
6964         posix_openpt test: Coding style.
6965         * tests/test-posix_openpt.c: Use GNU coding style.
6966
6967 2011-10-20  Bruno Haible  <bruno@clisp.org>
6968
6969         grantpt: Support --avoid=pt_chown.
6970         * modules/grantpt (Files): Add lib/pty-private.h.
6971
6972 2011-10-20  Bruno Haible  <bruno@clisp.org>
6973
6974         posix_openpt: Fix autoconf macro.
6975         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6976         unneeded check for _getpty.
6977
6978 2011-10-20  Bruno Haible  <bruno@clisp.org>
6979
6980         openpty: Update comments.
6981         * lib/openpty.c: Add comments about Minix.
6982
6983 2011-10-19  Eric Blake  <eblake@redhat.com>
6984
6985         openpty: relax license
6986         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6987
6988         pt_chown: use configmake to simplify build
6989         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6990
6991         ptsname and others: relax license
6992         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6993         * modules/unlockpt (License): Likewise.
6994         * modules/pt_chown (License): Likewise.
6995         * modules/ptsname (License): Likewise.
6996         * modules/ttyname_r (License): Likewise.
6997
6998 2011-10-19  Jim Meyering  <meyering@redhat.com>
6999
7000         posix_openpt: remove spurious #endif
7001         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7002
7003 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7004
7005         maint.mk: Respect $(build_aux) in web-manual rule.
7006         * top/maint.mk (web-manual): Find gen-announce script in user's
7007         $(build_aux) directory instead of hard-coding 'build-aux'.
7008
7009 2011-10-19  Bruno Haible  <bruno@clisp.org>
7010
7011         posix_openpt: Fix compilation error.
7012         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7013         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7014         Mention the openpty module as an alternative.
7015
7016 2011-10-19  Bruno Haible  <bruno@clisp.org>
7017
7018         Support for old NeXTstep 3.3 frexp().
7019         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7020         execution time of the test to 5 seconds.
7021         Reported by Daniel Richard G. <skunk@iskunk.org>.
7022
7023 2011-10-19  Bruno Haible  <bruno@clisp.org>
7024
7025         Support for old NeXTstep 3.3 sed.
7026         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7027         part, use /.../, not \|...|. Escape periods in the header file name.
7028         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7029         Reported by Daniel Richard G. <skunk@iskunk.org>.
7030
7031 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7032
7033         Support for old NeXTstep 3.3 gcc.
7034         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7035         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7036         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7037         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7038         * lib/regex.h (_Restrict_arr_): Likewise.
7039         * lib/regex_internal.h (re_token_t): Likewise.
7040         * lib/regexec.c (check_node_accept_bytes): Likewise.
7041         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7042
7043 2011-10-18  Eric Blake  <eblake@redhat.com>
7044
7045         posix_openpt: new module
7046         * modules/posix_openpt: New module.
7047         * m4/posix_openpt.m4: New file.
7048         * lib/posix_openpt.c: Likewise.
7049         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7050         (gl_STDLIB_H_DEFAULTS): Set defaults.
7051         * modules/stdlib (Makefile.am): Substitute macros.
7052         * lib/stdlib.in.h (posix_openpt): Declare.
7053         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7054         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7055         * modules/posix_openpt-tests: New test module.
7056         * tests/test-posix_openpt.c: New test.
7057
7058 2011-10-15  Bruno Haible  <bruno@clisp.org>
7059
7060         xstrtoll: Fix compilation failure.
7061         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7062         from lib/strtol.c.
7063         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7064         some platforms.
7065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7066
7067 2011-10-15  Bruno Haible  <bruno@clisp.org>
7068
7069         vasnprintf: Optimize bit search operation.
7070         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7072         gl_DOUBLE_EXPONENT_LOCATION.
7073         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7074         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7075         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7076         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7077         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7078         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7079         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7080         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7081         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7082
7083 2011-10-15  Bruno Haible  <bruno@clisp.org>
7084
7085         vasnprintf: Fix comments.
7086         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7087
7088 2011-10-14  Bruno Haible  <bruno@clisp.org>
7089
7090         Tests for module 'integer_length_ll'.
7091         * modules/integer_length_ll-tests: New file.
7092         * tests/test-integer_length_ll.c: New file.
7093
7094         New module 'integer_length_ll'.
7095         * lib/integer_length_ll.c: New file.
7096         * modules/integer_length_ll: New file.
7097
7098 2011-10-14  Bruno Haible  <bruno@clisp.org>
7099
7100         Tests for module 'integer_length_l'.
7101         * modules/integer_length_l-tests: New file.
7102         * tests/test-integer_length_l.c: New file.
7103
7104         New module 'integer_length_l'.
7105         * lib/integer_length_l.c: New file.
7106         * modules/integer_length_l: New file.
7107
7108 2011-10-14  Bruno Haible  <bruno@clisp.org>
7109
7110         Tests for module 'integer_length'.
7111         * modules/integer_length-tests: New file.
7112         * tests/test-integer_length.c: New file.
7113
7114         New module 'integer_length'.
7115         * lib/integer_length.h: New file.
7116         * lib/integer_length.c: New file.
7117         * modules/integer_length: New file.
7118
7119 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7120
7121         popen: Fix dependency conditions.
7122         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7123
7124 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7125
7126         perror: Fix autoconf test.
7127         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7128         <stdlib.h> and <string.h>.
7129
7130 2011-10-14  Bruno Haible  <bruno@clisp.org>
7131
7132         ffsl: Optimize on 64-bit platforms.
7133         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7134         unrolling.
7135
7136 2011-10-13  Bruno Haible  <bruno@clisp.org>
7137
7138         ffsl: Optimize on 32-bit platforms.
7139         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7140         use ffs() without a loop.
7141
7142         ffsl, ffsll: Optimize for GCC.
7143         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7144         * lib/ffsl.c (GCC_BUILTIN): New macro.
7145         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7146
7147 2011-10-13  Bruno Haible  <bruno@clisp.org>
7148
7149         ffs, bcopy, memset: Support symbol renaming via config.h.
7150         * lib/ffs.c: Include <config.h>.
7151         * lib/bcopy.c: Likewise.
7152         * lib/memset.c: Likewise.
7153
7154 2011-10-10  Bruno Haible  <bruno@clisp.org>
7155
7156         atanl: Simplify for platforms where 'long double' == 'double'.
7157         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7158         alternative implementation.
7159         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7160         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7161         * modules/atanl (Depends-on): Add atan. Update conditions.
7162
7163 2011-10-10  Bruno Haible  <bruno@clisp.org>
7164
7165         acosl: Simplify for platforms where 'long double' == 'double'.
7166         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7167         alternative implementation.
7168         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7169         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7170         * modules/acosl (Depends-on): Add acos. Update conditions.
7171
7172 2011-10-10  Bruno Haible  <bruno@clisp.org>
7173
7174         asinl: Simplify for platforms where 'long double' == 'double'.
7175         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7176         alternative implementation.
7177         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7178         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7179         * modules/asinl (Depends-on): Add asin. Update conditions.
7180
7181 2011-10-10  Bruno Haible  <bruno@clisp.org>
7182
7183         tanl: Simplify for platforms where 'long double' == 'double'.
7184         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7185         implementation.
7186         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7187         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7188         * modules/tanl (Depends-on): Add tan. Update conditions.
7189         (configure.ac): Don't compile trigl.c if
7190         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7191
7192 2011-10-10  Bruno Haible  <bruno@clisp.org>
7193
7194         cosl: Simplify for platforms where 'long double' == 'double'.
7195         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7196         implementation.
7197         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7198         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7199         * modules/cosl (Depends-on): Add cos. Update conditions.
7200         (configure.ac): Don't compile sincosl.c and trigl.c if
7201         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7202
7203 2011-10-10  Bruno Haible  <bruno@clisp.org>
7204
7205         sinl: Simplify for platforms where 'long double' == 'double'.
7206         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7207         implementation.
7208         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7209         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7210         * modules/sinl (Depends-on): Add sin. Update conditions.
7211         (configure.ac): Don't compile sincosl.c and trigl.c if
7212         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7213
7214 2011-10-10  Bruno Haible  <bruno@clisp.org>
7215
7216         logl: Simplify for platforms where 'long double' == 'double'.
7217         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7218         implementation.
7219         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7220         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7221         * modules/logl (Depends-on): Add log. Update conditions.
7222
7223 2011-10-10  Bruno Haible  <bruno@clisp.org>
7224
7225         expl: Simplify for platforms where 'long double' == 'double'.
7226         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7227         implementation.
7228         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7229         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7230         * modules/expl (Depends-on): Add exp. Update conditions.
7231
7232 2011-10-10  Bruno Haible  <bruno@clisp.org>
7233
7234         sqrtl: Simplify for platforms where 'long double' == 'double'.
7235         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7236         alternative implementation.
7237         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7238         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7239         * modules/sqrtl (Depends-on): Update conditions.
7240
7241 2011-10-10  Bruno Haible  <bruno@clisp.org>
7242
7243         ldexpl: Simplify for platforms where 'long double' == 'double'.
7244         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7245         alternative implementation.
7246         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7247         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7248         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7249
7250 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7251
7252         ffsll: set correct witness
7253         * modules/ffsll (configure.ac): Fix typo.
7254
7255 2011-10-10  Bruno Haible  <bruno@clisp.org>
7256
7257         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7258         * lib/printf-frexpl.c: Include <config.h>.
7259         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7260         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7261         second time.
7262         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7263         gl_LONG_DOUBLE_VS_DOUBLE.
7264         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7265         conditions.
7266
7267 2011-10-10  Bruno Haible  <bruno@clisp.org>
7268
7269         frexpl: Simplify for platforms where 'long double' == 'double'.
7270         * lib/frexpl.c: Include <config.h>.
7271         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7272         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7273         time.
7274         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7275         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7276         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7277         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7278         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7279         conditions.
7280
7281 2011-10-10  Jim Meyering  <meyering@redhat.com>
7282
7283         test-renameat: don't leave behind a temporary file
7284         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7285           ERROR: files left in build directory after distclean:
7286           ./gltests/test-renameat.too
7287           make[1]: *** [distcleancheck] Error 1
7288         Reported by Tom G. Christensen.
7289
7290 2011-10-09  Bruno Haible  <bruno@clisp.org>
7291
7292         rint: Determine RINT_LIBM correctly on AIX 7.
7293         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7294         directly, not only through a function pointer. Also accept an optional
7295         4th argument with extra code.
7296         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7297         rintf() call by gcc when optimizing.
7298
7299         mathfunc.m4: Refactor.
7300         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7301         m4 variable.
7302
7303 2011-10-09  Bruno Haible  <bruno@clisp.org>
7304
7305         rintl: Simplify for platforms where 'long double' == 'double'.
7306         * lib/rintl.c: Include <config.h>.
7307         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7308         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7309         time.
7310         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7311         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7312         * modules/rintl (Depends-on): Add rint. Update conditions.
7313
7314 2011-10-09  Bruno Haible  <bruno@clisp.org>
7315
7316         roundl: Simplify for platforms where 'long double' == 'double'.
7317         * lib/roundl.c: Include <config.h>.
7318         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7319         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7320         time.
7321         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7322         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7323         * modules/roundl (Depends-on): Add round. Update conditions.
7324
7325 2011-10-09  Bruno Haible  <bruno@clisp.org>
7326
7327         truncl: Simplify for platforms where 'long double' == 'double'.
7328         * lib/truncl.c: Include <config.h>.
7329         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7330         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7331         time.
7332         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7333         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7334         * modules/truncl (Depends-on): Add trunc. Update conditions.
7335
7336 2011-10-09  Bruno Haible  <bruno@clisp.org>
7337
7338         ceill: Simplify for platforms where 'long double' == 'double'.
7339         * lib/ceill.c: Include <config.h>.
7340         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7341         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7342         time.
7343         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7344         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7345         * modules/ceill (Depends-on): Add ceil. Update conditions.
7346
7347 2011-10-09  Bruno Haible  <bruno@clisp.org>
7348
7349         floorl: Simplify for platforms where 'long double' == 'double'.
7350         * lib/floorl.c: Include <config.h>.
7351         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7352         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7353         time.
7354         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7355         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7356         * modules/floorl (Depends-on): Add floor. Update conditions.
7357
7358 2011-10-09  Bruno Haible  <bruno@clisp.org>
7359
7360         rint: Fix ordering constraints.
7361         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7362         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7363         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7364
7365 2011-10-09  Bruno Haible  <bruno@clisp.org>
7366
7367         copysignl: Simplify for platforms where 'long double' == 'double'.
7368         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7369         alternative.
7370         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7371         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7372         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7373
7374 2011-10-09  Bruno Haible  <bruno@clisp.org>
7375
7376         Tests for module 'rintl'.
7377         * modules/rintl-tests: New file.
7378         * tests/test-rintl.c: New file.
7379
7380         New module 'rintl'.
7381         * lib/math.in.h (rintl): New declaration.
7382         * lib/rintl.c: New file.
7383         * m4/rintl.m4: New file.
7384         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7386         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7387         * modules/rintl: New file.
7388         * tests/test-math-c++.cc: Check the declaration of rintl.
7389         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7390         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7391         * doc/posix-functions/rintl.texi: Mention the new module.
7392
7393 2011-10-09  Bruno Haible  <bruno@clisp.org>
7394
7395         Tests for module 'rintf'.
7396         * modules/rintf-tests: New file.
7397         * tests/test-rintf.c: New file.
7398
7399         New module 'rintf'.
7400         * lib/math.in.h (rintf): New declaration.
7401         * lib/rintf.c: New file.
7402         * m4/rintf.m4: New file.
7403         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7405         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7406         * modules/rintf: New file.
7407         * tests/test-math-c++.cc: Check the declaration of rintf.
7408         * doc/posix-functions/rintf.texi: Mention the new module.
7409
7410 2011-10-09  Bruno Haible  <bruno@clisp.org>
7411
7412         rint: Support for MSVC.
7413         * lib/math.in.h (rint): New declaration.
7414         * lib/rint.c: New file.
7415         * m4/rint.m4: New file.
7416         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7418         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7419         * modules/rint (Description): Fix.
7420         (Files): Add lib/rint.c, m4/rint.m4.
7421         (Depends-on): Add math.
7422         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7423         gl_MATH_MODULE_INDICATOR.
7424         * tests/test-math-c++.cc: Check the declaration of rint.
7425         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7426         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7427         * doc/posix-functions/rint.texi: Mention the replacement provided by
7428         the module.
7429
7430         rint tests: More tests.
7431         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7432         minus-zero.h, infinity.h, nan.h.
7433         (main): Skip the test if the current rounding mode is not standard. Add
7434         tests for negative numbers, minus zero, infinity, NaN.
7435         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7436         tests/nan.h.
7437         (Depends-on): Add isnand-nolibm.
7438
7439 2011-10-09  Bruno Haible  <bruno@clisp.org>
7440
7441         Tests for module 'copysignl'.
7442         * modules/copysignl-tests: New file.
7443         * tests/test-copysignl.c: New file.
7444
7445         New module 'copysignl'.
7446         * lib/math.in.h (copysignl): New declaration.
7447         * lib/copysignl.c: New file.
7448         * m4/copysignl.m4: New file.
7449         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7451         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7452         HAVE_COPYSIGNL.
7453         * modules/copysignl: New file.
7454         * tests/test-math-c++.cc: Check the declaration of copysignl.
7455         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7456         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7457         * doc/posix-functions/copysignl.texi: Mention the new module.
7458
7459 2011-10-09  Bruno Haible  <bruno@clisp.org>
7460
7461         Tests for module 'copysignf'.
7462         * modules/copysignf-tests: New file.
7463         * tests/test-copysignf.c: New file.
7464
7465         New module 'copysignf'.
7466         * lib/math.in.h (copysignf): New declaration.
7467         * lib/copysignf.c: New file.
7468         * m4/copysignf.m4: New file.
7469         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7471         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7472         HAVE_COPYSIGNF.
7473         * modules/copysignf: New file.
7474         * tests/test-math-c++.cc: Check the declaration of copysignf.
7475         * doc/posix-functions/copysignf.texi: Mention the new module.
7476
7477 2011-10-09  Bruno Haible  <bruno@clisp.org>
7478
7479         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7480         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7481         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7482         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7483         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7484         gl_SIGNAL_H_DEFAULTS.
7485
7486 2011-10-09  Bruno Haible  <bruno@clisp.org>
7487
7488         poll: Make macro safer.
7489         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7490         ac_cv_header_poll_h is not set.
7491
7492 2011-10-09  Bruno Haible  <bruno@clisp.org>
7493
7494         copysign: Provide replacement.
7495         * lib/math.in.h (copysign): New declaration.
7496         * lib/copysign.c: New file.
7497         * m4/copysign.m4: New file.
7498         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7500         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7501         HAVE_COPYSIGN.
7502         * modules/copysign (Description): Clarify.
7503         (Files): Add lib/copysign.c, m4/copysign.m4.
7504         (Depends-on): Add math, signbit.
7505         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7506         gl_MATH_MODULE_INDICATOR.
7507         * tests/test-math-c++.cc: Check the declaration of copysign.
7508         * doc/posix-functions/copysign.texi: Mention the effects of the module
7509         on Minix and MSVC.
7510
7511 2011-10-09  Bruno Haible  <bruno@clisp.org>
7512
7513         isinf: Ensure macro on AIX 5.1.
7514         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7515         macro.
7516         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7517
7518 2011-10-09  Bruno Haible  <bruno@clisp.org>
7519
7520         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7521         * modules/snprintf-posix-tests (configure.ac): Require
7522         gl_LONG_DOUBLE_VS_DOUBLE.
7523         * modules/sprintf-posix-tests (configure.ac): Likewise.
7524         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7525         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7526         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7527         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7528         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7529         tests on platforms where 'long double' is the same as 'double'.
7530         * tests/test-sprintf-posix.h (test_function): Likewise.
7531         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7532         * tests/test-vasprintf-posix.c (test_function): Likewise.
7533
7534         *printf: Fix for platforms where 'long double' == 'double'.
7535         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7536         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7537         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7538         * modules/fprintf-posix (Files): Likewise.
7539         * modules/obstack-printf-posix (Files): Likewise.
7540         * modules/snprintf-posix (Files): Likewise.
7541         * modules/sprintf-posix (Files): Likewise.
7542         * modules/vasnprintf (Files): Likewise.
7543         * modules/vasnprintf-posix (Files): Likewise.
7544         * modules/vasprintf-posix (Files): Likewise.
7545         * modules/vdprintf-posix (Files): Likewise.
7546         * modules/vfprintf-posix (Files): Likewise.
7547         * modules/vsnprintf-posix (Files): Likewise.
7548         * modules/vsprintf-posix (Files): Likewise.
7549         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7550         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7551         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7552         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7553         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7554         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7555         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7556
7557         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7558         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7559         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7560         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7561         'long double'.
7562         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7563
7564         isinf: Fix for platforms where 'long double' == 'double'.
7565         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7566         Don't blindly assume 80-bit 'long double'.
7567
7568         isfinite: Fix for platforms where 'long double' == 'double'.
7569         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7570         Don't blindly assume 80-bit 'long double'.
7571
7572         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7573         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7574         * modules/isfinite-tests (configure.ac): Require
7575         gl_LONG_DOUBLE_VS_DOUBLE.
7576         * modules/isinf-tests (configure.ac): Likewise.
7577         * modules/isnan-tests (configure.ac): Likewise.
7578         * modules/isnanl-tests (configure.ac): Likewise.
7579         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7580         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7581         tests on platforms where 'long double' is the same as 'double'.
7582         * tests/test-isinf.c (test_isinfl): Likewise.
7583         * tests/test-isnan.c (test_long_double): Likewise.
7584         * tests/test-isnanl.h (main): Likewise.
7585
7586 2011-10-08  Bruno Haible  <bruno@clisp.org>
7587
7588         Tests for module 'tanhf'.
7589         * modules/tanhf-tests: New file.
7590         * tests/test-tanhf.c: New file.
7591
7592         New module 'tanhf'.
7593         * lib/math.in.h (tanhf): New declaration.
7594         * lib/tanhf.c: New file.
7595         * m4/tanhf.m4: New file.
7596         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7598         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7599         * modules/tanhf: New file.
7600         * tests/test-math-c++.cc: Check the declaration of tanhf.
7601         * doc/posix-functions/tanhf.texi: Mention the new module.
7602
7603         tanh: Use a .m4 file.
7604         * m4/tanh.m4: New file.
7605         * modules/tanh (Files): Add it.
7606         (configure.ac): Just invoke gl_FUNC_TANH.
7607
7608 2011-10-08  Bruno Haible  <bruno@clisp.org>
7609
7610         Tests for module 'coshf'.
7611         * modules/coshf-tests: New file.
7612         * tests/test-coshf.c: New file.
7613
7614         New module 'coshf'.
7615         * lib/math.in.h (coshf): New declaration.
7616         * lib/coshf.c: New file.
7617         * m4/coshf.m4: New file.
7618         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7620         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7621         * modules/coshf: New file.
7622         * tests/test-math-c++.cc: Check the declaration of coshf.
7623         * doc/posix-functions/coshf.texi: Mention the new module.
7624
7625         cosh: Use a .m4 file.
7626         * m4/cosh.m4: New file.
7627         * modules/cosh (Files): Add it.
7628         (configure.ac): Just invoke gl_FUNC_COSH.
7629
7630 2011-10-08  Bruno Haible  <bruno@clisp.org>
7631
7632         Tests for module 'sinhf'.
7633         * modules/sinhf-tests: New file.
7634         * tests/test-sinhf.c: New file.
7635
7636         New module 'sinhf'.
7637         * lib/math.in.h (sinhf): New declaration.
7638         * lib/sinhf.c: New file.
7639         * m4/sinhf.m4: New file.
7640         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7642         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7643         * modules/sinhf: New file.
7644         * tests/test-math-c++.cc: Check the declaration of sinhf.
7645         * doc/posix-functions/sinhf.texi: Mention the new module.
7646
7647         sinh: Use a .m4 file.
7648         * m4/sinh.m4: New file.
7649         * modules/sinh (Files): Add it.
7650         (configure.ac): Just invoke gl_FUNC_SINH.
7651
7652 2011-10-08  Bruno Haible  <bruno@clisp.org>
7653
7654         Tests for module 'atan2f'.
7655         * modules/atan2f-tests: New file.
7656         * tests/test-atan2f.c: New file.
7657
7658         New module 'atan2f'.
7659         * lib/math.in.h (atan2f): New declaration.
7660         * lib/atan2f.c: New file.
7661         * m4/atan2f.m4: New file.
7662         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7664         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7665         * modules/atan2f: New file.
7666         * tests/test-math-c++.cc: Check the declaration of atan2f.
7667         * doc/posix-functions/atan2f.texi: Mention the new module.
7668
7669         atan2: Use a .m4 file.
7670         * m4/atan2.m4: New file.
7671         * modules/atan2 (Files): Add it.
7672         (configure.ac): Just invoke gl_FUNC_ATAN2.
7673
7674 2011-10-08  Bruno Haible  <bruno@clisp.org>
7675
7676         Tests for module 'atanf'.
7677         * modules/atanf-tests: New file.
7678         * tests/test-atanf.c: New file.
7679
7680         New module 'atanf'.
7681         * lib/math.in.h (atanf): New declaration.
7682         * lib/atanf.c: New file.
7683         * m4/atanf.m4: New file.
7684         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7686         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7687         * modules/atanf: New file.
7688         * tests/test-math-c++.cc: Check the declaration of atanf.
7689         * doc/posix-functions/atanf.texi: Mention the new module.
7690
7691         atan: Use a .m4 file.
7692         * m4/atan.m4: New file.
7693         * modules/atan (Files): Add it.
7694         (configure.ac): Just invoke gl_FUNC_ATAN.
7695
7696 2011-10-08  Bruno Haible  <bruno@clisp.org>
7697
7698         Tests for module 'acosf'.
7699         * modules/acosf-tests: New file.
7700         * tests/test-acosf.c: New file.
7701
7702         New module 'acosf'.
7703         * lib/math.in.h (acosf): New declaration.
7704         * lib/acosf.c: New file.
7705         * m4/acosf.m4: New file.
7706         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7708         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7709         * modules/acosf: New file.
7710         * tests/test-math-c++.cc: Check the declaration of acosf.
7711         * doc/posix-functions/acosf.texi: Mention the new module.
7712
7713         acos: Use a .m4 file.
7714         * m4/acos.m4: New file.
7715         * modules/acos (Files): Add it.
7716         (configure.ac): Just invoke gl_FUNC_ACOS.
7717
7718 2011-10-08  Bruno Haible  <bruno@clisp.org>
7719
7720         Tests for module 'asinf'.
7721         * modules/asinf-tests: New file.
7722         * tests/test-asinf.c: New file.
7723
7724         New module 'asinf'.
7725         * lib/math.in.h (asinf): New declaration.
7726         * lib/asinf.c: New file.
7727         * m4/asinf.m4: New file.
7728         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7729         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7730         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7731         * modules/asinf: New file.
7732         * tests/test-math-c++.cc: Check the declaration of asinf.
7733         * doc/posix-functions/asinf.texi: Mention the new module.
7734
7735         asin: Use a .m4 file.
7736         * m4/asin.m4: New file.
7737         * modules/asin (Files): Add it.
7738         (configure.ac): Just invoke gl_FUNC_ASIN.
7739
7740 2011-10-08  Bruno Haible  <bruno@clisp.org>
7741
7742         Tests for module 'tanf'.
7743         * modules/tanf-tests: New file.
7744         * tests/test-tanf.c: New file.
7745
7746         New module 'tanf'.
7747         * lib/math.in.h (tanf): New declaration.
7748         * lib/tanf.c: New file.
7749         * m4/tanf.m4: New file.
7750         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7752         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7753         * modules/tanf: New file.
7754         * tests/test-math-c++.cc: Check the declaration of tanf.
7755         * doc/posix-functions/tanf.texi: Mention the new module.
7756
7757         tan: Use a .m4 file.
7758         * m4/tan.m4: New file.
7759         * modules/tan (Files): Add it.
7760         (configure.ac): Just invoke gl_FUNC_TAN.
7761
7762 2011-10-08  Bruno Haible  <bruno@clisp.org>
7763
7764         Tests for module 'cosf'.
7765         * modules/cosf-tests: New file.
7766         * tests/test-cosf.c: New file.
7767
7768         New module 'cosf'.
7769         * lib/math.in.h (cosf): New declaration.
7770         * lib/cosf.c: New file.
7771         * m4/cosf.m4: New file.
7772         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7774         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7775         * modules/cosf: New file.
7776         * tests/test-math-c++.cc: Check the declaration of cosf.
7777         * doc/posix-functions/cosf.texi: Mention the new module.
7778
7779         cos: Use a .m4 file.
7780         * m4/cos.m4: New file.
7781         * modules/cos (Files): Add it.
7782         (configure.ac): Just invoke gl_FUNC_COS.
7783
7784 2011-10-08  Bruno Haible  <bruno@clisp.org>
7785
7786         Tests for module 'sinf'.
7787         * modules/sinf-tests: New file.
7788         * tests/test-sinf.c: New file.
7789
7790         New module 'sinf'.
7791         * lib/math.in.h (sinf): New declaration.
7792         * lib/sinf.c: New file.
7793         * m4/sinf.m4: New file.
7794         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7796         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7797         * modules/sinf: New file.
7798         * tests/test-math-c++.cc: Check the declaration of sinf.
7799         * doc/posix-functions/sinf.texi: Mention the new module.
7800
7801         sin: Use a .m4 file.
7802         * m4/sin.m4: New file.
7803         * modules/sin (Files): Add it.
7804         (configure.ac): Just invoke gl_FUNC_SIN.
7805
7806 2011-10-08  Bruno Haible  <bruno@clisp.org>
7807
7808         Tests for module 'powf'.
7809         * modules/powf-tests: New file.
7810         * tests/test-powf.c: New file.
7811
7812         New module 'powf'.
7813         * lib/math.in.h (powf): New declaration.
7814         * lib/powf.c: New file.
7815         * m4/powf.m4: New file.
7816         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7818         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7819         * modules/powf: New file.
7820         * tests/test-math-c++.cc: Check the declaration of powf.
7821         * doc/posix-functions/powf.texi: Mention the new module.
7822
7823         pow: Use a .m4 file.
7824         * m4/pow.m4: New file.
7825         * modules/pow (Files): Add it.
7826         (configure.ac): Just invoke gl_FUNC_POW.
7827
7828 2011-10-08  Bruno Haible  <bruno@clisp.org>
7829
7830         Tests for module 'log10f'.
7831         * modules/log10f-tests: New file.
7832         * tests/test-log10f.c: New file.
7833
7834         New module 'log10f'.
7835         * lib/math.in.h (log10f): New declaration.
7836         * lib/log10f.c: New file.
7837         * m4/log10f.m4: New file.
7838         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7840         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7841         * modules/log10f: New file.
7842         * tests/test-math-c++.cc: Check the declaration of log10f.
7843         * doc/posix-functions/log10f.texi: Mention the new module.
7844
7845         log10: Use a .m4 file.
7846         * m4/log10.m4: New file.
7847         * modules/log10 (Files): Add it.
7848         (configure.ac): Just invoke gl_FUNC_LOG10.
7849
7850 2011-10-08  Bruno Haible  <bruno@clisp.org>
7851
7852         Tests for module 'logf'.
7853         * modules/logf-tests: New file.
7854         * tests/test-logf.c: New file.
7855
7856         New module 'logf'.
7857         * lib/math.in.h (logf): New declaration.
7858         * lib/logf.c: New file.
7859         * m4/logf.m4: New file.
7860         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7862         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7863         * modules/logf: New file.
7864         * tests/test-math-c++.cc: Check the declaration of logf.
7865         * doc/posix-functions/logf.texi: Mention the new module.
7866
7867         log: Use a .m4 file.
7868         * m4/log.m4: New file.
7869         * modules/log (Files): Add it.
7870         (configure.ac): Just invoke gl_FUNC_LOG.
7871
7872 2011-10-08  Bruno Haible  <bruno@clisp.org>
7873
7874         Tests for module 'expf'.
7875         * modules/expf-tests: New file.
7876         * tests/test-expf.c: New file.
7877
7878         New module 'expf'.
7879         * lib/math.in.h (expf): New declaration.
7880         * lib/expf.c: New file.
7881         * m4/expf.m4: New file.
7882         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7884         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7885         * modules/expf: New file.
7886         * tests/test-math-c++.cc: Check the declaration of expf.
7887         * doc/posix-functions/expf.texi: Mention the new module.
7888
7889         exp: Use a .m4 file.
7890         * m4/exp.m4: New file.
7891         * modules/exp (Files): Add it.
7892         (configure.ac): Just invoke gl_FUNC_EXP.
7893
7894 2011-10-08  Bruno Haible  <bruno@clisp.org>
7895
7896         Tests for module 'sqrtf'.
7897         * modules/sqrtf-tests: New file.
7898         * tests/test-sqrtf.c: New file.
7899
7900         New module 'sqrtf'.
7901         * lib/math.in.h (sqrtf): New declaration.
7902         * lib/sqrtf.c: New file.
7903         * m4/sqrtf.m4: New file.
7904         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7906         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7907         * modules/sqrtf: New file.
7908         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7909         * doc/posix-functions/sqrtf.texi: Mention the new module.
7910
7911 2011-10-08  Bruno Haible  <bruno@clisp.org>
7912
7913         Tests: Avoid link failures w.r.t. libintl.
7914         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7915         $(LIBINTL).
7916         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7917         $(LIBINTL).
7918         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7919         against $(LIBINTL).
7920         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7921         $(LIBINTL).
7922         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7923         $(LIBINTL).
7924         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7925
7926 2011-10-08  Bruno Haible  <bruno@clisp.org>
7927
7928         pow tests: Defeat compiler optimizations.
7929         * tests/test-pow.c (main): Assign arguments to x and y before use.
7930
7931 2011-10-08  Bruno Haible  <bruno@clisp.org>
7932
7933         gnulib-tool: Improve last commit.
7934         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7935         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7936         ignore dependencies that are not among the modules list.
7937
7938 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7939
7940         gnulib-tool: don't follow dependencies to avoided modules
7941         This fixes a bug that is related to the previous one.
7942         * gnulib-tool (func_modules_transitive_closure)
7943         (func_emit_autoconf_snippets):
7944         Check whether a dependency is acceptable before using it.
7945         (--extract-dependencies): Report an error if --avoid is also used,
7946         since this combination of options is not yet supported.
7947
7948         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7949         Problem reported by Peter Dyballa in
7950         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7951         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7952         when echoing "$condition".
7953
7954 2011-10-07  Bruno Haible  <bruno@clisp.org>
7955
7956         Fix documentation about math functions on MacOS X.
7957         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7958         MacOS X 10.5.
7959         * doc/posix-functions/fdim.texi: Likewise.
7960         * doc/posix-functions/feclearexcept.texi: Likewise.
7961         * doc/posix-functions/fegetenv.texi: Likewise.
7962         * doc/posix-functions/fegetround.texi: Likewise.
7963         * doc/posix-functions/feholdexcept.texi: Likewise.
7964         * doc/posix-functions/feraiseexcept.texi: Likewise.
7965         * doc/posix-functions/fesetenv.texi: Likewise.
7966         * doc/posix-functions/fesetround.texi: Likewise.
7967         * doc/posix-functions/fetestexcept.texi: Likewise.
7968         * doc/posix-functions/feupdateenv.texi: Likewise.
7969         * doc/posix-functions/fmax.texi: Likewise.
7970         * doc/posix-functions/fmin.texi: Likewise.
7971         * doc/posix-functions/log2.texi: Likewise.
7972         * doc/posix-functions/modff.texi: Likewise.
7973         * doc/posix-functions/nan.texi: Likewise.
7974         * doc/posix-functions/nanf.texi: Likewise.
7975         * doc/posix-functions/nextafterf.texi: Likewise.
7976         * doc/posix-functions/remquo.texi: Likewise.
7977
7978 2011-10-07  Bruno Haible  <bruno@clisp.org>
7979
7980         modff: Drop assumption about library that defines modff.
7981         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7982         AC_CHECK_FUNCS.
7983         * modules/modff (Files): Add m4/mathfunc.m4.
7984
7985 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7986
7987         raise tests: Avoid a GCC warning.
7988         * tests/test-raise.c (handler): Use _Noreturn.
7989
7990 2011-10-07  Bruno Haible  <bruno@clisp.org>
7991
7992         Tests for module 'ldexpf'.
7993         * modules/ldexpf-tests: New file.
7994         * tests/test-ldexpf.c: New file.
7995
7996         New module 'ldexpf'.
7997         * lib/math.in.h (ldexpf): New declaration.
7998         * lib/ldexpf.c: New file.
7999         * m4/ldexpf.m4: New file.
8000         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8002         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8003         * modules/ldexpf: New file.
8004         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8005         * doc/posix-functions/ldexpf.texi: Mention the new module.
8006
8007 2011-10-06  Bruno Haible  <bruno@clisp.org>
8008
8009         frexpf: Work around problems on IRIX and mingw.
8010         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8012         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8013         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8014         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8015         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8016         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8017
8018 2011-10-06  Bruno Haible  <bruno@clisp.org>
8019
8020         fabsf: Drop assumption about library that defines fabsf.
8021         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8022         AC_CHECK_FUNCS.
8023         * modules/fabsf (Files): Add m4/mathfunc.m4.
8024
8025 2011-10-06  Bruno Haible  <bruno@clisp.org>
8026
8027         frexpf: Drop assumption about library that defines frexpf.
8028         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8029         'int *', 'float *', 'long double *', 'float', 'long double'.
8030         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8031         AC_CHECK_FUNCS.
8032         * modules/frexpf (Files): Add m4/mathfunc.m4.
8033
8034         Tests for module 'frexpf'.
8035         * modules/frexpf-tests: New file.
8036         * tests/test-frexpf.c: New file.
8037
8038         New module 'frexpf'.
8039         * lib/math.in.h (frexpf): New declaration.
8040         * lib/frexpf.c: New file.
8041         * m4/frexpf.m4: New file.
8042         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8044         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8045         * modules/frexpf: New file.
8046         * tests/test-math-c++.cc: Check the declaration of frexpf.
8047         * doc/posix-functions/frexpf.texi: Mention the new module.
8048
8049 2011-10-06  Bruno Haible  <bruno@clisp.org>
8050
8051         math: Sort function declarations of math.in.h.
8052         * lib/math.in.h (frexp, logb): Move declarations.
8053
8054 2011-10-05  Bruno Haible  <bruno@clisp.org>
8055
8056         Tests for module 'modff'.
8057         * modules/modff-tests: New file.
8058         * tests/test-modff.c: New file.
8059
8060         New module 'modff'.
8061         * lib/math.in.h (modff): New declaration.
8062         * lib/modff.c: New file.
8063         * m4/modff.m4: New file.
8064         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8066         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8067         * modules/modff: New file.
8068         * tests/test-math-c++.cc: Check the declaration of modff.
8069         * doc/posix-functions/modff.texi: Mention the new module.
8070
8071         modf tests: Make test sharper.
8072         * tests/test-modf.c (main): Strengthen upper bound.
8073
8074         modf: Use a .m4 file.
8075         * m4/modf.m4: New file.
8076         * modules/modf (Files): Add it.
8077         (configure.ac): Just invoke gl_FUNC_MODF.
8078
8079 2011-10-05  Bruno Haible  <bruno@clisp.org>
8080
8081         Tests for module 'fmodf'.
8082         * modules/fmodf-tests: New file.
8083         * tests/test-fmodf.c: New file.
8084
8085         New module 'fmodf'.
8086         * lib/math.in.h (fmodf): New declaration.
8087         * lib/fmodf.c: New file.
8088         * m4/fmodf.m4: New file.
8089         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8091         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8092         * modules/fmodf: New file.
8093         * tests/test-math-c++.cc: Check the declaration of fmodf.
8094         * doc/posix-functions/fmodf.texi: Mention the new module.
8095
8096         fmod: Use a .m4 file.
8097         * m4/fmod.m4: New file.
8098         * modules/fmod (Files): Add it.
8099         (configure.ac): Just invoke gl_FUNC_FMOD.
8100
8101 2011-10-05  Bruno Haible  <bruno@clisp.org>
8102
8103         Tests for module 'fabsf'.
8104         * modules/fabsf-tests: New file.
8105         * tests/test-fabsf.c: New file.
8106
8107         New module 'fabsf'.
8108         * lib/math.in.h (fabsf): New declaration.
8109         * lib/fabsf.c: New file.
8110         * m4/fabsf.m4: New file.
8111         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8113         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8114         * modules/fabsf: New file.
8115         * tests/test-math-c++.cc: Check the declaration of fabsf.
8116         * doc/posix-functions/fabsf.texi: Mention the new module.
8117
8118         fabs: Use a .m4 file.
8119         * m4/fabs.m4: New file.
8120         * modules/fabs (Files): Add it.
8121         (configure.ac): Just invoke gl_FUNC_FABS.
8122
8123 2011-10-05  Jim Meyering  <meyering@redhat.com>
8124
8125         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8126         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8127         ls -lL regression introduced in coreutils-8.12, it does so at the
8128         cost of an additional stat call in the common case.  Besides, now
8129         that the kernel change that prompted commit 95f7c57f has been reverted
8130         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8131         we have no use for commit 95f7c57f, "file-has-acl: use
8132         acl_extended_file_nofollow if available".
8133
8134 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8135
8136         file-has-acl: revert unintended change in behavior of ls -L
8137         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8138         derived from...
8139         (file_has_acl): ...code here.  Call it.
8140         This problem was introduced with 2011-07-22 commit 95f7c57f,
8141         "file-has-acl: use acl_extended_file_nofollow if available".
8142         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8143
8144 2011-10-03  Bruno Haible  <bruno@clisp.org>
8145
8146         poll: Avoid link errors on MSVC.
8147         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8148         * modules/poll (Depends-on): Add sockets.
8149         (Link): New section.
8150         * NEWS: Mention the change.
8151         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8152         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8153         $(LIB_POLL) instead of $(LIBSOCKET).
8154
8155 2011-10-03  Bruno Haible  <bruno@clisp.org>
8156
8157         sys_select tests: Fix link error on MSVC 9.
8158         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8159         with $(LIB_SELECT) instead of $(LIBSOCKET).
8160
8161 2011-10-03  Bruno Haible  <bruno@clisp.org>
8162
8163         sys_select: Fix compilation error on mingw.
8164         * lib/sys_select.in.h: On native Windows, include <io.h>.
8165
8166 2011-10-03  Bruno Haible  <bruno@clisp.org>
8167
8168         wmemset: Support for MSVC.
8169         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8170         whether wmemset() exists.
8171
8172 2011-10-03  Bruno Haible  <bruno@clisp.org>
8173
8174         wmemmove: Support for MSVC.
8175         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8176         whether wmemmove() exists.
8177
8178 2011-10-03  Bruno Haible  <bruno@clisp.org>
8179
8180         wmemcpy: Support for MSVC.
8181         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8182         whether wmemcpy() exists.
8183
8184 2011-10-03  Bruno Haible  <bruno@clisp.org>
8185
8186         wmemcmp: Support for MSVC.
8187         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8188         whether wmemcmp() exists.
8189
8190 2011-10-03  Bruno Haible  <bruno@clisp.org>
8191
8192         wmemchr: Support for MSVC.
8193         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8194         whether wmemchr() exists.
8195
8196 2011-10-03  Bruno Haible  <bruno@clisp.org>
8197
8198         glthread/*, strsignal: Support for MSVC.
8199         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8200         including <winsock.h> on MSVC 9.
8201         * lib/glthread/lock.h: Likewise.
8202         * lib/glthread/thread.h: Likewise.
8203         * lib/glthread/tls.h: Likewise.
8204         * lib/glthread/yield.h: Likewise.
8205         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8206         if HAVE_UNISTD_H is false.
8207         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8208
8209 2011-10-03  Bruno Haible  <bruno@clisp.org>
8210
8211         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8212         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8213         Set to 100000.
8214
8215 2011-10-03  Bruno Haible  <bruno@clisp.org>
8216
8217         acl: Fix specification.
8218         * lib/file-has-acl.c (file_has_acl): Fix specification.
8219
8220 2011-10-03  Bruno Haible  <bruno@clisp.org>
8221
8222         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8223         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8224         (compute_curr_prefix, shared_library_fullname,
8225         find_shared_library_fullname, get_shared_library_fullname, relocate):
8226         Use it together with PIC && INSTALLDIR.
8227         Reported by <jojelino@gmail.com>
8228         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8229
8230 2011-10-01  Jim Meyering  <meyering@redhat.com>
8231
8232         maint.mk: adjust a release-related rule not to require use of gzip
8233         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8234         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8235         projects that build only .tar.xz files.  Also fix an erroneous test.
8236
8237         test-linkat: don't leave behind a temporary file
8238         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8239         Otherwise, coreutils' "make distcheck" would fail with this:
8240           Only in /c/cu/tests/torture/coreutils/test/\
8241             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8242           make[2]: *** [my-distcheck] Error 1
8243
8244         float, math: add omitted file
8245         * lib/itold.c: Add file, required for yesterday's float change.
8246
8247 2011-10-01  Bruno Haible  <bruno@clisp.org>
8248
8249         isinf: Fix for OpenBSD/x86.
8250         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8251         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8252         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8253
8254 2011-10-01  Bruno Haible  <bruno@clisp.org>
8255
8256         isfinite: Fix syntax error in configure test.
8257         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8258
8259         isfinite: Fix typo.
8260         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8261         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8262
8263 2011-10-01  Bruno Haible  <bruno@clisp.org>
8264
8265         nonblocking tests: Fix test failure on Linux/IA-64.
8266         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8267         Set to 270000.
8268
8269 2011-10-01  Bruno Haible  <bruno@clisp.org>
8270
8271         mkfifoat tests: Fix a test failure on mingw.
8272         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8273         with error ENOSYS.
8274
8275 2011-09-30  Bruno Haible  <bruno@clisp.org>
8276
8277         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8278         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8279         'long double'. Set REPLACE_ITOLD.
8280         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8281         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8282         * lib/itold.c: New file.
8283         * modules/float (Files): Add lib/itold.c.
8284         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8285         (Makefile.am): Substitute REPLACE_ITOLD.
8286         * modules/math (Depends-on): Add float.
8287         (Makefile.am): Substitute REPLACE_ITOLD.
8288         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8289         * doc/posix-headers/math.texi: Likewise.
8290         * doc/posix-functions/logl.texi: Likewise.
8291
8292 2011-09-30  Bruno Haible  <bruno@clisp.org>
8293
8294         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8295         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8296         Set to 140000.
8297
8298 2011-09-30  Bruno Haible  <bruno@clisp.org>
8299
8300         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8301         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8302         invocation, say "right after AC_PROG_CC_STDC", not "right after
8303         AC_PROG_CC".
8304         Reported by Gary V. Vaughan <gary@gnu.org>.
8305
8306 2011-09-30  Bruno Haible  <bruno@clisp.org>
8307
8308         Centralize C99 requirement.
8309         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8310         * modules/stdarg (configure.ac-early): Invoke it instead of
8311         AC_PROG_CC_STDC.
8312         Reported by Gary V. Vaughan and Paul Eggert.
8313
8314 2011-09-29  Bruno Haible  <bruno@clisp.org>
8315
8316         float: Fix LDBL_MAX value on Linux/PowerPC.
8317         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8318         on Linux/PowerPC.
8319         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8320         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8321         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8322         platform.
8323         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8324
8325 2011-09-29  Bruno Haible  <bruno@clisp.org>
8326
8327         doc: Improve doc about gl_EARLY.
8328         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8329         AC_PROG_CC_STDC invocation.
8330         Reported by Gary V. Vaughan <gary@gnu.org>.
8331
8332 2011-09-28  Bruno Haible  <bruno@clisp.org>
8333
8334         fgetc, fputc, fread, fwrite tests: Fix link error.
8335         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8336         on non-MSVC platforms.
8337         * tests/test-fputc.c (main): Likewise.
8338         * tests/test-fread.c (main): Likewise.
8339         * tests/test-fwrite.c (main): Likewise.
8340         Reported by Jim Meyering.
8341
8342 2011-09-27  Bruno Haible  <bruno@clisp.org>
8343
8344         fputc, fwrite tests: Avoid test failure on MSVC.
8345         * tests/test-fgetc.c: Include msvc-inval.h.
8346         (main): Invoke gl_msvc_inval_ensure_handler.
8347         * tests/test-fputc.c: Include msvc-inval.h.
8348         (main): Invoke gl_msvc_inval_ensure_handler.
8349         * tests/test-fread.c: Include msvc-inval.h.
8350         (main): Invoke gl_msvc_inval_ensure_handler.
8351         * tests/test-fwrite.c: Include msvc-inval.h.
8352         (main): Invoke gl_msvc_inval_ensure_handler.
8353         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8354         * modules/fputc-tests (Depends-on): Likewise.
8355         * modules/fread-tests (Depends-on): Likewise.
8356         * modules/fwrite-tests (Depends-on): Likewise.
8357
8358 2011-09-27  Bruno Haible  <bruno@clisp.org>
8359
8360         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8361         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8362         (raise): Remove older, duplicated declaration.
8363         (_gl_raise_SIGPIPE): New declaration.
8364         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8365         (rpl_raise): Remove function.
8366         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8367         a gnulib-defined SIGPIPE here.
8368         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8369         'sigprocmask' has detected missing signal-blocking and the module
8370         'sigpipe' is enabled.
8371         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8372
8373 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8374
8375         base64-tests: avoid memory leak
8376         * tests/test-base64.c (main): Plug memory leak.
8377
8378         base32: new module
8379         * modules/base32: New module.
8380         * lib/base32.c: New file.
8381         * lib/base32.h: Likewise.
8382         * m4/base32.m4: Likewise.
8383         * modules/base32-tests: New test.
8384         * tests/test-base32.c: Likewise.
8385         * MODULES.html.sh (Misc): Mention it.
8386
8387 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8388
8389         gnulib: use more-standard license notice wording
8390         * gnulib-tool (func_emit_copyright_notice): When emitting a
8391         license notice into a file, use the standard wording as suggested
8392         by the current information for GNU maintainers, except say "file"
8393         rather than "program".  The new wording gives a license version
8394         number, which addresses an issue raised by Glenn Morris in
8395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8396         * m4/onceonly.m4: Use that same wording here, too.
8397
8398         dup2: minor simplification
8399         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8400         as lib/dup2.c no longer uses 'inline'.
8401
8402 2011-09-25  Bruno Haible  <bruno@clisp.org>
8403
8404         strings: Fix compilation error on MSVC.
8405         * lib/strings.in.h: Include <stddef.h> for size_t.
8406
8407 2011-09-25  Bruno Haible  <bruno@clisp.org>
8408
8409         fflush et al.: Document limitation on MSVC.
8410         * doc/posix-functions/fflush.texi: Document possible crash in handling
8411         mode other than DEFAULT_HANDLING.
8412         * doc/posix-functions/fgetc.texi: Likewise.
8413         * doc/posix-functions/fputc.texi: Likewise.
8414         * doc/posix-functions/fread.texi: Likewise.
8415         * doc/posix-functions/fwrite.texi: Likewise.
8416
8417 2011-09-25  Bruno Haible  <bruno@clisp.org>
8418
8419         msvc-inval: Allow three invalid parameter handling modes.
8420         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8421         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8422         macros.
8423         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8424         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8425         SANE_LIBRARY_HANDLING as a no-op.
8426         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8427         <stdlib.h>.
8428         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8429
8430 2011-09-25  Bruno Haible  <bruno@clisp.org>
8431
8432         msvc-inval: Make handler multithread-safe.
8433         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8434         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8435         declarations.
8436         (gl_msvc_inval_current): New declaration.
8437         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8438         Operate on the structure returned by gl_msvc_inval_current().
8439         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8440         Remove varaiables.
8441         (tls_index, tls_initialized): New variables.
8442         (not_per_thread): New variable.
8443         (gl_msvc_inval_current): New function.
8444         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8445         returned by gl_msvc_inval_current().
8446
8447 2011-09-25  Bruno Haible  <bruno@clisp.org>
8448
8449         msvc-inval: Install handler globally.
8450         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8451         !_MSC_VER.
8452         (gl_msvc_invalid_parameter_handler): Remove declaration.
8453         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8454         declarations.
8455         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8456         Install the handler globally, don't uninstall it.
8457         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8458         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8459         currently valid, call RaiseException instead.
8460         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8461         for !_MSC_VER.
8462
8463 2011-09-25  Bruno Haible  <bruno@clisp.org>
8464
8465         strerror_r-posix: Fix for MSVC 9.
8466         * lib/strerror_r.c (local_snprintf): New function.
8467         (snprintf): Define to local_snprintf, not to _snprintf.
8468
8469 2011-09-25  Bruno Haible  <bruno@clisp.org>
8470
8471         ftruncate: Support for MSVC 9.
8472         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8473         (chsize_nothrow): New function.
8474         (chsize): Redefine as a macro.
8475         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8476         * modules/ftruncate (Depends-on): Add msvc-inval.
8477
8478 2011-09-25  Bruno Haible  <bruno@clisp.org>
8479
8480         New module 'fstat'.
8481         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8482         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8483         * lib/fchdir.c (rpl_fstat): Remove function.
8484         * m4/fstat.m4: New file.
8485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8486         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8487         declared.
8488         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8489         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8490         * modules/fstat: New file.
8491         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8492         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8493         is set.
8494         * doc/posix-functions/fstat.texi: Mention the new module and the
8495         problem on MSVC.
8496         * NEWS: Mention the change.
8497         * modules/acl (Depends-on): Add fstat.
8498         * modules/chdir-safer (Depends-on): Likewise.
8499         * modules/chown (Depends-on): Likewise.
8500         * modules/copy-file (Depends-on): Likewise.
8501         * modules/fchdir (Depends-on): Likewise.
8502         * modules/fdopendir (Depends-on): Likewise.
8503         * modules/fopen (Depends-on): Likewise.
8504         * modules/fts (Depends-on): Likewise.
8505         * modules/getcwd (Depends-on): Likewise.
8506         * modules/isapipe (Depends-on): Likewise.
8507         * modules/linkat (Depends-on): Likewise.
8508         * modules/lseek (Depends-on): Likewise.
8509         * modules/mkdir-p (Depends-on): Likewise.
8510         * modules/open (Depends-on): Likewise.
8511         * modules/openat (Depends-on): Likewise.
8512         * modules/read-file (Depends-on): Likewise.
8513         * modules/renameat (Depends-on): Likewise.
8514         * modules/utimens (Depends-on): Likewise.
8515
8516 2011-09-25  Bruno Haible  <bruno@clisp.org>
8517
8518         linkat: Fix compilation on MSVC 9.
8519         * lib/linkat.c: Don't include <stdint.h>.
8520
8521 2011-09-25  Bruno Haible  <bruno@clisp.org>
8522
8523         fclose: Support for MSVC 9.
8524         * lib/fclose.c: Include msvc-inval.h.
8525         (fclose_nothrow): New function.
8526         (rpl_fclose): Use it.
8527         * modules/fclose (Depends-on): Add msvc-inval.
8528         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8529
8530 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8531
8532         dup2: minor simplifications
8533         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8534         that it's a performance win.
8535         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8536         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8537
8538 2011-09-24  Jim Meyering  <meyering@redhat.com>
8539
8540         test-futimens: avoid a warning from gcc -Wshadow
8541         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8542         to avoid a shadowing warning.
8543
8544 2011-09-24  Bruno Haible  <bruno@clisp.org>
8545
8546         fdopen: Support for MSVC 9.
8547         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8548         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8549         * lib/fdopen.c: Include msvc-inval.h.
8550         (fdopen_nothrow): New function.
8551         (rpl_fdopen): Use it.
8552         * modules/fdopen (Depends-on): Add msvc-inval.
8553         * modules/fclose-tests (Depends-on): Add fdopen.
8554         * modules/fflush-tests (Depends-on): Likewise.
8555         * modules/fgetc-tests (Depends-on): Likewise.
8556         * modules/fputc-tests (Depends-on): Likewise.
8557         * modules/fread-tests (Depends-on): Likewise.
8558         * modules/freopen-tests (Depends-on): Likewise.
8559         * modules/fseeko-tests (Depends-on): Likewise.
8560         * modules/ftello-tests (Depends-on): Likewise.
8561         * modules/fwrite-tests  (Depends-on): Likewise.
8562         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8563
8564 2011-09-24  Bruno Haible  <bruno@clisp.org>
8565
8566         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8567         * modules/fgetc-tests (Depends-on): Add unistd.
8568         * modules/fputc-tests (Depends-on): Likewise.
8569         * modules/fread-tests (Depends-on): Likewise.
8570         * modules/fwrite-tests (Depends-on): Likewise.
8571
8572 2011-09-24  Bruno Haible  <bruno@clisp.org>
8573
8574         dup: Simplify autoconf test.
8575         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8576         on gl_MSVC_INVAL's result.
8577
8578 2011-09-24  Bruno Haible  <bruno@clisp.org>
8579
8580         Tests for function fwrite().
8581         * modules/fwrite-tests: New file.
8582         * tests/test-fwrite.c: New file.
8583         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8584
8585         Tests for function fread().
8586         * modules/fread-tests: New file.
8587         * tests/test-fread.c: New file.
8588         * modules/stdio-tests (Depends-on): Add fread-tests.
8589
8590         Activate fputc tests.
8591         * modules/stdio-tests (Depends-on): Add fputc-tests.
8592
8593         Enhance fgetc, fputc tests.
8594         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8595         * tests/test-fputc.c (main): Likewise.
8596
8597 2011-09-24  Bruno Haible  <bruno@clisp.org>
8598
8599         write: Support for MSVC 9.
8600         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8601         is not 1.
8602         * lib/write.c (write_nothrow): New function.
8603         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8604         not 1. Use write_nothrow.
8605         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8606         invalid parameter handler.
8607         (gl_PREREQ_WRITE): New macro.
8608         * modules/write (Depends-on): Add msvc-inval.
8609         (configure.ac): Invoke gl_PREREQ_WRITE.
8610         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8611
8612 2011-09-24  Bruno Haible  <bruno@clisp.org>
8613
8614         read: Fix last commit.
8615         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8616
8617 2011-09-24  Bruno Haible  <bruno@clisp.org>
8618
8619         dup2: Fix last commit.
8620         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8621         (rpl_dup2): Disable fcntl workaround on native Windows.
8622
8623         sigprocmask: Make code safer.
8624         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8625         section that changes macro definitions for this compilation unit.
8626
8627 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8628
8629         dup2: clarify by coalescing Windows-specific material
8630         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8631         "msvc-nothrow.h"' to the Windows-specific section, so that the
8632         Emacs source need not contain these include files.
8633         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8634         Windows-specific fixes into this function rather than just the
8635         nothrow fix, as this shortens and clarifies the code.  Always
8636         define as a function, as that's a bit cleaner than having it be
8637         sometimes a function and sometimes a macro.
8638         (rpl_dup2): Move the Windows-specific stuff out of here and into
8639         ms_windows_dup2.  Don't protect the Haiku-related fix with
8640         "#if !defined __linux__", as the same code also works around
8641         a Linux kernel bug, and it doesn't add any system calls on any
8642         platform.  Add comment about FreeBSD 6.1.
8643
8644         sigprocmask: move #include directive
8645         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8646         Windows-specific section, so that the Emacs source need not
8647         contain msvc-inval.h.
8648
8649 2011-09-23  Bruno Haible  <bruno@clisp.org>
8650
8651         read: Support for MSVC 9.
8652         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8653         is not 1.
8654         * lib/read.c (read_nothrow): New function.
8655         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8656         read_nothrow.
8657         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8658         invalid parameter handler.
8659         (gl_PREREQ_READ): New macro.
8660         * modules/read (Depends-on): Add msvc-inval.
8661         (configure.ac): Invoke gl_PREREQ_READ.
8662         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8663
8664 2011-09-23  Bruno Haible  <bruno@clisp.org>
8665
8666         close: Support for MSVC 9.
8667         * lib/close.c: Include <errno.h>, msvc-inval.h.
8668         (close_nothrow): New function.
8669         (rpl_close): Use it.
8670         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8671         invalid parameter handler.
8672         * modules/close (Depends-on): Add msvc-inval.
8673         * modules/dup2-tests (Depends-on): Add close.
8674         * modules/dup3-tests (Depends-on): Likewise.
8675         * modules/fcntl-tests (Depends-on): Likewise.
8676         * modules/spawn-pipe-tests (Depends-on): Likewise.
8677         * modules/unistd-safer-tests (Depends-on): Likewise.
8678         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8679
8680 2011-09-23  Bruno Haible  <bruno@clisp.org>
8681
8682         New module 'dup'.
8683         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8684         Allow replacement.
8685         * lib/dup.c: New file.
8686         * lib/fchdir.c (rpl_dup): Remove function.
8687         * m4/dup.m4: New file.
8688         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8689         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8690         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8691         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8692         * modules/dup: New file.
8693         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8694         'dup' module is in use.
8695         * modules/fdopendir (Depends-on): Add dup.
8696         * modules/fdutimensat-tests (Depends-on): Likewise.
8697         * modules/fts (Depends-on): Likewise.
8698         * modules/futimens-tests (Depends-on): Likewise.
8699         * modules/posix_spawnp-tests (Depends-on): Likewise.
8700         * modules/unistd-safer-tests (Depends-on): Likewise.
8701         * modules/utimens-tests (Depends-on): Likewise.
8702         * doc/posix-functions/dup.texi: Mention the new module and the problem
8703         on MSVC.
8704
8705 2011-09-23  Bruno Haible  <bruno@clisp.org>
8706
8707         getdtablesize: Support for MSVC 9.
8708         * lib/getdtablesize.c: Include msvc-inval.h.
8709         (_setmaxstdio_nothrow): New function.
8710         (_setmaxstdio): Redefine it.
8711         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8712         * modules/getdtablesize (Depends-on): Add msvc-inval.
8713         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8714
8715 2011-09-23  Bruno Haible  <bruno@clisp.org>
8716
8717         signal-h: Rename from signal.
8718         * modules/signal-h: Renamed from modules/signal.
8719         * modules/pthread_sigmask (Depends-on): Update.
8720         * modules/raise (Depends-on): Likewise.
8721         * modules/sigaction (Depends-on): Likewise.
8722         * modules/sigpipe (Depends-on): Likewise.
8723         * modules/sigprocmask (Depends-on): Likewise.
8724         * modules/sys_select (Depends-on): Likewise.
8725         * modules/signal-h-tests: Renamed from modules/signal-tests.
8726         (Files, Depends-on, Makefile.am): Update.
8727         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8728         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8729         (Files, Makefile.am): Update.
8730         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8731         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8732         * modules/signal: New placeholder file.
8733         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8734         * doc/posix-headers/signal.texi: Update.
8735         * NEWS: Mention the change.
8736
8737 2011-09-23  Bruno Haible  <bruno@clisp.org>
8738
8739         sigprocmask: Avoid crashes through signal() on MSVC 9.
8740         * lib/sigprocmask.c: Include msvc-inval.h.
8741         (signal_nothrow): New function.
8742         (signal): Redefine it.
8743         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8744         * modules/sigprocmask (Depends-on): Add msvc-inval.
8745         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8746
8747 2011-09-23  Bruno Haible  <bruno@clisp.org>
8748
8749         Tests for module 'raise'.
8750         * modules/raise-tests: New file.
8751         * tests/test-raise.c: New file.
8752
8753         raise: Support for MSVC.
8754         * lib/signal.in.h (raise): New declaration.
8755         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8756         for native Windows platforms.
8757         * m4/raise.m4: New file.
8758         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8759         HAVE_RAISE, REPLACE_RAISE.
8760         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8761         REPLACE_RAISE.
8762         * modules/raise (Status, Notice): Remove fields.
8763         (Files): Add m4/raise.m4.
8764         (Depends-on): Add signal, msvc-inval.
8765         (configure.ac): Use the common idioms.
8766         (Maintainer): Add me.
8767         * tests/test-signal-c++.cc: Check the signature of raise.
8768         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8769
8770 2011-09-23  Bruno Haible  <bruno@clisp.org>
8771
8772         pipe2: Fix compilation on pre-C99 compilers.
8773         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8774
8775 2011-09-23  Bruno Haible  <bruno@clisp.org>
8776
8777         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8778         * lib/msvc-nothrow.h: New file.
8779         * lib/msvc-nothrow.c: New file.
8780         * m4/msvc-nothrow.m4: New file.
8781         * modules/msvc-nothrow: New file.
8782         * lib/dup2.c: Include msvc-nothrow.h.
8783         (rpl_dup2): No need to protect _get_osfhandle call here.
8784         * lib/accept4.c: Include msvc-nothrow.h.
8785         * lib/error.c: Likewise.
8786         * lib/fcntl.c: Likewise.
8787         * lib/lseek.c: Likewise.
8788         * lib/nonblocking.c: Likewise.
8789         * lib/poll.c: Likewise.
8790         * lib/read.c: Likewise.
8791         * lib/select.c: Likewise.
8792         * lib/sockets.h: Likewise.
8793         * lib/sockets.c: Likewise.
8794         * lib/stdio-read.c: Likewise.
8795         * lib/stdio-write.c: Likewise.
8796         * lib/write.c: Likewise.
8797         * lib/w32sock.h: Likewise.
8798         * lib/w32spawn.h: Likewise.
8799         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8800         * lib/fsync.c: Likewise.
8801         * lib/isapipe.c: Likewise.
8802         * modules/dup2 (Depends-on): Add msvc-nothrow.
8803         * modules/accept4 (Depends-on): Likewise.
8804         * modules/error (Depends-on): Likewise.
8805         * modules/fcntl (Depends-on): Likewise.
8806         * modules/lseek (Depends-on): Likewise.
8807         * modules/nonblocking (Depends-on): Likewise.
8808         * modules/poll (Depends-on): Likewise.
8809         * modules/read (Depends-on): Likewise.
8810         * modules/select (Depends-on): Likewise.
8811         * modules/sockets (Depends-on): Likewise.
8812         * modules/sigpipe (Depends-on): Likewise.
8813         * modules/write (Depends-on): Likewise.
8814         * modules/accept (Depends-on): Likewise.
8815         * modules/bind (Depends-on): Likewise.
8816         * modules/connect (Depends-on): Likewise.
8817         * modules/gethostname (Depends-on): Likewise.
8818         * modules/getpeername (Depends-on): Likewise.
8819         * modules/getsockname (Depends-on): Likewise.
8820         * modules/getsockopt (Depends-on): Likewise.
8821         * modules/ioctl (Depends-on): Likewise.
8822         * modules/listen (Depends-on): Likewise.
8823         * modules/recv (Depends-on): Likewise.
8824         * modules/recvfrom (Depends-on): Likewise.
8825         * modules/send (Depends-on): Likewise.
8826         * modules/sendto (Depends-on): Likewise.
8827         * modules/setsockopt (Depends-on): Likewise.
8828         * modules/shutdown (Depends-on): Likewise.
8829         * modules/socket (Depends-on): Likewise.
8830         * modules/execute (Depends-on): Likewise.
8831         * modules/spawn-pipe (Depends-on): Likewise.
8832         * modules/flock (Depends-on): Likewise.
8833         * modules/fsync (Depends-on): Likewise.
8834         * modules/isapipe (Depends-on): Likewise.
8835         * tests/test-cloexec.c: Include msvc-nothrow.h.
8836         * tests/test-dup-safer.c: Likewise.
8837         * tests/test-dup2.c: Likewise.
8838         * tests/test-dup3.c: Likewise.
8839         * tests/test-fcntl.c: Likewise.
8840         * tests/test-pipe.c: Likewise.
8841         * tests/test-pipe2.c: Likewise.
8842         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8843         * modules/unistd-safer-tests (Depends-on): Likewise.
8844         * modules/dup2-tests (Depends-on): Likewise.
8845         * modules/dup3-tests (Depends-on): Likewise.
8846         * modules/fcntl-tests (Depends-on): Likewise.
8847         * modules/pipe-posix-tests (Depends-on): Likewise.
8848         * modules/pipe2-tests (Depends-on): Likewise.
8849
8850 2011-09-23  Bruno Haible  <bruno@clisp.org>
8851
8852         dup2: Make code more maintainable.
8853         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8854         (rpl_dup2): Use it.
8855         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8856         * modules/dup2 (configure.ac): Invoke it.
8857         Reported by Paul Eggert.
8858
8859 2011-09-23  Bruno Haible  <bruno@clisp.org>
8860
8861         msvc-inval: Fix compilation error.
8862         * lib/msvc-inval.h: Include <excpt.h>.
8863
8864 2011-09-23  Bruno Haible  <bruno@clisp.org>
8865
8866         mkdir: Tweak for MSVC 9.
8867         * lib/sys_stat.in.h: Update comments.
8868         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8869
8870         Tests for module 'chdir'.
8871         * modules/chdir-tests: New file.
8872         * tests/test-chdir.c: New file.
8873
8874         New module 'chdir'.
8875         * modules/chdir: New file.
8876         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8877         (chdir): New declaration.
8878         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8879         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8880         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8881         * tests/test-unistd-c++.cc: Check signature of chdir.
8882         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8883         * modules/chdir-long (Depends-on): Add chdir.
8884         * modules/fchdir (Depends-on): Likewise.
8885         * modules/rename (Depends-on): Likewise.
8886         * modules/savewd (Depends-on): Likewise.
8887
8888         rmdir: Support for mingw, MSVC 9.
8889         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8890         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8891
8892         getcwd: Tweak for MSVC 9.
8893         * lib/unistd.in.h: Update comments.
8894         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8895
8896 2011-09-22  Bruno Haible  <bruno@clisp.org>
8897
8898         strerror_r-posix: Avoid a link error on MSVC.
8899         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8900         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8901
8902 2011-09-22  Bruno Haible  <bruno@clisp.org>
8903
8904         select: Avoid link errors on MSVC.
8905         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8906         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8907         * modules/pselect (Link): Likewise.
8908         * NEWS: Mention the change.
8909         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8910         test-select-stdin against $(LIB_SELECT).
8911         * modules/pselect-tests (Makefile.am): Link test-pselect against
8912         $(LIB_SELECT).
8913
8914 2011-09-22  Bruno Haible  <bruno@clisp.org>
8915
8916         select: Avoid compilation error on MSVC.
8917         * lib/select.c: Don't include <stdbool.h>.
8918
8919 2011-09-21  Bruno Haible  <bruno@clisp.org>
8920
8921         Consolidate all uses of PATH_MAX in *.m4 files.
8922         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8923         macros.
8924         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8925         and gl_PATHMAX_SNIPPET.
8926         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8927         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8928         * modules/chdir-long (Files): Add m4/pathmax.m4.
8929         * modules/getcwd (Files): Likewise.
8930
8931 2011-09-21  Bruno Haible  <bruno@clisp.org>
8932
8933         ftruncate: Un-deprecate, concentrate on Win32 support.
8934         * modules/ftruncate (Status, Notice): Remove sections.
8935         (Depends-on): Add largefile.
8936         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8937         non-mingw platforms.
8938         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8939         include <io.h>.
8940         * modules/perror-tests (Depends-on): Add ftruncate.
8941         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8942         'ftruncate' module.
8943
8944 2011-09-21  Bruno Haible  <bruno@clisp.org>
8945
8946         Add dependencies to new dirent related modules.
8947         * modules/opendir (Depends-on): Add closedir.
8948         * modules/getcwd (Depends-on): Add opendir, closedir.
8949         * modules/dirent-safer-tests (Depends-on): Likewise.
8950         * modules/fdopendir-tests (Depends-on): Likewise.
8951         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8952         * modules/renameat-tests (Depends-on): Likewise.
8953
8954 2011-09-21  Bruno Haible  <bruno@clisp.org>
8955
8956         opendir: Avoid compilation error on mingw.
8957         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8958         * modules/opendir (Depends-on): Add unistd.
8959
8960 2011-09-21  Bruno Haible  <bruno@clisp.org>
8961
8962         ftruncate tests: Avoid a test failure on mingw.
8963         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8964
8965 2011-09-21  Bruno Haible  <bruno@clisp.org>
8966
8967         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8968         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8969         native Windows.
8970
8971 2011-09-21  Bruno Haible  <bruno@clisp.org>
8972
8973         New module 'fdopen'.
8974         * lib/stdio.in.h (fdopen): New declaration.
8975         * lib/fdopen.c: New file.
8976         * m4/fdopen.m4: New file.
8977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8978         REPLACE_FDOPEN.
8979         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8980         REPLACE_FDOPEN.
8981         * modules/fdopen: New file.
8982         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8983         * tests/test-stdio-c++.cc: Check signature of fdopen.
8984         * doc/posix-functions/fdopen.texi: Mention the new module.
8985
8986 2011-09-21  Bruno Haible  <bruno@clisp.org>
8987
8988         unlockpt tests: Avoid test failure on NetBSD 5.1.
8989         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8990         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8991
8992 2011-09-21  Bruno Haible  <bruno@clisp.org>
8993
8994         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8995         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8996         * tests/test-getlogin_r.c (main): Likewise.
8997
8998 2011-09-20  Bruno Haible  <bruno@clisp.org>
8999
9000         time tests: Don't require pid_t.
9001         * doc/posix-headers/time.texi: Revert last change.
9002         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9003         * tests/test-time.c: Comment out the check for pid_t.
9004
9005 2011-09-20  Bruno Haible  <bruno@clisp.org>
9006
9007         fsync tests: Avoid a test failure on mingw.
9008         * tests/test-fsync.c (main): Allow a failure with EIO.
9009
9010 2011-09-20  Bruno Haible  <bruno@clisp.org>
9011
9012         euidaccess: Update comments.
9013         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9014
9015 2011-09-20  Bruno Haible  <bruno@clisp.org>
9016
9017         Ensure EBADF returns for socket functions on mingw.
9018         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9019         descriptor is invalid.
9020         * lib/bind.c (rpl_bind): Likewise.
9021         * lib/connect.c (rpl_connect): Likewise.
9022         * lib/getpeername.c (rpl_getpeername): Likewise.
9023         * lib/getsockname.c (rpl_getsockname): Likewise.
9024         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9025         * lib/listen.c (rpl_listen): Likewise.
9026         * lib/recv.c (rpl_recv): Likewise.
9027         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9028         * lib/send.c (rpl_send): Likewise.
9029         * lib/sendto.c (rpl_sendto): Likewise.
9030         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9031         * lib/shutdown.c (rpl_shutdown): Likewise.
9032
9033 2011-09-20  Bruno Haible  <bruno@clisp.org>
9034
9035         select tests: EBADF tests.
9036         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9037         test_bad_fd): New functions.
9038         (test_function): Invoke also test_bad_fd.
9039
9040 2011-09-20  Bruno Haible  <bruno@clisp.org>
9041
9042         Tests for module 'posix_spawn_file_actions_addopen.
9043         * modules/posix_spawn_file_actions_addopen-tests: New file.
9044         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9045
9046         Tests for module 'posix_spawn_file_actions_adddup2'.
9047         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9048         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9049
9050         Tests for module 'posix_spawn_file_actions_addclose'.
9051         * modules/posix_spawn_file_actions_addclose-tests: New file.
9052         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9053
9054 2011-09-20  Bruno Haible  <bruno@clisp.org>
9055
9056         Tests for module 'unlockpt'.
9057         * modules/unlockpt-tests: New file.
9058         * tests/test-unlockpt.c: New file.
9059         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9060
9061         Tests for module 'grantpt'.
9062         * modules/grantpt-tests: New file.
9063         * tests/test-grantpt.c: New file.
9064         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9065
9066 2011-09-20  Bruno Haible  <bruno@clisp.org>
9067
9068         freopen tests: EBADF tests.
9069         * tests/test-freopen.c: Include errno.h, unistd.h.
9070         (main): Add tests for EBADF, commented out for the moment.
9071
9072         fclose tests: EBADF tests.
9073         * tests/test-fclose.c (main): Add tests for EBADF.
9074
9075         fflush tests: EBADF tests.
9076         * tests/test-fflush.c: Include errno.h, macros.h.
9077         (main): Add tests for EBADF.
9078
9079         ftello tests: EBADF tests.
9080         * tests/test-ftello4.sh: New file.
9081         * tests/test-ftello4.c: New file.
9082         * modules/ftello-tests (Files): Add them.
9083         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9084
9085         fseeko tests: EBADF tests.
9086         * tests/test-fseeko4.sh: New file.
9087         * tests/test-fseeko4.c: New file.
9088         * modules/fseeko-tests (Files): Add them.
9089         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9090
9091         Tests for function fputc().
9092         * modules/fputc-tests: New file.
9093         * tests/test-fputc.c: New file.
9094         * modules/stdio-tests (Depends-on): Add fputc-tests.
9095
9096         Tests for function fgetc().
9097         * modules/fgetc-tests: New file.
9098         * tests/test-fgetc.c: New file.
9099         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9100
9101         Tests for function fdopen().
9102         * modules/fdopen-tests: New file.
9103         * tests/test-fdopen.c: New file.
9104         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9105
9106         Tests for module 'vdprintf'.
9107         * modules/vdprintf-tests: New file.
9108         * tests/test-vdprintf.c: New file.
9109
9110         Tests for module 'dprintf'.
9111         * modules/dprintf-tests: New file.
9112         * tests/test-dprintf.c: New file.
9113
9114 2011-09-20  Bruno Haible  <bruno@clisp.org>
9115
9116         Tests for module 'ioctl'.
9117         * modules/ioctl-tests: New file.
9118         * tests/test-ioctl.c: New file.
9119
9120 2011-09-20  Bruno Haible  <bruno@clisp.org>
9121
9122         fcntl tests: EBADF tests.
9123         * tests/test-fcntl.c (main): Add more tests for EBADF.
9124
9125 2011-09-20  Bruno Haible  <bruno@clisp.org>
9126
9127         utimensat tests: EBADF tests.
9128         * tests/test-utimensat.c (main): Add tests for EBADF.
9129
9130         renameat tests: EBADF tests.
9131         * tests/test-renameat.c (main): Add tests for EBADF.
9132
9133         mkfifoat tests: EBADF tests.
9134         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9135
9136         readlinkat tests: EBADF tests.
9137         * tests/test-readlinkat.c (main): Add tests for EBADF.
9138
9139         symlinkat tests: EBADF tests.
9140         * tests/test-symlinkat.c (main): Add tests for EBADF.
9141
9142         linkat tests: EBADF tests.
9143         * tests/test-linkat.c (main): Add tests for EBADF.
9144
9145         Tests for module 'faccessat'.
9146         * modules/faccessat-tests: New file.
9147         * tests/test-faccessat.c: New file.
9148
9149         fdopendir tests: EBADF tests.
9150         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9151
9152         openat tests: EBADF tests.
9153         * tests/test-fchownat.c (main): Add tests for EBADF.
9154         * tests/test-fstatat.c (main): Likewise.
9155         * tests/test-mkdirat.c (main): Likewise.
9156         * tests/test-openat.c (main): Likewise.
9157         * tests/test-unlinkat.c (main): Likewise.
9158         * tests/test-fchmodat.c: New file.
9159         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9160         (Makefile.am): Also run 'test-fchmodat'.
9161
9162 2011-09-20  Bruno Haible  <bruno@clisp.org>
9163
9164         utimens, futimens, fdutimensat tests: EBADF tests.
9165         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9166
9167         Tests for function fstat().
9168         * modules/fstat-tests: New file.
9169         * tests/test-fstat.c: New file.
9170         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9171
9172 2011-09-20  Bruno Haible  <bruno@clisp.org>
9173
9174         test-ttyname_r tests: EBADF tests.
9175         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9176
9177         Tests for module 'isatty'.
9178         * modules/isatty-tests: New file.
9179         * tests/test-isatty.c: New file.
9180
9181         Tests for module 'write'.
9182         * modules/write-tests: New file.
9183         * tests/test-write.c: New file.
9184
9185         Tests for module 'read'.
9186         * modules/read-tests: New file.
9187         * tests/test-read.c: New file.
9188
9189         pwrite tests: EBADF tests.
9190         * tests/test-pwrite.c (main): Add tests for EBADF.
9191
9192         pread tests: EBADF tests.
9193         * tests/test-pread.c (main): Add tests for EBADF.
9194
9195         lseek tests: EBADF tests.
9196         * tests/test-lseek.c (main): Add more tests for EBADF.
9197
9198         Tests for module 'ftruncate'.
9199         * modules/ftruncate-tests: New file.
9200         * tests/test-ftruncate.sh: New file.
9201         * tests/test-ftruncate.c: New file.
9202
9203         fsync tests: EBADF tests.
9204         * tests/test-fsync.c (main): Add more tests for EBADF.
9205
9206         fdatasync tests: EBADF tests.
9207         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9208
9209         Tests for module 'fchown'.
9210         * modules/fchown-tests: New file.
9211         * tests/test-fchown.c: New file.
9212
9213         Tests for module 'fchmod'.
9214         * modules/fchmod-tests: New file.
9215         * tests/test-fchmod.c: New file.
9216
9217         fchdir tests: EBADF tests.
9218         * tests/test-fchdir.c (main): Add more tests for EBADF.
9219
9220         dup2 tests: EBADF tests.
9221         * tests/test-dup2.c (main): Add more tests for EBADF.
9222
9223         Tests for module 'dup'.
9224         * modules/dup-tests: New file.
9225         * tests/test-dup.c: New file.
9226
9227         Tests for module 'close'.
9228         * modules/close-tests: New file.
9229         * tests/test-close.c: New file.
9230
9231 2011-09-20  Bruno Haible  <bruno@clisp.org>
9232
9233         Tests for module 'shutdown'.
9234         * modules/shutdown-tests: New file.
9235         * tests/test-shutdown.c: New file.
9236
9237         Tests for module 'setsockopt'.
9238         * modules/setsockopt-tests: New file.
9239         * tests/test-setsockopt.c: New file.
9240
9241         Tests for module 'sendto'.
9242         * modules/sendto-tests: New file.
9243         * tests/test-sendto.c: New file.
9244
9245         Tests for module 'send'.
9246         * modules/send-tests: New file.
9247         * tests/test-send.c: New file.
9248
9249         Tests for module 'recvfrom'.
9250         * modules/recvfrom-tests: New file.
9251         * tests/test-recvfrom.c: New file.
9252
9253         Tests for module 'recv'.
9254         * modules/recv-tests: New file.
9255         * tests/test-recv.c: New file.
9256
9257         Tests for module 'listen'.
9258         * modules/listen-tests: New file.
9259         * tests/test-listen.c: New file.
9260
9261         Tests for module 'getsockopt'.
9262         * modules/getsockopt-tests: New file.
9263         * tests/test-getsockopt.c: New file.
9264
9265         Tests for module 'getsockname'.
9266         * modules/getsockname-tests: New file.
9267         * tests/test-getsockname.c: New file.
9268
9269         Tests for module 'getpeername'.
9270         * modules/getpeername-tests: New file.
9271         * tests/test-getpeername.c: New file.
9272
9273         Tests for module 'connect'.
9274         * modules/connect-tests: New file.
9275         * tests/test-connect.c: New file.
9276
9277         Tests for module 'bind'.
9278         * modules/bind-tests: New file.
9279         * tests/test-bind.c: New file.
9280
9281         accept4 tests: Fix for native Windows.
9282         * tests/test-accept4.c: Include sockets.h.
9283         (main): Invoke gl_sockets_startup.
9284         * modules/accept4-tests (Depends-on): Add sockets.
9285
9286         accept tests: Fix for native Windows.
9287         * tests/test-accept.c: Include sockets.h.
9288         (main): Invoke gl_sockets_startup.
9289         * modules/accept-tests (Depends-on): Add sockets.
9290
9291 2011-09-19  Bruno Haible  <bruno@clisp.org>
9292
9293         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9294         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9295         do...while(0).
9296         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9297         Suggested by Paul Eggert.
9298
9299 2011-09-19  Bruno Haible  <bruno@clisp.org>
9300
9301         sched: Ensure pid_t is defined.
9302         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9303         not define pid_t.
9304         * lib/sched.in.h: Include <sys/types.h>.
9305         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9307
9308 2011-09-19  Bruno Haible  <bruno@clisp.org>
9309
9310         msvc-inval: Ensure the entire expansion is a single statement.
9311         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9312         of braces.
9313
9314 2011-09-19  Jim Meyering  <meyering@redhat.com>
9315
9316         tests: use printf, not echo in init.sh's warn_ function
9317         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9318         misbehave when given strings containing a backslash or starting
9319         with e.g., -n.  James Youngman suggested setting IFS.
9320
9321 2011-09-19  Eric Blake  <eblake@redhat.com>
9322
9323         futimens: enhance test
9324         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9325         closed non-negative fd.
9326
9327         date: accept 'hence' as opposite of 'ago'
9328         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9329         * tests/test-parse-datetime.c (main): Enhance test.
9330         Suggested by Jesse Wilson.
9331
9332 2011-09-19  Jim Meyering  <meyering@redhat.com>
9333
9334         getcwd: don't fail in a deep directory on a system without openat
9335         Before this change, getcwd would fail when called from a directory
9336         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9337         the non-openat implementation used "..", "../..", "../../..", etc.
9338         to access ancestor directories.  With too many, that string would
9339         be longer than PATH_MAX.
9340         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9341         using gnulib's openat replacement.
9342         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9343         we're using the replacement function.
9344
9345 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9346
9347         maint.mk: avoid warnings from perl about missing files
9348         * top/maint.mk (def_sym_regex): Ignore files listed in
9349         $(gl_other_headers_) that do not exist, say because a project
9350         does not use a corresponding module.
9351
9352 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9353
9354         stat: use pathmax.h only if needed
9355         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9356         This is better for Emacs, which does not have a mingw port and
9357         therefore can avoid the pathmax module.
9358
9359         utimens: remove dependency on dup2
9360         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9361         to work around the Linux kernel bug.
9362         * modules/utimens (Depends-on): Remove dup2.
9363
9364 2011-09-18  Bruno Haible  <bruno@clisp.org>
9365
9366         inet_ntop, inet_pton: Look for it also in libresolv.
9367         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9368         libnsl, search for it in libresolv.
9369         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9370         Needed on Solaris 7.
9371
9372 2011-09-18  Bruno Haible  <bruno@clisp.org>
9373
9374         accept, accept4 tests: Avoid link error on Solaris.
9375         * modules/accept-tests (Makefile.am): Link test-accept against
9376         $(LIBSOCKET).
9377         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9378         $(LIBSOCKET).
9379
9380         accept4: Avoid link error on Solaris.
9381         * modules/accept4 (Link): New section.
9382
9383         socket functions: Avoid link errors on Solaris.
9384         * modules/accept (Depends-on): Add socketlib.
9385         (Link): New section.
9386         * modules/bind (Depends-on): Add socketlib.
9387         (Link): New section.
9388         * modules/connect (Depends-on): Add socketlib.
9389         (Link): New section.
9390         * modules/getpeername (Depends-on): Add socketlib.
9391         (Link): New section.
9392         * modules/getsockname (Depends-on): Add socketlib.
9393         (Link): New section.
9394         * modules/getsockopt (Depends-on): Add socketlib.
9395         (Link): New section.
9396         * modules/listen (Depends-on): Add socketlib.
9397         (Link): New section.
9398         * modules/recv (Depends-on): Add socketlib.
9399         (Link): New section.
9400         * modules/recvfrom (Depends-on): Add socketlib.
9401         (Link): New section.
9402         * modules/send (Depends-on): Add socketlib.
9403         (Link): New section.
9404         * modules/sendto (Depends-on): Add socketlib.
9405         (Link): New section.
9406         * modules/setsockopt (Depends-on): Add socketlib.
9407         (Link): New section.
9408         * modules/shutdown (Depends-on): Add socketlib.
9409         (Link): New section.
9410         * modules/socket (Depends-on): Add socketlib.
9411         (Link): New section.
9412
9413 2011-09-18  Bruno Haible  <bruno@clisp.org>
9414
9415         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9416         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9417         than 5 seconds.
9418         * modules/ptsname-tests (configure.ac): Test for alarm.
9419
9420 2011-09-18  Bruno Haible  <bruno@clisp.org>
9421
9422         posix_spawn_file_actions_add*: Fix module dependencies.
9423         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9424         posix_spawn_file_actions_init.
9425         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9426         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9427
9428 2011-09-18  Bruno Haible  <bruno@clisp.org>
9429
9430         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9431         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9432         * tests/test-renameat.c (main): Likewise.
9433
9434 2011-09-18  Bruno Haible  <bruno@clisp.org>
9435
9436         Tests for module 'accept4'.
9437         * modules/accept4-tests: New file.
9438         * tests/test-accept4.c: New file.
9439
9440 2011-09-18  Bruno Haible  <bruno@clisp.org>
9441
9442         Tests for module 'accept'.
9443         * modules/accept-tests: New file.
9444         * tests/test-accept.c: New file.
9445
9446 2011-09-18  Bruno Haible  <bruno@clisp.org>
9447
9448         dup2: Support for MSVC.
9449         * lib/dup2.c: Include msvc-inval.h.
9450         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9451         _get_osfhandle calls.
9452         * modules/dup2 (Depends-on): Add msvc-inval.
9453         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9454
9455         New module 'msvc-inval'.
9456         * lib/msvc-inval.h: New file.
9457         * lib/msvc-inval.c: New file.
9458         * m4/msvc-inval.m4: New file.
9459         * modules/msvc-inval: New file.
9460
9461 2011-09-17  Bruno Haible  <bruno@clisp.org>
9462
9463         Tests for module 'pclose'.
9464         * modules/pclose-tests: New file.
9465
9466         New module 'pclose'.
9467         * lib/stdio.in.h (pclose): New declaration.
9468         * lib/pclose.c: New file.
9469         * m4/pclose.m4: New file.
9470         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9471         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9472         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9473         * modules/pclose: New file.
9474         * modules/popen-tests (Depends-on): Add pclose.
9475         * modules/popen-safer-tests (Depends-on): Likewise.
9476         * doc/posix-functions/pclose.texi: Mention the new module.
9477
9478 2011-09-17  Bruno Haible  <bruno@clisp.org>
9479
9480         popen: Support for MSVC.
9481         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9482         * lib/popen.c (popen): Provide alternate definition for native Windows.
9483         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9485         * modules/popen (Depends-on, configure.ac): Update condition.
9486         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9487         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9488         fixed.
9489
9490 2011-09-17  Bruno Haible  <bruno@clisp.org>
9491
9492         isnanl, isnand, isnanf: Work around MSVC bug.
9493         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9494
9495 2011-09-17  Bruno Haible  <bruno@clisp.org>
9496
9497         sys_socket tests: Fix recent mistake.
9498         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9499
9500 2011-09-17  Bruno Haible  <bruno@clisp.org>
9501
9502         putenv: Support for MSVC.
9503         * modules/putenv (Depends-on): Add environ.
9504         * lib/putenv.c (environ): Disable declaration.
9505         * lib/unistd.in.h: Update comment.
9506
9507 2011-09-17  Bruno Haible  <bruno@clisp.org>
9508
9509         math: Avoid macro redefinition warnings on MSVC.
9510         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9511         Undefine before redefining.
9512
9513 2011-09-17  Bruno Haible  <bruno@clisp.org>
9514
9515         doc: Mention functions which are declared as macros.
9516         * doc/posix-functions/*[fl].texi: Mention that some functions are
9517         defined as macros with arguments only.
9518
9519 2011-09-17  Bruno Haible  <bruno@clisp.org>
9520
9521         Add dependencies to new dirent related modules.
9522         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9523         * modules/fts (Depends-on): Likewise.
9524         * modules/glob (Depends-on): Likewise.
9525         * modules/savedir (Depends-on): Likewise.
9526         * modules/scandir (Depends-on): Likewise.
9527         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9528         * modules/fdopendir (Depends-on): Add opendir.
9529
9530 2011-09-17  Bruno Haible  <bruno@clisp.org>
9531
9532         inet_pton: Support for MSVC on Windows Vista or newer.
9533         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9534         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9535         HAVE_DECL_INET_PTON is defined.
9536         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9537         On platforms with <winsock2.h>, test whether inet_pton is declared in
9538         <ws2tcpip.h>. If so, arrange to replace it.
9539         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9540         REPLACE_INET_PTON.
9541         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9542         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9543         (Depends-on, configure.ac): Update condition.
9544         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9545
9546 2011-09-17  Bruno Haible  <bruno@clisp.org>
9547
9548         inet_ntop: Support for MSVC on Windows Vista or newer.
9549         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9550         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9551         HAVE_DECL_INET_NTOP is defined.
9552         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9553         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9554         <ws2tcpip.h>. If so, arrange to replace it.
9555         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9556         REPLACE_INET_NTOP.
9557         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9558         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9559         (Depends-on, configure.ac): Update condition.
9560         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9561
9562 2011-09-16  Eric Blake  <eblake@redhat.com>
9563
9564         test-fsync: yet another enhancement
9565         * tests/test-fsync.c (main): Also test behavior on read-only text
9566         file.
9567
9568 2011-09-16  Bruno Haible  <bruno@clisp.org>
9569
9570         Enhance fsync, fdatasync tests.
9571         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9572         * tests/test-fdatasync.c (main): Likewise.
9573
9574 2011-09-16  Bruno Haible  <bruno@clisp.org>
9575
9576         Support for MSVC compiler: Ensure mode_t gets defined.
9577         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9578         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9579         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9580         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9581         * tests/test-fcntl-h.c: Check that mode_t is defined.
9582         * tests/test-sys_stat.c: Likewise.
9583         * tests/test-sys_types.c: Likewise.
9584         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9585         * doc/posix-headers/sys_stat.texi: Likewise.
9586         * doc/posix-headers/sys_types.texi: Likewise.
9587
9588 2011-09-16  Bruno Haible  <bruno@clisp.org>
9589
9590         sys_stat: Support for MSVC.
9591         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9592         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9593         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9594         MSVC.
9595
9596 2011-09-16  Bruno Haible  <bruno@clisp.org>
9597
9598         Support for MSVC compiler: Ensure off_t gets defined.
9599         * lib/unistd.in.h: Include <sys/types.h>.
9600         * tests/test-fcntl-h.c: Check that off_t is defined.
9601         * tests/test-sys_stat.c: Likewise.
9602         * tests/test-sys_types.c: Likewise.
9603
9604 2011-09-16  Eric Blake  <eblake@redhat.com>
9605
9606         fdatasync: port to Solaris
9607         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9608         * modules/fdatasync (Link): Document it.
9609         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9610
9611         fdatasync: port to MacOS X 10.7
9612         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9613         declared.
9614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9615         * modules/unistd (Makefile.am): Substitute it.
9616         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9617         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9618
9619         fdatasync: minor improvements
9620         * modules/fdatasync (Depends-on): Add condition for fsync.
9621         * lib/fdatasync.c (fdatasync): Add comment.
9622         * tests/test-unistd-c++.cc: Test fdatasync.
9623
9624         unistd: update refs to newer POSIX
9625         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9626         Suggested by Bruno Haible.
9627
9628         fdatasync: new module
9629         * modules/fsync (Description): Document difference to fdatasync.
9630         * modules/fdatasync: New module.
9631         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9632         * lib/fdatasync.c (fdatasync): Likewise.
9633         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9634         defaults.
9635         * modules/unistd (Makefile.am): Set witnesses.
9636         * lib/unistd.in.h (fdatasync): Declare.
9637         * MODULES.html.sh: Document it.
9638         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9639         * modules/fdatasync-tests: New test.
9640         * tests/test-fdatasync.c: Likewise.
9641
9642 2011-09-16  Eric Blake  <eblake@redhat.com>
9643
9644         test-fsync: enhance tests
9645         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9646         * tests/test-fsync.c (main): Enhance test.
9647
9648 2011-09-15  Bruno Haible  <bruno@clisp.org>
9649
9650         Support for MSVC compiler: Ensure ssize_t gets defined.
9651         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9652         * doc/posix-headers/stdio.texi: Likewise.
9653         * modules/stdio (Depends-on): Add ssize_t.
9654         * modules/sys_socket (Depends-on): Likewise.
9655         * modules/sys_types (Depends-on): Likewise.
9656         * modules/sys_uio (Depends-on): Likewise.
9657         * modules/unistd (Depends-on): Likewise.
9658         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9659         * tests/test-sys_types.c: Check that ssize_t is defined.
9660
9661 2011-09-14  Bruno Haible  <bruno@clisp.org>
9662
9663         Avoid using #, the m4 comment starter character, near brackets.
9664         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9665         delimiter character in sed expressions.
9666         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9667         Suggested by Eric Blake.
9668
9669         Properly quote AC_CHECK_DECLS' 4th argument.
9670         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9671         argument.
9672         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9673         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9674         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9675         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9676         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9677         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9678         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9679         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9680         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9681         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9682         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9683         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9684         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9685         * m4/isinf.m4 (gl_ISINF): Likewise.
9686         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9687         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9688         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9689         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9692         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9693         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9694         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9695         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9696         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9699         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9700         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9701         Reported by Eric Blake.
9702
9703         Properly quote AC_CHECK_DECL's 4th argument.
9704         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9705         argument.
9706         * m4/argp.m4 (gl_ARGP): Likewise.
9707         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9708         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9709         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9710         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9711         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9712         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9714         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9715         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9716         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9717         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9718         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9719         Reported by Eric Blake.
9720
9721 2011-09-14  Eric Blake  <eblake@redhat.com>
9722
9723         opendir: avoid compile warning
9724         * lib/opendir.c (includes): Always include errno.h.
9725         Reported by Tatsuro MATSUOKA.
9726
9727 2011-09-14  Jim Meyering  <meyering@redhat.com>
9728
9729         maint.mk: sc_tight_scope: propagate failure from sub-make
9730         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9731         Reported by Martin von Gagern.
9732
9733 2011-09-13  Bruno Haible  <bruno@clisp.org>
9734
9735         tempname: Support for MSVC.
9736         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9737         MSVC.
9738         * modules/tempname (Depends-on): Add fcntl-h.
9739
9740 2011-09-13  Bruno Haible  <bruno@clisp.org>
9741
9742         sys_time: Support for MSVC.
9743         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9744         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9745         include <winsock2.h>.
9746         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9747         function declarations that collide with POSIX.
9748         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9749         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9750
9751 2011-09-13  Bruno Haible  <bruno@clisp.org>
9752
9753         stat: Support for MSVC.
9754         * lib/stat.c: Include pathmax.h.
9755         * modules/stat (Depends-on): Add pathmax.
9756
9757         pathmax: Support for native Windows.
9758         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9759
9760 2011-09-12  Bruno Haible  <bruno@clisp.org>
9761
9762         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9763         * lib/dirent.in.h (struct dirent): New type.
9764         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9765         DT_WHT): New macros.
9766         (DIR): New type.
9767         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9768         (readdir, rewinddir): New declarations.
9769         * lib/dirent-private.h: New file.
9770         * lib/opendir.c: New file.
9771         * lib/readdir.c: New file.
9772         * lib/rewinddir.c: New file.
9773         * lib/closedir.c: New file.
9774         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9775         * m4/opendir.m4: New file.
9776         * m4/readdir.m4: New file.
9777         * m4/rewinddir.m4: New file.
9778         * m4/closedir.m4: New file.
9779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9780         REPLACE_CLOSEDIR here.
9781         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9782         readdir, rewinddir are declared.
9783         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9784         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9785         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9786         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9787         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9788         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9789         * modules/opendir: New file.
9790         * modules/readdir: New file.
9791         * modules/rewinddir: New file.
9792         * modules/closedir: New file.
9793         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9794         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9795         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9796         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9797         * NEWS: Mention the 'fchdir' change.
9798
9799 2011-09-11  Bruno Haible  <bruno@clisp.org>
9800
9801         asm-underscore.m4: Support for MSVC.
9802         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9803         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9804
9805 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9806
9807         Doc about crypt functions.
9808         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9809         needing for _GNU_SOURCE to get crypt.
9810         * doc/posix-functions/encrypt.texi: Likewise.
9811         * doc/posix-functions/setkey.texi: Likewise.
9812
9813 2011-09-11  Bruno Haible  <bruno@clisp.org>
9814
9815         doc: Update regarding MSVC 9.
9816         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9817         tested".
9818         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9819         * doc/posix-headers/*.texi: Likewise.
9820         * doc/pastposix-functions/*.texi: Likewise.
9821         * doc/glibc-functions/*.texi: Likewise.
9822         * doc/glibc-headers/*.texi: Likewise.
9823
9824 2011-09-11  Bruno Haible  <bruno@clisp.org>
9825
9826         unistd et al.: Don't assume <unistd.h> exists.
9827         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9828         does not exist.
9829         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9830         exist. But include <stdlib.h>.
9831         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9832         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9833         symlink() does not exist.
9834         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9835         include <io.h> instead.
9836         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9837         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9838         include <direct.h> instead.
9839         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9840         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9841         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9842         <io.h> instead.
9843         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9844         correctly if the system does not have hard links.
9845         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9846         <direct.h> instead.
9847         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9848         it when looking for function declarations.
9849         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9850         <direct.h> and <io.h> instead.
9851         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9852
9853 2011-09-11  Bruno Haible  <bruno@clisp.org>
9854
9855         strcase: Support for MSVC.
9856         * modules/strcase (Status, Notice): Remove obsoletion mark.
9857         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9858         * doc/posix-functions/strncasecmp.texi: Likewise.
9859
9860         strings: Don't assume <strings.h> exists.
9861         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9862         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9863         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9864         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9865
9866 2011-09-11  Bruno Haible  <bruno@clisp.org>
9867
9868         dirent: Don't assume <dirent.h> exists.
9869         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9870         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9871         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9872         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9873
9874 2011-09-11  Bruno Haible  <bruno@clisp.org>
9875
9876         Fix wint_t on MSVC.
9877         * lib/wchar.in.h (wint_t): On MSVC, override it.
9878         * lib/wctype.in.h (wint_t): Likewise.
9879         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9880         MSVC.
9881         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9882         * doc/posix-headers/wctype.texi: Likewise.
9883
9884 2011-09-11  Bruno Haible  <bruno@clisp.org>
9885
9886         sys_types: Fix typo.
9887         * lib/sys_types.in.h: Fix typo in comment.
9888         Reported by Paul Eggert.
9889
9890         Support for MSVC compiler: Ensure size_t gets defined.
9891         * modules/strings (Depends-on): Add 'sys_types'.
9892         * modules/sys_uio (Depends-on): Likewise.
9893         * lib/sys_uio.in.h: Update comment.
9894
9895         C++ tests for module 'sys_types'.
9896         * modules/sys_types-c++-tests: New file.
9897         * tests/test-sys_types-c++.cc: New file.
9898
9899         Tests for module 'sys_types'.
9900         * modules/sys_types-tests: New file.
9901         * tests/test-sys_types.c: New file.
9902
9903         New module 'sys_types'.
9904         * lib/sys_types.in.h: New file.
9905         * m4/sys_types_h.m4: New file.
9906         * modules/sys_types: New file.
9907         * doc/posix-headers/sys_types.texi: Mention the new module and the
9908         size_t problem on MSVC 9.
9909
9910 2011-09-11  Bruno Haible  <bruno@clisp.org>
9911
9912         Support for MSVC compiler: Avoid division by a literal 0.
9913         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9914         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9915         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9916         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9917         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9918         * tests/infinity.h: New file.
9919         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9920         on MSVC.
9921         * tests/test-ceilf1.c: Include infinity.h.
9922         (main): Use Infinityf.
9923         * tests/test-ceil1.c: Include infinity.h.
9924         (main): Use Infinityd.
9925         * tests/test-ceill.c: Include infinity.h.
9926         (main): Use Infinityl.
9927         * tests/test-dprintf-posix.c: Include infinity.h.
9928         (test_function): Use Infinityd.
9929         * tests/test-floorf1.c: Include infinity.h.
9930         (main): Use Infinityf.
9931         * tests/test-floor1.c: Include infinity.h.
9932         (main): Use Infinityd.
9933         * tests/test-floorl.c: Include infinity.h.
9934         (main): Use Infinityl.
9935         * tests/test-fprintf-posix.c: Include infinity.h.
9936         (test_function): Use Infinityd.
9937         * tests/test-frexp.c: Include infinity.h.
9938         (main): Use Infinityd.
9939         * tests/test-frexpl.c: Include infinity.h.
9940         (main): Use Infinityl.
9941         * tests/test-isfinite.c: Include infinity.h.
9942         (test_isfinitef): Use Infinityf.
9943         (test_isfinited): Use Infinityd.
9944         (test_isfinitel): Use Infinityl.
9945         * tests/test-isinf.c: Include infinity.h.
9946         (test_isinff): Use Infinityf.
9947         (test_isinfd): Use Infinityd.
9948         (test_isinfl): Use Infinityl.
9949         * tests/test-isnan.c: Include infinity.h.
9950         (test_float): Use Infinityf.
9951         (test_double): Use Infinityd.
9952         (test_long_double): Use Infinityl.
9953         * tests/test-isnanf.h: Include infinity.h.
9954         (main): Use Infinityf.
9955         * tests/test-isnand.h: Include infinity.h.
9956         (main): Use Infinityd.
9957         * tests/test-isnanl.h: Include infinity.h.
9958         (main): Use Infinityl.
9959         * tests/test-ldexpl.c: Include infinity.h.
9960         (main): Use Infinityl.
9961         * tests/test-printf-posix.h: Include infinity.h.
9962         (test_function): Use Infinityd.
9963         * tests/test-roundf1.c: Include infinity.h.
9964         (main): Use Infinityf.
9965         * tests/test-round1.c: Include infinity.h.
9966         (main): Use Infinityd.
9967         * tests/test-roundl.c: Include infinity.h.
9968         (main): Use Infinityl.
9969         * tests/test-signbit.c: Include infinity.h.
9970         (test_signbitf): Use Infinityf.
9971         (test_signbitd): Use Infinityd.
9972         (test_signbitl): Use Infinityl.
9973         * tests/test-snprintf-posix.h: Include infinity.h.
9974         (test_function): Use Infinityd, Infinityl.
9975         * tests/test-sprintf-posix.h: Include infinity.h.
9976         (test_function): Use Infinityd, Infinityl.
9977         * tests/test-truncf1.c: Include infinity.h.
9978         (main): Use Infinityf.
9979         * tests/test-trunc1.c: Include infinity.h.
9980         (main): Use Infinityd.
9981         * tests/test-truncl.c: Include infinity.h.
9982         (main): Use Infinityl.
9983         * tests/test-vasnprintf-posix.c: Include infinity.h.
9984         (test_function): Use Infinityd, Infinityl.
9985         * tests/test-vasprintf-posix.c: Include infinity.h.
9986         (test_function): Use Infinityd, Infinityl.
9987         * modules/ceilf-tests (Files): Add tests/infinity.h.
9988         * modules/ceil-tests (Files): Likewise.
9989         * modules/ceill-tests (Files): Likewise.
9990         * modules/dprintf-posix-tests (Files): Likewise.
9991         * modules/floorf-tests (Files): Likewise.
9992         * modules/floor-tests (Files): Likewise.
9993         * modules/floorl-tests (Files): Likewise.
9994         * modules/fprintf-posix-tests (Files): Likewise.
9995         * modules/frexp-tests (Files): Likewise.
9996         * modules/frexp-nolibm-tests (Files): Likewise.
9997         * modules/frexpl-tests (Files): Likewise.
9998         * modules/frexpl-nolibm-tests (Files): Likewise.
9999         * modules/isfinite-tests (Files): Likewise.
10000         * modules/isinf-tests (Files): Likewise.
10001         * modules/isnan-tests (Files): Likewise.
10002         * modules/isnanf-tests (Files): Likewise.
10003         * modules/isnanf-nolibm-tests (Files): Likewise.
10004         * modules/isnand-tests (Files): Likewise.
10005         * modules/isnand-nolibm-tests (Files): Likewise.
10006         * modules/isnanl-tests (Files): Likewise.
10007         * modules/isnanl-nolibm-tests (Files): Likewise.
10008         * modules/ldexpl-tests (Files): Likewise.
10009         * modules/printf-posix-tests (Files): Likewise.
10010         * modules/roundf-tests (Files): Likewise.
10011         * modules/round-tests (Files): Likewise.
10012         * modules/roundl-tests (Files): Likewise.
10013         * modules/signbit-tests (Files): Likewise.
10014         * modules/snprintf-posix-tests (Files): Likewise.
10015         * modules/sprintf-posix-tests (Files): Likewise.
10016         * modules/truncf-tests (Files): Likewise.
10017         * modules/trunc-tests (Files): Likewise.
10018         * modules/truncl-tests (Files): Likewise.
10019         * modules/vasnprintf-posix-tests (Files): Likewise.
10020         * modules/vasprintf-posix-tests (Files): Likewise.
10021         * modules/vdprintf-posix-tests (Files): Likewise.
10022         * modules/vfprintf-posix-tests (Files): Likewise.
10023         * modules/vprintf-posix-tests (Files): Likewise.
10024         * modules/vsnprintf-posix-tests (Files): Likewise.
10025         * modules/vsprintf-posix-tests (Files): Likewise.
10026         * modules/xprintf-posix-tests (Files): Likewise.
10027
10028 2011-09-11  Bruno Haible  <bruno@clisp.org>
10029
10030         Ensure pid_t gets defined.
10031         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10032         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10033         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10034         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10035         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10036         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10037         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10038         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10039         * tests/test-fcntl-h.c: Check that pid_t is defined.
10040         * tests/test-sched.c: Likewise.
10041         * tests/test-termios.c: Likewise.
10042         * tests/test-time.c: Likewise.
10043         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10044         * doc/posix-headers/signal.texi: Likewise.
10045         * doc/posix-headers/sys_types.texi: Likewise.
10046         * doc/posix-headers/time.texi: Likewise.
10047
10048 2011-09-11  Bruno Haible  <bruno@clisp.org>
10049
10050         acl: Fix compilation on Solaris 10 (older version).
10051         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10052         of ACE_EVERYONE.
10053         * lib/set-mode-acl.c (qset_acl): Likewise.
10054         Reported by Christian Jullien <eligis@orange.fr>.
10055
10056 2011-09-10  Bruno Haible  <bruno@clisp.org>
10057
10058         iconv, unsetenv: Add support for MSVC compiler.
10059         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10060         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10061
10062 2011-09-10  Bruno Haible  <bruno@clisp.org>
10063
10064         *printf: Add support for MSVC compiler.
10065         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10066         handles the exception caused by the %n directive. When cross-compiling,
10067         guess no on native Windows.
10068         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10069         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10070         emulate it through vsnprintf.
10071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10072         * doc/posix-functions/dprintf.texi: Update documentation regarding
10073         MSVC 9.
10074         * doc/posix-functions/fprintf.texi: Likewise.
10075         * doc/posix-functions/printf.texi: Likewise.
10076         * doc/posix-functions/snprintf.texi: Likewise.
10077         * doc/posix-functions/sprintf.texi: Likewise.
10078         * doc/posix-functions/swprintf.texi: Likewise.
10079         * doc/posix-functions/vdprintf.texi: Likewise.
10080         * doc/posix-functions/vfprintf.texi: Likewise.
10081         * doc/posix-functions/vprintf.texi: Likewise.
10082         * doc/posix-functions/vsnprintf.texi: Likewise.
10083         * doc/posix-functions/vsprintf.texi: Likewise.
10084         * doc/glibc-functions/asprintf.texi: Likewise.
10085         * doc/glibc-functions/obstack_printf.texi: Likewise.
10086         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10087         * doc/glibc-functions/vasprintf.texi: Likewise.
10088
10089 2011-09-10  Bruno Haible  <bruno@clisp.org>
10090
10091         nocrash: Add support for native Windows.
10092         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10093
10094 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10095             Bruno Haible  <bruno@clisp.org>
10096
10097         absolute-header, include-next: Add support for MSVC compiler.
10098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10099         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10100         directory separator in #line directives.
10101         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10102         recognize also backslash as directory separator in #line directives.
10103
10104 2011-09-08  Jim Meyering  <meyering@redhat.com>
10105
10106         maint.mk: mark the post-release commit log with "maint: " prefix
10107         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10108         one-line commit-log summary.
10109
10110 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10111             Bruno Haible  <bruno@clisp.org>
10112
10113         Doc about crypt functions.
10114         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10115         systems.
10116         * doc/posix-functions/encrypt.texi: Likewise.
10117         * doc/posix-functions/setkey.texi: Likewise.
10118
10119 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10120
10121         * lib/gc.h: Fix copyright header.
10122
10123 2011-09-07  Bruno Haible  <bruno@clisp.org>
10124
10125         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10127         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10128
10129 2011-09-07  Bruno Haible  <bruno@clisp.org>
10130
10131         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10132         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10133         * lib/freopen.c: Likewise.
10134         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10135         * lib/lstat.c: Likewise.
10136         * lib/stat.c: Likewise.
10137         * lib/open.c: Use different syntax for include of <fcntl.h>.
10138         * lib/openat.c: Include fcntl.h again, explicitly.
10139
10140 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10141
10142         parse-datetime: document the newly accepted format
10143         * doc/parse-datetime.texi (Combined date and time of day items):
10144         New section.
10145
10146 2011-09-06  Bruno Haible  <bruno@clisp.org>
10147
10148         acl: Fix a test failure on newer Solaris 10 with ZFS.
10149         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10150         ENOSYS as no ACL.
10151         Reported by Jim Meyering.
10152
10153 2011-09-06  Bruno Haible  <bruno@clisp.org>
10154
10155         acl: Update for AIX >= 5.3 with NFS.
10156         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10157         ENOSYS as no ACL.
10158
10159         acl: Fix a test failure on AIX >= 5.3 with NFS.
10160         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10161         as no ACL.
10162
10163 2011-09-06  Bruno Haible  <bruno@clisp.org>
10164
10165         acl: Fix a test failure on IRIX 6.5 with NFS.
10166         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10167         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10168         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10169         * lib/copy-acl.c (qcopy_acl): Likewise.
10170
10171 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10172
10173         openat: port to AIX 7.1 with large files
10174         AIX 7.1 does a "#define openat open64at" if large files are in use,
10175         so we can't simply #undef openat.  Use the orig_openat trick (similar
10176         to orig_open in lib/open.c) to work around the problem.  Problem
10177         reported by Kevin Brott for GNU tar, in the thread containing
10178         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10179         * lib/openat.c (__need_system_fcntl_h): Define first.
10180         Include <fcntl.h> and <sys/types.h> before undefining.
10181         (orig_openat) [HAVE_OPENAT]: New inline function.
10182         (openat) [HAVE_OPENAT]: Do not undef.
10183         (rpl_openat): Use orig_openat, not openat.
10184
10185 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10186             Bruno Haible  <bruno@clisp.org>
10187
10188         acl: Avoid errors on NonStop Kernel.
10189         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10190         ENOTSUP errors.
10191
10192 2011-09-05  Bruno Haible  <bruno@clisp.org>
10193
10194         acl: Clean up Solaris code.
10195         * lib/acl-internal.h: Remove no-op #if.
10196         * lib/file-has-acl.c: Likewise.
10197         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10198         * lib/copy-acl.c (qcopy_acl): Likewise.
10199
10200 2011-09-05  Bruno Haible  <bruno@clisp.org>
10201
10202         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10203         binaries built on the original Solaris 10.
10204         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10205         trivial.
10206
10207 2011-09-05  Bruno Haible  <bruno@clisp.org>
10208
10209         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10210         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10211         10.
10212         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10213         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10214         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10215         instead of acl_get, facl_get, acl_set, facl_set.
10216
10217 2011-09-05  Bruno Haible  <bruno@clisp.org>
10218
10219         copy-file: Try unit tests on more file systems.
10220         * tests/test-copy-file-1.sh: New file.
10221         * tests/test-copy-file-2.sh: New file.
10222         * modules/copy-file-tests (Files): Add them.
10223         (Makefile.am): Add them to TESTS.
10224
10225         acl: Try unit tests on more file systems.
10226         * tests/test-file-has-acl-1.sh: New file.
10227         * tests/test-file-has-acl-2.sh: New file.
10228         * tests/test-set-mode-acl-1.sh: New file.
10229         * tests/test-set-mode-acl-2.sh: New file.
10230         * tests/test-copy-acl-1.sh: New file.
10231         * tests/test-copy-acl-2.sh: New file.
10232         * modules/acl-tests (Files): Add them.
10233         (Makefile.am): Add them to TESTS.
10234
10235 2011-09-04  Bruno Haible  <bruno@clisp.org>
10236
10237         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10238         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10239         10.
10240         (OLD_ALLOW, OLD_DENY): New macros.
10241         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10242         ACE_ACCESS_ALLOWED_ACE_TYPE.
10243         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10244         ACE_ACCESS_DENIED_ACE_TYPE.
10245         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10246         (NEW_ACE_EXECUTE): Fix value.
10247         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10248         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10249         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10250         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10251         NEW_ACE_SYNCHRONIZE): New macros.
10252         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10253         instead of acl_fromtext, acl_set, facl_set.
10254         Fixes a coreutils/tests/cp/perm failure.
10255
10256 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10257
10258         openat: test for fstatat (..., 0) bug
10259         Further testing with tar suggests that fstatat (..., 0)
10260         does not work in general, on AIX 7.1; see
10261         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10262         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10263         replacement fstatat (which is what older AIX releases were using
10264         anyway).
10265         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10266         use is now changed to orig_fstatat.  This was probably the right
10267         thing to do anyway.
10268         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10269         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10270         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10271         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10272         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10273         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10274         if the bug is found.
10275
10276         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10277         This tests for another fstatat bug on AIX 7.1:
10278         fstatat (AT_FDCWD, ..., 0) does not work.  See
10279         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10280         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10281         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10282         (rpl_fstatat): Adjust so that it works around either (or both)
10283         bugs if present.
10284         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10285
10286 2011-09-03  Karl Berry  <karl@gnu.org>
10287
10288         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10289         in index entries.
10290
10291 2011-09-02  Bruno Haible  <bruno@clisp.org>
10292
10293         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10294         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10295         values of AR, ARFLAGS, RANLIB.
10296         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10297
10298 2011-09-02  Bruno Haible  <bruno@clisp.org>
10299
10300         Find 'ar' program that fits with --host argument.
10301         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10302
10303 2011-09-02  Bruno Haible  <bruno@clisp.org>
10304
10305         tests: init.sh: Support any non-GNU diff.
10306         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10307         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10308         Solaris 8.
10309
10310 2011-09-02  Bruno Haible  <bruno@clisp.org>
10311
10312         tests: init.sh: work also with any non-GNU diff that supports -u
10313         * tests/init.sh: Relax check for diff -u support.
10314         Rather than checking for GNU diff via --version, simply check
10315         for support for -u itself.  Useful at least on OpenBSD 4.9,
10316         AIX 7.1, IRIX 6.5, and Solaris 10.
10317
10318 2011-09-01  Bruno Haible  <bruno@clisp.org>
10319
10320         strtoimax, strtoumax: Document problem on HP-UX 11.
10321         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10322         * doc/posix-functions/strtoumax.texi: Likewise.
10323
10324 2011-09-01  Bruno Haible  <bruno@clisp.org>
10325
10326         strtoumax: Avoid link error on OSF/1 with DTK cc.
10327         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10328         defined as a function.
10329         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10330         strtoumax is defined, not whether it is declared.
10331
10332 2011-09-01  Bruno Haible  <bruno@clisp.org>
10333
10334         strtoimax: Avoid link error on OSF/1 with DTK cc.
10335         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10336         defined as a function.
10337         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10338         strtoimax is defined, not whether it is declared.
10339
10340 2011-09-01  Bruno Haible  <bruno@clisp.org>
10341
10342         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10343         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10344         as a function.
10345         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10346         whether it is declared.
10347
10348 2011-09-01  Bruno Haible  <bruno@clisp.org>
10349
10350         imaxabs: Avoid link error on OSF/1 with DTK cc.
10351         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10352         as a function.
10353         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10354         whether it is declared.
10355
10356 2011-09-01  Bruno Haible  <bruno@clisp.org>
10357
10358         Tests for module 'strtoumax'.
10359         * modules/strtoumax-tests: New file.
10360         * tests/test-strtoumax.c: New file.
10361
10362         Tests for module 'strtoimax'.
10363         * modules/strtoimax-tests: New file.
10364         * tests/test-strtoimax.c: New file.
10365
10366         Tests for module 'imaxdiv'.
10367         * modules/imaxdiv-tests: New file.
10368         * tests/test-imaxdiv.c: New file.
10369
10370         Tests for module 'imaxabs'.
10371         * modules/imaxabs-tests: New file.
10372         * tests/test-imaxabs.c: New file.
10373
10374 2011-09-01  Bruno Haible  <bruno@clisp.org>
10375
10376         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10377         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10378         pthread_create.
10379
10380 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10381
10382         openat: work around AIX 7.1 fstatat issue
10383         This should fix the problem that was not properly fixed
10384         in the previous change, dated 2011-08-30.
10385         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10386         __need_system_stat_h defined.
10387         (orig_fstatat) [HAVE_FSTATAT]: New function.
10388         (rpl_fstatat): Go back to the old way of doing things,
10389         except call orig_fstatat instead of fstatat.
10390         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10391         Remove unnecessary check whether fstatat fills in st_size etc.
10392
10393 2011-09-01  Bruno Haible  <bruno@clisp.org>
10394
10395         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10396         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10397         just include the system's header.
10398
10399 2011-08-31  Jim Meyering  <meyering@redhat.com>
10400
10401         tests: avoid spurious assertion failure in test-float.c on ppc64
10402         * tests/test-float.c (test_long_double): Comment out an assertion,
10403         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10404         with gcc-4.4.4.
10405
10406         maint: indent with spaces, not TABs
10407         I need to get in the habit of running gnulib's "make check".
10408         Both of these would have been caught.
10409         * m4/largefile.m4: Indent with spaces, not TABs.
10410         * lib/parse-datetime.y (iso_8601_time): Likewise.
10411         Spotted by Pádraig Brady.
10412
10413         test-parse-datetime.c: accommodate a relatively strict gcc warning
10414         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10415         to avoid a warning from gcc's -Werror=missing-declarations.
10416         Insert a few spaces-before-funcall-parenthesis.
10417
10418 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10419
10420         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10421         The parser now accepts ISO 8601 date-time strings with "T" as the
10422         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10423         with a space between the date and time strings.  Now it also parses
10424         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10425         variants like "2004-02-29T16:21:42.333-07:00"
10426         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10427         of day representation using the 'T' separator character.
10428         * doc/parse-datetime.texi (General date syntax): replace use of
10429         deprecated --iso-8601 option with --rfc-3339 in example of date
10430         command output formats that can be parsed.
10431         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10432         lib/parse-datetime.y.
10433         (gmt_offset): New function.
10434         (main): Add additional test cases to validate ISO8601 extended
10435         date and time of day parsing.
10436
10437 2011-08-31  Bruno Haible  <bruno@clisp.org>
10438
10439         freopen: Documentation.
10440         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10441         name.
10442         Reported by Claudio Bley <claudio.bley@gmail.com>.
10443
10444 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10445
10446         freopen: Don't crash if the filename argument is NULL.
10447         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10448         NULL.
10449
10450 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10451
10452         openat: work around AIX 7.1 fstatat bug
10453         Problem reported by Kevin Brott for GNU tar, in the thread containing
10454         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10455         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10456         FSTATAT_ST_SIZE_ETC_BROKEN.
10457         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10458         rpl_fstatat.
10459         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10460         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10461         AC_CHECK_FUNCS_ONCE for fstatat.
10462         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10463         fchmodat, mkdirat, openat and unlinkat.
10464
10465 2011-08-30  Bruno Haible  <bruno@clisp.org>
10466
10467         Avoid endless recursions if config.h includes some header files.
10468         * lib/fopen.c (__need_FILE): Define already before including config.h.
10469         * lib/freopen.c (__need_FILE): Likewise.
10470         * lib/open.c (__need_system_fcntl_h): Likewise.
10471         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10472         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10473         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10474
10475 2011-08-25  Karl Berry  <karl@gnu.org>
10476
10477         * config/srclist.txt (ylwrap): new try.
10478         * build-aux/ylwrap: new file.
10479
10480 2011-08-23  Bruno Haible  <bruno@clisp.org>
10481
10482         tmpdir: Use a good default directory on native Windows.
10483         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10484         (P_tmpdir): Default to _P_tmpdir on native Windows.
10485         (path_search): On native Windows, try the value returned by GetTempPath
10486         before trying P_tmpdir.
10487         * modules/tmpdir (Depends-on): Add pathmax.
10488         Suggested by John Darrington <john@darrington.wattle.id.au>.
10489
10490 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10491
10492         doc: fix typo in README-release
10493         * top/README-release: Capitalize first word of a sentence.
10494
10495 2011-08-19  Jim Meyering  <meyering@redhat.com>
10496
10497         fts: do not exhaust memory when processing million-entry directories
10498         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10499         directory would require about 256*N bytes of memory.  Thus, it was
10500         easy to construct a directory too large to be processed by any of
10501         those tools.  With this change, fts' maximum memory utilization is
10502         now limited to around 30MB.
10503         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10504         (fts_read): When we've processed the final entry (i.e., when
10505         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10506         using the parent entry to read any remaining entries.  Dispatch
10507         depending on what fts_build returns:
10508         - NULL+stop, aka failure: stop
10509         - NULL otherwise: move up in the dir hierarchy
10510         - non-NULL: handle this new entry
10511         (fts_build): Declare and use new local, continue_readdir.
10512         Prepare to be called from fts_read, when the entries
10513         from a partially-read directory have just been exhausted.
10514         In that case, we'll skip the opendir and instead use the parent's
10515         fts_dirp and derive dir_fd from that.
10516         Finally, in the readdir loop, if we read max_entries entries,
10517         exit the loop ensuring *not* to call closedir.  This is required
10518         so that fts_dirp can be reused on a subsequent call.
10519         Prompted by Ben England's report of memory exhaustion in find
10520         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10521
10522         maint: fts: move decl of `dp' down into while loop; split a long line
10523         * lib/fts.c (fts_build): No semantic change.
10524
10525         fts: add/use new struct member, fts_dirp
10526         We are about to use this to manage any directory with
10527         too many entries to read all of them into memory at once.
10528         To do that, we'll need to save the DIR* pointer in each
10529         affected FTSENT struct.
10530         * lib/fts_.h: Include <dirent.h>.
10531         (struct FTSENT) [fts_dirp]: New member.
10532         * lib/fts.c (closedir_and_clear): Define.
10533         Use it in place of closedir so that we are sure to
10534         clear the new fts_dirp member when done with it.
10535         (fts_alloc): Initialize the new member.
10536         (fts_lfree): Free, if needed.
10537
10538         maint: fts: give __opendir2 a new parameter and rename
10539         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10540         than surreptitiously using sole caller's "dir_fd".
10541         (fts_opendir): Rename from __opendir2.
10542
10543         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10544         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10545
10546         maint: fts.c: correct off-by-one indentation
10547         * lib/fts.c (fts_build): Correct indentation, change style
10548         of a couple of block comments, and bracing style.
10549
10550         maint: fts.c: move __opendir2 #define "up" out of function body
10551         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10552
10553         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10554         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10555         out for a long time and besides was useful only on BSD systems.
10556
10557 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10558
10559         regex: port to Stratus OpenVOS
10560         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10561         define to empty, rather than attempting nonportable optimizations.
10562         Problem reported by Paul Green in:
10563         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10564         and fix suggested by Eric Blake in:
10565         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10566
10567 2011-08-17  Eric Blake  <eblake@redhat.com>
10568
10569         getcwd: fix test failures on mingw
10570         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10571         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10572         test if long directory cannot be created, and allow mingw errno.
10573
10574         getcwd-lgpl: fix m4 to match relaxed test for BSD
10575         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10576         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10577         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10578         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10579         signature problem.
10580
10581         getcwd: fix compilation on mingw64
10582         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10583         getcwd.
10584         Reported by Marc-André Lureau.
10585
10586         pipe2: silence compiler warning
10587         * lib/pipe2.c (pipe2): Hide label if it is not used.
10588
10589 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10590
10591         relocatable-prog: fix link error
10592         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10593         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10594         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10595         into modules/relocatable-lib without noticing that
10596         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10597         also needs to build relocatable.c.
10598
10599 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10600
10601         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10602         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10603         shell code: it contained a 'break' that was not in a loop.
10604         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10605         via a shell-language loop; this may have been true in old Autoconf
10606         versions, but it's not true in Autoconf 2.68.  I found this bug
10607         when testing coreutils git on Solaris 8, whose shell complains
10608         about the syntax error.
10609
10610 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10611
10612         * lib/base64.c: Fix comment to reference RFC 4648.
10613         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10614         <gvtulder@gmail.com>.
10615
10616 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10617
10618         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10619
10620         po/Makefile.in.in: fix make -q problem
10621         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10622         rule, since there's no file named 'check-macro-version' and its
10623         use as a file breaks make -q.
10624         (all): Don't depend on check-macro-version.
10625         (CHECK_MACRO_VERSION): New macro.
10626         (stamp-po): Use it.
10627
10628         configmake: fix make -q problem
10629         * modules/configmake (configmake.h): Update configmake.h's time stamp
10630         even if the file does not change.  Otherwise, 'make -q' fails.
10631         Problem reported by Simon Josefsson in
10632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10633
10634 2011-08-11  Jim Meyering  <meyering@redhat.com>
10635
10636         git-version-gen: correct the advice in a comment
10637         * build-aux/git-version-gen: Correct comment.
10638         Don't recommend to list .tarball-version in .gitignore.
10639
10640 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         base64: fix off-by-one buffer size bug
10643         Problem and (trivial) fix reported by Gijs van Tulder in
10644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10645         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10646         * tests/test-base64.c (main): Catch the bug.
10647
10648 2011-08-10  Eric Blake  <eblake@redhat.com>
10649
10650         closein: correct comments
10651         * lib/closein.c (close_stdin): Improve comments.
10652
10653 2011-08-09  Bruno Haible  <bruno@clisp.org>
10654
10655         More tests for 'fseeko'.
10656         * tests/test-fseeko3.c: New file, from Eric Blake.
10657         * tests/test-fseeko3.sh: New file.
10658         * modules/fseeko-tests (Files): Add them.
10659         (TESTS): Add test-fseeko3.sh.
10660         (check_PROGRAMS): Add test-fseeko3.
10661
10662 2011-08-09  Eric Blake  <eblake@redhat.com>
10663
10664         fseeko: remove unneeded hack
10665         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10666
10667         fseeko: fix bug on glibc
10668         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10669         Reported by John W. Eaton.
10670
10671 2011-08-08  Bruno Haible  <bruno@clisp.org>
10672
10673         unictype/base: Fix interoperability with preinstalled libunistring.
10674         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10675         Reported by Simon Josefsson.
10676
10677 2011-08-08  Bruno Haible  <bruno@clisp.org>
10678
10679         iswblank: Detect declaration correctly.
10680         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10681         AC_CHECK_DECLS invocation.
10682
10683 2011-08-08  Bruno Haible  <bruno@clisp.org>
10684
10685         tcgetsid: Detect declaration correctly.
10686         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10687         AC_CHECK_DECLS invocation.
10688         Reported by Simon Josefsson.
10689
10690 2011-08-08  Eric Blake  <eblake@redhat.com>
10691
10692         largefile: fix typo that regressed large file support
10693         * modules/largefile (configure.ac-early): Fix section name.
10694
10695 2011-08-06  Karl Berry  <karl@gnu.org>
10696
10697         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10698         a separate module.
10699
10700 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10701
10702         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10703         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10704         get prototype for free.
10705
10706 2011-08-04  Bruno Haible  <bruno@clisp.org>
10707
10708         Tests for module 'pathmax'.
10709         * modules/pathmax-tests: New file.
10710         * tests/test-pathmax.c: New file.
10711
10712         canonicalize-lgpl: Support larger filenames on the Hurd.
10713         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10714         Reported by Paul Eggert.
10715
10716         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10717         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10718         * lib/chdir-long.h: Include pathmax.h.
10719         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10720         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10721         (PATH_MAX): Remove code that is done by pathmax.h.
10722         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10723         * lib/tmpfile.c: Add a comment.
10724         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10725         * modules/chdir-long (Depends-on): Add pathmax.
10726         * modules/getcwd (Depends-on): Add pathmax.
10727         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10728         is not defined.
10729         * doc/posix-headers/limits.texi: Mention the pathmax module.
10730         * NEWS: Mention the change.
10731
10732 2011-08-02  Bruno Haible  <bruno@clisp.org>
10733
10734         pthread_sigmask: Actually use results of gl_THREADLIB.
10735         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10736         gl_THREADLIB, not gl_[]THREADLIB.
10737         Reported by Eric Blake.
10738
10739 2011-08-02  Jim Meyering  <meyering@redhat.com>
10740
10741         maint.mk: relax the default _gl_TS_function_match regexp
10742         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10743         space between function name and "(" in an "extern" declaration.
10744         That would fail to match a decl with no space there: extern void foo();
10745
10746 2011-07-31  Iain Nicol  <iain@thenicols.net>
10747
10748         git-version-gen: document that EXTRA_DIST must include .version
10749         * build-aux/git-version-gen: In the how-to-use comment, document
10750         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10751         will fail when run from an unpacked distribution tarball.
10752
10753 2011-08-01  Bruno Haible  <bruno@clisp.org>
10754
10755         wctype-h: Fix last change.
10756         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10757         REPLACE_TOWLOWER to 0.
10758         Reported by Sam Steingold <sds@gnu.org>.
10759
10760 2011-07-31  Bruno Haible  <bruno@clisp.org>
10761
10762         frexpl: Update autoconf test.
10763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10764         according to changes of 2011-06-20.
10765
10766 2011-07-31  Bruno Haible  <bruno@clisp.org>
10767
10768         sys_utsname: Add support for Minix.
10769         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10770         <sys/utsname.h>.
10771         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10772         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10773
10774 2011-07-31  Bruno Haible  <bruno@clisp.org>
10775
10776         strings: Add support for Minix.
10777         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10778         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10779         * doc/posix-headers/strings.texi: Document the Minix problem.
10780
10781 2011-07-31  Bruno Haible  <bruno@clisp.org>
10782
10783         wctype-h: Add support for Minix.
10784         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10785         REPLACE_TOWLOWER.
10786         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10787         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10788         REPLACE_ISWCNTRL.
10789
10790 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10791
10792         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10793         This is a performance improvement for 64-bit hosts: it causes the
10794         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10795
10796 2011-07-31  Bruno Haible  <bruno@clisp.org>
10797
10798         stdioext: Add support for Minix.
10799         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10800         * lib/fpurge.c (fpurge): Likewise.
10801         * lib/freadahead.c (freadahead): Likewise.
10802         * lib/freadable.c (freadable): Likewise.
10803         * lib/freading.c (freading): Likewise.
10804         * lib/freadptr.c (freadptr): Likewise.
10805         * lib/freadseek.c (freadptrinc): Likewise.
10806         * lib/fseeko.c (rpl_fseeko): Likewise.
10807         * lib/fseterr.c (fseterr): Likewise.
10808         * lib/fwritable.c (fwritable): Likewise.
10809         * lib/fwriting.c (fwriting): Likewise.
10810         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10811         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10812
10813 2011-07-31  Bruno Haible  <bruno@clisp.org>
10814
10815         errno: Port to Minix.
10816         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10817         ECONNABORTED are defined.
10818         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10819         GNULIB_defined_ECONNABORTED): New macros.
10820         * lib/strerror-override.h (strerror_override): Test also
10821         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10822         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10823         ECONNABORTED.
10824         * doc/posix-headers/errno.texi: Mention the Minix problem.
10825
10826 2011-07-31  Bruno Haible  <bruno@clisp.org>
10827
10828         Work around declaration collisions on Minix.
10829         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10830         defined, set REPLACE_MBSINIT.
10831         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10832         defined, set REPLACE_MBRTOWC.
10833         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10834         set REPLACE_MBRLEN.
10835         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10836         defined, set REPLACE_MBSRTOWCS.
10837         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10838         defined, set REPLACE_WCRTOMB.
10839         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10840         defined, set REPLACE_WCSRTOMBS.
10841
10842 2011-07-31  Bruno Haible  <bruno@clisp.org>
10843
10844         Add support for Minix with ACK compiler.
10845         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10846         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10847         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10848
10849 2011-07-31  Bruno Haible  <bruno@clisp.org>
10850
10851         Documentation about Minix.
10852         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10853         * doc/glibc-headers/*.texi: Likewise.
10854         * doc/posix-functions/*.texi: Likewise.
10855         * doc/glibc-functions/*.texi: Likewise.
10856
10857 2011-07-31  Bruno Haible  <bruno@clisp.org>
10858
10859         snippet/warn-on-use: Fix indentation.
10860         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10861
10862 2011-07-25  Jim Meyering  <meyering@redhat.com>
10863
10864         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10865         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10866         commands.
10867
10868 2011-07-27  Jim Meyering  <meyering@redhat.com>
10869
10870         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10871         * top/maint.mk (gl_extract_significant_defines_): Now that
10872         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10873         gnulib/lib/signal.in.h, and now that we recommend to
10874         define-if-undefined those two symbols in application code,
10875         we must filter them out of the "significant" list.
10876         This avoids a "make syntax-check" failure in coreutils.
10877
10878 2011-07-26  Eric Blake  <eblake@redhat.com>
10879
10880         warnings: add comments about previous patch
10881         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10882         * m4/include_next.m4: Likewise.
10883         * m4/warn-on-use.m4: Likewise.
10884         * m4/warnings.m4: Likewise, and simplify use.
10885         Suggested by Stefano Lattarini.
10886
10887         include-next, warnings: support older autoconf
10888         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10889         AS_VAR_PUSHDEF in a way that works with older autoconf.
10890         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10891         Reported by Daniel P. Berrange.
10892
10893 2011-07-25  Bruno Haible  <bruno@clisp.org>
10894
10895         fseek, ftell: Fix doc.
10896         * doc/posix-functions/fseek.texi: Reword statement about
10897         AC_SYS_LARGEFILE.
10898         * doc/posix-functions/ftell.texi: Likewise.
10899
10900 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10901             Bruno Haible  <bruno@clisp.org>
10902
10903         Add dependencies to the 'largefile' module.
10904         * modules/fopen (Depends-on): Add 'largefile'.
10905         * modules/freopen (Depends-on): Likewise.
10906         * modules/fseeko (Depends-on): Likewise.
10907         * modules/ftello (Depends-on): Likewise.
10908         * modules/glob (Depends-on): Likewise.
10909         * modules/lseek (Depends-on): Likewise.
10910         * modules/lstat (Depends-on): Likewise.
10911         * modules/mkostemp (Depends-on): Likewise.
10912         * modules/mkostemps (Depends-on): Likewise.
10913         * modules/mkstemp (Depends-on): Likewise.
10914         * modules/mkstemps (Depends-on): Likewise.
10915         * modules/open (Depends-on): Likewise.
10916         * modules/openat (Depends-on): Likewise.
10917         * modules/pread (Depends-on): Likewise.
10918         * modules/pwrite (Depends-on): Likewise.
10919         * modules/scandir (Depends-on): Likewise.
10920         * modules/stat (Depends-on): Likewise.
10921         * modules/tmpfile (Depends-on): Likewise.
10922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10923         since the containing module now depends on the largefile module.
10924         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10925         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10926         off_t is fixed by gnulib.
10927         * doc/posix-functions/freopen.texi: Likewise.
10928         * doc/posix-functions/fseeko.texi: Likewise.
10929         * doc/posix-functions/fstatat.texi: Likewise.
10930         * doc/posix-functions/ftello.texi: Likewise.
10931         * doc/posix-functions/glob.texi: Likewise.
10932         * doc/posix-functions/lseek.texi: Likewise.
10933         * doc/posix-functions/lstat.texi: Likewise.
10934         * doc/posix-functions/mkstemp.texi: Likewise.
10935         * doc/posix-functions/open.texi: Likewise.
10936         * doc/posix-functions/openat.texi: Likewise.
10937         * doc/posix-functions/pread.texi: Likewise.
10938         * doc/posix-functions/pwrite.texi: Likewise.
10939         * doc/posix-functions/scandir.texi: Likewise.
10940         * doc/posix-functions/stat.texi: Likewise.
10941         * doc/posix-functions/tmpfile.texi: Likewise.
10942         * doc/glibc-functions/mkostemp.texi: Likewise.
10943         * doc/glibc-functions/mkostemps.texi: Likewise.
10944         * doc/glibc-functions/mkstemps.texi: Likewise.
10945
10946 2011-07-25  Bruno Haible  <bruno@clisp.org>
10947
10948         fcntl: Move AC_LIBOBJ invocation to module description.
10949         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10950         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10951
10952         fcntl: Remove call-in from fchdir.m4.
10953         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10954         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10955
10956         dup3: Remove potential call-in from fchdir.m4.
10957         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10959
10960         dup2: Move AC_LIBOBJ invocation to module description.
10961         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10962         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10963         Don't invoke AC_LIBOBJ.
10964         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10965
10966         dup2: Remove call-in from fchdir.m4.
10967         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10968         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10969
10970         fclose: Move AC_LIBOBJ invocation to module description.
10971         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10972         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10973         to 1.
10974         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10975
10976         fclose: Remove call-in from close.m4.
10977         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10978         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10979
10980         close: Move AC_LIBOBJ invocation to module description.
10981         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10982         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10983         1.
10984         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10985
10986         close: Remove call-in from fchdir.m4.
10987         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10989
10990         open: Move AC_LIBOBJ invocation to module description.
10991         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10992         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10993         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10994
10995         open: Remove call-in from fchdir.m4.
10996         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10997         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10998
10999         fchdir: Start to remove gl_REPLACE_* idiom.
11000         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11001         (gl_FUNC_FCHDIR): Invoke it.
11002
11003 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11004
11005         * lib/ftell.c (ftell): Comment out cast.
11006
11007         close: use gl_REPLACE_FCLOSE only if defined
11008         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11009         is defined.  The close module doesn't depend on the fclose module
11010         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11012         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11013
11014 2011-07-24  Jim Meyering  <meyering@redhat.com>
11015
11016         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11017         * tests/test-select.h (test_function): Declare as "static".
11018
11019 2011-07-24  Bruno Haible  <bruno@clisp.org>
11020
11021         doc: Mention the effects of AC_SYS_LARGEFILE.
11022         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11023         on this function.
11024         * doc/posix-functions/aio_error.texi: Likewise.
11025         * doc/posix-functions/aio_fsync.texi: Likewise.
11026         * doc/posix-functions/aio_read.texi: Likewise.
11027         * doc/posix-functions/aio_return.texi: Likewise.
11028         * doc/posix-functions/aio_suspend.texi: Likewise.
11029         * doc/posix-functions/aio_write.texi: Likewise.
11030         * doc/posix-functions/fgetpos.texi: Likewise.
11031         * doc/posix-functions/fopen.texi: Likewise.
11032         * doc/posix-functions/freopen.texi: Likewise.
11033         * doc/posix-functions/fsetpos.texi: Likewise.
11034         * doc/posix-functions/fstatvfs.texi: Likewise.
11035         * doc/posix-functions/ftruncate.texi: Likewise.
11036         * doc/posix-functions/ftw.texi: Likewise.
11037         * doc/posix-functions/getrlimit.texi: Likewise.
11038         * doc/posix-functions/glob.texi: Likewise.
11039         * doc/posix-functions/lio_listio.texi: Likewise.
11040         * doc/posix-functions/lockf.texi: Likewise.
11041         * doc/posix-functions/mkstemp.texi: Likewise.
11042         * doc/posix-functions/mmap.texi: Likewise.
11043         * doc/posix-functions/nftw.texi: Likewise.
11044         * doc/posix-functions/openat.texi: Likewise.
11045         * doc/posix-functions/opendir.texi: Likewise.
11046         * doc/posix-functions/posix_fadvise.texi: Likewise.
11047         * doc/posix-functions/posix_fallocate.texi: Likewise.
11048         * doc/posix-functions/pread.texi: Likewise.
11049         * doc/posix-functions/pwrite.texi: Likewise.
11050         * doc/posix-functions/readdir.texi: Likewise.
11051         * doc/posix-functions/readdir_r.texi: Likewise.
11052         * doc/posix-functions/rewinddir.texi: Likewise.
11053         * doc/posix-functions/scandir.texi: Likewise.
11054         * doc/posix-functions/seekdir.texi: Likewise.
11055         * doc/posix-functions/setrlimit.texi: Likewise.
11056         * doc/posix-functions/statvfs.texi: Likewise.
11057         * doc/posix-functions/telldir.texi: Likewise.
11058         * doc/posix-functions/tmpfile.texi: Likewise.
11059         * doc/posix-functions/truncate.texi: Likewise.
11060         * doc/glibc-functions/fallocate.texi: Likewise.
11061         * doc/glibc-functions/fstatfs.texi: Likewise.
11062         * doc/glibc-functions/fts_children.texi: Likewise.
11063         * doc/glibc-functions/fts_read.texi: Likewise.
11064         * doc/glibc-functions/getdirentries.texi: Likewise.
11065         * doc/glibc-functions/mkostemp.texi: Likewise.
11066         * doc/glibc-functions/mkostemps.texi: Likewise.
11067         * doc/glibc-functions/mkstemps.texi: Likewise.
11068         * doc/glibc-functions/preadv.texi: Likewise.
11069         * doc/glibc-functions/pwritev.texi: Likewise.
11070         * doc/glibc-functions/sendfile.texi: Likewise.
11071         * doc/glibc-functions/statfs.texi: Likewise.
11072
11073 2011-07-24  Bruno Haible  <bruno@clisp.org>
11074
11075         doc: Fix typo.
11076         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11077
11078 2011-07-24  Bruno Haible  <bruno@clisp.org>
11079
11080         doc: Mention fsusage.
11081         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11082
11083 2011-07-24  Bruno Haible  <bruno@clisp.org>
11084
11085         doc: Mention new glibc headers and functions.
11086         * doc/glibc-headers/gshadow.texi: New file.
11087         * doc/glibc-functions/endsgent.texi: New file.
11088         * doc/glibc-functions/fgetsgent.texi: New file.
11089         * doc/glibc-functions/fgetsgent_r.texi: New file.
11090         * doc/glibc-functions/getsgent.texi: New file.
11091         * doc/glibc-functions/getsgent_r.texi: New file.
11092         * doc/glibc-functions/getsgnam.texi: New file.
11093         * doc/glibc-functions/getsgnam_r.texi: New file.
11094         * doc/glibc-functions/putsgent.texi: New file.
11095         * doc/glibc-functions/setsgent.texi: New file.
11096         * doc/glibc-functions/sgetsgent.texi: New file.
11097         * doc/glibc-functions/sgetsgent_r.texi: New file.
11098         * doc/glibc-functions/malloc_info.texi: New file.
11099         * doc/glibc-functions/preadv.texi: New file.
11100         * doc/glibc-functions/pwritev.texi: New file.
11101         * doc/glibc-functions/register_printf_modifier.texi: New file.
11102         * doc/glibc-functions/register_printf_specifier.texi: New file.
11103         * doc/glibc-functions/register_printf_type.texi: New file.
11104         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11105         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11106         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11107         * doc/glibc-functions/pthread_getname_np.texi: New file.
11108         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11109         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11110         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11111         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11112         * doc/glibc-functions/pthread_setname_np.texi: New file.
11113         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11114         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11115         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11116         * doc/glibc-functions/qsort_r.texi: New file.
11117         * doc/glibc-functions/quick_exit.texi: New file.
11118         * doc/glibc-functions/syncfs.texi: New file.
11119         * doc/gnulib.texi: Include them.
11120         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11121         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11122         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11123         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11124         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11125         * doc/glibc-functions/execvpe.texi: Likewise.
11126
11127 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11128
11129         ftell: don't include <unistd.h>
11130         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11131         guaranteed to define off_t, and the ftell module depends on the
11132         stdio module.
11133
11134         ftell: do not assume wraparound signed arithmetic
11135         * lib/ftell.c: Include <limits.h>.
11136         (ftell): Don't assume wraparound signed arithmetic.
11137
11138 2011-07-24  Bruno Haible  <bruno@clisp.org>
11139
11140         close: No longer depend on module 'fclose'.
11141         * modules/close (Depends-on): Remove fclose.
11142         * NEWS: Mention the change.
11143         Suggested by Sam Steingold <sds@gnu.org>.
11144
11145 2011-07-24  Bruno Haible  <bruno@clisp.org>
11146
11147         fsusage: Enable large volume support on AIX >= 5.2.
11148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11149         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11150         instead of STAT_STATVFS.
11151         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11152
11153         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11154         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11155         f_blocks field only on MacOS X.
11156
11157         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11158         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11159         * modules/fsusage (Depends-on): Add largefile.
11160
11161 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11162
11163         * README: Modernize discussion of signed integers.
11164         Assuming overflow wraparound is no longer safe.
11165         Mention ones' complement and signed magnitude.
11166
11167 2011-07-22  Bruno Haible  <bruno@clisp.org>
11168
11169         select tests, pselect tests: Refactor.
11170         * tests/test-select.h: New file, extracted from tests/test-select.c.
11171         (select_fn): New type.
11172         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11173         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11174         test_pipe): Add my_select argument.
11175         (test_function): Renamed from main. Add my_select argument.
11176         * tests/test-select.c: Move most code to tests/test-select.h. Include
11177         test-select.h.
11178         * modules/select-tests (Files): Add tests/test-select.h.
11179         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11180         (my_select, main): New functions.
11181         * modules/pselect-tests (Files): Add tests/test-select.h,
11182         tests/macros.h, tests/signature.h.
11183         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11184         (configure.ac): Check for <sys/wait.h>.
11185
11186 2011-07-22  Bruno Haible  <bruno@clisp.org>
11187
11188         sys_select tests: Check the signature of FD_*.
11189         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11190         signature tests from here...
11191         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11192         here.
11193         * modules/sys_select-tests (Files): Add tests/signature.h.
11194
11195 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11196
11197         largefile: new module, replacing large-inode
11198         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11199         * MODULES.html.sh: Add largefile, remove large-inode.
11200         * modules/largefile, m4/largefile.m4: New files.
11201         * modules/large-inode, m4/large-inode.m4: Remove.
11202
11203         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11204         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11205         implementations that use only 32 bits to count blocks.
11206         On typical hosts with 1024-byte blocks, this fails with file
11207         systems as small as 4 TiB.  Problem reported by Herb Wartens
11208         <http://debbugs.gnu.org/9140> and this should also fix a similar
11209         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11210
11211         large-inode: New module
11212         * MODULES.html.sh: Add it.
11213         * modules/large-inode, m4/large-inode.m4: New files.
11214
11215         extensions: Enable extensions on MacOS X 10.5 and later.
11216         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11217
11218 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11219
11220         file-has-acl: use acl_extended_file_nofollow if available
11221         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11222         (acl_extended_file): New macro.
11223         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11224         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11225
11226 2011-07-21  Bruno Haible  <bruno@clisp.org>
11227
11228         Declare system functions in a way that works with C++.
11229         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11230         declare fdopendir as extern "C".
11231         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11232         declare frexpl as extern "C".
11233         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11234         declare gai_strerror as extern "C".
11235         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11236         programs, declare gai_strerror as extern "C".
11237         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11238         declare getlogin_r as extern "C".
11239         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11240         as extern "C".
11241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11242         declare ldexpl as extern "C".
11243         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11244         as extern "C".
11245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11246         program, declare getmntinfo as extern "C".
11247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11248         stpncpy as extern "C".
11249         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11250         program, declare __xpg_strerror_r as extern "C".
11251         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11252         strndup as extern "C".
11253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11254         declare memset and bzero as extern "C".
11255         Reported by Sam Steingold <sds@gnu.org>.
11256
11257 2011-07-12  Jim Meyering  <meyering@redhat.com>
11258
11259         maint.mk: prohibit inclusion of "verify.h" without use
11260         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11261
11262 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11263
11264         timer-time: A new module to check for timer_settime()
11265         * m4/timer_time.m4: Check for the posix function.
11266         * modules/timer-time: Add the new module.
11267         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11268         Mention it.
11269
11270 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11271             Bruno Haible  <bruno@clisp.org>
11272
11273         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11274         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11275         not defined, assume POSIX threads and look for pthread_sigmask in
11276         $LIBS, without changing $CPPFLAGS.
11277
11278 2011-07-19  Bruno Haible  <bruno@clisp.org>
11279
11280         strstr: Update cross-compilation guess.
11281         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11282         CPUs, guess no, in view of glibc
11283         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11284         Suggested by Eric Blake. Reported by Reuben Thomas.
11285
11286 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11287
11288         getopt-gnu: suppress core dumps from detection code
11289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11290         to suppress core dumps that may well occur on glibc systems.
11291         * modules/getopt-gnu: Depend on nocrash.
11292
11293 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11294
11295         pthread_sigmask: ensure usleep is declared
11296         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11297         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11298
11299 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11300
11301         doc: Document NonStop portability issues.
11302         * doc/posix-functions/sigaction.texi (sigaction):
11303         * doc/posix-headers/signal.texi (signal.h):
11304         Document NonStop.  See Joachim Schmitz in
11305         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11306
11307 2011-07-15  Bruno Haible  <bruno@clisp.org>
11308
11309         ffsl, ffsll: Avoid unportable behaviour.
11310         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11311
11312 2011-07-15  Bruno Haible  <bruno@clisp.org>
11313
11314         ffs: More tests.
11315         * tests/test-ffs.c (NBITS): New macro.
11316         (main): Add more tests.
11317         * tests/test-ffsl.c (NBITS): New macro.
11318         (main): Add more tests.
11319         * tests/test-ffsll.c (NBITS): New macro.
11320         (main): Add more tests.
11321
11322 2011-07-15  Eric Blake  <eblake@redhat.com>
11323
11324         ffsl, ffsll: new modules
11325         * modules/ffsl: New file.
11326         * modules/ffsll: Likewise.
11327         * m4/ffsl.m4: Likewise.
11328         * m4/ffsll.m4: Likewise.
11329         * lib/ffsl.c: Likewise.
11330         * lib/ffsl.h: Likewise.
11331         * lib/ffsll.c: Likewise.
11332         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11333         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11334         * modules/string (Makefile.am): Substitute witnesses.
11335         * lib/strings.in.h (ffsl, ffsll): Declare.
11336         * modules/ffsl-tests: New test file.
11337         * modules/ffsll-tests: Likewise.
11338         * tests/test-ffsl.c: Likewise.
11339         * tests/test-ffsll.c: Likewise.
11340         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11341         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11342         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11343
11344         ffs: fix m4 prerequisite
11345         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11346
11347         ffs: avoid undefined behavior
11348         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11349         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11350         Reported by Bruno Haible.
11351
11352 2011-07-12  Bruno Haible  <bruno@clisp.org>
11353
11354         pthread_sigmask: Rely on module 'threadlib'.
11355         * modules/pthread_sigmask (Depends-on): Add threadlib.
11356         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11357         is defined.
11358
11359 2011-07-12  Bruno Haible  <bruno@clisp.org>
11360
11361         regex: Depend on module 'strcase'.
11362         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11363
11364 2011-07-12  Jim Meyering  <meyering@redhat.com>
11365
11366         warn-on-use: fix typo in file name
11367         * modules/snippet/warn-on-use (Files): Correct file name:
11368         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11369
11370 2011-07-12  Bruno Haible  <bruno@clisp.org>
11371
11372         strings: Document module.
11373         * doc/posix-headers/strings.texi: Mention module 'strings'.
11374
11375 2011-07-12  Bruno Haible  <bruno@clisp.org>
11376
11377         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11378         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11379         (Files, Makefile.am): Update.
11380         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11381         * modules/stdlib (Depends-on): Update.
11382
11383 2011-07-12  Bruno Haible  <bruno@clisp.org>
11384
11385         * NEWS: Mention the changes.
11386
11387         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11388         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11389         (Files, Makefile.am): Update.
11390         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11391         * modules/arpa_inet (Depends-on): Update.
11392         * modules/ctype (Depends-on): Update.
11393         * modules/dirent (Depends-on): Update.
11394         * modules/fcntl-h (Depends-on): Update.
11395         * modules/glob (Depends-on): Update.
11396         * modules/iconv-h (Depends-on): Update.
11397         * modules/inttypes-incomplete (Depends-on): Update.
11398         * modules/langinfo (Depends-on): Update.
11399         * modules/locale (Depends-on): Update.
11400         * modules/math (Depends-on): Update.
11401         * modules/netdb (Depends-on): Update.
11402         * modules/poll-h (Depends-on): Update.
11403         * modules/pty (Depends-on): Update.
11404         * modules/search (Depends-on): Update.
11405         * modules/signal (Depends-on): Update.
11406         * modules/spawn (Depends-on): Update.
11407         * modules/stdio (Depends-on): Update.
11408         * modules/stdlib (Depends-on): Update.
11409         * modules/string (Depends-on): Update.
11410         * modules/strings (Depends-on): Update.
11411         * modules/sys_file (Depends-on): Update.
11412         * modules/sys_ioctl (Depends-on): Update.
11413         * modules/sys_select (Depends-on): Update.
11414         * modules/sys_socket (Depends-on): Update.
11415         * modules/sys_stat (Depends-on): Update.
11416         * modules/sys_time (Depends-on): Update.
11417         * modules/sys_times (Depends-on): Update.
11418         * modules/sys_utsname (Depends-on): Update.
11419         * modules/sys_wait (Depends-on): Update.
11420         * modules/termios (Depends-on): Update.
11421         * modules/time (Depends-on): Update.
11422         * modules/unistd (Depends-on): Update.
11423         * modules/wchar (Depends-on): Update.
11424         * modules/wctype-h (Depends-on): Update.
11425         * MODULES.html.sh (Support for building libraries and executables):
11426         Update.
11427
11428         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11429         * modules/snippet/unused-parameter: Renamed from
11430         modules/unused-parameter.
11431         (Files, Makefile.am): Update.
11432         * build-aux/snippet/unused-parameter.h: Renamed from
11433         build-aux/unused-parameter.h.
11434         * modules/selinux-h (Depends-on): Update.
11435         * modules/unistr/base (Depends-on): Update.
11436         * MODULES.html.sh (Core language properties): Update.
11437
11438         Rename module 'link-warning' to 'snippet/link-warning'.
11439         * modules/snippet/link-warning: Renamed from modules/link-warning.
11440         (Files, Makefile.am): Update.
11441         * build-aux/snippet/link-warning.h: Renamed from
11442         build-aux/link-warning.h.
11443         * MODULES.html.sh (Support for building libraries and executables):
11444         Update.
11445
11446         Rename module 'c++defs' to 'snippet/c++defs'.
11447         * modules/snippet/c++defs: Renamed from modules/c++defs.
11448         (Files, Makefile.am): Update.
11449         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11450         * modules/arpa_inet (Depends-on): Update.
11451         * modules/ctype (Depends-on): Update.
11452         * modules/dirent (Depends-on): Update.
11453         * modules/fcntl-h (Depends-on): Update.
11454         * modules/glob (Depends-on): Update.
11455         * modules/iconv-h (Depends-on): Update.
11456         * modules/langinfo (Depends-on): Update.
11457         * modules/locale (Depends-on): Update.
11458         * modules/math (Depends-on): Update.
11459         * modules/netdb (Depends-on): Update.
11460         * modules/poll-h (Depends-on): Update.
11461         * modules/pty (Depends-on): Update.
11462         * modules/search (Depends-on): Update.
11463         * modules/signal (Depends-on): Update.
11464         * modules/spawn (Depends-on): Update.
11465         * modules/stdio (Depends-on): Update.
11466         * modules/stdlib (Depends-on): Update.
11467         * modules/string (Depends-on): Update.
11468         * modules/strings (Depends-on): Update.
11469         * modules/sys_ioctl (Depends-on): Update.
11470         * modules/sys_select (Depends-on): Update.
11471         * modules/sys_socket (Depends-on): Update.
11472         * modules/sys_stat (Depends-on): Update.
11473         * modules/sys_time (Depends-on): Update.
11474         * modules/sys_wait (Depends-on): Update.
11475         * modules/termios (Depends-on): Update.
11476         * modules/time (Depends-on): Update.
11477         * modules/unistd (Depends-on): Update.
11478         * modules/wchar (Depends-on): Update.
11479         * modules/wctype-h (Depends-on): Update.
11480
11481         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11482         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11483         (Files, Makefile.am): Update.
11484         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11485         * modules/argv-iter (Depends-on): Update.
11486         * modules/arpa_inet (Depends-on): Update.
11487         * modules/dirent (Depends-on): Update.
11488         * modules/fcntl-h (Depends-on): Update.
11489         * modules/fnmatch (Depends-on): Update.
11490         * modules/getopt-posix (Depends-on): Update.
11491         * modules/glob (Depends-on): Update.
11492         * modules/iconv-h (Depends-on): Update.
11493         * modules/inttypes-incomplete (Depends-on): Update.
11494         * modules/locale (Depends-on): Update.
11495         * modules/math (Depends-on): Update.
11496         * modules/netdb (Depends-on): Update.
11497         * modules/search (Depends-on): Update.
11498         * modules/signal (Depends-on): Update.
11499         * modules/spawn (Depends-on): Update.
11500         * modules/stdio (Depends-on): Update.
11501         * modules/stdlib (Depends-on): Update.
11502         * modules/string (Depends-on): Update.
11503         * modules/strings (Depends-on): Update.
11504         * modules/sys_socket (Depends-on): Update.
11505         * modules/sys_stat (Depends-on): Update.
11506         * modules/sys_time (Depends-on): Update.
11507         * modules/sys_times (Depends-on): Update.
11508         * modules/sys_utsname (Depends-on): Update.
11509         * modules/time (Depends-on): Update.
11510         * modules/unistd (Depends-on): Update.
11511         * modules/wchar (Depends-on): Update.
11512         * MODULES.html.sh (Support for building libraries and executables):
11513         Update.
11514
11515 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11516
11517         Improvements on _Noreturn and related modules.
11518
11519         modules/_Exit-tests: test _Noreturn too
11520         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11521         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11522         (main): Use them.
11523
11524         stdnoreturn, stdnoreturn-tests: remove modules
11525         They're not needed here and a bit premature for use elsewhere.  See
11526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11527         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11528         * tests/test-stdnoreturn.c: Remove files.
11529         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11530         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11531         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11532         and using noreturn.
11533         * modules/openat, modules/sigpipe-die, modules/xalloc:
11534         * modules/xmemdup0, modules/xstrtol:
11535         Remove dependency on stdnoreturn.
11536
11537         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11538         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11539         Reparenthesize to avoid GCC warning.
11540         Support Microsoft's syntax.
11541         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11542
11543         _Noreturn-tests: remove module
11544         * modules/_Noreturn-tests: Remove.
11545         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11546         * tests/test-_Noreturn.c: Remove.
11547         * tests/test-stdnoreturn.c: Merge from the old
11548         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11549
11550 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11551
11552         _Noreturn, stdnoreturn, and related modules.
11553
11554         * top/maint.mk: Adjust to new noreturn support.
11555         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11556         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11557
11558         xalloc: use stdnoreturn.h
11559         * lib/xalloc.h: Include <stdnoreturn.h>.
11560         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11561         * modules/xalloc (Depends-on): Add stdnoreturn.
11562
11563         xstrtol: use stdnoreturn.h
11564         * lib/xstrtol.h: Include <stdnoreturn.h>.
11565         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11566         * modules/xstrtol (Depends-on): Add stdnoreturn.
11567
11568         xmemdup0: use stdnoreturn.h
11569         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11570         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11571         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11572
11573         sigpipe-die: use stdnoreturn.h
11574         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11575         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11576         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11577
11578         openat: use stdnoreturn.h
11579         * lib/openat.h: Include <stdnoreturn.h>.
11580         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11581         * modules/openat (Depends-on): Add stdnoreturn.
11582
11583         * lib/openat-die.c (openat_save_fail): Modernize comment.
11584
11585         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11586
11587         * lib/glthread/thread.h: Modernize comment.
11588
11589         obstack: use _Noreturn
11590         * lib/obstack.c (__attribute__): Remove macro.
11591         (print_and_abort): Use _Noreturn.
11592
11593         c-stack: use _Noreturn
11594         * lib/c-stack.c (die, overflow_handler, segv_handler):
11595         Use _Noreturn rather than __attribute__((noreturn)).
11596
11597         argmatch-tests, exclude_tests: use _Noreturn
11598         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11599         Remove.
11600         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11601
11602         stdlib: use _Noreturn
11603         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11604         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11605         * modules/stdlib (Depends-on): Add _Noreturn.
11606         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11607
11608         stdnoreturn-tests: new module
11609         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11610
11611         stdnoreturn: new module
11612         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11613         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11614
11615         _Noreturn-tests: new module
11616         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11617
11618         _Noreturn: new module
11619         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11620         New section, mentioning it.
11621         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11622
11623         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11624
11625 2011-07-11  Eric Blake  <eblake@redhat.com>
11626
11627         ffs: new module
11628         * modules/ffs: New file.
11629         * m4/ffs.m4: Likewise.
11630         * lib/ffs.c: Likewise.
11631         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11632         * modules/strings (Makefile.am): Substitute witness.
11633         (Depends-on): Add c++defs.
11634         * lib/strings.in.h (ffs): Declare.
11635         * modules/ffs-tests: New test file.
11636         * tests/test-ffs.c: Test new module.
11637         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11638         * doc/posix-functions/ffs.texi (ffs): Likewise.
11639
11640         regex: avoid compiler warning
11641         * lib/regex.c (includes): Include <strings.h>, for use of
11642         strcasecmp in regcomp.c.
11643         Reported by Joachim Schmitz.
11644
11645 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11646
11647         stdint: respect system's intmax_t if INTMAX_MAX
11648         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11649         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11650         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11651         long but int64_t is long long, and where we will clash with the
11652         system intmax_t if we override it.  See
11653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11654         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11655         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11656         similarly for UINTMAX_C.
11657
11658 2011-07-08  Bruno Haible  <bruno@clisp.org>
11659
11660         pthread_sigmask tests: Avoid a compiler warning.
11661         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11662         non-zero.
11663
11664         sigprocmask tests: A better way to avoid a compiler warning.
11665         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11666         (main): Complain if system() returns non-zero.
11667         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11668
11669 2011-07-08  Bruno Haible  <bruno@clisp.org>
11670
11671         pthread_sigmask: Work around IRIX bug.
11672         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11673         bug.
11674         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11675         there may be unblocked pending signals.
11676         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11677
11678 2011-07-08  Bruno Haible  <bruno@clisp.org>
11679
11680         pthread_sigmask: Work around Cygwin bug.
11681         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11682         bug.
11683         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11684         the system's pthread_sigmask function.
11685         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11686
11687 2011-07-08  Bruno Haible  <bruno@clisp.org>
11688
11689         pthread_sigmask: Work around bug in single-threaded implementation.
11690         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11691         FreeBSD, HP-UX, Solaris bug.
11692         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11693         * lib/pthread_sigmask.c: Include <stddef.h>.
11694         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11695         the system's pthread_sigmask function.
11696         * modules/pthread_sigmask (configure.ac): Invoke
11697         gl_PREREQ_PTHREAD_SIGMASK.
11698         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11699         HP-UX, Solaris.
11700
11701 2011-07-08  Eric Blake  <eblake@redhat.com>
11702
11703         test-sigprocmask: avoid compiler warning
11704         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11705         * tests/test-sigprocmask.c (main): Use it to silence warning.
11706         Reported by Jim Meyering.
11707
11708         test-snprintf: avoid compiler warning
11709         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11710         * tests/test-vsnprintf.c (main): Likewise.
11711         Reported by Jim Meyering.
11712
11713 2011-07-08  Bruno Haible  <bruno@clisp.org>
11714
11715         Tests for module 'pthread_sigmask'.
11716         * modules/pthread_sigmask-tests: New file.
11717         * tests/test-pthread_sigmask1.c: New file, based on
11718         tests/test-sigprocmask.c.
11719         * tests/test-pthread_sigmask2.c: New file.
11720
11721 2011-07-08  Jim Meyering  <meyering@redhat.com>
11722
11723         test-getopt.h: avoid warning about an unused variable
11724         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11725
11726 2011-07-07  Jim Meyering  <meyering@redhat.com>
11727
11728         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11729         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11730         now that it no longer contains leading TABs.
11731         Remove unused "url=FIXME" statement.
11732
11733 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11734
11735         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11737         When gl_THREADLIB is not in use, assume that the POSIX sematics
11738         are desired.  This is better for Emacs, which uses POSIX semantics
11739         on GNUish and/or POSIXish platforms, and does not use threads at
11740         all otherwise.
11741
11742         pthread_sigmask: fix typo when testing for libraries
11743         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11744         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11745
11746 2011-07-08  Eric Blake  <eblake@redhat.com>
11747
11748         fts: introduce FTS_NOATIME
11749         * lib/fts_.h (FTS_NOATIME): New bit flag.
11750         (FTS_OPTIONMASK): Adjust.
11751         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11752         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11753
11754 2011-07-08  Bruno Haible  <bruno@clisp.org>
11755
11756         Tests for module 'thread'.
11757         * modules/thread-tests: New file.
11758         * tests/test-thread_self.c: New file.
11759         * tests/test-thread_create.cc: New file.
11760
11761 2011-07-08  Bruno Haible  <bruno@clisp.org>
11762
11763         thread: Avoid gcc warnings when using gl_thread_self().
11764         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11765         'void *'.
11766         (gl_thread_self_pointer): Update.
11767
11768 2011-07-07  Bruno Haible  <bruno@clisp.org>
11769
11770         signal-c++-tests: Check declaration of pthread_sigmask.
11771         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11772         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11773         $(LIB_PTHREAD_SIGMASK).
11774
11775 2011-07-07  Bruno Haible  <bruno@clisp.org>
11776
11777         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11778         * lib/signal.in.h (pthread_sigmask): Override if
11779         REPLACE_PTHREAD_SIGMASK is 1.
11780         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11781         REPLACE_PTHREAD_SIGMASK.
11782         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11783         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11784         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11785         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11786         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11787
11788 2011-07-07  Bruno Haible  <bruno@clisp.org>
11789
11790         pthread_sigmask: Ensure declaration in <signal.h>.
11791         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11792         include <pthread.h>.
11793         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11794         problem.
11795
11796 2011-07-07  Bruno Haible  <bruno@clisp.org>
11797
11798         pthread_sigmask: Document the module.
11799         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11800
11801 2011-07-07  Bruno Haible  <bruno@clisp.org>
11802
11803         pthread_sigmask: Follow gnulib conventions.
11804         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11805         gl_PTHREAD_SIGMASK.
11806         * modules/pthread_sigmask (configure.ac): Update.
11807
11808 2011-07-07  Bruno Haible  <bruno@clisp.org>
11809
11810         pthread_sigmask: Make declaration C++ safe.
11811         * lib/signal.in.h: In two special conditions, just do an #include_next.
11812         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11813         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11814         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11815         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11816         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11817         not REPLACE_PTHREAD_MASK.
11818         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11819         not REPLACE_PTHREAD_MASK.
11820         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11821
11822 2011-07-07  Bruno Haible  <bruno@clisp.org>
11823
11824         pthread_sigmask: Fix return value.
11825         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11826         * lib/pthread_sigmask.c: New file.
11827         * modules/pthread_sigmask (Files): Add it.
11828         (configure.ac): Invoke AC_LIBOBJ.
11829
11830 2011-07-07  Eric Blake  <eblake@redhat.com>
11831
11832         getopt: more portable argv creation
11833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11834         const, use char arrays rather than strings.
11835         Suggested by Paul Eggert.
11836
11837 2011-07-07  Bruno Haible  <bruno@clisp.org>
11838
11839         Tests for module 'sigprocmask'.
11840         * modules/sigprocmask-tests: New file.
11841         * tests/test-sigprocmask.c: New file.
11842
11843 2011-07-07  Bruno Haible  <bruno@clisp.org>
11844
11845         float tests: Tweak.
11846         * tests/test-float.c (main): Tweak skip message.
11847
11848 2011-07-07  Eric Blake  <eblake@redhat.com>
11849
11850         getopt: avoid compiler warning during configure
11851         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11852         assigning string literals to non-const pointer.
11853
11854         getopt-gnu: avoid crash in glibc getopt
11855         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11856         * tests/test-getopt.h (test_getopt): Enhance test.
11857         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11858         * doc/posix-functions/getopt.texi (getopt): Document it.
11859         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11860         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11861         Likewise.
11862
11863 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11864
11865         getopt: handle W; without long options in getopt [BZ #12922]
11866         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11867         but no long options are defined, just return 'W'.
11868
11869 2011-07-07  Bruno Haible  <bruno@clisp.org>
11870
11871         Avoid literal tabs.
11872         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11873         variable containing a tab instead of a literal tab.
11874         Reported by Jim Meyering.
11875
11876 2011-07-07  Bruno Haible  <bruno@clisp.org>
11877
11878         Comments.
11879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11880
11881 2011-07-06  Bruno Haible  <bruno@clisp.org>
11882
11883         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11884         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11885         <winsock2.h>.
11886         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11887         lib/sys_socket.in.h.
11888         (close, gethostname): Hide declarations from <winsock2.h>.
11889         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11890         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11891         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11892         (select): Don't override if gnulib's <sys/select.h> was already
11893         included.
11894         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11895         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11896         setsockopt, shutdown, select): Tweak indentation.
11897
11898 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11899
11900         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11901         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11902         in an application that does not use the sys_select module.
11903
11904 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11905
11906         poll: do not return 0 on timeout=-1
11907         * lib/poll.c: Loop with yield if no events occured
11908
11909 2011-07-06  Eric Blake  <eblake@redhat.com>
11910
11911         pthread_sigmask: always replace when not using pthread
11912         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11913         replacement when using some threading other than pthread.  Fix
11914         logic bug.
11915
11916 2011-07-06  Bruno Haible  <bruno@clisp.org>
11917
11918         Comments.
11919         * m4/printf.m4: Update comments about mingw.
11920
11921 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11922
11923         sys_select: define sigset_t more portably
11924         * lib/sys_select.in.h: Always include <sys/types.h>, since
11925         we now need sigset_t and mingw defines it there.
11926         Include <signal.h> before split inclusion guard, to avoid
11927         mishaps on Solaris, whose <signal.h> eventually includes us.
11928         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11929         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11930         which come from ...
11931         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11932         gl_CHECK_TYPE_SIGSET_T.
11933         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11934         does the real work.
11935         * modules/sys_select (Depends-on): Add 'signal'.
11936
11937         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11938         Suggested by Bruno Haible.
11939
11940         pselect: Use pthread_sigmask, not sigprocmask.
11941         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11942         multithreaded apps better than sigprocmask does.
11943         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11944         sigprocmask directly.
11945
11946 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11947
11948         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11949         Don't #undef,  since we don't need any underlying pselect.
11950         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11951         (Depends-on): Add select.
11952         (Link): Add $(LIBSOCKET).
11953         These changes suggested by Bruno Haible.
11954
11955         pselect: document better
11956         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11957         * doc/posix-functions/pselect.texi (pselect): Document new module.
11958
11959         pthread_sigmask: new module
11960         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11961         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11962         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11963         This is done only as a macro; I don't know how well that'll
11964         work for C++.  Move <sys/types.h> include before the include_next,
11965         to avoid mishap on Solaris.
11966         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11967         * modules/signal (Makefile.am): Substitute the check's results.
11968         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11969
11970         test-pselect: new module
11971         * modules/pselect-tests, tests/test-pselect.c: New files.
11972         * tests/test-select.c, tests/test-sys_select-c++.cc:
11973         If TEST_PSELECT is defined, test pselect instead of testing select.
11974
11975         * tests/test-sys_select.c (sigset_t): Test for it, too.
11976         Suggested by Bruno Haible.
11977
11978 2011-07-05  Eric Blake  <eblake@redhat.com>
11979
11980         snprintf: guarantee %1$d, for libintl
11981         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11982         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11983         * doc/posix-functions/snprintf.texi (snprintf): Update.
11984         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11985         * tests/test-snprintf.c (main): Enhance test.
11986         * tests/test-vsnprintf.c (main): Likewise.
11987
11988 2011-07-05  Jim Meyering  <meyering@redhat.com>
11989
11990         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11991         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11992         per Bruno's request, to accommodate this idiom (no space after "#")
11993         even when the function is inside an #if block:
11994         char *
11995         gets (char *s)
11996         #undef gets
11997         {
11998           ...
11999         }
12000
12001 2011-07-04  Jim Meyering  <meyering@redhat.com>
12002
12003         maint: indent with spaces, not TABs, and add a rule to check this
12004         * tests/test-userspec.c: Indent with spaces, not TABs.
12005         * tests/test-argp.c: Likewise.
12006         * tests/test-c-stack2.sh: Likewise.
12007         * tests/test-parse-duration.sh: Likewise
12008         * m4/strtod.m4: Likewise.
12009         * m4/alloca.m4: Likewise.
12010         * m4/pselect.m4: Likewise.
12011         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12012
12013 2011-07-03  Jim Meyering  <meyering@redhat.com>
12014
12015         maint.mk: correct omissions in prohibit_argmatch_without_use check
12016         This rule would mistakenly report that argmatch.h is included without
12017         use even when both the argmatch and invalid_arg macro were used.
12018         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12019         of argmatch and invalid_arg.
12020
12021 2011-07-03  Bruno Haible  <bruno@clisp.org>
12022
12023         Comments about EINTR.
12024         * lib/safe-read.h: Explain the purpose of this module.
12025         * lib/safe-write.h: Likewise.
12026         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12027         module.
12028         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12029         module.
12030         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12031
12032 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12033
12034         xnanosleep: Rewrite to use new dtotimespec module.
12035         It has the conversion code that used to be in xnanosleep.
12036         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12037         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12038         (TIME_T_MAX): Remove.
12039         (xnanosleep): Rewrite in terms of dtotimespec.
12040         * modules/xnanosleep (Depends-on): Add dtotimespec.
12041         Remove intprops, stdbool.
12042
12043         timespec-add, timespec-sub: new modules
12044         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12045         * lib/timespec-add.c, lib/timespec-sub.c:
12046         * modules/timespec-add, modules/timespec-sub: New files.
12047
12048         dtotimespec: new module
12049         * lib/timespec.h (dtotimespec): New decl.
12050         * lib/dtotimespec.c, modules/dtotimespec: New files.
12051
12052         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12053
12054         pselect: new module
12055         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12056         (pselect): New decls.
12057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12058         since the standard pselect decl uses 'restrict'.
12059         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12060         HAVE_PSELECT, REPLACE_PSELECT.
12061         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12062         HAVE_PSELECT, REPLACE_PSELECT.
12063         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12064
12065         sys_select: don't depend on sys_socket
12066         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12068         This fix works on GNU and GNU-like platforms, but has not been tested
12069         on native Windows.
12070         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12072         gl_HEADER_SYS_SOCKET.
12073         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12074         gl_PREREQ_SYS_H_WINSOCK2.
12075
12076 2011-06-29  Eric Blake  <eblake@redhat.com>
12077
12078         pipe2: fix C89 compile problem
12079         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12080         Reported by Bruno Haible.
12081
12082         pipe, pipe2: don't corrupt fd on error
12083         * lib/pipe.c (pipe): Leave fd unchanged on error.
12084         * lib/pipe2.c (pipe2): Likewise.
12085         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12086         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12087
12088 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12089
12090         mmap-anon: do not use regular expressions inadvertently
12091         * m4/mmap-anon.m4: Remove trailing period from strings sought
12092         in the output.
12093
12094 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12095
12096         nanosleep: fix integer overflow problem
12097         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12098         arithmetic wraps around on overflow.
12099
12100         nanosleep: simplify carrying
12101         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12102         first call to the underyling nanosleep, not for the last one.
12103         This doesn't fix any bugs, but it simplifies the computation of
12104         the remaining delay.  Found while auditing integer overflow issues.
12105
12106         dup2: remove test for existence of fcntl
12107         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12108         "#if HAVE_FCNTL", in the configure-time test program.
12109         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12110         and therefore speeds up "configure" a bit.  Found while
12111         adding the dup2 module to Emacs.
12112
12113 2011-06-24  Eric Blake  <eblake@redhat.com>
12114
12115         maint.mk: enhance useless header checks
12116         * top/maint.mk (_sc_header_without_use): Check both include
12117         styles.
12118         (sc_prohibit_assert_without_use)
12119         (sc_prohibit_close_stream_without_use)
12120         (sc_prohibit_getopt_without_use)
12121         (sc_prohibit_quotearg_without_use)
12122         (sc_prohibit_quote_without_use)
12123         (sc_prohibit_long_options_without_use)
12124         (sc_prohibit_inttostr_without_use)
12125         (sc_prohibit_ignore_value_without_use)
12126         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12127         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12128         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12129         (sc_prohibit_hash_pjw_without_use)
12130         (sc_prohibit_safe_read_without_use)
12131         (sc_prohibit_argmatch_without_use)
12132         (sc_prohibit_canonicalize_without_use)
12133         (sc_prohibit_root_dev_ino_without_use)
12134         (sc_prohibit_openat_without_use)
12135         (sc_prohibit_c_ctype_without_use)
12136         (sc_prohibit_signal_without_use)
12137         (sc_prohibit_stdio--_without_use)
12138         (sc_prohibit_stdio-safer_without_use)
12139         (sc_prohibit_strings_without_use)
12140         (sc_prohibit_intprops_without_use)
12141         (sc_prohibit_stddef_without_use)
12142         (sc_prohibit_xfreopen_without_use): Update clients.
12143
12144 2011-06-24  Jim Meyering  <meyering@redhat.com>
12145
12146         syntax-check: keep one maint.mk rule in sync with its header
12147         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12148         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12149         I prefer to avoid temporary files here, so use <(...), but that
12150         is not supported by /bin/sh, so...
12151         (SHELL): Define to /bin/bash.
12152
12153 2011-06-24  Eric Blake  <eblake@redhat.com>
12154
12155         maint.mk: update sc_prohibit_intprops_without_use
12156         * top/maint.mk (_intprops_names): Match recent changes.
12157
12158 2011-06-24  Bruno Haible  <bruno@clisp.org>
12159
12160         strerror-override: No-op tweak.
12161         * lib/strerror-override.h (strerror_override): Reorder conditions,
12162         for consistency with lib/strerror-override.c.
12163
12164 2011-06-23  Eric Blake  <eblake@redhat.com>
12165
12166         maint.mk: test further PATH_MAX issues
12167         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12168         (sc_prohibit_path_max_allocation): ...and also test alloca.
12169         Suggested by Jim Meyering.
12170
12171 2011-06-22  Eric Blake  <eblake@redhat.com>
12172
12173         maint.mk: add syntax-check to avoid char[PATH_MAX]
12174         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12175
12176         stat: be robust to PATH_MAX definition
12177         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12178         * modules/stat (Depends-on): Add verify.
12179
12180         link: work around IRIX bug
12181         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12182         * lib/link.c (rpl_link): Work around it.
12183         * tests/test-link.h (test_link): Enhance test.
12184         * doc/posix-functions/link.texi (link): Document the bug.
12185
12186         getopt: silence clang warning
12187         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12188         dereference.
12189         Reported by Gustavo Martin Domato.
12190
12191 2011-06-22  Jim Meyering  <meyering@redhat.com>
12192
12193         bootstrap: do not insert a blank line into each .gitignore file
12194         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12195
12196 2011-06-21  Eric Blake  <eblake@redhat.com>
12197
12198         perror: test for output mismatch
12199         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12200         perror on IRIX.
12201
12202         strerror_r: fix OpenBSD behavior on out-of-range
12203         * lib/strerror_r.c (strerror_r): Always use maximal string.
12204         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12205
12206         strerror_r: fix OpenBSD behavior on 0
12207         * lib/strerror-override.c (strerror_override): Also override 0
12208         when needed.
12209         * lib/strerror-override.h (strerror_override): Likewise.
12210         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12211         earlier.
12212         * lib/strerror_r.c (strerror_r): Likewise.
12213         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12214         behavior...
12215         (gl_FUNC_STRERROR_0): ...into new macro.
12216         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12217         is overridden.
12218         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12219         * modules/strerror-override (Files): Add strerror.m4.
12220         (configure.ac): Also provide override for 0 when needed.
12221         * doc/posix-functions/strerror.texi (strerror): Document this.
12222         * doc/posix-functions/perror.texi (perror): Likewise.
12223
12224         perror: adjust array size
12225         * modules/perror (Depends-on): Add strerror-override.
12226         * lib/perror.c (perror): Use it to avoid magic number.
12227
12228         strerror-override: reduce size
12229         * lib/strerror-override.c (strerror_override): Use fewer lines.
12230
12231 2011-06-20  Bruno Haible  <bruno@clisp.org>
12232
12233         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12234         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12235
12236 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12237
12238         alloca: port to compilers that can optimize like GCC 4.6.0
12239         * lib/alloca.c (find_stack_direction): New signature, taken from
12240         Autoconf git.  This works with GCC 4.6.0.  This code should never
12241         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12242         be used with other compilers that optimize as well as GCC 4.6.0 does.
12243         (alloca): Adjust to new signature.
12244         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12245         New macro, which patches Autoconf in a similar way.
12246
12247         c-stack: stop worrying about stack direction
12248         * lib/c-stack.c (find_stack_direction): Remove.
12249         (segv_handler): Don't worry about stack direction growth, as it's
12250         too much of a pain to configure this correctly, given how compilers
12251         are optimizing-away our stack-growth detection code.  Instead, assume
12252         that any access to just before or just after the stack is OK.
12253         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12254         Don't require AC_FUNC_ALLOCA; no longer needed.
12255
12256 2011-06-20  Eric Blake  <eblake@redhat.com>
12257
12258         test-stat: don't allocate PATH_MAX bytes
12259         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12260         PATH_MAX-sized buffer.
12261         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12262         * modules/stat-tests (Depends-on): Likewise.
12263         * tests/test-fstatat.c (includes): Drop pathmax.h.
12264         * tests/test-stat.c (includes): Likewise.
12265         Reported by Bruno Haible.
12266
12267 2011-06-20  Bruno Haible  <bruno@clisp.org>
12268
12269         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12270         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12271         * lib/float.c: New file.
12272         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12273         REPLACE_FLOAT_LDBL.
12274         * modules/float (Files): Add lib/float.c.
12275         (configure.ac): Invoke AC_LIBOBJ.
12276         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12277
12278 2011-06-20  Bruno Haible  <bruno@clisp.org>
12279
12280         Tests for module 'float'.
12281         * modules/float-tests: New file.
12282         * tests/test-float.c: New file.
12283
12284 2011-06-19  Bruno Haible  <bruno@clisp.org>
12285
12286         isinf: Coding style.
12287         * lib/isinf.c: Use GNU coding style.
12288
12289 2011-06-19  Bruno Haible  <bruno@clisp.org>
12290
12291         linkat test: Avoid test failure on AIX 7.1.
12292         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12293         * tests/test-link.h (test_link): Likewise.
12294
12295 2011-06-19  Bruno Haible  <bruno@clisp.org>
12296
12297         pread test: Avoid test failure on OpenBSD 4.9.
12298         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12299
12300 2011-06-19  Bruno Haible  <bruno@clisp.org>
12301
12302         sprintf-posix: Fix test failure on AIX 7.1.
12303         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12304         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12305         on AIX.
12306         * doc/posix-functions/fprintf.texi: Likewise.
12307         * doc/posix-functions/printf.texi: Likewise.
12308         * doc/posix-functions/snprintf.texi: Likewise.
12309         * doc/posix-functions/sprintf.texi: Likewise.
12310         * doc/posix-functions/vdprintf.texi: Likewise.
12311         * doc/posix-functions/vfprintf.texi: Likewise.
12312         * doc/posix-functions/vprintf.texi: Likewise.
12313         * doc/posix-functions/vsnprintf.texi: Likewise.
12314         * doc/posix-functions/vsprintf.texi: Likewise.
12315
12316 2011-06-19  Bruno Haible  <bruno@clisp.org>
12317
12318         roundl-ieee: Fix test failure on AIX 7.1.
12319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12320         * doc/posix-functions/roundl.texi: Mention problem with negative
12321         arguments.
12322
12323 2011-06-19  Bruno Haible  <bruno@clisp.org>
12324
12325         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12326         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12327         * doc/posix-functions/round.texi: Mention problem with negative
12328         arguments.
12329         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12330
12331 2011-06-19  Bruno Haible  <bruno@clisp.org>
12332
12333         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12334         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12335         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12336         * doc/posix-functions/roundf.texi: Mention problem with negative
12337         arguments.
12338         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12339
12340 2011-06-19  Bruno Haible  <bruno@clisp.org>
12341
12342         ceilf-ieee: Work around bug on MacOS X 10.5.
12343         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12344
12345         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12346         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12347         IEEE compliant, avoid compiler optimizations.
12348         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12349         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12350         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12351         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12352         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12353         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12354         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12356         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12358
12359 2011-06-19  Bruno Haible  <bruno@clisp.org>
12360
12361         ceilf-ieee: Work around bug on AIX 7.1.
12362         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12363         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12364
12365 2011-06-19  Bruno Haible  <bruno@clisp.org>
12366
12367         ceil-ieee: Work around bug on AIX 7.1.
12368         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12369         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12370
12371 2011-06-18  Bruno Haible  <bruno@clisp.org>
12372
12373         fsync test: Avoid test failure on MacOS X and AIX.
12374         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12375         EINVAL.
12376
12377 2011-06-18  Bruno Haible  <bruno@clisp.org>
12378
12379         openat, fdopendir tests: Fix link errors.
12380         * modules/openat-tests (Depends-on): Add progname.
12381         * modules/fdopendir-tests (Depends-on): Likewise.
12382         * tests/test-fchownat.c: Include progname.h.
12383         (main): Call set_program_name.
12384         * tests/test-fstatat.c: Include progname.h.
12385         (main): Call set_program_name.
12386         * tests/test-mkdirat.c: Include progname.h.
12387         (main): Call set_program_name.
12388         * tests/test-openat.c: Include progname.h.
12389         (main): Call set_program_name.
12390         * tests/test-unlinkat.c: Include progname.h.
12391         (main): Call set_program_name.
12392         * tests/test-fdopendir.c: Include progname.h.
12393         (main): Call set_program_name.
12394
12395 2011-06-18  Bruno Haible  <bruno@clisp.org>
12396
12397         Doc update.
12398         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12399         HP-UX.
12400         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12401
12402 2011-06-18  Bruno Haible  <bruno@clisp.org>
12403
12404         getcwd tests: Avoid compilation error on HP-UX 11.31.
12405         * modules/getcwd-tests (Depends-on): Add pathmax.
12406         * tests/test-getcwd.c: Include pathmax.h.
12407
12408 2011-06-18  Bruno Haible  <bruno@clisp.org>
12409
12410         isfinite, isinf: Fix link error on AIX 6 and 7.
12411         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12412         needed, also test the macro with a 'float' argument.
12413         * m4/isinf.m4 (gl_ISINF): Likewise.
12414
12415 2011-06-18  Bruno Haible  <bruno@clisp.org>
12416
12417         getloadavg: Don't clobber LIBS. Regression from previous commit.
12418         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12419         AC_CHECK_LIB from here...
12420         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12421         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12422         gl_func_getloadavg_done.
12423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12424
12425 2011-06-18  Bruno Haible  <bruno@clisp.org>
12426
12427         clean-temp: Improve documentation.
12428         * lib/clean-temp.h: Explain better how to use this module.
12429         Reported by John Darrington <john@darrington.wattle.id.au>.
12430
12431 2011-06-17  Bruno Haible  <bruno@clisp.org>
12432
12433         pread, pwrite: Avoid cc warning on AIX.
12434         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12435         (pwrite): Likewise.
12436
12437 2011-06-17  Bruno Haible  <bruno@clisp.org>
12438
12439         spawn-pipe tests: Fix link error.
12440         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12442
12443 2011-06-17  Bruno Haible  <bruno@clisp.org>
12444
12445         Tests: Remove unnecessary dependency.
12446         * modules/canonicalize-tests (Depends-on): Remove progname.
12447         * modules/chown-tests (Depends-on): Likewise.
12448         * modules/dirname-tests (Depends-on): Likewise.
12449         * modules/fdopendir-tests (Depends-on): Likewise.
12450         * modules/fdutimensat-tests (Depends-on): Likewise.
12451         * modules/hash-tests (Depends-on): Likewise.
12452         * modules/lchown-tests (Depends-on): Likewise.
12453         * modules/linkat-tests (Depends-on): Likewise.
12454         * modules/renameat-tests (Depends-on): Likewise.
12455         * modules/spawn-pipe-tests (Depends-on): Likewise.
12456         * modules/utimensat-tests (Depends-on): Likewise.
12457
12458 2011-06-17  Bruno Haible  <bruno@clisp.org>
12459
12460         spawn-pipe tests: Fix link error.
12461         * tests/test-spawn-pipe-child.c: Undefine fflush.
12462
12463 2011-06-17  Bruno Haible  <bruno@clisp.org>
12464
12465         Fix tests link errors.
12466         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12467         * modules/chown-tests (Makefile.am): Don't link test-chown with
12468         LIBINTL.
12469         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12470         LIBINTL.
12471         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12472         LIBINTL.
12473         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12474         LIBINTL.
12475
12476 2011-06-16  Bruno Haible  <bruno@clisp.org>
12477
12478         crypto/gc-sha1: Fix recent regression.
12479         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12480         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12481
12482         crypto/gc-md5: Fix recent regression.
12483         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12484
12485         crypto/gc-md4: Fix recent regression.
12486         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12487         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12488
12489         crypto/gc-arctwo: Fix recent regression.
12490         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12491         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12492
12493         crypto/gc-rijndael: Fix recent regression.
12494         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12495         (configure.ac): Invoke AC_LIBOBJ here.
12496         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12498
12499         crypto/gc-hmac-sha1: Fix recent regression.
12500         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12501         (configure.ac): Invoke AC_LIBOBJ here.
12502         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12504
12505         crypto/gc-hmac-md5: Fix recent regression.
12506         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12507         (configure.ac): Invoke AC_LIBOBJ here.
12508         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12509         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12510
12511         crypto/gc-des: Fix recent regression.
12512         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12513         (configure.ac): Invoke AC_LIBOBJ here.
12514         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12515         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12516
12517         crypto/gc-arcfour: Fix recent regression.
12518         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12519         (configure.ac): Invoke AC_LIBOBJ here.
12520         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12521         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12522
12523 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12526         After the 2011-05-21 change, this macro requires
12527         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12528         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12529
12530 2011-06-16  Bruno Haible  <bruno@clisp.org>
12531
12532         fprintftime: Move AC_LIBOBJ invocations to module description.
12533         * m4/fprintftime.m4: Remove file.
12534         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12535         (configure.ac): Remove gl_FPRINTFTIME call.
12536         (Makefile.am): Augment lib_SOURCES.
12537         Reported by Jim Meyering.
12538
12539 2011-06-16  Bruno Haible  <bruno@clisp.org>
12540
12541         tmpfile-safer: Finish 2011-05-23 commit.
12542         * m4/stdio-safer.m4: Really remove file.
12543         Reported by Jim Meyering.
12544
12545 2011-06-16  Bruno Haible  <bruno@clisp.org>
12546
12547         syntax-check: Fix typo.
12548         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12549         printf-posix.m4.
12550         Reported by Jim Meyering.
12551
12552 2011-06-13  Jim Meyering  <meyering@redhat.com>
12553
12554         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12555         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12556
12557 2011-05-23  Bruno Haible  <bruno@clisp.org>
12558
12559         yesno: Move AC_LIBOBJ invocations to module description.
12560         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12561         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12562
12563 2011-05-23  Bruno Haible  <bruno@clisp.org>
12564
12565         xstrtol: Move AC_LIBOBJ invocations to module description.
12566         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12567         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12568
12569 2011-05-23  Bruno Haible  <bruno@clisp.org>
12570
12571         xstrtold: Move AC_LIBOBJ invocations to module description.
12572         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12573         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12574
12575 2011-05-23  Bruno Haible  <bruno@clisp.org>
12576
12577         xstrtod: Move AC_LIBOBJ invocations to module description.
12578         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12579         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12580
12581 2011-05-23  Bruno Haible  <bruno@clisp.org>
12582
12583         xnanosleep: Move AC_LIBOBJ invocations to module description.
12584         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12585         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12586
12587 2011-05-23  Bruno Haible  <bruno@clisp.org>
12588
12589         xgetcwd: Move AC_LIBOBJ invocations to module description.
12590         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12591         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12592
12593 2011-05-23  Bruno Haible  <bruno@clisp.org>
12594
12595         xalloc: Move AC_LIBOBJ invocations to module description.
12596         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12597         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12598
12599 2011-05-23  Bruno Haible  <bruno@clisp.org>
12600
12601         write-any-file: Move AC_LIBOBJ invocations to module description.
12602         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12603         invocation.
12604         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12605
12606 2011-05-23  Bruno Haible  <bruno@clisp.org>
12607
12608         utimens: Move AC_LIBOBJ invocations to module description.
12609         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12610         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12611
12612 2011-05-23  Bruno Haible  <bruno@clisp.org>
12613
12614         utimecmp: Move AC_LIBOBJ invocations to module description.
12615         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12616         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12617
12618 2011-05-23  Bruno Haible  <bruno@clisp.org>
12619
12620         userspec: Move AC_LIBOBJ invocations to module description.
12621         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12622         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12623
12624 2011-05-23  Bruno Haible  <bruno@clisp.org>
12625
12626         unlinkdir: Move AC_LIBOBJ invocations to module description.
12627         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12628         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12629
12630 2011-05-23  Bruno Haible  <bruno@clisp.org>
12631
12632         unistd-safer: Move AC_LIBOBJ invocations to module description.
12633         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12634         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12635
12636 2011-05-23  Bruno Haible  <bruno@clisp.org>
12637
12638         tempname: Move AC_LIBOBJ invocations to module description.
12639         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12640         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12641
12642 2011-05-23  Bruno Haible  <bruno@clisp.org>
12643
12644         strftime: Move AC_LIBOBJ invocations to module description.
12645         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12646         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12647
12648 2011-05-23  Bruno Haible  <bruno@clisp.org>
12649
12650         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12651         * m4/stdlib-safer.m4: Remove file.
12652         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12653         (configure.ac): Remove gl_STDLIB_SAFER call.
12654         (Makefile.am): Augment lib_SOURCES.
12655
12656 2011-05-23  Bruno Haible  <bruno@clisp.org>
12657
12658         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12659         * m4/stdio-safer.m4: Remove file.
12660         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12661         (configure.ac): Remove gl_TMPFILE_SAFER call.
12662         (Makefile.am): Augment lib_SOURCES.
12663
12664 2011-05-23  Bruno Haible  <bruno@clisp.org>
12665
12666         popen-safer: Move AC_LIBOBJ invocations to module description.
12667         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12668         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12669         (configure.ac): Remove gl_POPEN_SAFER call.
12670         (Makefile.am): Augment lib_SOURCES.
12671
12672 2011-05-23  Bruno Haible  <bruno@clisp.org>
12673
12674         freopen-safer: Move AC_LIBOBJ invocations to module description.
12675         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12676         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12677         (configure.ac): Remove gl_FREOPEN_SAFER call.
12678         (Makefile.am): Augment lib_SOURCES.
12679
12680 2011-05-23  Bruno Haible  <bruno@clisp.org>
12681
12682         fopen-safer: Move AC_LIBOBJ invocations to module description.
12683         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12684         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12685         (configure.ac): Remove gl_FOPEN_SAFER call.
12686         (Makefile.am): Augment lib_SOURCES.
12687
12688 2011-05-23  Bruno Haible  <bruno@clisp.org>
12689
12690         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12691         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12692         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12693
12694 2011-05-23  Bruno Haible  <bruno@clisp.org>
12695
12696         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12697         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12698         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12699
12700 2011-05-23  Bruno Haible  <bruno@clisp.org>
12701
12702         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12703         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12704         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12705
12706 2011-05-23  Bruno Haible  <bruno@clisp.org>
12707
12708         settime: Move AC_LIBOBJ invocations to module description.
12709         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12710         * modules/settime (Makefile.am): Augment lib_SOURCES.
12711
12712 2011-05-23  Bruno Haible  <bruno@clisp.org>
12713
12714         savedir: Move AC_LIBOBJ invocations to module description.
12715         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12716         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12717
12718 2011-05-23  Bruno Haible  <bruno@clisp.org>
12719
12720         save-cwd: Move AC_LIBOBJ invocations to module description.
12721         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12722         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12723
12724 2011-05-23  Bruno Haible  <bruno@clisp.org>
12725
12726         same: Move AC_LIBOBJ invocations to module description.
12727         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12728         * modules/same (Makefile.am): Augment lib_SOURCES.
12729
12730 2011-05-23  Bruno Haible  <bruno@clisp.org>
12731
12732         safe-write: Move AC_LIBOBJ invocations to module description.
12733         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12734         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12735         instead of gl_SAFE_WRITE.
12736         (Makefile.am): Augment lib_SOURCES.
12737
12738 2011-05-23  Bruno Haible  <bruno@clisp.org>
12739
12740         safe-read: Move AC_LIBOBJ invocations to module description.
12741         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12742         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12743         of gl_SAFE_READ.
12744         (Makefile.am): Augment lib_SOURCES.
12745
12746 2011-05-23  Bruno Haible  <bruno@clisp.org>
12747
12748         safe-alloc: Move AC_LIBOBJ invocations to module description.
12749         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12750         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12751
12752 2011-05-23  Bruno Haible  <bruno@clisp.org>
12753
12754         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12755         * m4/rijndael.m4: Remove file.
12756         * modules/crypto/rijndael (Files): Remove it.
12757         (configure.ac): Remove gl_RIJNDAEL call.
12758         (Makefile.am): Augment lib_SOURCES.
12759
12760 2011-05-23  Bruno Haible  <bruno@clisp.org>
12761
12762         readtokens: Move AC_LIBOBJ invocations to module description.
12763         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12764         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12765
12766 2011-05-23  Bruno Haible  <bruno@clisp.org>
12767
12768         read-file: Move AC_LIBOBJ invocations to module description.
12769         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12770         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12771         of gl_FUNC_READ_FILE.
12772         (Makefile.am): Augment lib_SOURCES.
12773
12774 2011-05-23  Bruno Haible  <bruno@clisp.org>
12775
12776         quotearg: Move AC_LIBOBJ invocations to module description.
12777         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12778         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12779
12780 2011-05-23  Bruno Haible  <bruno@clisp.org>
12781
12782         quote: Move AC_LIBOBJ invocations to module description.
12783         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12784         * modules/quote (Makefile.am): Augment lib_SOURCES.
12785
12786 2011-05-23  Bruno Haible  <bruno@clisp.org>
12787
12788         posixver: Move AC_LIBOBJ invocations to module description.
12789         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12790         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12791
12792 2011-05-23  Bruno Haible  <bruno@clisp.org>
12793
12794         posixtm: Move AC_LIBOBJ invocations to module description.
12795         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12796         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12797
12798 2011-05-23  Bruno Haible  <bruno@clisp.org>
12799
12800         physmem: Move AC_LIBOBJ invocations to module description.
12801         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12802         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12803
12804 2011-05-23  Bruno Haible  <bruno@clisp.org>
12805
12806         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12807         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12808         invocation.
12809         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12810
12811 2011-05-23  Bruno Haible  <bruno@clisp.org>
12812
12813         mpsort: Move AC_LIBOBJ invocations to module description.
12814         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12815         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12816
12817 2011-05-23  Bruno Haible  <bruno@clisp.org>
12818
12819         modechange: Move AC_LIBOBJ invocations to module description.
12820         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12821         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12822
12823 2011-05-23  Bruno Haible  <bruno@clisp.org>
12824
12825         mkdir-p: Move AC_LIBOBJ invocations to module description.
12826         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12827         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12828
12829 2011-05-23  Bruno Haible  <bruno@clisp.org>
12830
12831         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12832         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12833         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12834
12835 2011-05-23  Bruno Haible  <bruno@clisp.org>
12836
12837         mgetgroups: Move AC_LIBOBJ invocations to module description.
12838         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12839         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12840
12841 2011-05-23  Bruno Haible  <bruno@clisp.org>
12842
12843         memxor: Move AC_LIBOBJ invocations to module description.
12844         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12845         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12846
12847 2011-05-23  Bruno Haible  <bruno@clisp.org>
12848
12849         memcoll: Move AC_LIBOBJ invocations to module description.
12850         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12851         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12852
12853 2011-05-23  Bruno Haible  <bruno@clisp.org>
12854
12855         memcasecmp: Move AC_LIBOBJ invocations to module description.
12856         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12857         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12858
12859 2011-05-23  Bruno Haible  <bruno@clisp.org>
12860
12861         crypto/md5: Move AC_LIBOBJ invocations to module description.
12862         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12863         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12864
12865 2011-05-23  Bruno Haible  <bruno@clisp.org>
12866
12867         crypto/md4: Move AC_LIBOBJ invocations to module description.
12868         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12869         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12870
12871 2011-05-23  Bruno Haible  <bruno@clisp.org>
12872
12873         crypto/md2: Move AC_LIBOBJ invocations to module description.
12874         * m4/md2.m4: Remove file.
12875         * modules/crypto/md2 (Files): Remove it.
12876         (configure.ac): Remove gl_MD2 call.
12877         (Makefile.am): Augment lib_SOURCES.
12878
12879 2011-05-23  Bruno Haible  <bruno@clisp.org>
12880
12881         long-options: Move AC_LIBOBJ invocations to module description.
12882         * m4/long-options.m4: Remove file.
12883         * modules/long-options (Files): Remove it.
12884         (configure.ac): Remove gl_LONG_OPTIONS call.
12885         (Makefile.am): Augment lib_SOURCES.
12886
12887 2011-05-23  Bruno Haible  <bruno@clisp.org>
12888
12889         i-ring: Move AC_LIBOBJ invocations to module description.
12890         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12891         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12892
12893 2011-05-23  Bruno Haible  <bruno@clisp.org>
12894
12895         idcache: Move AC_LIBOBJ invocations to module description.
12896         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12897         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12898
12899 2011-05-23  Bruno Haible  <bruno@clisp.org>
12900
12901         human: Move AC_LIBOBJ invocations to module description.
12902         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12903         * modules/human (Makefile.am): Augment lib_SOURCES.
12904
12905 2011-05-23  Bruno Haible  <bruno@clisp.org>
12906
12907         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12908         * m4/hmac-sha1.m4: Remove file.
12909         * modules/crypto/hmac-sha1 (Files): Remove it.
12910         (configure.ac): Remove gl_HMAC_SHA1 call.
12911         (Makefile.am): Augment lib_SOURCES.
12912
12913 2011-05-23  Bruno Haible  <bruno@clisp.org>
12914
12915         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12916         * m4/hmac-md5.m4: Remove file.
12917         * modules/crypto/hmac-md5 (Files): Remove it.
12918         (configure.ac): Remove gl_HMAC_MD5 call.
12919         (Makefile.am): Augment lib_SOURCES.
12920
12921 2011-05-23  Bruno Haible  <bruno@clisp.org>
12922
12923         hash: Move AC_LIBOBJ invocations to module description.
12924         * m4/hash.m4: Remove file.
12925         * modules/hash (Files): Remove it.
12926         (configure.ac): Remove gl_HASH call.
12927         (Makefile.am): Augment lib_SOURCES.
12928
12929 2011-05-23  Bruno Haible  <bruno@clisp.org>
12930
12931         hard-locale: Move AC_LIBOBJ invocations to module description.
12932         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12933         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12934
12935 2011-05-23  Bruno Haible  <bruno@clisp.org>
12936
12937         getugroups: Move AC_LIBOBJ invocations to module description.
12938         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12939         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12940
12941 2011-05-23  Bruno Haible  <bruno@clisp.org>
12942
12943         gettime: Move AC_LIBOBJ invocations to module description.
12944         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12945         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12946
12947 2011-05-23  Bruno Haible  <bruno@clisp.org>
12948
12949         getndelim2: Move AC_LIBOBJ invocations to module description.
12950         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12951         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12952
12953 2011-05-23  Bruno Haible  <bruno@clisp.org>
12954
12955         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12956         * m4/gc-pbkdf2-sha1.m4: Remove file.
12957         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12958         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12959         (Makefile.am): Augment lib_SOURCES.
12960
12961 2011-05-23  Bruno Haible  <bruno@clisp.org>
12962
12963         fts: Move AC_LIBOBJ invocations to module description.
12964         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12965         * modules/fts (configure.ac): ... to here.
12966
12967 2011-05-23  Bruno Haible  <bruno@clisp.org>
12968
12969         file-type: Move AC_LIBOBJ invocations to module description.
12970         * m4/file-type.m4: Remove file.
12971         * modules/file-type (Files): Remove it.
12972         (configure.ac): Remove gl_FILE_TYPE call.
12973         (Makefile.am): Augment lib_SOURCES.
12974
12975 2011-05-23  Bruno Haible  <bruno@clisp.org>
12976
12977         filenamecat*: Respect rules for use of AC_LIBOBJ.
12978         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12979         Remove AC_LIBOBJ invocation.
12980         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12981         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12982
12983 2011-05-23  Bruno Haible  <bruno@clisp.org>
12984
12985         filemode: Move AC_LIBOBJ invocations to module description.
12986         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12987         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12988
12989 2011-05-23  Bruno Haible  <bruno@clisp.org>
12990
12991         openat-safer: Move AC_LIBOBJ invocations to module description.
12992         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12993         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12994
12995 2011-05-23  Bruno Haible  <bruno@clisp.org>
12996
12997         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12998         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12999         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13000
13001 2011-05-23  Bruno Haible  <bruno@clisp.org>
13002
13003         exclude: Move AC_LIBOBJ invocations to module description.
13004         * m4/exclude.m4: Remove file.
13005         * modules/exclude (Files): Remove it.
13006         (configure.ac): Remove gl_EXCLUDE call.
13007         (Makefile.am): Augment lib_SOURCES.
13008
13009 2011-05-23  Bruno Haible  <bruno@clisp.org>
13010
13011         dirname*: Respect rules for use of AC_LIBOBJ.
13012         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13013         invocations.
13014         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13015         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13016
13017 2011-05-23  Bruno Haible  <bruno@clisp.org>
13018
13019         dirent-safer: Move AC_LIBOBJ invocations to module description.
13020         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13021         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13022
13023 2011-05-23  Bruno Haible  <bruno@clisp.org>
13024
13025         crypto/des: Move AC_LIBOBJ invocations to module description.
13026         * m4/des.m4: Remove file.
13027         * modules/crypto/des (Files): Remove it.
13028         (configure.ac): Remove gl_DES call.
13029         (Makefile.am): Augment lib_SOURCES.
13030
13031 2011-05-23  Bruno Haible  <bruno@clisp.org>
13032
13033         cycle-check: Move AC_LIBOBJ invocations to module description.
13034         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13035         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13036
13037 2011-05-23  Bruno Haible  <bruno@clisp.org>
13038
13039         c-strtold: Move AC_LIBOBJ invocations to module description.
13040         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13041         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13042
13043 2011-05-23  Bruno Haible  <bruno@clisp.org>
13044
13045         c-strtod: Move AC_LIBOBJ invocations to module description.
13046         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13047         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13048
13049 2011-05-23  Bruno Haible  <bruno@clisp.org>
13050
13051         crc: Move AC_LIBOBJ invocations to module description.
13052         * m4/crc.m4: Remove file.
13053         * modules/crc (Files): Remove it.
13054         (configure.ac): Remove gl_CRC call.
13055         (Makefile.am): Augment lib_SOURCES.
13056
13057 2011-05-23  Bruno Haible  <bruno@clisp.org>
13058
13059         close-stream: Move AC_LIBOBJ invocations to module description.
13060         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13061         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13062
13063 2011-05-23  Bruno Haible  <bruno@clisp.org>
13064
13065         closeout: Move AC_LIBOBJ invocations to module description.
13066         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13067         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13068
13069 2011-05-23  Bruno Haible  <bruno@clisp.org>
13070
13071         closein: Move AC_LIBOBJ invocations to module description.
13072         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13073         * modules/closein (Makefile.am): Augment lib_SOURCES.
13074
13075 2011-05-23  Bruno Haible  <bruno@clisp.org>
13076
13077         cloexec: Move AC_LIBOBJ invocations to module description.
13078         * m4/cloexec.m4: Remove file.
13079         * modules/cloexec (Files): Remove it.
13080         (configure.ac): Remove gl_CLOEXEC call.
13081         (Makefile.am): Augment lib_SOURCES.
13082
13083 2011-05-23  Bruno Haible  <bruno@clisp.org>
13084
13085         check-version: Move AC_LIBOBJ invocations to module description.
13086         * m4/check-version.m4: Remove file.
13087         * modules/check-version (Files): Remove it.
13088         (configure.ac): Remove gl_CHECK_VERSION call.
13089         (Makefile.am): Augment lib_SOURCES.
13090
13091 2011-05-23  Bruno Haible  <bruno@clisp.org>
13092
13093         chdir-safer: Move AC_LIBOBJ invocations to module description.
13094         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13095         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13096
13097 2011-05-23  Bruno Haible  <bruno@clisp.org>
13098
13099         canonicalize: Move AC_LIBOBJ invocations to module description.
13100         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13101         AC_LIBOBJ invocation.
13102         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13103
13104 2011-05-23  Bruno Haible  <bruno@clisp.org>
13105
13106         canon-host: Move AC_LIBOBJ invocations to module description.
13107         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13108         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13109         instead of gl_CANON_HOST.
13110         (Makefile.am): Augment lib_SOURCES.
13111
13112 2011-05-23  Bruno Haible  <bruno@clisp.org>
13113
13114         backupfile: Move AC_LIBOBJ invocations to module description.
13115         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13116         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13117
13118 2011-05-23  Bruno Haible  <bruno@clisp.org>
13119
13120         argmatch: Move AC_LIBOBJ invocations to module description.
13121         * m4/argmatch.m4: Remove file.
13122         * modules/argmatch (Files): Remove it.
13123         (configure.ac): Remove gl_ARGMATCH call.
13124         (Makefile.am): Augment lib_SOURCES.
13125
13126 2011-05-23  Bruno Haible  <bruno@clisp.org>
13127
13128         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13129         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13130         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13131
13132 2011-05-23  Bruno Haible  <bruno@clisp.org>
13133
13134         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13135         * m4/arcfour.m4: Remove file.
13136         * modules/crypto/arcfour (Files): Remove it.
13137         (configure.ac): Remove gl_ARCFOUR call.
13138         (Makefile.am): Augment lib_SOURCES.
13139
13140 2011-05-22  Bruno Haible  <bruno@clisp.org>
13141
13142         write: Move AC_LIBOBJ invocations to module description.
13143         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13144         * modules/write (configure.ac): ... to here.
13145
13146 2011-05-22  Bruno Haible  <bruno@clisp.org>
13147
13148         wmemset: Move AC_LIBOBJ invocations to module description.
13149         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13150         here...
13151         * modules/wmemset (configure.ac): ... to here.
13152
13153 2011-05-22  Bruno Haible  <bruno@clisp.org>
13154
13155         wmemmove: Move AC_LIBOBJ invocations to module description.
13156         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13157         here...
13158         * modules/wmemmove (configure.ac): ... to here.
13159
13160 2011-05-22  Bruno Haible  <bruno@clisp.org>
13161
13162         wmemcpy: Move AC_LIBOBJ invocations to module description.
13163         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13164         here...
13165         * modules/wmemcpy (configure.ac): ... to here.
13166
13167 2011-05-22  Bruno Haible  <bruno@clisp.org>
13168
13169         wmemcmp: Move AC_LIBOBJ invocations to module description.
13170         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13171         here...
13172         * modules/wmemcmp (configure.ac): ... to here.
13173
13174 2011-05-22  Bruno Haible  <bruno@clisp.org>
13175
13176         wmemchr: Move AC_LIBOBJ invocations to module description.
13177         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13178         here...
13179         * modules/wmemchr (configure.ac): ... to here.
13180
13181 2011-05-22  Bruno Haible  <bruno@clisp.org>
13182
13183         wcswidth: Move AC_LIBOBJ invocations to module description.
13184         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13185         here...
13186         * modules/wcswidth (configure.ac): ... to here.
13187
13188 2011-05-22  Bruno Haible  <bruno@clisp.org>
13189
13190         wcwidth: Respect rules for use of AC_LIBOBJ.
13191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13192         invocation from here...
13193         * modules/wcwidth (configure.ac): ... to here.
13194         (Depends-on): Update conditions.
13195
13196 2011-05-22  Bruno Haible  <bruno@clisp.org>
13197
13198         wctype: Move AC_LIBOBJ invocations to module description.
13199         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13200         invocation from here...
13201         * modules/wctype (configure.ac): ... to here.
13202         (Depends-on): Update conditions.
13203
13204 2011-05-22  Bruno Haible  <bruno@clisp.org>
13205
13206         wctrans: Move AC_LIBOBJ invocations to module description.
13207         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13208         invocation from here...
13209         * modules/wctrans (configure.ac): ... to here.
13210
13211 2011-05-22  Bruno Haible  <bruno@clisp.org>
13212
13213         wctomb: Move AC_LIBOBJ invocations to module description.
13214         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13215         invocations from here...
13216         * modules/wctomb (configure.ac): ... to here.
13217
13218 2011-05-22  Bruno Haible  <bruno@clisp.org>
13219
13220         wctob: Move AC_LIBOBJ invocations to module description.
13221         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13222         gl_PREREQ_WCTOB invocations from here...
13223         * modules/wctob (configure.ac): ... to here.
13224         (Depends-on): Update conditions.
13225
13226 2011-05-22  Bruno Haible  <bruno@clisp.org>
13227
13228         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13229         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13230         here...
13231         * modules/wcsxfrm (configure.ac): ... to here.
13232
13233 2011-05-22  Bruno Haible  <bruno@clisp.org>
13234
13235         wcstok: Move AC_LIBOBJ invocations to module description.
13236         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13237         * modules/wcstok (configure.ac): ... to here.
13238
13239 2011-05-22  Bruno Haible  <bruno@clisp.org>
13240
13241         wcsstr: Move AC_LIBOBJ invocations to module description.
13242         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13243         * modules/wcsstr (configure.ac): ... to here.
13244
13245 2011-05-22  Bruno Haible  <bruno@clisp.org>
13246
13247         wcsspn: Move AC_LIBOBJ invocations to module description.
13248         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13249         * modules/wcsspn (configure.ac): ... to here.
13250
13251 2011-05-22  Bruno Haible  <bruno@clisp.org>
13252
13253         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13254         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13255         gl_PREREQ_WCSRTOMBS invocations from here...
13256         * modules/wcsrtombs (configure.ac): ... to here.
13257
13258 2011-05-22  Bruno Haible  <bruno@clisp.org>
13259
13260         wcsrchr: Move AC_LIBOBJ invocations to module description.
13261         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13262         here...
13263         * modules/wcsrchr (configure.ac): ... to here.
13264
13265 2011-05-22  Bruno Haible  <bruno@clisp.org>
13266
13267         wcspbrk: Move AC_LIBOBJ invocations to module description.
13268         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13269         here...
13270         * modules/wcspbrk (configure.ac): ... to here.
13271
13272 2011-05-22  Bruno Haible  <bruno@clisp.org>
13273
13274         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13275         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13276         gl_PREREQ_WCSNRTOMBS invocations from here...
13277         * modules/wcsnrtombs (configure.ac): ... to here.
13278
13279 2011-05-22  Bruno Haible  <bruno@clisp.org>
13280
13281         wcsnlen: Move AC_LIBOBJ invocations to module description.
13282         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13283         here...
13284         * modules/wcsnlen (configure.ac): ... to here.
13285
13286 2011-05-22  Bruno Haible  <bruno@clisp.org>
13287
13288         wcsncpy: Move AC_LIBOBJ invocations to module description.
13289         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13290         here...
13291         * modules/wcsncpy (configure.ac): ... to here.
13292
13293 2011-05-22  Bruno Haible  <bruno@clisp.org>
13294
13295         wcsncmp: Move AC_LIBOBJ invocations to module description.
13296         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13297         here...
13298         * modules/wcsncmp (configure.ac): ... to here.
13299
13300 2011-05-22  Bruno Haible  <bruno@clisp.org>
13301
13302         wcsncat: Move AC_LIBOBJ invocations to module description.
13303         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13304         here...
13305         * modules/wcsncat (configure.ac): ... to here.
13306
13307 2011-05-22  Bruno Haible  <bruno@clisp.org>
13308
13309         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13310         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13311         from here...
13312         * modules/wcsncasecmp (configure.ac): ... to here.
13313
13314 2011-05-22  Bruno Haible  <bruno@clisp.org>
13315
13316         wcslen: Move AC_LIBOBJ invocations to module description.
13317         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13318         * modules/wcslen (configure.ac): ... to here.
13319
13320 2011-05-22  Bruno Haible  <bruno@clisp.org>
13321
13322         wcsdup: Move AC_LIBOBJ invocations to module description.
13323         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13324         * modules/wcsdup (configure.ac): ... to here.
13325
13326 2011-05-22  Bruno Haible  <bruno@clisp.org>
13327
13328         wcscspn: Move AC_LIBOBJ invocations to module description.
13329         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13330         here...
13331         * modules/wcscspn (configure.ac): ... to here.
13332
13333 2011-05-22  Bruno Haible  <bruno@clisp.org>
13334
13335         wcscpy: Move AC_LIBOBJ invocations to module description.
13336         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13337         * modules/wcscpy (configure.ac): ... to here.
13338
13339 2011-05-22  Bruno Haible  <bruno@clisp.org>
13340
13341         wcscoll: Move AC_LIBOBJ invocations to module description.
13342         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13343         here...
13344         * modules/wcscoll (configure.ac): ... to here.
13345
13346 2011-05-22  Bruno Haible  <bruno@clisp.org>
13347
13348         wcscmp: Move AC_LIBOBJ invocations to module description.
13349         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13350         * modules/wcscmp (configure.ac): ... to here.
13351
13352 2011-05-22  Bruno Haible  <bruno@clisp.org>
13353
13354         wcschr: Move AC_LIBOBJ invocations to module description.
13355         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13356         * modules/wcschr (configure.ac): ... to here.
13357
13358 2011-05-22  Bruno Haible  <bruno@clisp.org>
13359
13360         wcscat: Move AC_LIBOBJ invocations to module description.
13361         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13362         * modules/wcscat (configure.ac): ... to here.
13363
13364 2011-05-22  Bruno Haible  <bruno@clisp.org>
13365
13366         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13367         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13368         here...
13369         * modules/wcscasecmp (configure.ac): ... to here.
13370
13371 2011-05-22  Bruno Haible  <bruno@clisp.org>
13372
13373         wcrtomb: Move AC_LIBOBJ invocations to module description.
13374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13375         invocations from here...
13376         * modules/wcrtomb (configure.ac): ... to here.
13377
13378 2011-05-22  Bruno Haible  <bruno@clisp.org>
13379
13380         wcpncpy: Move AC_LIBOBJ invocations to module description.
13381         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13382         here...
13383         * modules/wcpncpy (configure.ac): ... to here.
13384
13385 2011-05-22  Bruno Haible  <bruno@clisp.org>
13386
13387         wcpcpy: Move AC_LIBOBJ invocations to module description.
13388         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13389         * modules/wcpcpy (configure.ac): ... to here.
13390
13391 2011-05-22  Bruno Haible  <bruno@clisp.org>
13392
13393         waitpid: Move AC_LIBOBJ invocations to module description.
13394         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13395         invocation from here...
13396         * modules/waitpid (configure.ac): ... to here.
13397
13398 2011-05-22  Bruno Haible  <bruno@clisp.org>
13399
13400         utimensat: Move AC_LIBOBJ invocations to module description.
13401         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13402         here...
13403         * modules/utimensat (configure.ac): ... to here.
13404
13405 2011-05-22  Bruno Haible  <bruno@clisp.org>
13406
13407         usleep: Move AC_LIBOBJ invocations to module description.
13408         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13409         here...
13410         * modules/usleep (configure.ac): ... to here.
13411
13412 2011-05-22  Bruno Haible  <bruno@clisp.org>
13413
13414         unlockpt: Move AC_LIBOBJ invocations to module description.
13415         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13416         gl_PREREQ_UNLOCKPT invocations from here...
13417         * modules/unlockpt (configure.ac): ... to here.
13418
13419 2011-05-22  Bruno Haible  <bruno@clisp.org>
13420
13421         unlink: Respect rules for use of AC_LIBOBJ.
13422         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13423         * modules/unlink (configure.ac): ... to here.
13424
13425 2011-05-22  Bruno Haible  <bruno@clisp.org>
13426
13427         uname: Move AC_LIBOBJ invocations to module description.
13428         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13429         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13430         here...
13431         * modules/uname (configure.ac): ... to here.
13432
13433 2011-05-22  Bruno Haible  <bruno@clisp.org>
13434
13435         ttyname_r: Move AC_LIBOBJ invocations to module description.
13436         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13437         gl_PREREQ_TTYNAME_R invocations from here...
13438         * modules/ttyname_r (configure.ac): ... to here.
13439
13440 2011-05-22  Bruno Haible  <bruno@clisp.org>
13441
13442         tsearch: Move AC_LIBOBJ invocations to module description.
13443         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13444         invocations from here...
13445         * modules/tsearch (configure.ac): ... to here.
13446
13447 2011-05-22  Bruno Haible  <bruno@clisp.org>
13448
13449         towctrans: Move AC_LIBOBJ invocations to module description.
13450         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13451         AC_LIBOBJ invocation from here...
13452         * modules/towctrans (configure.ac): ... to here.
13453
13454 2011-05-22  Bruno Haible  <bruno@clisp.org>
13455
13456         tmpfile: Move AC_LIBOBJ invocations to module description.
13457         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13458         invocations from here...
13459         * modules/tmpfile (configure.ac): ... to here.
13460
13461 2011-05-22  Bruno Haible  <bruno@clisp.org>
13462
13463         times: Move AC_LIBOBJ invocations to module description.
13464         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13465         * modules/times (configure.ac): ... to here.
13466
13467 2011-05-22  Bruno Haible  <bruno@clisp.org>
13468
13469         time_r: Move AC_LIBOBJ invocations to module description.
13470         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13471         invocations from here...
13472         * modules/time_r (configure.ac): ... to here.
13473
13474 2011-05-22  Bruno Haible  <bruno@clisp.org>
13475
13476         timegm: Move AC_LIBOBJ invocations to module description.
13477         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13478         invocations from here...
13479         * modules/timegm (configure.ac): ... to here.
13480
13481 2011-05-22  Bruno Haible  <bruno@clisp.org>
13482
13483         tcgetsid: Move AC_LIBOBJ invocations to module description.
13484         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13485         and gl_PREREQ_TCGETSID invocations from here...
13486         * modules/tcgetsid (configure.ac): ... to here.
13487         (Depends-on): Update conditions.
13488
13489 2011-05-22  Bruno Haible  <bruno@clisp.org>
13490
13491         symlinkat: Move AC_LIBOBJ invocations to module description.
13492         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13493         here...
13494         * modules/symlinkat (configure.ac): ... to here.
13495
13496 2011-05-22  Bruno Haible  <bruno@clisp.org>
13497
13498         symlink: Move AC_LIBOBJ invocations to module description.
13499         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13500         here...
13501         * modules/symlink (configure.ac): ... to here.
13502
13503 2011-05-22  Bruno Haible  <bruno@clisp.org>
13504
13505         strverscmp: Move AC_LIBOBJ invocations to module description.
13506         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13508         from here...
13509         * modules/strverscmp (configure.ac): ... to here.
13510
13511 2011-05-22  Bruno Haible  <bruno@clisp.org>
13512
13513         strtok_r: Move AC_LIBOBJ invocations to module description.
13514         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13515         and gl_PREREQ_STRTOK_R invocations from here...
13516         * modules/strtok_r (configure.ac): ... to here.
13517         (Depends-on): Update conditions.
13518
13519 2011-05-22  Bruno Haible  <bruno@clisp.org>
13520
13521         strtoumax: Move AC_LIBOBJ invocations to module description.
13522         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13524         from here...
13525         * modules/strtoumax (configure.ac): ... to here.
13526
13527 2011-05-22  Bruno Haible  <bruno@clisp.org>
13528
13529         strtoimax: Move AC_LIBOBJ invocations to module description.
13530         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13532         from here...
13533         * modules/strtoimax (configure.ac): ... to here.
13534
13535 2011-05-22  Bruno Haible  <bruno@clisp.org>
13536
13537         strtoull: Move AC_LIBOBJ invocations to module description.
13538         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13540         from here...
13541         * modules/strtoull (configure.ac): ... to here.
13542
13543 2011-05-22  Bruno Haible  <bruno@clisp.org>
13544
13545         strtoll: Move AC_LIBOBJ invocations to module description.
13546         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13547         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13548         here...
13549         * modules/strtoll (configure.ac): ... to here.
13550
13551 2011-05-22  Bruno Haible  <bruno@clisp.org>
13552
13553         strtoul: Move AC_LIBOBJ invocations to module description.
13554         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13555         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13556         * modules/strtoul (configure.ac): ... to here.
13557
13558 2011-05-22  Bruno Haible  <bruno@clisp.org>
13559
13560         strtol: Move AC_LIBOBJ invocations to module description.
13561         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13562         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13563         * modules/strtol (configure.ac): ... to here.
13564
13565 2011-05-22  Bruno Haible  <bruno@clisp.org>
13566
13567         strtod: Move AC_LIBOBJ invocations to module description.
13568         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13569         invocations from here...
13570         * modules/strtod (configure.ac): ... to here.
13571
13572 2011-05-22  Bruno Haible  <bruno@clisp.org>
13573
13574         strstr*: Move AC_LIBOBJ invocations to module description.
13575         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13576         invocations from here...
13577         * modules/strstr-simple (configure.ac): ... to here.
13578         * modules/strstr (configure.ac): ... and here.
13579
13580 2011-05-22  Bruno Haible  <bruno@clisp.org>
13581
13582         strsignal: Move AC_LIBOBJ invocations to module description.
13583         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13584         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13585         * modules/strsignal (configure.ac): ... to here.
13586         (Depends-on): Update conditions.
13587
13588 2011-05-22  Bruno Haible  <bruno@clisp.org>
13589
13590         strsep: Move AC_LIBOBJ invocations to module description.
13591         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13593         here...
13594         * modules/strsep (configure.ac): ... to here.
13595
13596 2011-05-22  Bruno Haible  <bruno@clisp.org>
13597
13598         strptime: Move AC_LIBOBJ invocations to module description.
13599         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13600         gl_PREREQ_STRPTIME invocations from here...
13601         * modules/strptime (configure.ac): ... to here.
13602
13603 2011-05-22  Bruno Haible  <bruno@clisp.org>
13604
13605         strpbrk: Move AC_LIBOBJ invocations to module description.
13606         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13608         here...
13609         * modules/strpbrk (configure.ac): ... to here.
13610
13611 2011-05-22  Bruno Haible  <bruno@clisp.org>
13612
13613         strnlen: Move AC_LIBOBJ invocations to module description.
13614         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13615         invocations from here...
13616         * modules/strnlen (configure.ac): ... to here.
13617
13618 2011-05-22  Bruno Haible  <bruno@clisp.org>
13619
13620         strndup: Move AC_LIBOBJ invocations to module description.
13621         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13622         invocations from here...
13623         * modules/strndup (configure.ac): ... to here.
13624         (Depends-on): Update conditions.
13625
13626 2011-05-22  Bruno Haible  <bruno@clisp.org>
13627
13628         strncat: Move AC_LIBOBJ invocations to module description.
13629         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13630         invocations from here...
13631         * modules/strncat (configure.ac): ... to here.
13632
13633 2011-05-22  Bruno Haible  <bruno@clisp.org>
13634
13635         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13636         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13637         invocations from here...
13638         * modules/strdup (configure.ac): ... to here.
13639         * modules/strdup-posix (configure.ac): ... and here.
13640
13641 2011-05-22  Bruno Haible  <bruno@clisp.org>
13642
13643         strcspn: Move AC_LIBOBJ invocations to module description.
13644         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13646         here...
13647         * modules/strcspn (configure.ac): ... to here.
13648
13649 2011-05-22  Bruno Haible  <bruno@clisp.org>
13650
13651         strchrnul: Move AC_LIBOBJ invocations to module description.
13652         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13653         gl_PREREQ_STRCHRNUL invocations from here...
13654         * modules/strchrnul (configure.ac): ... to here.
13655
13656 2011-05-22  Bruno Haible  <bruno@clisp.org>
13657
13658         strcasestr*: Move AC_LIBOBJ invocations to module description.
13659         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13660         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13661         * modules/strcasestr-simple (configure.ac): ... to here.
13662         * modules/strcasestr (configure.ac): ... and here.
13663
13664 2011-05-22  Bruno Haible  <bruno@clisp.org>
13665
13666         strcase: Move AC_LIBOBJ invocations to module description.
13667         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13668         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13669         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13670         gl_PREREQ_STRNCASECMP invocations from here...
13671         * modules/strcase (configure.ac): ... to here.
13672
13673 2011-05-22  Bruno Haible  <bruno@clisp.org>
13674
13675         stpncpy: Move AC_LIBOBJ invocations to module description.
13676         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13677         here...
13678         * modules/stpncpy (configure.ac): ... to here.
13679
13680 2011-05-22  Bruno Haible  <bruno@clisp.org>
13681
13682         stpcpy: Move AC_LIBOBJ invocations to module description.
13683         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13685         here...
13686         * modules/stpcpy (configure.ac): ... to here.
13687
13688 2011-05-21  Bruno Haible  <bruno@clisp.org>
13689
13690         stat: Move AC_LIBOBJ invocations to module description.
13691         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13692         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13693         here...
13694         * modules/stat (configure.ac): ... to here.
13695
13696 2011-05-21  Bruno Haible  <bruno@clisp.org>
13697
13698         sleep: Move AC_LIBOBJ invocations to module description.
13699         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13700         * modules/sleep (configure.ac): ... to here.
13701
13702 2011-05-21  Bruno Haible  <bruno@clisp.org>
13703
13704         signbit: Move AC_LIBOBJ invocations to module description.
13705         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13706         * modules/signbit (configure.ac): ... to here.
13707
13708 2011-05-21  Bruno Haible  <bruno@clisp.org>
13709
13710         sigprocmask: Move AC_LIBOBJ invocations to module description.
13711         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13712         gl_PREREQ_SIGPROMASK invocations from here...
13713         * modules/sigprocmask (configure.ac): ... to here.
13714
13715 2011-05-21  Bruno Haible  <bruno@clisp.org>
13716
13717         sigaction: Move AC_LIBOBJ invocations to module description.
13718         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13719         gl_PREREQ_SIGACTION invocations from here...
13720         * modules/sigaction (configure.ac): ... to here.
13721
13722 2011-05-21  Bruno Haible  <bruno@clisp.org>
13723
13724         sig2str: Move AC_LIBOBJ invocations to module description.
13725         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13726         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13727         here...
13728         * modules/sig2str (configure.ac): ... to here.
13729
13730 2011-05-21  Bruno Haible  <bruno@clisp.org>
13731
13732         setlocale: Move AC_LIBOBJ invocations to module description.
13733         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13734         gl_PREREQ_SETLOCALE invocations from here...
13735         * modules/setlocale (configure.ac): ... to here.
13736
13737 2011-05-21  Bruno Haible  <bruno@clisp.org>
13738
13739         unsetenv: Move AC_LIBOBJ invocations to module description.
13740         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13741         and gl_PREREQ_UNSETENV invocations from here...
13742         * modules/unsetenv (configure.ac): ... to here.
13743         (Depends-on): Update.
13744
13745 2011-05-21  Bruno Haible  <bruno@clisp.org>
13746
13747         setenv: Move AC_LIBOBJ invocations to module description.
13748         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13749         here...
13750         * modules/setenv (configure.ac): ... to here.
13751
13752 2011-05-21  Bruno Haible  <bruno@clisp.org>
13753
13754         selinux-h: Move AC_LIBOBJ invocations to module description.
13755         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13756         AC_LIBOBJ invocation from here...
13757         * modules/selinux-h (configure.ac): ... to here.
13758
13759 2011-05-21  Bruno Haible  <bruno@clisp.org>
13760
13761         select: Respect rules for use of AC_LIBOBJ.
13762         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13763         here...
13764         * modules/select (configure.ac): ... to here.
13765
13766 2011-05-21  Bruno Haible  <bruno@clisp.org>
13767
13768         scandir: Move AC_LIBOBJ invocations to module description.
13769         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13770         invocations from here...
13771         * modules/scandir (configure.ac): ... to here.
13772
13773 2011-05-21  Bruno Haible  <bruno@clisp.org>
13774
13775         rpmatch: Move AC_LIBOBJ invocations to module description.
13776         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13777         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13778         here...
13779         * modules/rpmatch (configure.ac): ... to here.
13780
13781 2011-05-21  Bruno Haible  <bruno@clisp.org>
13782
13783         rmdir: Respect rules for use of AC_LIBOBJ.
13784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13785         * modules/rmdir (configure.ac): ... to here.
13786
13787 2011-05-21  Bruno Haible  <bruno@clisp.org>
13788
13789         renameat: Move AC_LIBOBJ invocations to module description.
13790         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13791         here...
13792         * modules/renameat (configure.ac): ... to here.
13793
13794 2011-05-21  Bruno Haible  <bruno@clisp.org>
13795
13796         rename: Respect rules for use of AC_LIBOBJ.
13797         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13798         here...
13799         * modules/rename (configure.ac): ... to here.
13800
13801 2011-05-21  Bruno Haible  <bruno@clisp.org>
13802
13803         remove: Move AC_LIBOBJ invocations to module description.
13804         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13805         here...
13806         * modules/remove (configure.ac): ... to here.
13807
13808 2011-05-21  Bruno Haible  <bruno@clisp.org>
13809
13810         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13811         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13812         macro.
13813         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13814         * modules/relocatable-lib (configure.ac): ... to here.
13815         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13816         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13817
13818 2011-05-21  Bruno Haible  <bruno@clisp.org>
13819
13820         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13821         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13822         here...
13823         * modules/relocatable-prog (configure.ac): ... to here.
13824
13825 2011-05-21  Bruno Haible  <bruno@clisp.org>
13826
13827         regex: Move AC_LIBOBJ invocations to module description.
13828         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13829         invocations from here...
13830         * modules/regex (configure.ac): ... to here.
13831
13832 2011-05-21  Bruno Haible  <bruno@clisp.org>
13833
13834         realloc-*: Move AC_LIBOBJ invocations to module description.
13835         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13836         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13837         AC_LIBOBJ invocations from here...
13838         * modules/realloc-gnu (configure.ac): ... to here.
13839         * modules/realloc-posix (configure.ac): ... and here.
13840
13841 2011-05-21  Bruno Haible  <bruno@clisp.org>
13842
13843         readutmp: Move AC_LIBOBJ invocations to module description.
13844         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13845         * modules/readutmp (configure.ac): ... to here.
13846
13847 2011-05-21  Bruno Haible  <bruno@clisp.org>
13848
13849         readlinkat: Move AC_LIBOBJ invocations to module description.
13850         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13851         here...
13852         * modules/readlinkat (configure.ac): ... to here.
13853
13854 2011-05-21  Bruno Haible  <bruno@clisp.org>
13855
13856         readlink: Move AC_LIBOBJ invocations to module description.
13857         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13858         gl_PREREQ_READLINK invocations from here...
13859         * modules/readlink (configure.ac): ... to here.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         readline: Move AC_LIBOBJ invocations to module description.
13864         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13865         gl_PREREQ_READLINE invocations from here...
13866         * modules/readline (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         read: Move AC_LIBOBJ invocations to module description.
13871         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13872         * modules/read (configure.ac): ... to here.
13873
13874 2011-05-21  Bruno Haible  <bruno@clisp.org>
13875
13876         rawmemchr: Move AC_LIBOBJ invocations to module description.
13877         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13879         from here...
13880         * modules/rawmemchr (configure.ac): ... to here.
13881
13882 2011-05-21  Bruno Haible  <bruno@clisp.org>
13883
13884         random_r: Move AC_LIBOBJ invocations to module description.
13885         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13886         gl_PREREQ_RANDOM_R invocations from here...
13887         * modules/random_r (configure.ac): ... to here.
13888
13889 2011-05-21  Bruno Haible  <bruno@clisp.org>
13890
13891         pwrite: Move AC_LIBOBJ invocations to module description.
13892         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13893         * modules/pwrite (configure.ac): ... to here.
13894
13895 2011-05-21  Bruno Haible  <bruno@clisp.org>
13896
13897         putenv: Move AC_LIBOBJ invocations to module description.
13898         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13899         * modules/putenv (configure.ac): ... to here.
13900
13901 2011-05-21  Bruno Haible  <bruno@clisp.org>
13902
13903         login_tty: Move AC_LIBOBJ invocations to module description.
13904         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13905         * modules/login_tty (configure.ac): ... to here.
13906
13907 2011-05-21  Bruno Haible  <bruno@clisp.org>
13908
13909         openpty: Move AC_LIBOBJ invocations to module description.
13910         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13911         * modules/openpty (configure.ac): ... to here.
13912
13913 2011-05-21  Bruno Haible  <bruno@clisp.org>
13914
13915         forkpty: Move AC_LIBOBJ invocations to module description.
13916         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13917         * modules/forkpty (configure.ac): ... to here.
13918
13919 2011-05-21  Bruno Haible  <bruno@clisp.org>
13920
13921         ptsname: Move AC_LIBOBJ invocations to module description.
13922         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13923         invocations from here...
13924         * modules/ptsname (configure.ac): ... to here.
13925
13926 2011-05-21  Bruno Haible  <bruno@clisp.org>
13927
13928         pread: Move AC_LIBOBJ invocations to module description.
13929         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13930         * modules/pread (configure.ac): ... to here.
13931
13932 2011-05-21  Bruno Haible  <bruno@clisp.org>
13933
13934         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13935         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13936         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13937         * modules/posix_spawn (configure.ac): ... to here.
13938         * modules/posix_spawnp (configure.ac): ... and here.
13939
13940 2011-05-21  Bruno Haible  <bruno@clisp.org>
13941
13942         popen: Move AC_LIBOBJ invocations to module description.
13943         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13944         invocations from here...
13945         * modules/popen (configure.ac): ... to here.
13946
13947 2011-05-21  Bruno Haible  <bruno@clisp.org>
13948
13949         poll: Move AC_LIBOBJ invocations to module description.
13950         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13951         invocations from here...
13952         * modules/poll (configure.ac): ... to here.
13953
13954 2011-05-21  Bruno Haible  <bruno@clisp.org>
13955
13956         pipe-posix: Move AC_LIBOBJ invocations to module description.
13957         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13958         * modules/pipe-posix (configure.ac): ... to here.
13959
13960 2011-05-21  Bruno Haible  <bruno@clisp.org>
13961
13962         openat: Respect rules for use of AC_LIBOBJ.
13963         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13964         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13965         * modules/openat (configure.ac): ... to here.
13966
13967 2011-05-21  Bruno Haible  <bruno@clisp.org>
13968
13969         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13970         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13971         invocation from here...
13972         * modules/obstack-printf (configure.ac): ... to here.
13973         * modules/obstack-printf-posix (configure.ac): ... and here.
13974
13975 2011-05-21  Bruno Haible  <bruno@clisp.org>
13976
13977         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13978         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13979         from here...
13980         * modules/nl_langinfo (configure.ac): ... to here.
13981
13982 2011-05-21  Bruno Haible  <bruno@clisp.org>
13983
13984         nanosleep: Move AC_LIBOBJ invocations to module description.
13985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13986         gl_PREREQ_NANOSLEEP invocations from here...
13987         * modules/nanosleep (configure.ac): ... to here.
13988
13989 2011-05-21  Bruno Haible  <bruno@clisp.org>
13990
13991         mountlist: Move AC_LIBOBJ invocations to module description.
13992         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13993         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13994         * modules/mountlist (configure.ac): ... to here.
13995
13996 2011-05-21  Bruno Haible  <bruno@clisp.org>
13997
13998         mktime: Respect rules for use of AC_LIBOBJ.
13999         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14000         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14001         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14002         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14003         * modules/mktime (configure.ac): ... to here.
14004         * modules/mktime-internal (configure.ac): ... and here.
14005         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14006
14007 2011-05-21  Bruno Haible  <bruno@clisp.org>
14008
14009         mkstemps: Move AC_LIBOBJ invocations to module description.
14010         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14011         here...
14012         * modules/mkstemps (configure.ac): ... to here.
14013
14014 2011-05-21  Bruno Haible  <bruno@clisp.org>
14015
14016         mkstemp: Move AC_LIBOBJ invocations to module description.
14017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14018         gl_PREREQ_MKSTEMP invocations from here...
14019         * modules/mkstemp (configure.ac): ... to here.
14020
14021 2011-05-21  Bruno Haible  <bruno@clisp.org>
14022
14023         mkostemps: Move AC_LIBOBJ invocations to module description.
14024         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14025         here...
14026         * modules/mkostemps (configure.ac): ... to here.
14027
14028 2011-05-21  Bruno Haible  <bruno@clisp.org>
14029
14030         mkostemp: Move AC_LIBOBJ invocations to module description.
14031         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14032         gl_PREREQ_MKOSTEMP invocations from here...
14033         * modules/mkostemp (configure.ac): ... to here.
14034
14035 2011-05-21  Bruno Haible  <bruno@clisp.org>
14036
14037         mknod: Move AC_LIBOBJ invocations to module description.
14038         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14039         * modules/mknod (configure.ac): ... to here.
14040
14041 2011-05-21  Bruno Haible  <bruno@clisp.org>
14042
14043         mkfifoat: Move AC_LIBOBJ invocations to module description.
14044         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14045         here...
14046         * modules/mkfifoat (configure.ac): ... to here.
14047
14048 2011-05-21  Bruno Haible  <bruno@clisp.org>
14049
14050         mkfifo: Respect rules for use of AC_LIBOBJ.
14051         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14052         here...
14053         * modules/mkfifo (configure.ac): ... to here.
14054
14055 2011-05-21  Bruno Haible  <bruno@clisp.org>
14056
14057         mkdtemp: Move AC_LIBOBJ invocations to module description.
14058         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14059         invocations from here...
14060         * modules/mkdtemp (configure.ac): ... to here.
14061
14062 2011-05-21  Bruno Haible  <bruno@clisp.org>
14063
14064         mkdir: Move AC_LIBOBJ invocations to module description.
14065         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14066         * modules/mkdir (configure.ac): ... to here.
14067
14068 2011-05-21  Bruno Haible  <bruno@clisp.org>
14069
14070         memset: Move AC_LIBOBJ invocations to module description.
14071         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14072         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14073         here...
14074         * modules/memset (configure.ac): ... to here.
14075
14076 2011-05-21  Bruno Haible  <bruno@clisp.org>
14077
14078         memrchr: Move AC_LIBOBJ invocations to module description.
14079         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14081         here...
14082         * modules/memrchr (configure.ac): ... to here.
14083
14084 2011-05-21  Bruno Haible  <bruno@clisp.org>
14085
14086         mempcpy: Move AC_LIBOBJ invocations to module description.
14087         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14088         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14089         here...
14090         * modules/mempcpy (configure.ac): ... to here.
14091
14092 2011-05-21  Bruno Haible  <bruno@clisp.org>
14093
14094         memmove: Move AC_LIBOBJ invocations to module description.
14095         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14096         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14097         here...
14098         * modules/memmove (configure.ac): ... to here.
14099
14100 2011-05-21  Bruno Haible  <bruno@clisp.org>
14101
14102         memmem*: Move AC_LIBOBJ invocations to module description.
14103         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14104         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14105         here...
14106         (gl_FUNC_MEMMEM): ... and here...
14107         * modules/memmem-simple (configure.ac): ... to here.
14108         * modules/memmem (configure.ac): ... and here.
14109
14110 2011-05-21  Bruno Haible  <bruno@clisp.org>
14111
14112         memcpy: Move AC_LIBOBJ invocations to module description.
14113         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14115         here...
14116         * modules/memcpy (configure.ac): ... to here.
14117
14118 2011-05-21  Bruno Haible  <bruno@clisp.org>
14119
14120         memcmp: Simplify autoconf macro.
14121         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14122         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14123         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14124
14125 2011-05-21  Bruno Haible  <bruno@clisp.org>
14126
14127         memcmp: Move AC_LIBOBJ invocations to module description.
14128         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14129         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14130         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14131         * modules/memcmp (configure.ac): ... to here.
14132         (Depends-on): Update conditions.
14133
14134 2011-05-21  Bruno Haible  <bruno@clisp.org>
14135
14136         memchr: Respect rules for use of AC_LIBOBJ.
14137         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14138         invocations from here...
14139         * modules/memchr (configure.ac): ... to here.
14140
14141 2011-05-21  Bruno Haible  <bruno@clisp.org>
14142
14143         mbtowc: Move AC_LIBOBJ invocations to module description.
14144         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14145         invocations from here...
14146         * modules/mbtowc (configure.ac): ... to here.
14147
14148 2011-05-21  Bruno Haible  <bruno@clisp.org>
14149
14150         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14151         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14152         gl_PREREQ_MBSRTOWCS invocations from here...
14153         * modules/mbsrtowcs (configure.ac): ... to here.
14154
14155 2011-05-21  Bruno Haible  <bruno@clisp.org>
14156
14157         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14158         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14159         gl_PREREQ_MBSNRTOWCS invocations from here...
14160         * modules/mbsnrtowcs (configure.ac): ... to here.
14161
14162 2011-05-21  Bruno Haible  <bruno@clisp.org>
14163
14164         mbsinit: Move AC_LIBOBJ invocations to module description.
14165         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14166         invocations from here...
14167         * modules/mbsinit (configure.ac): ... to here.
14168
14169 2011-05-21  Bruno Haible  <bruno@clisp.org>
14170
14171         mbrlen: Move AC_LIBOBJ invocations to module description.
14172         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14173         invocations from here...
14174         * modules/mbrlen (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         mbrtowc: Respect rules for use of AC_LIBOBJ.
14179         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14180         invocations from here...
14181         * modules/mbrtowc (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         malloc-*: Move AC_LIBOBJ invocations to module description.
14186         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14187         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14188         AC_LIBOBJ invocations from here...
14189         * modules/malloc-gnu (configure.ac): ... to here.
14190         * modules/malloc-posix (configure.ac): ... and here.
14191
14192 2011-05-21  Bruno Haible  <bruno@clisp.org>
14193
14194         lstat, openat: Respect rules for use of AC_LIBOBJ.
14195         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14196         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14197         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14198         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14199         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14200         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14201         here.
14202         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14203
14204 2011-05-21  Bruno Haible  <bruno@clisp.org>
14205
14206         lseek: Move AC_LIBOBJ invocations to module description.
14207         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14208         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14209         * modules/lseek (configure.ac): ... to here.
14210
14211 2011-05-21  Bruno Haible  <bruno@clisp.org>
14212
14213         linkat: Move AC_LIBOBJ invocations to module description.
14214         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14215         here...
14216         * modules/linkat (configure.ac): ... to here.
14217
14218 2011-05-21  Bruno Haible  <bruno@clisp.org>
14219
14220         link: Respect rules for use of AC_LIBOBJ.
14221         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14222         * modules/link (configure.ac): ... to here.
14223
14224 2011-05-21  Bruno Haible  <bruno@clisp.org>
14225
14226         lchown: Move AC_LIBOBJ invocations to module description.
14227         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14228         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14229         * modules/lchown (configure.ac): ... to here.
14230
14231 2011-05-21  Bruno Haible  <bruno@clisp.org>
14232
14233         iswctype: Move AC_LIBOBJ invocations to module description.
14234         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14235         here...
14236         * modules/iswctype (configure.ac): ... to here.
14237
14238 2011-05-21  Bruno Haible  <bruno@clisp.org>
14239
14240         iswblank: Move AC_LIBOBJ invocations to module description.
14241         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14242         here...
14243         * modules/iswblank (configure.ac): ... to here.
14244
14245 2011-05-21  Bruno Haible  <bruno@clisp.org>
14246
14247         atanl: Move AC_LIBOBJ invocations to module description.
14248         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14249         * modules/atanl (configure.ac): ... to here.
14250
14251 2011-05-21  Bruno Haible  <bruno@clisp.org>
14252
14253         acosl: Move AC_LIBOBJ invocations to module description.
14254         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14255         * modules/acosl (configure.ac): ... to here.
14256
14257 2011-05-21  Bruno Haible  <bruno@clisp.org>
14258
14259         asinl: Respect rules for use of AC_LIBOBJ.
14260         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14261         * modules/asinl (configure.ac): ... to here.
14262
14263 2011-05-21  Bruno Haible  <bruno@clisp.org>
14264
14265         tanl: Move AC_LIBOBJ invocations to module description.
14266         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14267         * modules/tanl (configure.ac): ... to here.
14268
14269 2011-05-21  Bruno Haible  <bruno@clisp.org>
14270
14271         cosl: Move AC_LIBOBJ invocations to module description.
14272         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14273         * modules/cosl (configure.ac): ... to here.
14274
14275 2011-05-21  Bruno Haible  <bruno@clisp.org>
14276
14277         sinl: Move AC_LIBOBJ invocations to module description.
14278         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14279         * modules/sinl (configure.ac): ... to here.
14280
14281 2011-05-21  Bruno Haible  <bruno@clisp.org>
14282
14283         logl: Move AC_LIBOBJ invocations to module description.
14284         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14285         * modules/logl (configure.ac): ... to here.
14286
14287 2011-05-21  Bruno Haible  <bruno@clisp.org>
14288
14289         expl: Move AC_LIBOBJ invocations to module description.
14290         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14291         * modules/expl (configure.ac): ... to here.
14292
14293 2011-05-21  Bruno Haible  <bruno@clisp.org>
14294
14295         roundl: Move AC_LIBOBJ invocations to module description.
14296         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14297         * modules/roundl (configure.ac): ... to here.
14298
14299 2011-05-21  Bruno Haible  <bruno@clisp.org>
14300
14301         round: Move AC_LIBOBJ invocations to module description.
14302         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14303         * modules/round (configure.ac): ... to here.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         roundf: Move AC_LIBOBJ invocations to module description.
14308         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14309         * modules/roundf (configure.ac): ... to here.
14310
14311 2011-05-21  Bruno Haible  <bruno@clisp.org>
14312
14313         truncl: Move AC_LIBOBJ invocations to module description.
14314         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14315         * modules/truncl (configure.ac): ... to here.
14316
14317 2011-05-21  Bruno Haible  <bruno@clisp.org>
14318
14319         trunc: Move AC_LIBOBJ invocations to module description.
14320         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14321         * modules/trunc (configure.ac): ... to here.
14322
14323 2011-05-21  Bruno Haible  <bruno@clisp.org>
14324
14325         truncf: Move AC_LIBOBJ invocations to module description.
14326         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14327         * modules/truncf (configure.ac): ... to here.
14328
14329 2011-05-21  Bruno Haible  <bruno@clisp.org>
14330
14331         ceill: Move AC_LIBOBJ invocations to module description.
14332         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14333         * modules/ceill (configure.ac): ... to here.
14334
14335 2011-05-21  Bruno Haible  <bruno@clisp.org>
14336
14337         ceil: Move AC_LIBOBJ invocations to module description.
14338         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14339         * modules/ceil (configure.ac): ... to here.
14340
14341 2011-05-21  Bruno Haible  <bruno@clisp.org>
14342
14343         ceilf: Move AC_LIBOBJ invocations to module description.
14344         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14345         * modules/ceilf (configure.ac): ... to here.
14346
14347 2011-05-21  Bruno Haible  <bruno@clisp.org>
14348
14349         floorl: Respect rules for use of AC_LIBOBJ.
14350         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14351         * modules/floorl (configure.ac): ... to here.
14352
14353 2011-05-21  Bruno Haible  <bruno@clisp.org>
14354
14355         floor: Respect rules for use of AC_LIBOBJ.
14356         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14357         * modules/floor (configure.ac): ... to here.
14358
14359 2011-05-21  Bruno Haible  <bruno@clisp.org>
14360
14361         floorf: Move AC_LIBOBJ invocations to module description.
14362         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14363         * modules/floorf (configure.ac): ... to here.
14364
14365 2011-05-20  Bruno Haible  <bruno@clisp.org>
14366
14367         sqrtl: Respect rules for use of AC_LIBOBJ.
14368         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14369         * modules/sqrtl (configure.ac): ... to here.
14370
14371 2011-05-20  Bruno Haible  <bruno@clisp.org>
14372
14373         ldexpl: Respect rules for use of AC_LIBOBJ.
14374         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14375         * modules/ldexpl (configure.ac): ... to here.
14376
14377 2011-05-20  Bruno Haible  <bruno@clisp.org>
14378
14379         frexpl*: Respect rules for use of AC_LIBOBJ.
14380         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14381         invocation from here...
14382         * modules/frexpl (configure.ac): ... to here.
14383         * modules/frexpl-nolibm (configure.ac): ... and here.
14384
14385 2011-05-20  Bruno Haible  <bruno@clisp.org>
14386
14387         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14388         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14389         invocation from here...
14390         * modules/frexp (configure.ac): ... to here.
14391         * modules/frexp-nolibm (configure.ac): ... and here.
14392
14393 2011-05-20  Bruno Haible  <bruno@clisp.org>
14394
14395         isnan: Respect rules for use of AC_LIBOBJ.
14396         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14397         invocations here.
14398         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14399         REPLACE_ISNAN.
14400         * modules/isnand (configure.ac): Likewise.
14401         * modules/isnanl (configure.ac): Likewise.
14402
14403 2011-05-20  Bruno Haible  <bruno@clisp.org>
14404
14405         isnanl*: Respect rules for use of AC_LIBOBJ.
14406         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14407         invocation from here...
14408         * modules/isnanl (configure.ac): ... to here.
14409         * modules/isnanl-nolibm (configure.ac): ... and here.
14410
14411 2011-05-20  Bruno Haible  <bruno@clisp.org>
14412
14413         isnand*: Move AC_LIBOBJ invocations to module description.
14414         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14415         invocation from here...
14416         * modules/isnand (configure.ac): ... to here.
14417         * modules/isnand-nolibm (configure.ac): ... and here.
14418
14419 2011-05-20  Bruno Haible  <bruno@clisp.org>
14420
14421         isnanf*: Move AC_LIBOBJ invocations to module description.
14422         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14423         invocation from here...
14424         * modules/isnanf (configure.ac): ... to here.
14425         * modules/isnanf-nolibm (configure.ac): ... and here.
14426
14427 2011-05-20  Bruno Haible  <bruno@clisp.org>
14428
14429         isnan*: Separate the AC_LIBOBJ invocations.
14430         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14431         AC_LIBOBJ invocation.
14432         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14433         here.
14434         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14435         AC_LIBOBJ invocation.
14436         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14437         here.
14438         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14439         AC_LIBOBJ invocation.
14440         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14441         here.
14442         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14443
14444 2011-05-08  Bruno Haible  <bruno@clisp.org>
14445
14446         isinf: Move AC_LIBOBJ invocations to module description.
14447         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14448         * modules/isinf (configure.ac): ... to here.
14449
14450 2011-05-08  Bruno Haible  <bruno@clisp.org>
14451
14452         isfinite: Move AC_LIBOBJ invocations to module description.
14453         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14454         * modules/isfinite (configure.ac): ... to here.
14455
14456 2011-05-08  Bruno Haible  <bruno@clisp.org>
14457
14458         isblank: Move AC_LIBOBJ invocations to module description.
14459         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14460         here...
14461         * modules/isblank (configure.ac): ... to here.
14462
14463 2011-05-08  Bruno Haible  <bruno@clisp.org>
14464
14465         isapipe: Move AC_LIBOBJ invocations to module description.
14466         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14467         gl_PREREQ_ISAPIPE invocations from here...
14468         * modules/isapipe (configure.ac): ... to here.
14469         (Depends-on): Update condition.
14470
14471 2011-05-08  Bruno Haible  <bruno@clisp.org>
14472
14473         ioctl: Move AC_LIBOBJ invocations to module description.
14474         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14475         invocations from here...
14476         * modules/ioctl (configure.ac): ... to here.
14477         (Depends-on): Update condition.
14478
14479 2011-05-08  Bruno Haible  <bruno@clisp.org>
14480
14481         imaxdiv: Move AC_LIBOBJ invocations to module description.
14482         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14483         invocations from here...
14484         * modules/imaxdiv (configure.ac): ... to here.
14485
14486 2011-05-08  Bruno Haible  <bruno@clisp.org>
14487
14488         imaxabs: Move AC_LIBOBJ invocations to module description.
14489         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14490         invocations from here...
14491         * modules/imaxabs (configure.ac): ... to here.
14492
14493 2011-05-08  Bruno Haible  <bruno@clisp.org>
14494
14495         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14497         AC_LIBOBJ invocations from here...
14498         * modules/getaddrinfo (configure.ac): ... to here.
14499         (Depends-on): Add conditions.
14500
14501 2011-05-08  Bruno Haible  <bruno@clisp.org>
14502
14503         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14504         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14505         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14506         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14507         (gl_PREREQ_INET_PTON): ... from here.
14508         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14509         gl_PREREQ_INET_PTON here.
14510         (Depends-on): Update condition.
14511
14512 2011-05-08  Bruno Haible  <bruno@clisp.org>
14513
14514         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14515         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14516         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14517         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14518         (gl_PREREQ_INET_NTOP): ... from here.
14519         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14520         gl_PREREQ_INET_NTOP here.
14521         (Depends-on): Update condition.
14522
14523 2011-05-08  Bruno Haible  <bruno@clisp.org>
14524
14525         iconv_open: Move AC_LIBOBJ invocations to module description.
14526         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14527         AC_LIBOBJ invocations from here...
14528         * modules/iconv_open (configure.ac): ... to here.
14529
14530 2011-05-08  Bruno Haible  <bruno@clisp.org>
14531
14532         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14533         If module 'iconv_open' is among the main modules and module
14534         'iconv_open-utf' is among the tests dependencies, then
14535         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14536         return the special iconv_t values. Therefore iconv() and iconv_close()
14537         must support these special iconv_t values, already in lib, not only in
14538         tests.
14539         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14540         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14541         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14542         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14543         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14544         (Depends-on): Add the dependencies of iconv_open-utf.
14545         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14546         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14547         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14548
14549 2011-05-08  Bruno Haible  <bruno@clisp.org>
14550
14551         group-member: Move AC_LIBOBJ invocations to module description.
14552         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14553         gl_PREREQ_GROUP_MEMBER invocations from here...
14554         * modules/group-member (configure.ac): ... to here.
14555
14556 2011-05-08  Bruno Haible  <bruno@clisp.org>
14557
14558         grantpt: Move AC_LIBOBJ invocations to module description.
14559         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14560         invocations from here...
14561         * modules/grantpt (configure.ac): ... to here.
14562
14563 2011-05-08  Bruno Haible  <bruno@clisp.org>
14564
14565         glob: Move AC_LIBOBJ invocations to module description.
14566         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14567         from here...
14568         * modules/glob (configure.ac): ... to here.
14569
14570 2011-05-08  Bruno Haible  <bruno@clisp.org>
14571
14572         getusershell: Move AC_LIBOBJ invocations to module description.
14573         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14574         Move AC_LIBOBJ invocation from here...
14575         * modules/getusershell (configure.ac): ... to here.
14576         (Depends-on): Update condition.
14577
14578 2011-05-08  Bruno Haible  <bruno@clisp.org>
14579
14580         gettimeofday: Move AC_LIBOBJ invocations to module description.
14581         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14582         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14583         gl_PREREQ_GETTIMEOFDAY invocations from here...
14584         * modules/gettimeofday (configure.ac): ... to here.
14585
14586 2011-05-08  Bruno Haible  <bruno@clisp.org>
14587
14588         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14589         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14590         just gl_FUNC_TZSET.
14591         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14592         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14594         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14595
14596 2011-05-08  Bruno Haible  <bruno@clisp.org>
14597
14598         getsubopt: Move AC_LIBOBJ invocations to module description.
14599         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14600         gl_PREREQ_GETSUBOPT invocations from here...
14601         * modules/getsubopt (configure.ac): ... to here.
14602
14603 2011-05-08  Bruno Haible  <bruno@clisp.org>
14604
14605         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14606         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14607         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14608         * modules/getpass-gnu (configure.ac): ... to here.
14609
14610 2011-05-08  Bruno Haible  <bruno@clisp.org>
14611
14612         getpass: Move AC_LIBOBJ invocations to module description.
14613         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14614         gl_PREREQ_GETPASS invocations from here...
14615         * modules/getpass (configure.ac): ... to here.
14616
14617 2011-05-08  Bruno Haible  <bruno@clisp.org>
14618
14619         getpagesize: Move AC_LIBOBJ invocations to module description.
14620         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14621         from here...
14622         * modules/getpagesize (configure.ac): ... to here.
14623
14624 2011-05-08  Bruno Haible  <bruno@clisp.org>
14625
14626         getopt: Move AC_LIBOBJ invocations to module description.
14627         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14628         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14629         invocations from here...
14630         * modules/getopt-gnu (configure.ac): ... to here.
14631         * modules/getopt-posix (configure.ac): ... and here.
14632         (Depends-on): Update condition.
14633
14634 2011-05-08  Bruno Haible  <bruno@clisp.org>
14635
14636         getopt, argp: Respect rules for use of AC_LIBOBJ.
14637         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14638         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14639         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14640         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14641
14642 2011-05-08  Bruno Haible  <bruno@clisp.org>
14643
14644         getlogin_r: Move AC_LIBOBJ invocations to module description.
14645         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14646         gl_PREREQ_GETLOGIN_R invocations from here...
14647         * modules/getlogin_r (configure.ac): ... to here.
14648
14649 2011-05-08  Bruno Haible  <bruno@clisp.org>
14650
14651         getlogin: Move AC_LIBOBJ invocations to module description.
14652         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14653         here...
14654         * modules/getlogin (configure.ac): ... to here.
14655
14656 2011-05-08  Bruno Haible  <bruno@clisp.org>
14657
14658         getloadavg: Move AC_LIBOBJ invocations to module description.
14659         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14660         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14661         * modules/getloadavg (configure.ac): ... to here.
14662
14663 2011-05-08  Bruno Haible  <bruno@clisp.org>
14664
14665         gethrxtime: Move AC_LIBOBJ invocations to module description.
14666         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14667         LIB_GETHRXTIME from here...
14668         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14669         invocations from here...
14670         * modules/gethrxtime (configure.ac): ... to here.
14671
14672 2011-05-08  Bruno Haible  <bruno@clisp.org>
14673
14674         gethostname: Move AC_LIBOBJ invocations to module description.
14675         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14676         gl_PREREQ_GETHOSTNAME invocations from here...
14677         * modules/gethostname (configure.ac): ... to here.
14678
14679 2011-05-08  Bruno Haible  <bruno@clisp.org>
14680
14681         getgroups: Move AC_LIBOBJ invocations to module description.
14682         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14683         here...
14684         * modules/getgroups (configure.ac): ... to here.
14685
14686 2011-05-08  Bruno Haible  <bruno@clisp.org>
14687
14688         getdtablesize: Move AC_LIBOBJ invocations to module description.
14689         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14690         invocation from here...
14691         * modules/getdtablesize (configure.ac): ... to here.
14692
14693 2011-05-08  Bruno Haible  <bruno@clisp.org>
14694
14695         getdomainname: Move AC_LIBOBJ invocations to module description.
14696         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14697         gl_PREREQ_GETDOMAINNAME invocations from here...
14698         * modules/getdomainname (configure.ac): ... to here.
14699
14700 2011-05-08  Bruno Haible  <bruno@clisp.org>
14701
14702         getline: Move AC_LIBOBJ invocations to module description.
14703         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14704         invocations from here...
14705         * modules/getline (configure.ac): ... to here.
14706
14707 2011-05-08  Bruno Haible  <bruno@clisp.org>
14708
14709         getline: Simplify.
14710         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14711         It's already handled through the module dependency.
14712
14713 2011-05-08  Bruno Haible  <bruno@clisp.org>
14714
14715         getdelim: Move AC_LIBOBJ invocations to module description.
14716         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14717         and gl_PREREQ_GETDELIM invocations from here...
14718         * modules/getdelim (configure.ac): ... to here.
14719         (Depends-on): Fix condition.
14720
14721 2011-05-08  Bruno Haible  <bruno@clisp.org>
14722
14723         getcwd: Move AC_LIBOBJ invocations to module description.
14724         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14725         invocations from here...
14726         * modules/getcwd (configure.ac): ... to here.
14727
14728 2011-05-08  Bruno Haible  <bruno@clisp.org>
14729
14730         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14731         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14732         here...
14733         * modules/getcwd-lgpl (configure.ac): ... to here.
14734
14735 2011-05-07  Bruno Haible  <bruno@clisp.org>
14736
14737         crypto/gc: Move AC_LIBOBJ invocations to module description.
14738         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14739         * modules/crypto/gc (configure.ac): ... to here.
14740
14741 2011-05-07  Bruno Haible  <bruno@clisp.org>
14742
14743         fwriting: Move AC_LIBOBJ invocations to module description.
14744         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14745         here...
14746         * modules/fwriting (configure.ac): ... to here.
14747
14748 2011-05-07  Bruno Haible  <bruno@clisp.org>
14749
14750         fwritable: Move AC_LIBOBJ invocations to module description.
14751         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14752         here...
14753         * modules/fwritable (configure.ac): ... to here.
14754
14755 2011-05-07  Bruno Haible  <bruno@clisp.org>
14756
14757         futimens: Move AC_LIBOBJ invocations to module description.
14758         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14759         here...
14760         * modules/futimens (configure.ac): ... to here.
14761
14762 2011-05-07  Bruno Haible  <bruno@clisp.org>
14763
14764         ftruncate: Move AC_LIBOBJ invocations to module description.
14765         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14766         gl_PREREQ_FTRUNCATE invocations from here...
14767         * modules/ftruncate (configure.ac): ... to here.
14768
14769 2011-05-07  Bruno Haible  <bruno@clisp.org>
14770
14771         fsync: Move AC_LIBOBJ invocations to module description.
14772         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14773         invocations from here...
14774         * modules/fsync (configure.ac): ... to here.
14775
14776 2011-05-07  Bruno Haible  <bruno@clisp.org>
14777
14778         fsusage: Move AC_LIBOBJ invocations to module description.
14779         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14780         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14781         * modules/fsusage (configure.ac): ... to here.
14782
14783 2011-05-07  Bruno Haible  <bruno@clisp.org>
14784
14785         freopen: Move AC_LIBOBJ invocations to module description.
14786         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14787         invocations from here...
14788         * modules/freopen (configure.ac): ... to here.
14789
14790 2011-05-07  Bruno Haible  <bruno@clisp.org>
14791
14792         free: Move AC_LIBOBJ invocations to module description.
14793         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14794         invocations from here...
14795         * modules/free (configure.ac): ... to here.
14796
14797 2011-05-07  Bruno Haible  <bruno@clisp.org>
14798
14799         freadable: Move AC_LIBOBJ invocations to module description.
14800         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14801         here...
14802         * modules/freadable (configure.ac): ... to here.
14803
14804 2011-05-07  Bruno Haible  <bruno@clisp.org>
14805
14806         fpurge: Move AC_LIBOBJ invocations to module description.
14807         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14808         invocations from here...
14809         * modules/fpurge (configure.ac): ... to here.
14810
14811 2011-05-07  Bruno Haible  <bruno@clisp.org>
14812
14813         fpending: Move AC_LIBOBJ invocations to module description.
14814         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14815         gl_FUNC_FPENDING.
14816         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14817         invocations from here...
14818         * modules/fpending (configure.ac): ... to here.
14819
14820 2011-05-07  Bruno Haible  <bruno@clisp.org>
14821
14822         fopen: Move AC_LIBOBJ invocations to module description.
14823         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14824         invocations from here...
14825         * modules/fopen (configure.ac): ... to here.
14826
14827 2011-05-07  Bruno Haible  <bruno@clisp.org>
14828
14829         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14830         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14831         gl_FUNC_FNMATCH_POSIX.
14832         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14833         invocations from here...
14834         * modules/fnmatch (configure.ac): ... to here.
14835         * modules/fnmatch-gnu (configure.ac): ... and here.
14836
14837 2011-05-07  Bruno Haible  <bruno@clisp.org>
14838
14839         flock: Move AC_LIBOBJ invocations to module description.
14840         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14841         invocations from here...
14842         * modules/flock (configure.ac): ... to here.
14843
14844 2011-05-07  Bruno Haible  <bruno@clisp.org>
14845
14846         fileblocks: Move AC_LIBOBJ invocations to module description.
14847         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14848         gl_PREREQ_FILEBLOCKS invocations from here...
14849         * modules/fileblocks (configure.ac): ... to here.
14850
14851 2011-05-06  Bruno Haible  <bruno@clisp.org>
14852
14853         fflush: Move AC_LIBOBJ invocations to module description.
14854         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14855         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14856         invocations from here...
14857         * modules/fflush (configure.ac): ... to here.
14858
14859 2011-05-06  Bruno Haible  <bruno@clisp.org>
14860
14861         fdopendir: Move AC_LIBOBJ invocations to module description.
14862         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14863         here...
14864         * modules/fdopendir (configure.ac): ... to here.
14865         (Depends-on): Improve conditions.
14866
14867 2011-05-06  Bruno Haible  <bruno@clisp.org>
14868
14869         _Exit: Move AC_LIBOBJ invocations to module description.
14870         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14871         invocations from here...
14872         * modules/_Exit (configure.ac): ... to here.
14873
14874 2011-05-21  Bruno Haible  <bruno@clisp.org>
14875
14876         euidaccess: Respect rules for use of AC_LIBOBJ.
14877         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14879         from here...
14880         * modules/euidaccess (configure.ac): ... to here.
14881
14882 2011-05-06  Bruno Haible  <bruno@clisp.org>
14883
14884         error: Move AC_LIBOBJ invocations to module description.
14885         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14886         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14887         invocations from here...
14888         * modules/error (configure.ac): ... to here.
14889
14890 2011-05-06  Bruno Haible  <bruno@clisp.org>
14891
14892         duplocale: Move AC_LIBOBJ invocations to module description.
14893         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14894         gl_PREREQ_DUPLOCALE invocations from here...
14895         * modules/duplocale (configure.ac): ... to here.
14896
14897 2011-05-05  Bruno Haible  <bruno@clisp.org>
14898
14899         dirfd: Move AC_LIBOBJ invocations to module description.
14900         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14901         gl_FUNC_DIRFD.
14902         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14903         here...
14904         * modules/dirfd (configure.ac): ... to here.
14905         (Depends-on): Fix condition.
14906
14907 2011-05-05  Bruno Haible  <bruno@clisp.org>
14908
14909         chown: Respect rules for use of AC_LIBOBJ.
14910         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14911         * modules/chown (configure.ac): ... to here.
14912
14913 2011-05-05  Bruno Haible  <bruno@clisp.org>
14914
14915         chdir-long: Move AC_LIBOBJ invocations to module description.
14916         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14917         gl_PREREQ_CHDIR_LONG invocations from here...
14918         * modules/chdir-long (configure.ac): ... to here.
14919
14920 2011-05-05  Bruno Haible  <bruno@clisp.org>
14921
14922         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14923         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14924         from here...
14925         * modules/canonicalize-lgpl (configure.ac): ... to here.
14926
14927 2011-05-05  Bruno Haible  <bruno@clisp.org>
14928
14929         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14930         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14931         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14932         REPLACE_CALLOC.
14933         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14934         * modules/calloc-gnu (configure.ac): Likewise.
14935
14936 2011-05-05  Bruno Haible  <bruno@clisp.org>
14937
14938         btowc: Move AC_LIBOBJ invocations to module description.
14939         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14940         invocations from here...
14941         * modules/btowc (configure.ac): ... to here.
14942
14943 2011-05-21  Bruno Haible  <bruno@clisp.org>
14944
14945         atexit: Move AC_LIBOBJ invocations to module description.
14946         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14947         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14948         here...
14949         * modules/atexit (configure.ac): ... to here.
14950
14951 2011-05-05  Bruno Haible  <bruno@clisp.org>
14952
14953         atoll: Move AC_LIBOBJ invocations to module description.
14954         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14955         invocations from here...
14956         * modules/atoll (configure.ac): ... to here.
14957
14958 2011-05-05  Bruno Haible  <bruno@clisp.org>
14959
14960         argz: Move AC_LIBOBJ invocations to module description.
14961         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14962         * modules/argz (configure.ac): ... to here.
14963
14964 2011-05-05  Bruno Haible  <bruno@clisp.org>
14965
14966         alphasort: Move AC_LIBOBJ invocations to module description.
14967         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14968         gl_PREREQ_ALPHASORT invocations from here...
14969         * modules/alphasort (configure.ac): ... to here.
14970
14971 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14972
14973         verify: new macro verify_expr; verify_true deprecated
14974         * NEWS: Mention this.
14975         * doc/verify.texi (Compile-time Assertions): Document this.
14976         * lib/verify.h (verify_true): Deprecate.
14977         (verify_expr): New macro.
14978         * tests/test-verify.c (function): Test verify_expr.
14979
14980 2011-06-14  Jim Meyering  <meyering@redhat.com>
14981
14982         init.sh: give more portable redirection-related advice in a comment
14983         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14984         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14985         for lots of discussion.  Stefano Lattarini suggested the solution
14986         of putting "9>&2" after the command.  Reported by Bruno Haible.
14987
14988 2011-06-13  Bruno Haible  <bruno@clisp.org>
14989
14990         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14991         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14992         'none'.
14993
14994 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14995
14996         ftoastr: use strtof only if HAVE_STRTOF
14997         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14999         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15000         * modules/ftoastr (configure.ac): Check for strtof.
15001
15002 2011-06-13  Bruno Haible  <bruno@clisp.org>
15003
15004         gnulib-tool: Addendum to 2011-06-08 commit.
15005         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15006         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15007
15008 2011-06-13  Bruno Haible  <bruno@clisp.org>
15009
15010         fseeko: Provide a non-inline replacement of fseek().
15011         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15012         * modules/fseeko (Depends-on): Add fseek.
15013         * modules/fseek (License): Change to LGPLv2+.
15014
15015 2011-06-13  Bruno Haible  <bruno@clisp.org>
15016
15017         ftello: Provide a non-inline replacement of ftell().
15018         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15019         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15020         not have ftello() (such as on mingw).
15021         * modules/ftello (Depends-on): Add ftell.
15022         * modules/ftell (License): Change to LGPLv2+.
15023
15024 2011-05-07  Bruno Haible  <bruno@clisp.org>
15025
15026         ftell: Move AC_LIBOBJ invocations to module description.
15027         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15028         * modules/ftell (configure.ac): ... to here.
15029
15030 2011-05-07  Bruno Haible  <bruno@clisp.org>
15031
15032         ftello: Respect rules for use of AC_LIBOBJ.
15033         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15034         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15035         here...
15036         * modules/ftello (configure.ac): ... to here.
15037
15038 2011-05-07  Bruno Haible  <bruno@clisp.org>
15039
15040         fseeko: Simplify.
15041         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15042         (gl_FUNC_FSEEKO): Inline it here.
15043
15044 2011-05-07  Bruno Haible  <bruno@clisp.org>
15045
15046         fseek: Move AC_LIBOBJ invocations to module description.
15047         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15048         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15049         * modules/fseek (configure.ac): ... to here.
15050
15051 2011-05-07  Bruno Haible  <bruno@clisp.org>
15052
15053         fseek: Respect rules for use of AC_LIBOBJ.
15054         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15055         here...
15056         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15057
15058 2011-05-07  Bruno Haible  <bruno@clisp.org>
15059
15060         fseeko: Respect rules for use of AC_LIBOBJ.
15061         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15062         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15063         here...
15064         * modules/fseeko (configure.ac): ... to here.
15065
15066 2011-06-13  Bruno Haible  <bruno@clisp.org>
15067
15068         gnulib-tool: Allow comments in the 'Depends-on' section.
15069         * doc/gnulib.texi (Module description): Mention comment syntax in the
15070         Depends-on section.
15071         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15072
15073 2011-06-13  Bruno Haible  <bruno@clisp.org>
15074
15075         file-set.h: guard __attibute__ use, now that it's not always defined
15076         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15077         versions that support it.  This fixes a coreutils build failure with
15078         the vendor cc on HP-UX 11.31.
15079
15080 2011-06-12  Bruno Haible  <bruno@clisp.org>
15081
15082         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15083         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15084         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15085         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15086         (acl, aclsort): New declarations.
15087         (aclv_nontrivial): New declaration.
15088         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15089         (file_has_acl): Read also the second kind of HP-UX ACLs.
15090         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15091         kind of HP-UX ACLs if the first kind fails.
15092         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15093         second kind of HP-UX ACLs.
15094         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15095         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15096         agree.
15097         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15098         hpuxjfs.
15099         Handle hpuxjfs.
15100         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15101         hpuxjfs.
15102         Handle hpuxjfs.
15103         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15104         (func_test_same_acls): Use both lsacl and getacl.
15105         Handle hpuxjfs.
15106         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15107         (func_test_same_acls): Use both lsacl and getacl.
15108         Handle hpuxjfs.
15109
15110 2011-06-12  Bruno Haible  <bruno@clisp.org>
15111
15112         acl: Complete the 2010-08-10 fix.
15113         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15114         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15115         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15116         explicitly.
15117         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15118         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15119
15120 2011-06-12  Bruno Haible  <bruno@clisp.org>
15121
15122         spawn-pipe tests: Comments.
15123         * tests/test-spawn-pipe-child.c (main): Update comment.
15124         Reported by James Youngman <jay@gnu.org>.
15125
15126 2011-06-11  James Youngman  <jay@gnu.org>
15127
15128         New module 'stat-size'.
15129         * modules/stat-size: New module.  Provides macros for accessing
15130         file size information in instances of struct stat.  Depends on the
15131         fileblocks module because it calls st_blocks.
15132         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15133         * doc/gnulib.texi: Include stat-size.texi.
15134         * doc/stat-size.texi: Documentation for this module.
15135         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15136         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15137         AC_STRUCT_ST_BLOCKS.
15138
15139 2011-06-09  Bruno Haible  <bruno@clisp.org>
15140
15141         thread: Support pthreads-win32.
15142         * lib/glthread/thread.h (gl_thread_self): Define differently on
15143         pthreads-win32.
15144         (gl_null_thread): New declaration.
15145         (gl_thread_self_pointer): New macro.
15146         * lib/glthread/thread.c (gl_null_thread): New constant.
15147         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15148         gl_thread_self.
15149         * tests/test-tls.c: Likewise.
15150         Suggested by Paul Eggert. Reported by Eric Blake.
15151
15152 2011-06-09  Bruno Haible  <bruno@clisp.org>
15153
15154         thread: Fix confusion between NULL and 0.
15155         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15156         Reported by Paul Eggert.
15157
15158 2011-06-09  Bruno Haible  <bruno@clisp.org>
15159
15160         spawn-pipe tests: Avoid test failure on HP-UX 11.
15161         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15162         is closed.
15163
15164 2011-06-09  Bruno Haible  <bruno@clisp.org>
15165
15166         acl tests: Fix compilation error on HP-UX 11.
15167         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15168
15169 2011-06-09  Bruno Haible  <bruno@clisp.org>
15170
15171         rmdir: Avoid test failure on HP-UX 10.20.
15172         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15173         EEXIST.
15174
15175 2011-06-08  Eric Blake  <eblake@redhat.com>
15176
15177         perror: fix test on mingw
15178         * modules/perror-tests (Depends-on): Add dup2.
15179
15180         strerror_r-posix: fix on MacOS
15181         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15182         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15183         logic bug.
15184         * lib/strerror_r.c (strerror_r): Fix the bug.
15185         * lib/strerror.c (strerror): Likewise.
15186         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15187         problem.
15188         * doc/posix-functions/strerror.texi (strerror): Likewise.
15189         * doc/posix-functions/perror.texi (perror): Likewise.
15190         * tests/test-strerror.c (main): Enhance test.
15191         * tests/test-strerror_r.c (main): Likewise.
15192
15193 2011-06-08  Bruno Haible  <bruno@clisp.org>
15194
15195         gnulib-tool: Better isolation between different gnulib-tool invocations.
15196         * gnulib-tool: New option --witness-c-macro.
15197         (witness_c_macro): New variable.
15198         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15199         AM_CPPFLAGS define it as a C macro.
15200         (func_emit_tests_Makefile_am): Likewise.
15201         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15202         read it from there.
15203         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15204         m4_define, not AC_DEFUN.
15205         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15206         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15207         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15208         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15209         s|...|...|, to substitute the values of the GNULIB_* module indicator
15210         variables.
15211         * modules/dirent (Makefile.am): Likewise.
15212         * modules/fcntl-h (Makefile.am): Likewise.
15213         * modules/iconv-h (Makefile.am): Likewise.
15214         * modules/langinfo (Makefile.am): Likewise.
15215         * modules/locale (Makefile.am): Likewise.
15216         * modules/math (Makefile.am): Likewise.
15217         * modules/netdb (Makefile.am): Likewise.
15218         * modules/poll-h (Makefile.am): Likewise.
15219         * modules/pty (Makefile.am): Likewise.
15220         * modules/search (Makefile.am): Likewise.
15221         * modules/signal (Makefile.am): Likewise.
15222         * modules/spawn (Makefile.am): Likewise.
15223         * modules/stdio (Makefile.am): Likewise.
15224         * modules/stdlib (Makefile.am): Likewise.
15225         * modules/string (Makefile.am): Likewise.
15226         * modules/sys_ioctl (Makefile.am): Likewise.
15227         * modules/sys_select (Makefile.am): Likewise.
15228         * modules/sys_socket (Makefile.am): Likewise.
15229         * modules/sys_stat (Makefile.am): Likewise.
15230         * modules/sys_times (Makefile.am): Likewise.
15231         * modules/sys_utsname (Makefile.am): Likewise.
15232         * modules/sys_wait (Makefile.am): Likewise.
15233         * modules/termios (Makefile.am): Likewise.
15234         * modules/time (Makefile.am): Likewise.
15235         * modules/unistd (Makefile.am): Likewise.
15236         * modules/wchar (Makefile.am): Likewise.
15237
15238 2011-06-08  Eric Blake  <eblake@redhat.com>
15239
15240         strerror: simplify replacement
15241         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15242         * modules/strerror (configure.ac): No prereqs needed here...
15243         * modules/strerror-override (configure.ac): ...but this needs it.
15244         (Files): Add file for needed prereq macro.
15245
15246 2011-06-08  Bruno Haible  <bruno@clisp.org>
15247
15248         strerror_r-posix: Tweaks.
15249         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15250         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15252         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15253         (gl_FUNC_STRERROR_R): ... to here.
15254         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15255
15256 2011-06-07  Eric Blake  <eblake@redhat.com>
15257
15258         perror: document fixed bugs
15259         * doc/posix-functions/perror.texi (perror): Document recent
15260         patches.
15261
15262 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15263
15264         stat-time: get_stat_birthtime failure is better-defined
15265         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15266         return a timestamp whose tv_sec and tv_nsec values are both -1.
15267         Previously, the spec said only that the tv_nsec value was negative.
15268         This upward-compatible change simplifies GNU tar a bit.
15269
15270 2011-06-07  Eric Blake  <eblake@redhat.com>
15271
15272         strerror_r-posix: work around cygwin 1.7.9
15273         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15274         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15275         bug without replacing strerror_r.
15276         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15277         strerror_r is buggy, but without requiring strerror_r compilation.
15278         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15279
15280         test-perror: relax test to ignore cygwin bug
15281         * tests/test-perror2.c (main): Relax test on requiring detection
15282         of stream errors, and use unbuffered stream.
15283         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15284         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15285         * doc/posix-functions/fputc.texi (fputc): Likewise.
15286         * doc/posix-functions/fputs.texi (fputs): Likewise.
15287         * doc/posix-functions/fputws.texi (fputws): Likewise.
15288         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15289         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15290         * doc/posix-functions/getopt.texi (getopt): Likewise.
15291         * doc/posix-functions/perror.texi (perror): Likewise.
15292         * doc/posix-functions/printf.texi (printf): Likewise.
15293         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15294         * doc/posix-functions/psignal.texi (psignal): Likewise.
15295         * doc/posix-functions/putc.texi (putc): Likewise.
15296         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15297         Likewise.
15298         * doc/posix-functions/putchar.texi (putchar): Likewise.
15299         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15300         Likewise.
15301         * doc/posix-functions/puts.texi (puts): Likewise.
15302         * doc/posix-functions/putwc.texi (putwc): Likewise.
15303         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15304         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15305         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15306         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15307         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15308         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15309         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15310         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15311
15312 2011-05-22  Bruno Haible  <bruno@clisp.org>
15313
15314         strerror: Move AC_LIBOBJ invocations to module description.
15315         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15316         gl_PREREQ_STRERROR invocations from here...
15317         * modules/strerror (configure.ac): ... to here.
15318
15319 2011-05-21  Bruno Haible  <bruno@clisp.org>
15320
15321         perror: Use common idiom.
15322         * modules/perror (configure.ac): Reorder statements.
15323
15324 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15325
15326         tests: fix usage message in 'mktempd_'
15327         * tests/init.sh (mktempd_): In the usage message, use literal
15328         'mktempd_', not '$ME' (which is even undefined), as the name of
15329         the subroutine.
15330
15331 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15332
15333         tests init: new function 'fatal_', for hard errors
15334         Before this patch, the only way offered by tests/init.sh to
15335         properly signal a hard error was the `framework_failure_'
15336         function.  But the error message issued by that function,
15337         as its name would suggest, refers to a set-up failure in the
15338         testsuite, while hard errors can obviously also be due to
15339         other reasons.  The best way to fix this inconsistency is to
15340         introduce a new function with a more general error message.
15341         * tests/init.sh (fatal_): New function.
15342
15343 2011-06-06  Eric Blake  <eblake@redhat.com>
15344
15345         canonicalize-lgpl: use common idiom
15346         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15347         over newer POSIX -Rf.
15348         Reported by Bruno Haible.
15349
15350         canonicalize-lgpl: work around AIX realpath bug
15351         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15352         * doc/posix-functions/realpath.texi (realpath): Document it.
15353         Reported by Bruno Haible.
15354
15355         strerror: work around FreeBSD bug
15356         * lib/strerror.c (strerror): Special case 0.
15357         Reported by Bruno Haible.
15358
15359         strerror-override: avoid bloating errno module
15360         * modules/errno (Files, configure.ac): Move replacement strings...
15361         * modules/strerror-override: ...to new module.
15362         * modules/strerror (Depends-on): Add strerror-override.
15363         * modules/strerror_r-posix (Depends-on): Likewise.
15364         * MODULES.html.sh: Document new module.
15365         Reported by Bruno Haible.
15366
15367 2011-06-06  Bruno Haible  <bruno@clisp.org>
15368
15369         spawn-pipe tests: Rename program.
15370         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15371         * tests/test-spawn-pipe-child.c: Update comment.
15372         * tests/test-spawn-pipe.sh: Update.
15373         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15374
15375         spawn-pipe tests: Link the child program only against libc.
15376         * tests/test-spawn-pipe-child.c: New file, extracted from
15377         tests/test-spawn-pipe.c.
15378         (main): Expect only one argument.
15379         (is_open): New function, copied from tests/test-pipe.c.
15380         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15381         (child_main): Remove function.
15382         (test_pipe): Pass only one argument to the child program.
15383         (main): Remove child process code. Expect the child program's name as
15384         first argument.
15385         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15386         argument.
15387         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15388         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15389         test-spawn-pipe-child against no libraries.
15390
15391 2011-06-06  Bruno Haible  <bruno@clisp.org>
15392
15393         careadlinkat: Avoid mismatch between ssize_t and int.
15394         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15395         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15396
15397 2011-06-06  Jim Meyering  <meyering@redhat.com>
15398
15399         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15400         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15401         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15402
15403 2011-06-05  Bruno Haible  <bruno@clisp.org>
15404
15405         ansi-c++-opt: Interoperability with libtool.
15406         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15407         set the variable to "no", not to ":".
15408         * NEWS: Mention the change.
15409
15410 2011-06-05  Bruno Haible  <bruno@clisp.org>
15411
15412         acl: Fix test failure on AIX 7.
15413         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15414         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15415
15416 2011-06-05  Bruno Haible  <bruno@clisp.org>
15417
15418         pipe-filter-ii: Fix test failure on AIX and IRIX.
15419         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15420         with EAGAIN, retry with a smaller buffer size.
15421
15422 2011-06-05  Bruno Haible  <bruno@clisp.org>
15423
15424         localename: Fix link dependencies.
15425         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15426         * modules/localename-tests (Makefile.am): Link test-localename with
15427         $(LIBTHREAD).
15428
15429 2011-06-05  Bruno Haible  <bruno@clisp.org>
15430
15431         error: Avoid gcc warning.
15432         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15433
15434 2011-06-05  Bruno Haible  <bruno@clisp.org>
15435
15436         unsetenv: Avoid gcc warning.
15437         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15438
15439 2011-06-05  Bruno Haible  <bruno@clisp.org>
15440
15441         setenv: Avoid gcc warning.
15442         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15443
15444 2011-06-05  Bruno Haible  <bruno@clisp.org>
15445
15446         sys_select: Ensure memset is declared also on AIX 7.
15447         * lib/sys_select.in.h: Include <string.h> also on AIX.
15448         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15449         self-contained also on AIX 7.1.
15450
15451 2011-06-04  Jim Meyering  <meyering@redhat.com>
15452
15453         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15454         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15455         function name, "error".
15456         (_gl_translatable_diag_func_re): New configurable variable.
15457
15458 2011-06-04  Bruno Haible  <bruno@clisp.org>
15459
15460         getopt: Avoid gcc warning.
15461         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15462
15463 2011-06-04  Bruno Haible  <bruno@clisp.org>
15464
15465         strerror_r: Fix comments.
15466         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15467         commit.
15468
15469 2011-06-04  Bruno Haible  <bruno@clisp.org>
15470
15471         perror: Fix compilation error.
15472         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15473         Undefine fprintf, not sprintf.
15474         * modules/perror (Depends-on): Remove intprops, verify.
15475
15476 2011-06-04  Bruno Haible  <bruno@clisp.org>
15477
15478         setlocale: Enable replacement on Cygwin 1.5.
15479         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15480         Cygwin 1.5.x.
15481         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15482         LC_CTYPE category also exists on Cygwin 1.5.x.
15483
15484 2011-06-04  Bruno Haible  <bruno@clisp.org>
15485
15486         strerror-override: Don't disable symbol renamings.
15487         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15488         * lib/strerror-override.c: Include config.h.
15489         (strerror_override): Don't undefine.
15490
15491 2011-06-03  Bruno Haible  <bruno@clisp.org>
15492
15493         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15494         * lib/localename.h: Update copyright header.
15495         * lib/localename.c: Likewise.
15496         * lib/relocatable.h: Likewise.
15497         * lib/relocatable.c: Likewise.
15498
15499 2011-06-02  Bruno Haible  <bruno@clisp.org>
15500
15501         doc: Fix a module name.
15502         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15503
15504 2011-06-02  Bruno Haible  <bruno@clisp.org>
15505
15506         pipe2: Remove dependency on 'nonblocking' module.
15507         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15508         O_NONBLOCK is defined by gnulib.
15509         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15510         is zero.
15511         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15512         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15513         defined by gnulib.
15514         (get_nonblocking_flag): New function.
15515         (main): Test O_NONBLOCK flag only if it is nonzero.
15516         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15517
15518 2011-06-03  Jim Meyering  <meyering@redhat.com>
15519
15520         maint: three new prohibit-header-without-use rules
15521         Prohibit use of cloexec.h, posixver.h, same.h without use.
15522         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15523         (sc_prohibit_posixver_without_use): Likewise.
15524         (sc_prohibit_same_without_use): Likewise.
15525
15526 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15527
15528         allocator: 'die' routine is now given requested size
15529         * lib/allocator.h (struct allocator.die): New size arg.
15530         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15531         If the actual problem is an ssize_t limitation, not a size_t or
15532         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15533
15534 2011-06-01  Eric Blake  <eblake@redhat.com>
15535
15536         strerror: drop strerror_r dependency
15537         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15538         * lib/strerror-override.c (strerror_override): ...to new file.
15539         * lib/strerror-override.h: Add prototype.
15540         * lib/strerror-impl.h: Delete.
15541         * lib/strerror.c (strerror): New implementation.
15542         * modules/errno (Files): Add new files.
15543         (configure.ac): Compile new file as appropriate.
15544         * modules/strerror (Files): Drop unused file.
15545         (Depends-on): Drop strerror_r-posix.
15546         * MODULES.html.sh: Document strerror_r-posix.
15547         Requested by Sam Steingold.
15548
15549         perror: call strerror_r directly
15550         * modules/perror (Files): Drop strerror-impl.h.
15551         * lib/perror.c (perror): Use our own stack buffer, rather than
15552         calling a wrapper that uses static storage.
15553         * doc/posix-functions/perror.texi (perror): Document a limitation
15554         of our replacement.
15555
15556         strerror_r: fix includes for FreeBSD
15557         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15558         since we use abort on some platforms.
15559         Reported by Matthias Bolte.
15560
15561 2011-05-31  Bruno Haible  <bruno@clisp.org>
15562
15563         Fix link errors in tests: openat-die uses gettext-h.
15564         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15565         against $(LIBINTL).
15566         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15567         against $(LIBINTL).
15568         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15569         $(LIBINTL).
15570         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15571         against $(LIBINTL).
15572         * modules/linkat-tests (Makefile.am): Link test-linkat against
15573         $(LIBINTL).
15574         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15575         $(LIBINTL).
15576         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15577         against $(LIBINTL).
15578         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15579         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15580         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15581         $(LIBINTL).
15582         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15583         $(LIBINTL).
15584         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15585         $(LIBINTL).
15586         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15587
15588 2011-05-31  Bruno Haible  <bruno@clisp.org>
15589
15590         Fix link errors in tests: wait-process uses gettext-h.
15591         * modules/nonblocking-pipe-tests (Makefile.am): Set
15592         test_nonblocking_pipe_main_LDADD.
15593         * modules/nonblocking-socket-tests (Makefile.am): Link
15594         test-nonblocking-socket-main against $(LIBINTL).
15595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15596
15597 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15598
15599         assert-h: work around 'verify' incompatibility
15600         * lib/verify.h: Use @...@ directives, not ifdef.
15601         * modules/assert-h (assert.h): Implement the directives.
15602         (assert.h): Substitute the symbol-prefix more consistently.
15603
15604 2011-05-29  Jim Meyering  <meyering@redhat.com>
15605
15606         trim: remove three superfluous assignments
15607         * lib/trim.c (trim2): Remove three superfluous assignments
15608         and correct brace positioning.
15609
15610 2011-05-29  Bruno Haible  <bruno@clisp.org>
15611
15612         wctype-h: Avoid namespace pollution on Solaris 2.6.
15613         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15614         identifiers.
15615         * doc/posix-headers/wctype.texi: Mention the problem.
15616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15617
15618 2011-05-28  Jim Meyering  <meyering@redhat.com>
15619
15620         parse-datetime.y: accommodate -Wstrict-overflow
15621         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15622         placate -Wstrict-overflow.
15623
15624         trim: avoid a warning from -O2 -Wstrict-overflow
15625         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15626
15627 2011-05-29  Bruno Haible  <bruno@clisp.org>
15628
15629         gnulib-tool: Fix bug in yesterday's commit.
15630         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15631         twice.
15632
15633 2011-05-29  Bruno Haible  <bruno@clisp.org>
15634
15635         Allow multiple gnulib generated include files to be combined.
15636         * gnulib-tool (func_compute_include_guard_prefix): New function.
15637         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15638         ${gl_include_guard_prefix} references.
15639         (func_import, func_create_testdir): Invoke
15640         func_compute_include_guard_prefix.
15641         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15642         * lib/ctype.in.h: Likewise.
15643         * lib/dirent.in.h: Likewise.
15644         * lib/errno.in.h: Likewise.
15645         * lib/fcntl.in.h: Likewise.
15646         * lib/float.in.h: Likewise.
15647         * lib/getopt.in.h: Likewise.
15648         * lib/iconv.in.h: Likewise.
15649         * lib/langinfo.in.h: Likewise.
15650         * lib/locale.in.h: Likewise.
15651         * lib/math.in.h: Likewise.
15652         * lib/netdb.in.h: Likewise.
15653         * lib/netinet_in.in.h: Likewise.
15654         * lib/poll.in.h: Likewise.
15655         * lib/pthread.in.h: Likewise.
15656         * lib/pty.in.h: Likewise.
15657         * lib/sched.in.h: Likewise.
15658         * lib/se-selinux.in.h: Likewise.
15659         * lib/search.in.h: Likewise.
15660         * lib/signal.in.h: Likewise.
15661         * lib/spawn.in.h: Likewise.
15662         * lib/stdarg.in.h: Likewise.
15663         * lib/stddef.in.h: Likewise.
15664         * lib/stdint.in.h: Likewise.
15665         * lib/stdio.in.h: Likewise.
15666         * lib/stdlib.in.h: Likewise.
15667         * lib/string.in.h: Likewise.
15668         * lib/strings.in.h: Likewise.
15669         * lib/sys_file.in.h: Likewise.
15670         * lib/sys_ioctl.in.h: Likewise.
15671         * lib/sys_select.in.h: Likewise.
15672         * lib/sys_socket.in.h: Likewise.
15673         * lib/sys_stat.in.h: Likewise.
15674         * lib/sys_time.in.h: Likewise.
15675         * lib/sys_times.in.h: Likewise.
15676         * lib/sys_uio.in.h: Likewise.
15677         * lib/sys_utsname.in.h: Likewise.
15678         * lib/sys_wait.in.h: Likewise.
15679         * lib/sysexits.in.h: Likewise.
15680         * lib/termios.in.h: Likewise.
15681         * lib/time.in.h: Likewise.
15682         * lib/unistd.in.h: Likewise.
15683         * lib/wchar.in.h: Likewise.
15684         * lib/wctype.in.h: Likewise.
15685         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15686         * modules/ctype (Makefile.am): Likewise.
15687         * modules/dirent (Makefile.am): Likewise.
15688         * modules/errno (Makefile.am): Likewise.
15689         * modules/fcntl-h (Makefile.am): Likewise.
15690         * modules/float (Makefile.am): Likewise.
15691         * modules/getopt-posix (Makefile.am): Likewise.
15692         * modules/iconv-h (Makefile.am): Likewise.
15693         * modules/langinfo (Makefile.am): Likewise.
15694         * modules/locale (Makefile.am): Likewise.
15695         * modules/math (Makefile.am): Likewise.
15696         * modules/netdb (Makefile.am): Likewise.
15697         * modules/netinet_in (Makefile.am): Likewise.
15698         * modules/poll-h (Makefile.am): Likewise.
15699         * modules/pthread (Makefile.am): Likewise.
15700         * modules/pty (Makefile.am): Likewise.
15701         * modules/sched (Makefile.am): Likewise.
15702         * modules/search (Makefile.am): Likewise.
15703         * modules/selinux-h (Makefile.am): Likewise.
15704         * modules/signal (Makefile.am): Likewise.
15705         * modules/spawn (Makefile.am): Likewise.
15706         * modules/stdarg (Makefile.am): Likewise.
15707         * modules/stddef (Makefile.am): Likewise.
15708         * modules/stdint (Makefile.am): Likewise.
15709         * modules/stdio (Makefile.am): Likewise.
15710         * modules/stdlib (Makefile.am): Likewise.
15711         * modules/string (Makefile.am): Likewise.
15712         * modules/strings (Makefile.am): Likewise.
15713         * modules/sys_file (Makefile.am): Likewise.
15714         * modules/sys_ioctl (Makefile.am): Likewise.
15715         * modules/sys_select (Makefile.am): Likewise.
15716         * modules/sys_socket (Makefile.am): Likewise.
15717         * modules/sys_stat (Makefile.am): Likewise.
15718         * modules/sys_time (Makefile.am): Likewise.
15719         * modules/sys_times (Makefile.am): Likewise.
15720         * modules/sys_uio (Makefile.am): Likewise.
15721         * modules/sys_utsname (Makefile.am): Likewise.
15722         * modules/sys_wait (Makefile.am): Likewise.
15723         * modules/sysexits (Makefile.am): Likewise.
15724         * modules/termios (Makefile.am): Likewise.
15725         * modules/time (Makefile.am): Likewise.
15726         * modules/unistd (Makefile.am): Likewise.
15727         * modules/wchar (Makefile.am): Likewise.
15728         * modules/wctype-h (Makefile.am): Likewise.
15729         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15730
15731 2011-05-29  Bruno Haible  <bruno@clisp.org>
15732
15733         assert-h: Allow multiple gnulib generated replacements to coexist.
15734         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15735
15736 2011-05-29  Bruno Haible  <bruno@clisp.org>
15737
15738         argp: Allow coexistence with strerror_r-posix module.
15739         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15740         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15741         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15742         not the glibc signature.
15743
15744 2011-05-28  Bruno Haible  <bruno@clisp.org>
15745
15746         gnulib-tool: Alternative structure of testdirs, similar to --import.
15747         * gnulib-tool: New option --single-configure.
15748         (func_usage): Document it.
15749         (single_configure): New variable.
15750         (func_modules_transitive_closure_separately,
15751         func_modules_transitive_closure_separately,
15752         func_determine_use_libtests, func_modules_add_dummy_separately,
15753         func_modules_to_filelist_separately): New functions, extracted from
15754         func_import.
15755         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15756         (func_import): Use the new functions.
15757         (func_create_testdir): Set final_modules. Handle $single_configure =
15758         true case.
15759
15760 2011-05-28  Bruno Haible  <bruno@clisp.org>
15761
15762         getloadavg: Remove an unreliable safety check.
15763         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15764         getloadavg.c is in place.
15765         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15766         Reported by Sam Steingold <sds@gnu.org>.
15767
15768 2011-05-28  Bruno Haible  <bruno@clisp.org>
15769
15770         doc: Cleanup yet another file produced by texinfo.tex.
15771         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15772
15773 2011-05-28  Bruno Haible  <bruno@clisp.org>
15774
15775         Finish the conditional dependencies mechanism.
15776         * gnulib-tool: New option --no-conditional-dependencies.
15777         (func_usage): Document it. Don't mark --conditional-dependencies as
15778         experimental.
15779         (cond_dependencies): The possible values can now be true, false, empty.
15780         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15781         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15782         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15783
15784 2011-05-28  Bruno Haible  <bruno@clisp.org>
15785
15786         doc: Use a recent texinfo.tex.
15787         * doc/Makefile (tex_opts): New variable.
15788         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15789
15790 2011-05-28  Jim Meyering  <meyering@redhat.com>
15791
15792         intprops.h: adjust comment to match code change
15793         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15794         only once, it *may* have side effects.  Also fix an unrelated typo.
15795         (_GL_INT_SIGNED): Likewise.
15796
15797 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15798
15799         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15800
15801 2011-05-26  Bruno Haible  <bruno@clisp.org>
15802
15803         mbsrchr: Avoid collision with system function on Interix.
15804         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15805         Reported by Markus Duft <mduft@gentoo.org>.
15806
15807 2011-05-15  James Youngman  <jay@gnu.org>
15808
15809         getopt: for ambiguous options, enumerate the possibilities.
15810         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15811         the ambiguous options when an ambiguous prefix is given. This was
15812         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15813         glibc change was
15814         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15815
15816 2011-05-25  Eric Blake  <eblake@redhat.com>
15817
15818         getcwd: work around mingw bug
15819         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15820         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15821         Reported by Matthias Bolte.
15822
15823 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15824
15825         test-intprops: disable -Wtype-limits diagnostics
15826         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15827         diagnostics.  Otherwise, the integer overflow macros generate many
15828         diagnostics.  Reported by Jim Meyering in
15829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15830
15831         intprops: shorten, to pacify gcc -Woverlength-strings
15832         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15833         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15834         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15835         likely to run afoul of C compiler limits for string constant lengths.
15836         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15837
15838 2011-05-24  Eric Blake  <eblake@redhat.com>
15839
15840         docs: document recently fixed glibc printf bug
15841         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15842         * doc/posix-functions/printf.texi (printf): Likewise.
15843         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15844         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15845
15846         closein-tests: convert to init.sh
15847         * modules/closein-tests (Files): Add init.sh
15848         * tests/test-closein.sh Use it.
15849
15850         yesno-tests: convert to init.sh
15851         * modules/yesno-tests (Files): Add init.sh.
15852         * tests/test-yesno.sh: Use it.
15853
15854         atexit-tests: ensure reliable exit status
15855         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15856         Reported by Bruno Haible.
15857
15858 2011-05-24  Bruno Haible  <bruno@clisp.org>
15859
15860         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15862         gl_PREREQ_STRERROR_R invocations from here...
15863         * modules/strerror_r-posix (configure.ac): ... to here.
15864
15865 2011-05-24  Eric Blake  <eblake@redhat.com>
15866
15867         strerror_r: fix missing header
15868         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15869
15870         strerror_r: fix AIX test failures
15871         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15872         ERANGE failure.
15873
15874         strerror_r: fix Solaris test failures
15875         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15876         failures.
15877         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15878
15879         strerror_r: enforce POSIX recommendations
15880         * lib/strerror_r.c (safe_copy): New helper method.
15881         (strerror_r): Guarantee a non-empty string.
15882         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15883         recent POSIX rulings and to match our strerror guarantees.
15884         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15885
15886 2011-05-24  Jim Meyering  <meyering@redhat.com>
15887
15888         test-perror2.c: avoid warning about unused variable
15889         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15890
15891 2011-05-24  Eric Blake  <eblake@redhat.com>
15892
15893         perror: avoid spurious test failure on HP-UX
15894         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15895
15896         tests: fix logic bug in init.sh
15897         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15898         shell.
15899
15900 2011-05-24  Jim Meyering  <meyering@redhat.com>
15901
15902         utimensat: do not reference an out-of-scope buffer
15903         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15904         declared in an inner scope, yet "times" would be dereferenced outside
15905         the scope in which "ts" was valid.
15906         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15907         of ts[2] "out/up", so that the use of aliased "times" (via
15908         "times = ts;") does not end up referencing an out-of-scope "ts"
15909
15910         opendir-safer.c: don't clobber errno; don't close negative FD
15911         * lib/opendir-safer.c (opendir_safer):
15912         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15913         file descriptor, and more importantly, don't clobber the
15914         offending errno value with EINVAL.  Before, upon failure
15915         of dup_safer, we would pass the negative file descriptor to
15916         fdopendir, which would clobber errno.
15917
15918 2011-05-23  Bruno Haible  <bruno@clisp.org>
15919
15920         idcache: Fix module description.
15921         * modules/idcache (Include): Set to "idcache.h".
15922
15923 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15924
15925         gnulib-tool: fix portability problem with MacOS sed
15926         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15927         before the "}".  Problem reported by Leo in
15928         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15929         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15930         sed_extract_condition1, sed_extract_condition2.
15931
15932 2011-05-23  Bruno Haible  <bruno@clisp.org>
15933
15934         hash: Simplify autoconf macro.
15935         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15936
15937 2011-05-23  Bruno Haible  <bruno@clisp.org>
15938
15939         getugroups: Fix module description.
15940         * modules/getugroups (Include): Set to "getugroups.h".
15941
15942 2011-05-23  Bruno Haible  <bruno@clisp.org>
15943
15944         linkat: Simplify autoconf macro.
15945         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15946
15947 2011-05-23  Bruno Haible  <bruno@clisp.org>
15948             Eric Blake  <eblake@redhat.com>
15949
15950         linkat, renameat: Update dependencies.
15951         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15952         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15953         symlinkat.
15954
15955 2011-05-23  Jim Meyering  <meyering@redhat.com>
15956
15957         maint.mk: more tight_scope improvements
15958         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15959         (_gl_TS_headers): Define only in if-0'd block.
15960         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15961         sometimes we must *not* use it.  Adjust uses accordingly.
15962         (sc_tight_scope): Use much simpler grep-based test to determine
15963         whether we skip this rule.
15964
15965         maint.mk: generalize/improve the tight-scope rule
15966         * top/maint.mk: Emit a warning when the test is skipped.
15967         (_gl_TS_dir): Add $(srcdir)/ prefix.
15968         (_gl_TS_function_match): Simplify, rather than trying
15969         to enumerate common types.  Otherwise, it would fail to match an
15970         "extern unsigned char const *" declaration in idutils.
15971         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15972         a way to support use of that type of macro.
15973         (_gl_TS_var_match): Simplify regexp.
15974         (_gl_TS_obj_files): New configurable variable.
15975         (_gl_TS_headers): Likewise.
15976
15977 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15978
15979         verify: fix bug when gnulib <assert.h> is also included
15980         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15981         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15982         Perhaps there's a better way, but this fixes the immediate problem.
15983         Problem reported by Bruno Haible in
15984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15985
15986 2011-05-22  Bruno Haible  <bruno@clisp.org>
15987
15988         xgetcwd: Simplify autoconf macro.
15989         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15990
15991 2011-05-22  Bruno Haible  <bruno@clisp.org>
15992
15993         New module 'mktime-internal'.
15994         * modules/mktime-internal: New file.
15995         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15996         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15997         mktime_internal as a C macro if libc has __mktime_internal.
15998         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15999         conditions.
16000         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16001
16002 2011-05-22  Bruno Haible  <bruno@clisp.org>
16003
16004         timegm: Correct mktime replacement statements.
16005         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16006         defining mktime as a C macro. This completes a 2009-07-28 commit.
16007
16008 2011-05-22  Bruno Haible  <bruno@clisp.org>
16009
16010         timegm: Simplify autoconf macro.
16011         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16012
16013 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16014
16015         clock-time: change to LGPLv2+.
16016         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16017         BSD-like but we have no mark for that; this is good enough for now.
16018
16019 2011-05-21  Bruno Haible  <bruno@clisp.org>
16020
16021         strerror_r: Fix comments.
16022         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16023
16024 2011-05-21  Bruno Haible  <bruno@clisp.org>
16025
16026         relocatable-prog-wrapper: Fix possible link error.
16027         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16028         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16029         (gl_FUNC_SETENV): ... to here.
16030         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16031         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16032
16033 2011-05-21  Bruno Haible  <bruno@clisp.org>
16034
16035         relocatable-prog-wrapper: Assume strerror() exists.
16036         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16037         m4/strerror.m4.
16038         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16039         * lib/relocwrapper.c: Remove mention of strerror module.
16040         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16041         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16042         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16043         C macro.
16044
16045 2011-05-21  Bruno Haible  <bruno@clisp.org>
16046
16047         select: Simplify replacement idiom.
16048         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16049         Win32 platforms.
16050         * lib/sys_select.in.h (select): Simplify accordingly.
16051         * modules/select (Depends-on): Likewise.
16052
16053 2011-05-21  Bruno Haible  <bruno@clisp.org>
16054
16055         mkdir-p: Simplify autoconf macro.
16056         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16057         gl_FUNC_LCHOWN.
16058
16059 2011-05-21  Eric Blake  <eblake@redhat.com>
16060
16061         strerror_r: avoid clobbering strerror on cygwin
16062         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16063         fall back instead to sys_errlist.
16064         * modules/strerror (configure.ac): Add witness.
16065         * tests/test-strerror_r.c (main): Enhance test.
16066         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16067         * tests/test-perror2.c (main): Free memory before exit.
16068
16069 2011-05-21  Bruno Haible  <bruno@clisp.org>
16070
16071         mkdtemp: Use gnulib naming conventions.
16072         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16073         * modules/mkdtemp (configure.ac): Update.
16074
16075 2011-05-20  Eric Blake  <eblake@redhat.com>
16076
16077         strerror_r: avoid corrupting errno on Solaris
16078         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16079         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16080
16081         strerror_r: avoid compiler warning
16082         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16083
16084         strerror_r: simplify AIX code
16085         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16086
16087         test-perror: avoid spurious failure on FreeBSD
16088         * modules/perror-tests (Depends-on): Add strerror, now that
16089         strerror_r no longer pulls it in.
16090
16091 2011-05-20  Bruno Haible  <bruno@clisp.org>
16092
16093         strerror_r-posix: Remove unused dependencies.
16094         * modules/strerror_r-posix (Depends-on): Remove strerror.
16095         Reported by Eric Blake.
16096
16097 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16098
16099         intprops: remove assumption about A|B representation
16100         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16101         is a valid integer if both A and B are.  Although this is true for
16102         all known practical hosts, the C standard doesn't guarantee it,
16103         and the code need not assume it.  Also, this change may work around
16104         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16106
16107 2011-05-20  Eric Blake  <eblake@redhat.com>
16108
16109         perror: work around FreeBSD bug
16110         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16111         is broken.  Move AC_LIBOBJ...
16112         * modules/perror (configure.ac): Here.
16113         * doc/posix-functions/perror.texi (perror): Document this.
16114         * tests/test-perror2.c (main): Enhance test.
16115
16116         test-perror: check for strerror interactions
16117         * tests/macros.h (STREQ): Add macro.
16118         * modules/perror-tests (Files): Add second test.
16119         * tests/test-perror2.c (main): New file.
16120         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16121
16122         test-perror: rewrite to use init script
16123         * modules/perror-tests (Files): Add init.sh.
16124         * tests/test-perror.sh: Use temporary directory.
16125
16126 2011-05-20  Jim Meyering  <meyering@redhat.com>
16127
16128         maint: replace misused "a" with "an"
16129         * doc/intprops.texi: "a integer"
16130         * doc/regex.texi: "a explanation"
16131         * lib/alignof.h: "a object"
16132         * lib/argmatch.h: "a explanation"
16133         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16134         * lib/stdint.in.h: "a integer"
16135         * lib/userspec.c: "a owner"
16136         * doc/gnulib.texi: Fix "a idea", and reword.
16137
16138 2011-05-19  Jim Meyering  <meyering@redhat.com>
16139
16140         maint: correct misuse of "a" and "an"
16141         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16142         * lib/argp-help.c: "an docum...": s/an/a/
16143         * lib/argp-parse.c: "An vector": s/An/A/
16144         * lib/execute.c: "an native": s/an/a/
16145         * lib/spawn-pipe.c: Likewise.
16146         * lib/gc.h: "an Gc_rc": s/an/a/
16147         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16148         * lib/fts.c: "an stat.st_dev": s/an/a/
16149
16150 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16151
16152         intprops-tests: work around HP-UX 11.23 cc bug with constants
16153         * tests/test-intprops.c (VERIFY): New macro.
16154         (main): Use it, instead of verify, to work around the compiler bug; see
16155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16156
16157         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16158         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16159         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16160         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16161         (_GL_REMAINDER_OVERFLOW): Use it.
16162
16163         intprops-tests: revert unsigned part of previous change
16164         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16165         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16166         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16168
16169 2011-05-19  Bruno Haible  <bruno@clisp.org>
16170
16171         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16172         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16173         strerror_r() returned without filling the buffer.
16174         Reported by Eric Blake.
16175
16176 2011-05-19  Eric Blake  <eblake@redhat.com>
16177
16178         strerror_r: guarantee unchanged errno
16179         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16180         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16181         failure.
16182         * tests/test-strerror_r.c (main): Enhance test.
16183
16184 2011-05-19  Bruno Haible  <bruno@clisp.org>
16185
16186         strerror_r: Reorder #if blocks.
16187         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16188         for consistency with the previous commit.
16189
16190 2011-05-19  Bruno Haible  <bruno@clisp.org>
16191
16192         perror: Avoid clobbering the strerror buffer when possible.
16193         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16194         * lib/strerror.c: Include it.
16195         * modules/strerror (Files): Add lib/strerror-impl.h.
16196         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16197         (my_strerror): New function, defined through lib/strerror-impl.h.
16198         (perror): Use it instead of strerror.
16199         * modules/perror (Files): Add lib/strerror-impl.h.
16200         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16201
16202 2011-05-19  Eric Blake  <eblake@redhat.com>
16203
16204         strerror_r: fix on newer cygwin
16205         * lib/strerror_r.c (strerror_r): Cygwin now has
16206         __xpg_strerror_r, use it.
16207
16208 2011-05-19  Bruno Haible  <bruno@clisp.org>
16209
16210         strerror_r: Avoid clobbering the strerror buffer when possible.
16211         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16212         (sys_nerr, sys_errlist): New declarations.
16213         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16214         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16215         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16216
16217 2011-05-19  Bruno Haible  <bruno@clisp.org>
16218
16219         strerror_r: Fix test failure on mingw.
16220         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16221         EXTEND_STRERROR_R.
16222         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16223         macros from errno.in.h instead.
16224
16225 2011-05-19  Eric Blake  <eblake@redhat.com>
16226
16227         strerror: relax test for Solaris
16228         * tests/test-strerror.c (main): Permit Solaris behavior.
16229         * tests/test-strerror_r.c (main): Likewise.
16230
16231         strerror: enforce POSIX ruling on strerror(0)
16232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16233         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16234         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16235         * doc/posix-functions/strerror.texi (strerror): Document it.
16236         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16237         * tests/test-strerror.c (main): Strengthen test.
16238         * tests/test-strerror_r.c (main): Likewise.
16239
16240 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16241
16242         intprop-tests: port to older and more-pedantic compilers
16243         * modules/intprops-tests (Files): Add tests/macros.h.
16244         * tests/test-intprops.c: Include macros.h.
16245         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16246         it's no longer documented to expand to an integer constant expression.
16247         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16248         argument is floating point, as it's no longer documented to expand
16249         to an integer constant expression in that case.
16250         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16251         compiler bugs reported by Bruno Haible.  See
16252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16253         (U0, U1): New constants, to work around the same bugs.  Also,
16254         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16255
16256         intprops: work around C compiler bugs
16257         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16258         bug in Sun C 5.11 2010/08/13 and other compilers; see
16259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16260
16261         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16262         * doc/intprops.texi (Integer Type Determination): Fix
16263         documentation for TYPE_IS_INTEGER: it returns an constant
16264         expression, not an integer constant expression.  Fix doc for
16265         TYPE_SIGNED: it returns an integer constant expression only if its
16266         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16267         hardly worth documented that way....)
16268
16269 2011-05-18  Bruno Haible  <bruno@clisp.org>
16270
16271         strerror_r: Avoid clobbering the strerror buffer when possible.
16272         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16273         Handle gnulib defined errno values here. When strerror() returns NULL
16274         or an empty string, return EINVAL.
16275         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16276         gnulib defined errno values here.
16277         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16278
16279 2011-05-18  Eric Blake  <eblake@redhat.com>
16280
16281         fnmatch: avoid compiler warning
16282         * lib/fnmatch_loop.c (FCT): Use correct type.
16283         Reported by Matthias Bolte.
16284
16285 2011-05-13  Jim Meyering  <meyering@redhat.com>
16286
16287         maint.mk: three new prohibit_<HDR>_without_use rules
16288         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16289         (sc_prohibit_stdio-safer_without_use): Likewise.
16290         (sc_prohibit_xfreopen_without_use): Likewise.
16291
16292 2011-05-17  Jim Meyering  <meyering@redhat.com>
16293
16294         announce-gen: fail if the NEWS delta is empty
16295         If there's nothing noteworthy in NEWS, then either you forgot
16296         or you shouldn't be releasing.
16297         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16298
16299 2011-05-17  Pádraig Brady <P@draigBrady.com>
16300
16301         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16302         reserved symbols starting with double underscore from the check.
16303
16304 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16305
16306         intprops: add doc
16307         * doc/intprops.texi: New file, documenting intprops.
16308         * doc/gnulib.texi (Particular Modules): Include it.
16309
16310         verify: add doc to gnulib manual and fix example
16311         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16312         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16313         (Compile-time Assertions): Fix example so it can't overflow.
16314
16315 2011-05-17  Jim Meyering  <meyering@redhat.com>
16316
16317         warnings.m4: don't usurp save_CPPFLAGS variable name
16318         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16319
16320         doc: fix typo
16321         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16322
16323 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16324             Bruno Haible  <bruno@clisp.org>
16325
16326         doc: Tweak recent change.
16327         * README (Portability guidelines): Tweak new text.
16328         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16329         Interix 6.1.
16330
16331 2011-05-16  Eric Blake  <eblake@redhat.com>
16332
16333         inttypes: avoid autoconf warning
16334         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16335         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16336
16337 2011-05-16  Sam Steingold <sds@gnu.org>
16338         and Eric Blake  <eblake@redhat.com>
16339
16340         vc-list-files: accept multiple directory operands
16341         * build-aux/vc-list-files: Iterate over all remaining operands.
16342
16343 2011-05-16  Bruno Haible  <bruno@clisp.org>
16344
16345         Fix confusion regarding deprecated modules.
16346         * modules/calloc (Status, Notice): Mark module as deprecated, not
16347         obsolete.
16348         * modules/fnmatch-posix (Status, Notice): Likewise.
16349         * modules/getdate (Status, Notice): Likewise.
16350         * modules/getopt (Status, Notice): Likewise.
16351         * modules/malloc (Status, Notice): Likewise.
16352         * modules/pipe (Status, Notice): Likewise.
16353         * modules/realloc (Status, Notice): Likewise.
16354         * modules/rename-dest-slash (Status, Notice): Likewise.
16355         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16356         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16357         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16358         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16359         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16360
16361 2011-05-16  Bruno Haible  <bruno@clisp.org>
16362
16363         doc: List the target platforms.
16364         * doc/gnulib-intro.texi (Target Platforms): New section.
16365         * doc/gnulib.texi (Introduction): Update menu.
16366         * README (Portability guidelines): Refer to the new section. Update
16367         statement about oldest supported environment. Remove rationale why
16368         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16369         unportable C89 function.
16370         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16371         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16372
16373 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16374
16375         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16376
16377 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16378
16379         intprops-tests: new module
16380         * modules/intprops-tests, tests/test-intprops.c: New files.
16381
16382         intprops: add safe, portable integer overflow checking
16383         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16384         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16385         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16386         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16387         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16388         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16389         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16390         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16391         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16392         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16393         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16394
16395 2011-05-12  James Youngman  <jay@gnu.org>
16396
16397         Add a test for glibc's Bugzilla bug #12378.
16398         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16399         doesn't allow the literal matching of a lone "[" (which is
16400         required by POSIX).
16401         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16402
16403 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16404
16405         Sync glibc change fixing Bugzilla bug #12378.
16406         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16407         beginning and fall back to matching as normal character if the
16408         string ends before the matching ']' is found.  This is what POSIX
16409         requires.
16410
16411 2011-05-13  Eric Blake  <eblake@redhat.com>
16412
16413         getcwd-lgpl: relax test for FreeBSD
16414         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16415         issue.
16416         * tests/test-getcwd-lgpl.c (main): Relax test.
16417         Reported by Matthias Bolte.
16418
16419 2011-05-11  Eric Blake  <eblake@redhat.com>
16420
16421         test-fflush: silence compiler warning
16422         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16423
16424 2011-05-11  Bruno Haible  <bruno@clisp.org>
16425
16426         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16427         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16428         * modules/canonicalize (Depends-on): Add 'nocrash'.
16429         * modules/canonicalize-lgpl (Depends-on): Likewise.
16430         * doc/posix-functions/realpath.texi: Update platforms list.
16431         Reported by Ryan Schmidt <ryandesign@macports.org>.
16432
16433 2011-05-11  Bruno Haible  <bruno@clisp.org>
16434
16435         group-member: Declare function in <unistd.h>.
16436         * lib/unistd.in.h (group_member): New declaration.
16437         * lib/group-member.h: Remove file.
16438         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16439         * tests/test-unistd-c++.cc: Check signature of group_member.
16440         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16441         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16442         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16443         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16444         HAVE_GROUP_MEMBER.
16445         * modules/group-member (Files): Remove lib/group-member.h.
16446         (Depends-on): Add unistd. Specify conditions.
16447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16448         (Include): Change to <unistd.h>.
16449         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16450         HAVE_GROUP_MEMBER.
16451         * NEWS: Mention the change.
16452         * lib/euidaccess.c: Don't include group-member.h.
16453
16454 2011-05-11  Bruno Haible  <bruno@clisp.org>
16455
16456         group-member: Document module.
16457         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16458         module.
16459
16460 2011-05-11  Bruno Haible  <bruno@clisp.org>
16461
16462         fclose: Fix mistake earlier today.
16463         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16464
16465 2011-05-11  Eric Blake  <eblake@redhat.com>
16466
16467         fclose: preserve fflush errors
16468         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16469         Reported by Jim Meyering.
16470
16471         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16472         * build-aux/bootstrap (check_versions): When no specific version
16473         is required, merely check that the app produces an exit status
16474         that indicates its existence.
16475
16476         maint.mk: drop redundant check
16477         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16478         the same but better.
16479
16480 2011-05-11  Bruno Haible  <bruno@clisp.org>
16481
16482         fclose: Fix possible link error.
16483         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16484         unregister_shadow_fd. Improve comments.
16485         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16486         Eric Blake.
16487
16488 2011-05-11  Jim Meyering  <meyering@redhat.com>
16489
16490         maint.mk: improve "can not" detection and generalize rule name
16491         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16492         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16493         Use the same technique as in sc_prohibit_doubled_word, so that
16494         we recognize "can not" also when the words are separated by a newline.
16495         Suggested by Eric Blake.
16496         (perl_filename_lineno_text_): Define.  Factored out of...
16497         (prohibit_doubled_word_): ...here.  Use the new definition.
16498         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16499         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16500         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16501
16502 2011-05-10  Eric Blake  <eblake@redhat.com>
16503
16504         fclose: avoid double close race when possible
16505         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16506         all but WINDOWS_SOCKETS.
16507
16508 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16509
16510         openat: correct new comment
16511         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16512
16513 2011-05-10  Jim Meyering  <meyering@redhat.com>
16514
16515         openat: add comments
16516         * lib/openat-proc.c (openat_proc_name): Add comments,
16517         mostly from Eric Blake.
16518
16519 2011-05-09  Eric Blake  <eblake@redhat.com>
16520
16521         openat: reduce syscalls in first probe of /proc
16522         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16523         be a directory.  Simplify the probe for .. bugs.
16524         * modules/openat (Depends-on): Drop same-inode.
16525         Reported by Bastien ROUCARIES.
16526
16527 2011-05-09  Jim Meyering  <meyering@redhat.com>
16528
16529         maint.mk: change semantics/name of tight_scope variables
16530         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16531         Rename variables to align with semantics that make them more useful.
16532
16533         maint.mk: tweak new rule's name not to impinge
16534         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16535         (sc_tight_scope): Use new rule name rather than $@-0.
16536
16537         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16538         * top/maint.mk (sc_tight_scope): New rule.
16539         (sc_tight_scope-0): New rule, ifdef'd out.
16540         (_gl_TS_dir): Default.
16541         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16542         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16543
16544 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16545
16546         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16547         Haible <bruno@clisp.org>.
16548
16549 2011-05-08  Bruno Haible  <bruno@clisp.org>
16550
16551         Comments.
16552         * m4/isnanf.m4: Add comment.
16553         * m4/isnanl.m4: Likewise.
16554
16555 2011-05-08  Bruno Haible  <bruno@clisp.org>
16556
16557         glob: Remove obsolete macro.
16558         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16559
16560 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16561
16562         intprops: Sun C 5.11 supports __typeof__
16563         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16564         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16565         which is new.
16566         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16567
16568         intprops: switch to usual gnulib indenting and naming
16569         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16570         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16571
16572         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16573
16574 2011-05-08  Jim Meyering  <meyering@redhat.com>
16575
16576         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16577         * top/maint.mk (release-prep): Use make's --no-print-directory
16578         option when generating the announcement.  This eliminates the
16579         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16580         generated announcement template.
16581
16582 2011-05-08  Bruno Haible  <bruno@clisp.org>
16583
16584         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16585         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16586         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16587
16588 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16589
16590         ignore-value, verify: Omit include files from lib_SOURCES.
16591         * modules/ignore-value, modules/verify (Makefile.am):
16592         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16593         that leads Automake to duplicate use of am__objects_... variables
16594         in Makefile.in.  See
16595         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16596
16597 2011-05-07  Bruno Haible  <bruno@clisp.org>
16598
16599         fclose: Simplify autoconf macro.
16600         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16601         defined.
16602
16603 2011-05-07  Bruno Haible  <bruno@clisp.org>
16604
16605         canonicalize-lgpl: Fix autoconf macro ordering bug.
16606         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16607         gl_STDLIB_H_DEFAULTS.
16608
16609 2011-05-06  Eric Blake  <eblake@redhat.com>
16610
16611         maintainer-makefile: make sc_po_check easier to tune
16612         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16613         to probe for strings, such as an alternate location for gnulib.
16614
16615         fclose: guarantee behavior on seekable stdin
16616         * modules/fclose (Depends-on): Add fflush.
16617         * doc/posix-functions/fclose.texi (fclose): Document this.
16618         * tests/test-fclose.c (main): Make test for this unconditional.
16619
16620 2011-05-06  Bruno Haible  <bruno@clisp.org>
16621
16622         fflush, fpurge: Relicense under LGPLv2+.
16623         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16624         * modules/fpurge (License): Likewise.
16625         With permission from Eric Blake and Jim Meyering.
16626         Suggested by Eric Blake.
16627
16628 2011-05-06  Karl Berry  <karl@gnu.org>
16629
16630         * MODULES.html.sh (func_all_modules): remove exit.
16631
16632 2011-05-06  Jim Meyering  <meyering@redhat.com>
16633
16634         maint.mk: use info-gnu@ as the default only for a stable release
16635         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16636         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16637         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16638         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16639
16640 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16641
16642         assert-h: new module, which supports C1X-style static_assert
16643         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16644         * lib/verify.h: Revamp so that this can be copied into assert.h,
16645         while retaining the ability to use it standalone as before.
16646         Rename private identifiers so as not to encroach on the
16647         standard C namespace, since this is now used by assert.h.
16648         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16649         the old verify_true.
16650         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16651         the old verify_true.  Use _GL_VERIFY_TYPE.
16652         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16653         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16654         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16655         defined when this file is copied into the replacement assert.h.
16656         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16657         and _Static_assert is not built in.
16658         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16659         defined, and use the new macros mentioned above.
16660         * doc/posix-headers/assert.texi: Document this.
16661
16662 2011-05-05  Bruno Haible  <bruno@clisp.org>
16663
16664         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16665         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16666         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16667         gl_REPLACE_FCLOSE here.
16668         * modules/fflush (Depends-on): Remove fclose.
16669         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16670         combination with module 'fclose'.
16671
16672 2011-05-05  Bruno Haible  <bruno@clisp.org>
16673
16674         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16675         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16676         gl_FUNC_FFLUSH.
16677         (gl_FUNC_FFLUSH): Use it.
16678         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16679         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16680         gl_REPLACE_FSEEKO here.
16681
16682 2011-05-05  Bruno Haible  <bruno@clisp.org>
16683
16684         tzset: Relicense under LGPL.
16685         * modules/tzset (License): Change to LGPL.
16686         No agreement needed; it's a no-op.
16687
16688         strtoimax, strtoumax: Relicense under LGPL.
16689         * modules/strtoimax (License): Change to LGPL.
16690         * modules/strtoumax (License): Likewise.
16691         With permission from Jim Meyering, Paul Eggert:
16692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16694
16695         getgroups: Relicense under LGPL.
16696         * modules/getgroups (License): Change to LGPL.
16697         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16701
16702         nanosleep: Relicense under LGPL.
16703         * modules/nanosleep (License): Change to LGPL.
16704         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16705         Haible:
16706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16710
16711         futimens: Relicense under LGPL.
16712         * modules/futimens (License): Change to LGPL.
16713         With permission from Eric Blake:
16714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16715
16716         fflush: Relicense under LGPL.
16717         * modules/fflush (License): Change to LGPL.
16718         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16722
16723         tmpfile: Relicense under LGPL.
16724         * modules/tmpfile (License): Change to LGPL.
16725         With permission from Ben Pfaff:
16726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16727
16728         isfinite: Relicense under LGPL.
16729         * modules/isfinite (License): Change to LGPL.
16730         With permission from Ben Pfaff, Bruno Haible:
16731         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16733
16734         acosl..tanl: Relicense under LGPL.
16735         * modules/acosl (License): Change to LGPL.
16736         * modules/asinl (License): Likewise.
16737         * modules/atanl (License): Likewise.
16738         * modules/cosl (License): Likewise.
16739         * modules/expl (License): Likewise.
16740         * modules/logl (License): Likewise.
16741         * modules/sinl (License): Likewise.
16742         * modules/sqrtl (License): Likewise.
16743         * modules/tanl (License): Likewise.
16744         Source code originally from glibc and Paolo Bonzini. Agreements:
16745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16747
16748 2011-05-05  Bruno Haible  <bruno@clisp.org>
16749
16750         signal: Define sighandler_t.
16751         * lib/signal.in.h (sighandler_t): New type.
16752         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16753         whether sighandler_t is defined.
16754         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16755         * modules/signal (Depends-on): Add extensions.
16756         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16757         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16758         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16759
16760 2011-05-05  Eric Blake  <eblake@redhat.com>
16761
16762         maint: remove useless REPLACE_*_H macros
16763         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16764         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16765         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16766         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16767         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16768         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16769         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16770         * m4/btowc.m4: Update callers.
16771         * m4/dirfd.m4: Likewise.
16772         * m4/duplocale.m4: Likewise.
16773         * m4/fchdir.m4: Likewise.
16774         * m4/fdopendir.m4: Likewise.
16775         * m4/inet_ntop.m4: Likewise.
16776         * m4/inet_pton.m4: Likewise.
16777         * m4/ioctl.m4: Likewise.
16778         * m4/mbrlen.m4: Likewise.
16779         * m4/mbrtowc.m4: Likewise.
16780         * m4/mbsinit.m4: Likewise.
16781         * m4/mbsnrtowcs.m4: Likewise.
16782         * m4/mbsrtowcs.m4: Likewise.
16783         * m4/poll.m4: Likewise.
16784         * m4/setlocale.m4: Likewise.
16785         * m4/wcrtomb.m4: Likewise.
16786         * m4/wcsnrtombs.m4: Likewise.
16787         * m4/wcsrtombs.m4: Likewise.
16788         * m4/wctob.m4: Likewise.
16789         * m4/wcwidth.m4: Likewise.
16790         * modules/posix_spawn: Likewise.
16791         * modules/posix_spawn_file_actions_addclose: Likewise.
16792         * modules/posix_spawn_file_actions_adddup2: Likewise.
16793         * modules/posix_spawn_file_actions_addopen: Likewise.
16794         * modules/posix_spawn_file_actions_destroy: Likewise.
16795         * modules/posix_spawn_file_actions_init: Likewise.
16796         * modules/posix_spawnattr_destroy: Likewise.
16797         * modules/posix_spawnattr_getflags: Likewise.
16798         * modules/posix_spawnattr_getpgroup: Likewise.
16799         * modules/posix_spawnattr_getschedparam: Likewise.
16800         * modules/posix_spawnattr_getschedpolicy: Likewise.
16801         * modules/posix_spawnattr_getsigdefault: Likewise.
16802         * modules/posix_spawnattr_getsigmask: Likewise.
16803         * modules/posix_spawnattr_init: Likewise.
16804         * modules/posix_spawnattr_setflags: Likewise.
16805         * modules/posix_spawnattr_setpgroup: Likewise.
16806         * modules/posix_spawnattr_setschedparam: Likewise.
16807         * modules/posix_spawnattr_setschedpolicy: Likewise.
16808         * modules/posix_spawnattr_setsigdefault: Likewise.
16809         * modules/posix_spawnattr_setsigmask: Likewise.
16810         * modules/posix_spawnp: Likewise.
16811
16812 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16813
16814         Add option to do-release-commit-and-tag to specify branch.
16815         * build-aux/do-release-commit-and-tag: Add --branch.
16816
16817 2011-05-03  Bruno Haible  <bruno@clisp.org>
16818
16819         Avoid unnecessary compilation units, through conditional dependencies.
16820         * modules/accept (Depends-on): Add conditions to the dependencies.
16821         * modules/acosl (Depends-on): Likewise.
16822         * modules/argz (Depends-on): Likewise.
16823         * modules/asinl (Depends-on): Likewise.
16824         * modules/atanl (Depends-on): Likewise.
16825         * modules/atoll (Depends-on): Likewise.
16826         * modules/bind (Depends-on): Likewise.
16827         * modules/btowc (Depends-on): Likewise.
16828         * modules/canonicalize-lgpl (Depends-on): Likewise.
16829         * modules/ceil (Depends-on): Likewise.
16830         * modules/ceilf (Depends-on): Likewise.
16831         * modules/ceill (Depends-on): Likewise.
16832         * modules/chdir-long (Depends-on): Likewise.
16833         * modules/chown (Depends-on): Likewise.
16834         * modules/close (Depends-on): Likewise.
16835         * modules/connect (Depends-on): Likewise.
16836         * modules/cosl (Depends-on): Likewise.
16837         * modules/dirfd (Depends-on): Likewise.
16838         * modules/dprintf (Depends-on): Likewise.
16839         * modules/dprintf-posix (Depends-on): Likewise.
16840         * modules/error (Depends-on): Likewise.
16841         * modules/euidaccess (Depends-on): Likewise.
16842         * modules/expl (Depends-on): Likewise.
16843         * modules/faccessat (Depends-on): Likewise.
16844         * modules/fchdir (Depends-on): Likewise.
16845         * modules/fclose (Depends-on): Likewise.
16846         * modules/fcntl (Depends-on): Likewise.
16847         * modules/fdopendir (Depends-on): Likewise.
16848         * modules/fflush (Depends-on): Likewise.
16849         * modules/floor (Depends-on): Likewise.
16850         * modules/floorf (Depends-on): Likewise.
16851         * modules/floorl (Depends-on): Likewise.
16852         * modules/fnmatch (Depends-on): Likewise.
16853         * modules/fopen (Depends-on): Likewise.
16854         * modules/fprintf-posix (Depends-on): Likewise.
16855         * modules/frexp (Depends-on): Likewise.
16856         * modules/frexp-nolibm (Depends-on): Likewise.
16857         * modules/frexpl (Depends-on): Likewise.
16858         * modules/frexpl-nolibm (Depends-on): Likewise.
16859         * modules/fseek (Depends-on): Likewise.
16860         * modules/fsusage (Depends-on): Likewise.
16861         * modules/ftell (Depends-on): Likewise.
16862         * modules/ftello (Depends-on): Likewise.
16863         * modules/futimens (Depends-on): Likewise.
16864         * modules/getcwd (Depends-on): Likewise.
16865         * modules/getcwd-lgpl (Depends-on): Likewise.
16866         * modules/getdelim (Depends-on): Likewise.
16867         * modules/getdomainname (Depends-on): Likewise.
16868         * modules/getgroups (Depends-on): Likewise.
16869         * modules/gethostname (Depends-on): Likewise.
16870         * modules/getline (Depends-on): Likewise.
16871         * modules/getlogin_r (Depends-on): Likewise.
16872         * modules/getopt-posix (Depends-on): Likewise.
16873         * modules/getpeername (Depends-on): Likewise.
16874         * modules/getsockname (Depends-on): Likewise.
16875         * modules/getsockopt (Depends-on): Likewise.
16876         * modules/getsubopt (Depends-on): Likewise.
16877         * modules/getusershell (Depends-on): Likewise.
16878         * modules/glob (Depends-on): Likewise.
16879         * modules/grantpt (Depends-on): Likewise.
16880         * modules/iconv_open (Depends-on): Likewise.
16881         * modules/iconv_open-utf (Depends-on): Likewise.
16882         * modules/inet_ntop (Depends-on): Likewise.
16883         * modules/inet_pton (Depends-on): Likewise.
16884         * modules/ioctl (Depends-on): Likewise.
16885         * modules/isapipe (Depends-on): Likewise.
16886         * modules/isfinite (Depends-on): Likewise.
16887         * modules/isinf (Depends-on): Likewise.
16888         * modules/lchown (Depends-on): Likewise.
16889         * modules/ldexpl (Depends-on): Likewise.
16890         * modules/link (Depends-on): Likewise.
16891         * modules/linkat (Depends-on): Likewise.
16892         * modules/listen (Depends-on): Likewise.
16893         * modules/logl (Depends-on): Likewise.
16894         * modules/lstat (Depends-on): Likewise.
16895         * modules/mbrlen (Depends-on): Likewise.
16896         * modules/mbrtowc (Depends-on): Likewise.
16897         * modules/mbsinit (Depends-on): Likewise.
16898         * modules/mbsnrtowcs (Depends-on): Likewise.
16899         * modules/mbsrtowcs (Depends-on): Likewise.
16900         * modules/mbtowc (Depends-on): Likewise.
16901         * modules/memcmp (Depends-on): Likewise.
16902         * modules/mkdir (Depends-on): Likewise.
16903         * modules/mkdtemp (Depends-on): Likewise.
16904         * modules/mkfifo (Depends-on): Likewise.
16905         * modules/mkfifoat (Depends-on): Likewise.
16906         * modules/mknod (Depends-on): Likewise.
16907         * modules/mkostemp (Depends-on): Likewise.
16908         * modules/mkostemps (Depends-on): Likewise.
16909         * modules/mkstemp (Depends-on): Likewise.
16910         * modules/mkstemps (Depends-on): Likewise.
16911         * modules/mktime (Depends-on): Likewise.
16912         * modules/nanosleep (Depends-on): Likewise.
16913         * modules/open (Depends-on): Likewise.
16914         * modules/openat (Depends-on): Likewise.
16915         * modules/perror (Depends-on): Likewise.
16916         * modules/poll (Depends-on): Likewise.
16917         * modules/popen (Depends-on): Likewise.
16918         * modules/posix_spawn (Depends-on): Likewise.
16919         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16920         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16921         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16922         * modules/posix_spawnp (Depends-on): Likewise.
16923         * modules/pread (Depends-on): Likewise.
16924         * modules/printf-posix (Depends-on): Likewise.
16925         * modules/ptsname (Depends-on): Likewise.
16926         * modules/putenv (Depends-on): Likewise.
16927         * modules/pwrite (Depends-on): Likewise.
16928         * modules/readline (Depends-on): Likewise.
16929         * modules/readlink (Depends-on): Likewise.
16930         * modules/readlinkat (Depends-on): Likewise.
16931         * modules/recv (Depends-on): Likewise.
16932         * modules/recvfrom (Depends-on): Likewise.
16933         * modules/regex (Depends-on): Likewise.
16934         * modules/remove (Depends-on): Likewise.
16935         * modules/rename (Depends-on): Likewise.
16936         * modules/renameat (Depends-on): Likewise.
16937         * modules/rmdir (Depends-on): Likewise.
16938         * modules/round (Depends-on): Likewise.
16939         * modules/roundf (Depends-on): Likewise.
16940         * modules/roundl (Depends-on): Likewise.
16941         * modules/rpmatch (Depends-on): Likewise.
16942         * modules/select (Depends-on): Likewise.
16943         * modules/send (Depends-on): Likewise.
16944         * modules/sendto (Depends-on): Likewise.
16945         * modules/setenv (Depends-on): Likewise.
16946         * modules/setlocale (Depends-on): Likewise.
16947         * modules/setsockopt (Depends-on): Likewise.
16948         * modules/shutdown (Depends-on): Likewise.
16949         * modules/sigaction (Depends-on): Likewise.
16950         * modules/signbit (Depends-on): Likewise.
16951         * modules/sigprocmask (Depends-on): Likewise.
16952         * modules/sinl (Depends-on): Likewise.
16953         * modules/sleep (Depends-on): Likewise.
16954         * modules/snprintf (Depends-on): Likewise.
16955         * modules/snprintf-posix (Depends-on): Likewise.
16956         * modules/socket (Depends-on): Likewise.
16957         * modules/sprintf-posix (Depends-on): Likewise.
16958         * modules/sqrtl (Depends-on): Likewise.
16959         * modules/stat (Depends-on): Likewise.
16960         * modules/strchrnul (Depends-on): Likewise.
16961         * modules/strdup-posix (Depends-on): Likewise.
16962         * modules/strerror (Depends-on): Likewise.
16963         * modules/strerror_r-posix (Depends-on): Likewise.
16964         * modules/strndup (Depends-on): Likewise.
16965         * modules/strnlen (Depends-on): Likewise.
16966         * modules/strptime (Depends-on): Likewise.
16967         * modules/strsep (Depends-on): Likewise.
16968         * modules/strsignal (Depends-on): Likewise.
16969         * modules/strstr-simple (Depends-on): Likewise.
16970         * modules/strtod (Depends-on): Likewise.
16971         * modules/strtoimax (Depends-on): Likewise.
16972         * modules/strtok_r (Depends-on): Likewise.
16973         * modules/strtoumax (Depends-on): Likewise.
16974         * modules/symlink (Depends-on): Likewise.
16975         * modules/symlinkat (Depends-on): Likewise.
16976         * modules/tanl (Depends-on): Likewise.
16977         * modules/tcgetsid (Depends-on): Likewise.
16978         * modules/tmpfile (Depends-on): Likewise.
16979         * modules/trunc (Depends-on): Likewise.
16980         * modules/truncf (Depends-on): Likewise.
16981         * modules/truncl (Depends-on): Likewise.
16982         * modules/uname (Depends-on): Likewise.
16983         * modules/unlink (Depends-on): Likewise.
16984         * modules/unlockpt (Depends-on): Likewise.
16985         * modules/unsetenv (Depends-on): Likewise.
16986         * modules/usleep (Depends-on): Likewise.
16987         * modules/utimensat (Depends-on): Likewise.
16988         * modules/vasprintf (Depends-on): Likewise.
16989         * modules/vdprintf (Depends-on): Likewise.
16990         * modules/vdprintf-posix (Depends-on): Likewise.
16991         * modules/vfprintf-posix (Depends-on): Likewise.
16992         * modules/vprintf-posix (Depends-on): Likewise.
16993         * modules/vsnprintf (Depends-on): Likewise.
16994         * modules/vsnprintf-posix (Depends-on): Likewise.
16995         * modules/vsprintf-posix (Depends-on): Likewise.
16996         * modules/wcrtomb (Depends-on): Likewise.
16997         * modules/wcscasecmp (Depends-on): Likewise.
16998         * modules/wcscspn (Depends-on): Likewise.
16999         * modules/wcsdup (Depends-on): Likewise.
17000         * modules/wcsncasecmp (Depends-on): Likewise.
17001         * modules/wcsnrtombs (Depends-on): Likewise.
17002         * modules/wcspbrk (Depends-on): Likewise.
17003         * modules/wcsrtombs (Depends-on): Likewise.
17004         * modules/wcsspn (Depends-on): Likewise.
17005         * modules/wcsstr (Depends-on): Likewise.
17006         * modules/wcstok (Depends-on): Likewise.
17007         * modules/wcswidth (Depends-on): Likewise.
17008         * modules/wctob (Depends-on): Likewise.
17009         * modules/wctomb (Depends-on): Likewise.
17010         * modules/wctype (Depends-on): Likewise.
17011         * modules/wcwidth (Depends-on): Likewise.
17012         * modules/write (Depends-on): Likewise.
17013
17014 2011-05-03  Bruno Haible  <bruno@clisp.org>
17015
17016         Support for conditional dependencies.
17017         * doc/gnulib.texi (Module description): Document the syntax of
17018         conditional dependencies.
17019         * gnulib-tool: New option --conditional-dependencies.
17020         (func_usage): Document it.
17021         (cond_dependencies): New variable.
17022         (func_get_automake_snippet_conditional,
17023         func_get_automake_snippet_unconditional): New functions, extracted from
17024         func_get_automake_snippet.
17025         (func_get_automake_snippet): Use them.
17026         (sed_first_32_chars): New variable.
17027         (func_module_shellfunc_name): New function.
17028         (func_module_shellvar_name): New function.
17029         (func_module_conditional_name): New function.
17030         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17031         func_cond_module_condition): New functions.
17032         (func_modules_transitive_closure): Add support for conditional
17033         dependencies.
17034         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17035         conditional automake snippet in an automake conditional.
17036         (func_emit_autoconf_snippets): Emit shell functions that contain the
17037         code for conditional modules.
17038         (func_import, func_create_testdir): Update specification.
17039
17040 2011-05-03  Eric Blake  <eblake@redhat.com>
17041
17042         test-getaddrinfo: report error information
17043         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17044
17045 2011-05-03  Jim Meyering  <meyering@redhat.com>
17046
17047         bootstrap: avoid build failure when $GZIP is set
17048         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17049         program name.  If defined at all, it is supposed to list gzip options.
17050         Reported by Alan Curry in http://debbugs.gnu.org/8609
17051
17052 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17053
17054         readme-release: new module with release instructions
17055         * modules/readme-release: New module.
17056         * top/README-release: New file, from coreutils, grep, diffutils.
17057         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17058
17059 2011-05-02  Eric Blake  <eblake@redhat.com>
17060
17061         fflush: also replace fclose when fixing fflush
17062         * modules/fflush (Depends-on): Add fclose.
17063         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17064         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17065         memstreams with no backing fd.
17066         * doc/posix-functions/fclose.texi (fclose): Document the use of
17067         fflush module to fix the bug.
17068         * tests/test-fclose.c (main): Relax test when fclose is used in
17069         isolation.
17070
17071         fclose: add some tests
17072         * modules/fclose-tests: New test module.
17073         * tests/test-fclose.c: New file.
17074         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17075
17076         fclose: reduced dependencies
17077         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17078         simpler lseek.
17079         * lib/fclose.c (rpl_fclose): Likewise.
17080         Reported by Simon Josefsson.
17081
17082         exit: drop remaining clients
17083         * modules/argmatch (Depends-on): Replace exit with stdlib.
17084         * modules/copy-file (Depends-on): Likewise.
17085         * modules/execute (Depends-on): Likewise.
17086         * modules/exitfail (Depends-on): Likewise.
17087         * modules/obstack (Depends-on): Likewise.
17088         * modules/pagealign_alloc (Depends-on): Likewise.
17089         * modules/pipe-filter-gi (Depends-on): Likewise.
17090         * modules/pipe-filter-ii (Depends-on): Likewise.
17091         * modules/savewd (Depends-on): Likewise.
17092         * modules/spawn-pipe (Depends-on): Likewise.
17093         * modules/wait-process (Depends-on): Likewise.
17094         * modules/xsetenv (Depends-on): Likewise.
17095         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17096         * modules/git-merge-changelog (Depends-on): Likewise.
17097         * modules/long-options (Depends-on): Likewise.
17098         * modules/pt_chown (Depends-on): Likewise.
17099         * modules/sysexits (Depends-on): Likewise.
17100
17101         freading: relax license from LGPLv3+ to LGPLv2+
17102         * modules/freading (License): Relax LGPL version.
17103
17104 2011-05-02  Bruno Haible  <bruno@clisp.org>
17105
17106         fchdir: Remove unused dependencies.
17107         * modules/fchdir (Depends-on): Remove include_next.
17108
17109 2011-05-02  Bruno Haible  <bruno@clisp.org>
17110
17111         gnulib-tool: Refactor.
17112         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17113         from func_emit_autoconf_snippets.
17114         (func_emit_autoconf_snippets): Use it.
17115
17116 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17117
17118         * NEWS: Document removal of 'exit'.
17119         * modules/exit: Remove file.
17120
17121 2011-05-01  Bruno Haible  <bruno@clisp.org>
17122
17123         Update DEPENDENCIES.
17124         * DEPENDENCIES (gettext): Recommend the newest release.
17125         Reported by Simon Josefsson.
17126
17127 2011-05-01  Bruno Haible  <bruno@clisp.org>
17128
17129         gnulib-tool: Reduce code duplication.
17130         * gnulib-tool (func_emit_autoconf_snippets): New function.
17131         (func_import, func_create_testdir): Use it.
17132
17133 2011-04-30  Eric Blake  <eblake@redhat.com>
17134
17135         fclose: don't fail on non-seekable input stream
17136         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17137         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17138         since fflush is allowed to fail in that case.
17139
17140 2011-04-30  Bruno Haible  <bruno@clisp.org>
17141
17142         dup3: cleanup
17143         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17144
17145 2011-04-30  Bruno Haible  <bruno@clisp.org>
17146
17147         netdb: Make it work in C++ mode.
17148         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17149         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17150         module.
17151         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17152         gl_MODULE_INDICATOR_FOR_TESTS.
17153         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17154         * modules/netdb-c++-tests: New file.
17155         * tests/test-netdb-c++.cc: New file.
17156
17157 2011-04-30  Bruno Haible  <bruno@clisp.org>
17158
17159         New modules 'vfscanf', 'vscanf'.
17160         * modules/vfscanf: New file.
17161         * modules/vscanf: New file.
17162         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17163         here.
17164         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17165         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17166
17167 2011-04-30  Bruno Haible  <bruno@clisp.org>
17168
17169         passfd: Add comments.
17170         * lib/passfd.c: Add comments about platforms.
17171
17172 2011-04-30  Bruno Haible  <bruno@clisp.org>
17173
17174         sys_uio: Make <sys/uio.h> self-contained.
17175         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17176         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17177
17178 2011-04-30  Bruno Haible  <bruno@clisp.org>
17179
17180         sys_socket: Ensure 'struct iovec' definition.
17181         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17182         <sys/socket.h>.
17183         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17184
17185 2011-04-30  Bruno Haible  <bruno@clisp.org>
17186
17187         sys_uio: Protect definition of 'struct iovec'.
17188         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17189         it as a C struct.
17190
17191 2011-04-30  Bruno Haible  <bruno@clisp.org>
17192
17193         manywarnings: fix indentation
17194         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17195
17196 2011-04-30  Pádraig Brady <P@draigBrady.com>
17197
17198         manywarnings: add -Wno-missing-field-initializers if needed.
17199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17200         option if it's needed to allow initialization with { 0, }
17201
17202 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17203
17204         announce-gen: cosmetic improvement
17205         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17206
17207 2011-04-29  Jim Meyering  <meyering@redhat.com>
17208
17209         vc-list-files: indent with spaces, not TABs
17210         * build-aux/vc-list-files: Convert leading TABs to spaces,
17211         to match the style of most other files in gnulib.
17212
17213         announce-gen: indent with spaces, not TABs
17214         * build-aux/announce-gen: Convert all TABs to spaces, to match
17215         the style of most other files in gnulib.
17216
17217 2011-04-29  Eric Blake  <eblake@redhat.com>
17218
17219         quotearg: avoid uninitialized variable use
17220         * lib/quotearg.c (quoting_options_from_style): Initialize
17221         remaining fields, and ensure that custom styles are only used via
17222         quoting_options rather than quoting_style.
17223
17224 2011-04-29  Jim Meyering  <meyering@redhat.com>
17225
17226         maint.mk: remove unused VC-tag variable
17227         * top/maint.mk (VC-tag): Remove unused variable.
17228
17229 2011-04-29  Bruno Haible  <bruno@clisp.org>
17230
17231         netdb: fix gai_strerror replacements
17232         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17233         * modules/netdb: Substitute it.
17234
17235 2011-04-29  Jim Meyering  <meyering@redhat.com>
17236
17237         test-getcwd.c: avoid new set-but-not-used warning
17238         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17239         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17240         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17241         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17242
17243         test-hash.c: avoid a new shadowing warning
17244         * tests/test-hash.c (main): Don't shadow "dup".
17245
17246 2011-04-28  Eric Blake  <eblake@redhat.com>
17247
17248         getaddrinfo: fix gai_strerror signature
17249         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17250         and work around mingw with UNICODE defined.
17251         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17252         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17253         * modules/netdb (Makefile.am): Substitute it.
17254         * lib/netdb.in.h (gai_strerror): Declare replacement.
17255         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17256         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17257         the fix.
17258
17259         getsockopt: avoid compiler warning
17260         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17261         Reported by Matthias Bolte.
17262
17263         tests: drop unused link dependency
17264         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17265         * modules/dirent-safer-tests (Makefile.am): Likewise.
17266         * modules/fdopendir-tests (Makefile.am): Likewise.
17267         * modules/mkfifoat-tests (Makefile.am): Likewise.
17268         * modules/openat-safer-tests (Makefile.am): Likewise.
17269         * modules/openat-tests (Makefile.am): Likewise.
17270         * modules/readlinkat-tests (Makefile.am): Likewise.
17271         * modules/symlinkat-tests (Makefile.am): Likewise.
17272         * modules/linkat-tests (Makefile.am): Likewise.
17273         (Depends-on): Switch to filenamecat-lgpl.
17274         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17275         LIBINTL.
17276         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17277         * tests/test-linkat.c (main): Don't require xalloc.
17278
17279         hash, mgetgroups: drop xalloc dependency
17280         * lib/hash.c (includes): Adjust includes.
17281         * lib/mgetgroups.c (includes): Likewise.
17282         (xgetgroups): Move...
17283         * lib/xgetgroups.c: ...to new file.
17284         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17285         * modules/xgetgroups: New file, split from...
17286         * modules/mgetgroups: ...here.
17287         (Depends-on): Add xalloc-oversized.
17288         * modules/hash (Depends-on): Likewise.
17289         * modules/hash-tests (Depends-on): Drop xalloc.
17290         (test_hash_LDADD): Drop unused library.
17291         * tests/test-hash.c (main): Break xalloc dependency.
17292         (includes): Drop unused include.
17293
17294         xalloc-oversized: new module
17295         * modules/xalloc-oversized: New module.
17296         * modules/xalloc (Depends-on): Add it.
17297         * lib/xalloc.h (xalloc_oversized): Move...
17298         * lib/xalloc-oversized.h: ...into new file.
17299
17300         utimecmp: drop dependency on xmalloc
17301         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17302         due to memory pressure.
17303         * modules/utimecmp (Depends-on): Drop xalloc.
17304
17305 2011-04-27  Eric Blake  <eblake@redhat.com>
17306
17307         getcwd: fix mingw bugs
17308         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17309         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17310         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17311
17312 2011-04-27  Bruno Haible  <bruno@clisp.org>
17313
17314         mkstemps: Ensure declaration on MacOS X 10.5.
17315         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17316         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17317         MacOS X.
17318
17319 2011-04-27  Bruno Haible  <bruno@clisp.org>
17320
17321         mkstemp: More documentation.
17322         * doc/posix-functions/mkstemp.texi: Document header file problem on
17323         MacOS X.
17324
17325 2011-04-27  Bruno Haible  <bruno@clisp.org>
17326
17327         mkstemp: Tweak configure message when cross-compiling.
17328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17329         result as a guess.
17330
17331 2011-04-27  Bruno Haible  <bruno@clisp.org>
17332
17333         clean-temp: Clarify what it does.
17334         * lib/clean-temp.h: Add more comments.
17335         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17336         module.
17337         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17338         * doc/glibc-functions/mkstemps.texi: Likewise.
17339         * doc/glibc-functions/mkostemps.texi: Likewise.
17340
17341 2011-04-27  Eric Blake  <eblake@redhat.com>
17342
17343         fchdir: avoid extra chdir and fix test
17344         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17345         getcwd-lgpl.
17346         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17347         have to be canonical.
17348         (canonicalize_file_name): Drop unused macro.
17349         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17350
17351         filenamecat-lgpl: fix licence
17352         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17353         when it was first created.
17354
17355         linkat, renameat: add missing dependency
17356         * modules/linkat (Depends-on): Require getcwd-lgpl.
17357         * modules/renameat (Depends-on): Likewise.
17358
17359         tests: reduce dependencies
17360         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17361         * tests/test-renameat.c (main): Likewise.
17362         * modules/linkat-tests (Depends-on): Relax dependency.
17363         * modules/renameat-tests (Depends-on): Likewise.
17364         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17365         dependency explicit.
17366
17367         save-cwd: reduce default dependency
17368         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17369         * lib/save-cwd.c: Update comments.
17370         * NEWS: Document the semantic change.
17371
17372         getcwd: enhance tests
17373         * tests/test-getcwd-lgpl.c: New file, taken from...
17374         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17375         repeat long path stress tests from m4 probe.
17376         * modules/getcwd-lgpl-tests: New module.
17377         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17378         * m4/getcwd-abort-bug.m4: Update comment.
17379         * m4/getcwd-path-max.m4: Likewise.
17380
17381         getcwd-lgpl: new module
17382         * modules/getcwd-lgpl: New module.
17383         * lib/getcwd-lgpl.c: New file.
17384         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17385         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17386         * modules/getcwd (configure.ac): Set C witness.
17387         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17388
17389         getcwd: tweak comments
17390         * m4/getcwd-abort-bug.m4: Fix comments.
17391         * m4/getcwd-path-max.m4: Likewise.
17392         * m4/getcwd.m4: Likewise.
17393
17394 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17395         and Eric Blake  <eblake@redhat.com>
17396
17397         mkstemp: replace if system version uses wrong permissions
17398         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17399         read/write mode bits set in file created by mkstemp.
17400         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17401
17402 2011-04-27  Eric Blake  <eblake@redhat.com>
17403
17404         passfd: avoid compiler warning
17405         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17406         Reported by Laine Stump.
17407
17408 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17409
17410         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17411         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17412
17413 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17414         and Eric Blake  <eblake@redhat.com>
17415
17416         mkstemp: mention clean-temp module
17417         * lib/mkstemp.c: Add comment.
17418         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17419
17420 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17421
17422         inttypes: also provide default values for 32-bit tests
17423         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17424         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17425
17426 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17427
17428         strtoumax: remove dependency on strtoimax
17429         This is like the strtoull change of yesterday.
17430         * modules/strtoumax (Files): Add lib/strtoimax.c.
17431         (Depends-on): Remove strtoimax and add verify.
17432
17433         inttypes-incomplete: new module
17434         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17435         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17436         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17437         of gl_INTTYPES_H.
17438         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17439         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17440         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17441         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17442         * modules/strtoumax, modules/xstrtol (Depends-on):
17443         Depend on inttypes-incomplete, not inttypes.
17444         * modules/inttypes-incomplete: New module, containing the contents
17445         of the old modules/inttypes module, except that the Files: section
17446         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17447         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17448         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17449         (Depends-on): Depend only on inttypes-incomplete.
17450         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17451
17452         inttypes: omit now-redundant strtoimax and strtoumax work
17453         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17454         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17455
17456         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17457         This supports apps that need pointers to strtoimax and strtoumax,
17458         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17459         nonexistent functions.  See
17460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17461         et seq.
17462         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17463         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17464         a macro.
17465         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17466
17467 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17468
17469         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17470
17471 2011-04-25  Bruno Haible  <bruno@clisp.org>
17472
17473         strtol, strtoul: Mark modules as obsolete.
17474         * modules/strtol (Status, Notice): New sections.
17475         * modules/strtoul (Status, Notice): New sections.
17476
17477 2011-04-25  Bruno Haible  <bruno@clisp.org>
17478
17479         strtod: Remove check for strtod, unless supporting old platforms.
17480         * modules/strtod-obsolete: New file.
17481         * m4/strtod-obsolete.m4: New file.
17482         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17483         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17484         * modules/strtod (Depends-on): Add strtod-obsolete.
17485         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17486
17487 2011-04-25  Bruno Haible  <bruno@clisp.org>
17488
17489         strcase: Make module obsolete.
17490         * modules/strcase (Status, Notice): New sections.
17491
17492 2011-04-25  Bruno Haible  <bruno@clisp.org>
17493
17494         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17495         * modules/dup2-obsolete: New file.
17496         * m4/dup2-obsolete.m4: New file.
17497         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17498         gl_FUNC_DUP2_OBSOLETE is not also defined.
17499         * modules/dup2 (Depends-on): Add dup2-obsolete.
17500         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17501
17502 2011-04-25  Bruno Haible  <bruno@clisp.org>
17503
17504         strnlen: Avoid memchr related link error on old obsolete platforms.
17505         * modules/memchr-obsolete: New file.
17506         * m4/memchr-obsolete.m4: New file.
17507         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17508         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17509         * modules/memchr (Depends-on): Add memchr-obsolete.
17510         * modules/strnlen (Depends-on): Likewise.
17511         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17512
17513 2011-04-25  Jim Meyering  <meyering@redhat.com>
17514
17515         maint.mk: makefile_at_at_check extend and clean up
17516         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17517         in addition to */Makefile.am.
17518         Exempt legitimate uses of @VAR@ notation, e.g.,
17519         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17520         Remove obsolete coreutils-specific comment.
17521         Prompted by discussion here:
17522         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17523
17524 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17525
17526         strtoul: remove dependency on strtol
17527         This is so that 'configure' need not check for strtol merely because
17528         the application needs strtoul.
17529         * modules/strtoul (Files): Add lib/strtol.c.
17530         (Depends-on): Remove strtol.
17531
17532         strtoull: remove dependency on strtoul
17533         This is like the strtoll change.
17534         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17535         (Depends-on): Remove strtoul.
17536
17537         strtoll: remove dependency on strtol
17538         This is so that 'configure' need not check for strtol merely because
17539         the application needs strtoll.
17540         * modules/strtoll (Files): Add lib/strtol.c.
17541         (Depends-on): Remove strtol.
17542
17543 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17544
17545         inttypes: Move some configure check to module 'imaxdiv'.
17546         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17547         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17548         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17549
17550 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         inttypes: Move some configure check to module 'imaxabs'.
17553         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17554         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17555         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17556
17557 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17558
17559         inttypes: Remove configure tests that are not needed since 2009-12-31.
17560         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17561         gl_cv_header_working_inttypes_h.
17562
17563 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17564
17565         * modules/strnlen (Depends-on): Remove memchr.
17566         The strnlen implementation doesn't need the memchr module's fixes; see
17567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17568
17569         strtol: remove dependency on wchar
17570         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17571         * modules/strtol (Depends-on): Remove wchar.
17572
17573 2011-04-21  Eric Blake  <eblake@redhat.com>
17574
17575         passfd: fix test regression on Linux
17576         * modules/passfd-tests (configure.ac): Correct socketpair check.
17577
17578         passfd: speed up configure and drop unused code
17579         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17580         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17581         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17582         Instead of probing at configure for unix_scm_rights_bsd44_way,
17583         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17584         check to a struct member probe.
17585         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17586         (sendfd, recvfd): Update preprocessor checks.
17587         * modules/passfd (Files): Reflect rename, and drop unused file.
17588         (Depends-on): Drop unused dependency.
17589
17590         passfd: allow compilation on mingw
17591         * modules/sys_socket (Depends-on): Add sys_uio.
17592         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17593         iovec and a minimal struct msghdr.
17594         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17595         * tests/test-sys_socket.c (main): Enhance test.
17596         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17597         guaranteed to provide what we need.
17598         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17599         * modules/passfd-tests (Depends-on): Add sys_wait.
17600         * tests/test-passfd.c (main): Skip test on mingw, for now.
17601         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17602         partial 'struct msghdr' implementation.
17603
17604         sys_uio: new module
17605         * modules/sys_uio: New module.
17606         * modules/sys_uio-tests: Likewise.
17607         * lib/sys_uio.in.h: New file.
17608         * m4/sys_uio_h.m4: Likewise.
17609         * tests/test-sys_uio.c: Likewise.
17610         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17611         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17612
17613 2011-04-20  Jim Meyering  <meyering@redhat.com>
17614
17615         useless-if-before-free: avoid false-positive
17616         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17617         disjunct so that it too requires a terminating ";".  Without that,
17618         this script would identify as useless one statement from gcc that
17619         was not:
17620           if (aligned_ptr)
17621             free (((void **) aligned_ptr) [-1]);
17622
17623 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17624
17625         doc: update users.txt.
17626         * users.txt: Add barcode.
17627
17628 2011-04-19  Bruno Haible  <bruno@clisp.org>
17629
17630         ioctl: Remove link dependency on native Windows.
17631         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17632         (gl_close_fn, gl_ioctl_fn): New types.
17633         (struct fd_hook): Renamed from struct close_hook. Change type of
17634         private_close_fn field. Add private_ioctl_fn field.
17635         (close_hook_fn): Add parameter for primary close method.
17636         (execute_close_hooks, execute_all_close_hooks): Likewise.
17637         (ioctl_hook_fn): New type.
17638         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17639         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17640         argument.
17641         (unregister_fd_hook): Renamed from unregister_close_hook.
17642         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17643         Don't include <unistd.h>.
17644         (close): Remove undef.
17645         (anchor): Update.
17646         (execute_close_hooks): Add argument for primary close method.
17647         (execute_all_close_hooks): Likewise.
17648         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17649         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17650         argument. Allow each argument to be NULL.
17651         (unregister_fd_hook): Renamed from unregister_close_hook.
17652         * lib/close.c (rpl_close): Pass 'close' function pointer to
17653         execute_all_close_hooks.
17654         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17655         (primary_ioctl): New function.
17656         (ioctl): Don't call ioctlsocket here. Instead, call
17657         execute_all_ioctl_hooks.
17658         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17659         close method.
17660         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17661         (fd_sockets_hook): Renamed from close_sockets_hook.
17662         (gl_sockets_startup, gl_sockets_cleanup): Update.
17663         * modules/fd-hook: Renamed from modules/close-hook. Update.
17664         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17665         * modules/sockets (Depends-on): Likewise.
17666         * modules/ioctl (Depends-on): Add fd-hook.
17667         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17668         GNULIB_SOCKET.
17669
17670 2011-04-19  Bruno Haible  <bruno@clisp.org>
17671
17672         Move the support of O_NONBLOCK in open() to the 'open' module.
17673         * modules/nonblocking (Depends-on): Remove 'open'.
17674         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17675         gl_cv_have_open_O_NONBLOCK.
17676         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17677         O_NONBLOCK support.
17678         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17679
17680 2011-04-17  Bruno Haible  <bruno@clisp.org>
17681
17682         pipe2: Simplify code.
17683         * lib/pipe2.c (pipe2): Reduce code duplication.
17684
17685 2011-04-17  Bruno Haible  <bruno@clisp.org>
17686
17687         nonblocking: Add comment.
17688         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17689
17690 2011-04-17  Bruno Haible  <bruno@clisp.org>
17691
17692         nonblocking: Add tests for sockets.
17693         * tests/test-nonblocking-socket.sh: New file.
17694         * tests/test-nonblocking-socket-main.c: New file.
17695         * tests/test-nonblocking-socket-child.c: New file.
17696         * tests/test-nonblocking-socket.h: New file.
17697         * tests/socket-server.h: New file.
17698         * tests/socket-client.h: New file.
17699         * modules/nonblocking-socket-tests: New file.
17700         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17701
17702 2011-04-17  Bruno Haible  <bruno@clisp.org>
17703
17704         nonblocking: Add tests for pipes.
17705         * tests/test-nonblocking-pipe.sh: New file.
17706         * tests/test-nonblocking-pipe-main.c: New file.
17707         * tests/test-nonblocking-pipe-child.c: New file.
17708         * tests/test-nonblocking-pipe.h: New file.
17709         * tests/test-nonblocking-writer.h: New file.
17710         * tests/test-nonblocking-reader.h: New file.
17711         * tests/test-nonblocking-misc.h: New file.
17712         * modules/nonblocking-pipe-tests: New file.
17713         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17714
17715 2011-04-16  Bruno Haible  <bruno@clisp.org>
17716
17717         gettext: Clarify the needed programmer actions.
17718         * modules/gettext (Notice): New field.
17719         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17720
17721 2011-04-16  Bruno Haible  <bruno@clisp.org>
17722
17723         strchrnul: Tweak last commit.
17724         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17725         bug.
17726         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17727         as in _GL_FUNCDECL_SYS.
17728         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17729         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17730
17731 2011-04-15  Eric Blake  <eblake@redhat.com>
17732
17733         strchrnul: work around cygwin bug
17734         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17735         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17737         * modules/string (Makefile.am): Substitute it.
17738         * lib/string.in.h (strchrnul): Use it.
17739
17740 2011-04-15  Bruno Haible  <bruno@clisp.org>
17741
17742         Don't require lib/stdio-write.c when only module 'stdio' is used.
17743         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17744         invocation.
17745         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17746
17747 2011-04-14  Bruno Haible  <bruno@clisp.org>
17748
17749         Support non-blocking pipe I/O in read() on native Windows.
17750         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17751         (read): New declaration.
17752         * lib/read.c: New file.
17753         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17754         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17755         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17756         vscanf): New declarations.
17757         * lib/stdio-read.c: New file.
17758         * m4/read.m4: New file.
17759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17760         REPLACE_READ.
17761         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17762         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17763         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17764         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17765         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17766         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17767         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17768         * modules/read: New file.
17769         * modules/nonblocking (Files): Add lib/stdio-read.c.
17770         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17771         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17772         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17773         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17774         * modules/pread (Depends-on): Add read.
17775         * modules/safe-read (Depends-on): Likewise.
17776         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17777         gets, scanf, vfscanf, vscanf): Verify signatures.
17778         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17779         problem with non-blocking pipes.
17780         * doc/posix-functions/fgetc.texi: Likewise.
17781         * doc/posix-functions/fgets.texi: Likewise.
17782         * doc/posix-functions/fread.texi: Likewise.
17783         * doc/posix-functions/fscanf.texi: Likewise.
17784         * doc/posix-functions/getc.texi: Likewise.
17785         * doc/posix-functions/getchar.texi: Likewise.
17786         * doc/posix-functions/gets.texi: Likewise.
17787         * doc/posix-functions/scanf.texi: Likewise.
17788         * doc/posix-functions/vfscanf.texi: Likewise.
17789         * doc/posix-functions/vscanf.texi: Likewise.
17790
17791 2011-04-14  Bruno Haible  <bruno@clisp.org>
17792
17793         Support non-blocking pipe I/O in write() on native Windows.
17794         * lib/write.c (rpl_write): Split a write request that failed merely
17795         because the byte count was larger than the pipe buffer's size.
17796         * doc/posix-functions/write.texi: Mention the problem with large byte
17797         counts.
17798
17799 2011-04-14  Bruno Haible  <bruno@clisp.org>
17800
17801         wchar: Ensure that wchar_t gets defined on uClibc.
17802         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17803         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17804
17805 2011-04-13  Bruno Haible  <bruno@clisp.org>
17806
17807         safe-write, full-read: Avoid unnecessary compilation units.
17808         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17809         (Depends-on): Remove safe-read. Add ssize_t.
17810         * modules/full-read (Files): Add lib/full-write.c.
17811         (Depends-on): Add full-write.
17812
17813 2011-04-13  Bruno Haible  <bruno@clisp.org>
17814
17815         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17816         * modules/pwrite (Depends-on): Add 'write'.
17817
17818 2011-04-13  Bruno Haible  <bruno@clisp.org>
17819
17820         Support non-blocking pipe I/O in write() on native Windows.
17821         * lib/unistd.in.h (write): Enable replacement also if
17822         GNULIB_UNISTD_H_NONBLOCKING is 1.
17823         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17824         (rpl_write): When failing to write on a non-blocking pipe, change
17825         errno from ENOSPC to EAGAIN.
17826         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17827         putchar, puts, vfprintf, vprintf): Enable replacement also if
17828         GNULIB_STDIO_H_NONBLOCKING is 1.
17829         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17830         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17831         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17832         CALL_WITH_SIGPIPE_EMULATION.
17833         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17834         * m4/nonblocking.m4: New file.
17835         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17836         for non-blocking I/O support.
17837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17838         GNULIB_UNISTD_H_NONBLOCKING.
17839         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17840         required for non-blocking I/O support.
17841         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17842         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17843         lib/stdio-write.c, m4/asm-underscore.m4.
17844         (Depends-on): Add stdio, unistd.
17845         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17846         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17847         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17848         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17849         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17850         problem with non-blocking pipes.
17851         * doc/posix-functions/fputc.texi: Likewise.
17852         * doc/posix-functions/fputs.texi: Likewise.
17853         * doc/posix-functions/fwrite.texi: Likewise.
17854         * doc/posix-functions/printf.texi: Likewise.
17855         * doc/posix-functions/putc.texi: Likewise.
17856         * doc/posix-functions/putchar.texi: Likewise.
17857         * doc/posix-functions/puts.texi: Likewise.
17858         * doc/posix-functions/vfprintf.texi: Likewise.
17859         * doc/posix-functions/vprintf.texi: Likewise.
17860         * doc/posix-functions/write.texi: Likewise.
17861
17862 2011-04-10  Jim Meyering  <meyering@redhat.com>
17863
17864         maint.mk: prohibit doubled words
17865         Detect them also when they're separated by a newline.
17866         There are 3 ways to customize it:
17867           - disable the test on a per file basis, as usual with rules using
17868             $(VC_LIST_EXCEPT)
17869           - replace the default doubled-word-selecting regexp (affects all files)
17870           - ignore a particular file-vs-doubled-word match
17871         I nearly used that last one to ignore the "is is" match in
17872         coreutils' NEWS file, since the text was "ls -is is ..."
17873         To do that, I would have added this line to cfg.mk:
17874           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17875         but it would have ignored any "is is" match in NEWS.
17876         Low probability, but still...
17877         Instead, I changed the text, slightly:
17878           -  ls -is is now consistent with ls -lis in ignoring values returned
17879           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17880         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17881         (prohibit_doubled_word_): Define.
17882         (sc_prohibit_doubled_word): New rule.
17883         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17884
17885 2011-04-10  Jim Meyering  <meyering@redhat.com>
17886
17887         maint: fix doubled-word typo in comment
17888         * m4/gethostname.m4: s/is is/it is/
17889         * m4/getdomainname.m4: Likewise.
17890
17891 2011-04-10  Jim Meyering  <meyering@redhat.com>
17892
17893         maint: remove doubled word: s/it it/it/
17894         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17895
17896 2011-04-10  Jim Meyering  <meyering@redhat.com>
17897
17898         maint.mk: remove useless semicolon and backslash
17899         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17900         semicolon and backslash.
17901
17902 2011-04-10  Bruno Haible  <bruno@clisp.org>
17903
17904         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17905         * modules/stdint-tests (Depends-on): Add wchar.
17906
17907 2011-04-10  Jim Meyering  <meyering@redhat.com>
17908
17909         maint: remove doubled words in comments, e.g., s/a a/a/
17910         * lib/strptime.c (day_of_the_week): s/the the/the/
17911         * tests/test-chown.h (test_chown): s/a a/a/
17912
17913         test-chown.h: correct a cast
17914         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17915         when the destination is a stat.st_gid.
17916
17917 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17918
17919         getaddrinfo: Fix test for sa_len member.
17920         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17921         include <sys/types.h> before <sys/socket.h>.
17922
17923 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17924
17925         maint: change "can not" to "cannot"
17926         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17927         boundaries.
17928
17929 2011-04-09  Jim Meyering  <meyering@redhat.com>
17930
17931         maint: change "a a" to "a"
17932         * tests/test-lchown.h (test_lchown): s/a a/a/
17933
17934         maint.mk: prohibit \<the the\>
17935         * top/maint.mk (sc_prohibit_the_the): New rule.
17936
17937         maint: fix "the the" in comment
17938         * lib/count-one-bits.h: s/the the/the/
17939
17940         maint: change "can not" to "cannot"
17941         But do not change the occurrences in maintain.texi or in
17942         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17943         * doc/gnulib-tool.texi: s/can not/cannot/
17944         * doc/posix-functions/accept.texi (accept): Likewise.
17945         * doc/posix-functions/socket.texi (socket): Likewise.
17946         * lib/mbrtowc.c: Likewise.
17947
17948         maint.mk: prohibit use of "can not"
17949         * top/maint.mk (sc_prohibit_can_not): New rule.
17950         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17951
17952 2011-04-09  Bruno Haible  <bruno@clisp.org>
17953
17954         careadlinkat: Guard against misuse of careadlinkatcwd.
17955         * lib/careadlinkat.c: Include <stdlib.h>.
17956         (careadlinkatcwd): Check that the fd argument is as expected.
17957
17958 2011-04-09  Bruno Haible  <bruno@clisp.org>
17959
17960         careadlinkat: Use common coding style.
17961         * lib/careadlinkat.c: Move gnulib includes after system includes.
17962
17963 2011-04-09  Bruno Haible  <bruno@clisp.org>
17964
17965         careadlinkat: Clarify specification.
17966         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17967         (careadlinkatcwd): Add comment.
17968         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17969
17970 2011-04-09  Bruno Haible  <bruno@clisp.org>
17971
17972         areadlinkat: Avoid link error on many platforms.
17973         * modules/areadlinkat (Depends-on): Add areadlink.
17974
17975 2011-04-09  Bruno Haible  <bruno@clisp.org>
17976
17977         allocator, careadlinkat: Fix double-inclusion guard.
17978         * lib/allocator.h: Fix double-inclusion guard.
17979         * lib/careadlinkat.h: Likewise.
17980
17981 2011-04-09  Bruno Haible  <bruno@clisp.org>
17982
17983         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17984         * lib/relocwrapper.c: Update dependencies hierarchy.
17985         * build-aux/install-reloc: Update list of files to be compiled.
17986         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17987         lib/allocator.[hc].
17988
17989 2011-04-08  Eric Blake  <eblake@redhat.com>
17990
17991         strftime: silence gnulib-tool warning
17992         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17993
17994 2011-04-08  Bruno Haible  <bruno@clisp.org>
17995
17996         verify: Fix syntax error with GCC 4.6 in C++ mode.
17997         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17998         (HAVE_STATIC_ASSERT): New macro.
17999         (verify_true, verify): Use 'static_assert' if it is supported and
18000         '_Static_assert' is not supported.
18001
18002 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18003
18004         allocator: New module.
18005         * modules/allocator, lib/allocator.c: New files.
18006         * lib/allocator.h (stdlib_allocator): New decl.
18007         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18008         Remove.  Do not include <stdlib.h>.
18009         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18010         * modules/careadlinkat (Files): Remove lib/allocator.h.
18011         (Depends-on): Add allocator.
18012
18013         stdlib: let modules use system malloc, realloc
18014         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18015         if !_GL_USE_STDLIB_ALLOC.
18016         (malloc, realloc): Limit this change to a smaller scope.
18017
18018         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18019         (malloc, realloc): Don't #undef; no longer needed.
18020         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18021         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18022         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18023         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18024         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18025         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18026         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18027         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18028
18029         careadlinkat: rename members to avoid problem
18030         * lib/allocator.h (struct allocator): Rename members from
18031         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18032         and realloc are #define'd.  Reported by Eric Blake in
18033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18034         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18035
18036 2011-04-08  Eric Blake  <eblake@redhat.com>
18037
18038         nonblocking: reduce dependency
18039         * tests/test-nonblocking.c: Only test sockets when in use.
18040         * modules/nonblocking-tests (Depends-on): Drop socket.
18041         (Makefile.am): Link even if sockets are not present.
18042         * modules/pipe2-tests (Makefile.am): Likewise.
18043         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18044
18045         pipe2: fix O_NONBLOCK support on mingw
18046         * modules/pipe2 (Depends-on): Add nonblocking.
18047         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18048         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18049         * tests/test-nonblocking.c (main): Likewise.
18050         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18051
18052         fcntl-h: fix O_ACCMODE on cygwin
18053         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18054         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18055
18056         pipe-filter: drop O_NONBLOCK workarounds
18057         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18058         * modules/pipe-filter-ii (Depends-on): Likewise.
18059         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18060
18061         nonblocking: provide O_NONBLOCK for mingw
18062         * modules/nonblocking (Depends-on): Add open.
18063         (configure.ac): Set new witness macro.
18064         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18065         * modules/fcntl-h (Makefile.am): Substitute it.
18066         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18067         nonblocking module is in use.
18068         * lib/nonblocking.c: Adjust portability test.
18069         * lib/open.c (open): Don't let native open see gnulib flag.
18070         * tests/test-fcntl-h.c (main): Enhance test.
18071         * tests/test-open.h (test_open): Likewise.
18072         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18073
18074         careadlinkat: fix compilation error on mingw
18075         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18076         within struct allocator.
18077
18078 2011-04-06  Eric Blake  <eblake@redhat.com>
18079
18080         binary-io: relicense under LGPLv2+
18081         * modules/binary-io (License): Relax to LGPLv2+.
18082         Requested for libvirt, and required by pipe2.
18083
18084 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18085
18086         verify: use _Static_assert if available
18087         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18088         (verify_true, verify): Use it if available.  This generates better
18089         diagnostics with GCC 4.6.0 and later.
18090
18091 2011-04-05  Bruno Haible  <bruno@clisp.org>
18092
18093         Remove leftover generated .h files after config.status changed.
18094
18095         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18096         GL_GENERATE_ALLOCA_H.
18097         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18098         GL_GENERATE_ALLOCA_H evaluates to false.
18099
18100         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18101         GL_GENERATE_ARGZ_H.
18102         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18103         evaluates to false.
18104
18105         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18106         GL_GENERATE_BYTESWAP_H.
18107         * modules/byteswap (Makefile.am): Remove byteswap.h if
18108         GL_GENERATE_BYTESWAP_H evaluates to false.
18109
18110         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18111         GL_GENERATE_ERRNO_H.
18112         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18113         evaluates to false.
18114
18115         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18116         GL_GENERATE_FLOAT_H.
18117         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18118         evaluates to false.
18119
18120         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18121         GL_GENERATE_FNMATCH_H.
18122         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18123         GL_GENERATE_FNMATCH_H evaluates to false.
18124
18125         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18126         GL_GENERATE_GLOB_H.
18127         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18128         evaluates to false.
18129
18130         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18131         automake conditional GL_GENERATE_ICONV_H.
18132         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18133         evaluates to false.
18134
18135         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18136         GL_GENERATE_NETINET_IN_H.
18137         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18138         GL_GENERATE_NETINET_IN_H evaluates to false.
18139
18140         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18141         conditional GL_GENERATE_PTHREAD_H.
18142         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18143         * modules/pthread (Makefile.am): Remove pthread.h if
18144         GL_GENERATE_PTHREAD_H evaluates to false.
18145
18146         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18147         GL_GENERATE_SCHED_H.
18148         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18149         evaluates to false.
18150
18151         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18152         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18153         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18154         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18155
18156         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18157         GL_GENERATE_STDARG_H.
18158         * modules/stdarg (Makefile.am): Remove stdarg.h if
18159         GL_GENERATE_STDARG_H evaluates to false.
18160
18161         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18162         GL_GENERATE_STDBOOL_H.
18163         * modules/stdbool (Makefile.am): Remove stdbool.h if
18164         GL_GENERATE_STDBOOL_H evaluates to false.
18165
18166         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18167         conditional GL_GENERATE_STDDEF_H.
18168         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18169         * modules/stddef (Makefile.am): Remove stddef.h if
18170         GL_GENERATE_STDDEF_H evaluates to false.
18171
18172         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18173         GL_GENERATE_STDINT_H.
18174         * modules/stdint (Makefile.am): Remove stdint.h if
18175         GL_GENERATE_STDINT_H evaluates to false.
18176
18177         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18178         GL_GENERATE_SYSEXITS_H.
18179         * modules/sysexits (Makefile.am): Remove sysexits.h if
18180         GL_GENERATE_SYSEXITS_H evaluates to false.
18181
18182         Reported by Karl Berry and Ralf Wildenhues.
18183
18184 2011-04-05  Bruno Haible  <bruno@clisp.org>
18185
18186         Ensure to rebuild generated .h files when config.status has changed.
18187         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18188         config.status.
18189         * modules/ctype (Makefile.am): Likewise.
18190         * modules/dirent (Makefile.am): Likewise.
18191         * modules/errno (Makefile.am): Likewise.
18192         * modules/fcntl-h (Makefile.am): Likewise.
18193         * modules/float (Makefile.am): Likewise.
18194         * modules/getopt-posix (Makefile.am): Likewise.
18195         * modules/glob (Makefile.am): Likewise.
18196         * modules/iconv-h (Makefile.am): Likewise.
18197         * modules/inttypes (Makefile.am): Likewise.
18198         * modules/langinfo (Makefile.am): Likewise.
18199         * modules/locale (Makefile.am): Likewise.
18200         * modules/math (Makefile.am): Likewise.
18201         * modules/netdb (Makefile.am): Likewise.
18202         * modules/netinet_in (Makefile.am): Likewise.
18203         * modules/poll-h (Makefile.am): Likewise.
18204         * modules/pthread (Makefile.am): Likewise.
18205         * modules/pty (Makefile.am): Likewise.
18206         * modules/sched (Makefile.am): Likewise.
18207         * modules/search (Makefile.am): Likewise.
18208         * modules/selinux-h (Makefile.am): Likewise.
18209         * modules/signal (Makefile.am): Likewise.
18210         * modules/spawn (Makefile.am): Likewise.
18211         * modules/stdarg (Makefile.am): Likewise.
18212         * modules/stdbool (Makefile.am): Likewise.
18213         * modules/stddef (Makefile.am): Likewise.
18214         * modules/stdint (Makefile.am): Likewise.
18215         * modules/stdio (Makefile.am): Likewise.
18216         * modules/stdlib (Makefile.am): Likewise.
18217         * modules/string (Makefile.am): Likewise.
18218         * modules/strings (Makefile.am): Likewise.
18219         * modules/sys_file (Makefile.am): Likewise.
18220         * modules/sys_ioctl (Makefile.am): Likewise.
18221         * modules/sys_select (Makefile.am): Likewise.
18222         * modules/sys_socket (Makefile.am): Likewise.
18223         * modules/sys_stat (Makefile.am): Likewise.
18224         * modules/sys_time (Makefile.am): Likewise.
18225         * modules/sys_times (Makefile.am): Likewise.
18226         * modules/sys_utsname (Makefile.am): Likewise.
18227         * modules/sys_wait (Makefile.am): Likewise.
18228         * modules/sysexits (Makefile.am): Likewise.
18229         * modules/termios (Makefile.am): Likewise.
18230         * modules/time (Makefile.am): Likewise.
18231         * modules/unistd (Makefile.am): Likewise.
18232         * modules/wchar (Makefile.am): Likewise.
18233         * modules/wctype-h (Makefile.am): Likewise.
18234         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18235
18236 2011-04-05  Bruno Haible  <bruno@clisp.org>
18237
18238         pipe2: Relicense under LGPLv2+.
18239         * modules/pipe2 (License): Change to LGPLv2+.
18240         Requested by Eric Blake, for libvirt.
18241
18242 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18243
18244         bootstrap: compute gnulib_extra_files after updating build_aux
18245         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18246         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18247
18248 2011-04-05  Eric Blake  <eblake@redhat.com>
18249
18250         bootstrap: preserve git whitelist item sorting
18251         * build-aux/bootstrap (sort_patterns): New function.
18252         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18253
18254 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18255
18256         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18257         sc_space_tab check.
18258
18259 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18260
18261         areadlink, areadlinkat: rewrite in terms of careadlinkat
18262         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18263         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18264         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18265         (malloc, realloc): Remove #undefs.
18266         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18267         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18268         readlink, ssize_t, stdint, unistd.
18269         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18270         areadlink, stdint.
18271
18272         careadlinkat: new module
18273         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18274         * modules/careadlinkat: New files, written by me with
18275         a review and feedback from Ben Pfaff in
18276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18277
18278 2011-04-01  Bruno Haible  <bruno@clisp.org>
18279
18280         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18281         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18282         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18283         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18284         Reported by Bruce Korb <bruce.korb@gmail.com>.
18285
18286 2011-04-01  Bruno Haible  <bruno@clisp.org>
18287
18288         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18289         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18290         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18291         * modules/wcpcpy (Depends-on): Add extensions.
18292         * modules/wcpncpy (Depends-on): Likewise.
18293         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18294         systems.
18295         * doc/posix-functions/wcpncpy.texi: Likewise.
18296         * doc/posix-functions/wcwidth.texi: Likewise.
18297
18298 2011-03-31  Eric Blake  <eblake@redhat.com>
18299
18300         nonblocking: fix mingw test failures
18301         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18302         non-blocking flag on regular file.
18303         (get_nonblocking_flag): Set errno on invalid fd.
18304         * tests/test-nonblocking.c (main): Avoid test failure on
18305         directories if fchdir is not active.
18306         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18307
18308 2011-03-31  Bruno Haible  <bruno@clisp.org>
18309
18310         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18311         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18312         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18313         Reported by Simon Josefsson <simon@josefsson.org>.
18314
18315 2011-03-31  Bruno Haible  <bruno@clisp.org>
18316         and Eric Blake  <eblake@redhat.com>
18317
18318         nonblocking: new module
18319         * modules/nonblocking: New module.
18320         * modules/nonblocking-tests: Likewise.
18321         * lib/nonblocking.h: New file.
18322         * lib/nonblocking.c: Likewise.
18323         * tests/test-nonblocking.c: New test.
18324         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18325
18326 2011-03-30  Bruno Haible  <bruno@clisp.org>
18327
18328         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18329         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18330         instead of 'printf' format for GCC >= 4.4.
18331         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18332         (fprintf, printf, vfprintf, vprintf): Declare with
18333         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18334         the system's vfprintf() function.
18335         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18336
18337 2011-03-30  Eric Blake  <eblake@redhat.com>
18338
18339         passfd: fix scoping bug
18340         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18341         before sendmsg/recvmsg.
18342
18343         passfd: standardize coding conventions
18344         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18345         can be learned at compile time.
18346         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18347         ifdefs.
18348         (sendfd, recvfd): Follow gnulib code conventions.
18349
18350         passfd: fix incorrect sendmsg arguments
18351         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18352         incorrect msg_controllen value.
18353         * modules/passfd-tests (Depends-on): Check for alarm.
18354         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18355         Reported by Bastien ROUCARIES.
18356
18357 2011-03-30  Bruno Haible  <bruno@clisp.org>
18358
18359         c-strcasestr: Relicense under LGPLv2+.
18360         * modules/c-strcasestr (License): Change to LGPLv2+.
18361         Requested by Eric Blake, for libvirt.
18362
18363 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18364
18365         * users.txt: Add libidn2.  Fix libtasn1 link.
18366
18367 2011-03-30  Jim Meyering  <meyering@redhat.com>
18368
18369         tests: readlink* ("",... fails with EINVAL on newer kernels
18370         readlink and readlinkat have typically failed with ENOENT for
18371         the invalid, empty file name,  "".  However, with the advent
18372         of linux-2.6.39, they fail with EINVAL.
18373         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18374         when operating on the empty file name.
18375         * tests/test-readlink.h (test_readlink): Likewise.
18376
18377 2011-03-29  Bruno Haible  <bruno@clisp.org>
18378
18379         Relicense some modules under LGPLv2+, for libidn2.
18380         * modules/array-mergesort (License): Change to LGPLv2+.
18381         * modules/c-strcaseeq (License): Likewise.
18382         * modules/striconveh (License): Likewise.
18383         * modules/striconveha (License): Likewise.
18384         * modules/uniconv/base (License): Likewise.
18385         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18386         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18387         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18388         * modules/unictype/base (License): Likewise.
18389         * modules/unictype/bidiclass-of (License): Likewise.
18390         * modules/unictype/category-M (License): Likewise.
18391         * modules/unictype/category-none (License): Likewise.
18392         * modules/unictype/category-of (License): Likewise.
18393         * modules/unictype/category-test (License): Likewise.
18394         * modules/unictype/category-test-withtable (License): Likewise.
18395         * modules/unictype/combining-class (License): Likewise.
18396         * modules/unictype/joiningtype-of (License): Likewise.
18397         * modules/unictype/scripts (License): Likewise.
18398         * modules/uninorm/base (License): Likewise.
18399         * modules/uninorm/canonical-decomposition (License): Likewise.
18400         * modules/uninorm/composition (License): Likewise.
18401         * modules/uninorm/decompose-internal (License): Likewise.
18402         * modules/uninorm/decomposition-table (License): Likewise.
18403         * modules/uninorm/nfc (License): Likewise.
18404         * modules/uninorm/nfd (License): Likewise.
18405         * modules/uninorm/u32-normalize (License): Likewise.
18406         * modules/unistr/base (License): Likewise.
18407         * modules/unistr/u32-cpy (License): Likewise.
18408         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18409         * modules/unistr/u32-to-u8 (License): Likewise.
18410         * modules/unistr/u32-uctomb (License): Likewise.
18411         * modules/unistr/u8-check (License): Likewise.
18412         * modules/unistr/u8-mblen (License): Likewise.
18413         * modules/unistr/u8-mbtouc (License): Likewise.
18414         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18415         * modules/unistr/u8-mbtoucr (License): Likewise.
18416         * modules/unistr/u8-prev (License): Likewise.
18417         * modules/unistr/u8-strlen (License): Likewise.
18418         * modules/unistr/u8-to-u32 (License): Likewise.
18419         * modules/unistr/u8-uctomb (License): Likewise.
18420         * modules/unitypes (License): Likewise.
18421         Requested by Simon Josefsson.
18422
18423 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18424
18425         lib-symbol-visibility: Add a notice.
18426         * modules/lib-symbol-visibility (Notice): New field.
18427
18428 2011-03-29  Bruno Haible  <bruno@clisp.org>
18429
18430         getaddrinfo: Doc fix.
18431         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18432         section "fixed in Gnulib".
18433
18434 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18435
18436         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18437         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18438
18439 2011-03-26  Bruno Haible  <bruno@clisp.org>
18440
18441         unictype/property-byname: Reduce the number of load-time relocations.
18442         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18443         (UC_PROPERTY_INDEX_*): New enumeration values.
18444         (uc_property_byname): Convert an index from the lookup table to an
18445         uc_property_t.
18446         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18447         values.
18448
18449 2011-03-26  Bruno Haible  <bruno@clisp.org>
18450
18451         unictype/property-byname: Allow omitted word separators and aliases.
18452         * lib/unictype/pr_byname.gperf: Add property names without word
18453         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18454         for 'space'.
18455
18456 2011-03-26  Bruno Haible  <bruno@clisp.org>
18457
18458         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18459         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18460         also hyphens to space.
18461         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18462         without spaces.
18463         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18464
18465 2011-03-26  Bruno Haible  <bruno@clisp.org>
18466
18467         unictype/joiningtype-byname: Recognize long names as well.
18468         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18469         a long name.
18470         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18471         unictype/joiningtype_byname.h.
18472         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18473         * lib/unictype/joiningtype_byname.gperf: New file.
18474         * modules/unictype/joiningtype-byname (Files): Add
18475         lib/unictype/joiningtype_byname.gperf.
18476         (Depends-on): Add gperf.
18477         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18478         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18479         long names.
18480
18481         Tests for module 'unictype/joiningtype-longname'.
18482         * modules/unictype/joiningtype-longname-tests: New file.
18483         * tests/unictype/test-joiningtype_longname.c: New file.
18484
18485         New module 'unictype/joiningtype-longname'.
18486         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18487         * lib/unictype/joiningtype_longname.c: New file.
18488         * modules/unictype/joiningtype-longname: New file.
18489         * modules/unictype/joiningtype-all (Depends-on): Add
18490         unictype/joiningtype-longname.
18491
18492 2011-03-26  Bruno Haible  <bruno@clisp.org>
18493
18494         unictype/bidiclass-byname: Recognize long names as well.
18495         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18496         name.
18497         * lib/unictype/bidi_byname.c: Include <string.h>,
18498         unictype/bidi_byname.h.
18499         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18500         * lib/unictype/bidi_byname.gperf: New file.
18501         * modules/unictype/bidiclass-byname (Files): Add
18502         lib/unictype/bidi_byname.gperf.
18503         (Depends-on): Add gperf.
18504         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18505         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18506         long names.
18507
18508         Tests for module 'unictype/bidiclass-longname'.
18509         * modules/unictype/bidiclass-longname-tests: New file.
18510         * tests/unictype/test-bidi_longname.c: New file.
18511
18512         New module 'unictype/bidiclass-longname'.
18513         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18514         * lib/unictype/bidi_longname.c: New file.
18515         * modules/unictype/bidiclass-longname: New file.
18516         * modules/unictype/bidiclass-all (Depends-on): Add
18517         unictype/bidiclass-longname.
18518
18519 2011-03-26  Bruno Haible  <bruno@clisp.org>
18520
18521         unictype/bidi*: Rename modules.
18522         * modules/unictype/bidiclass-all: Renamed from
18523         modules/unictype/bidicategory-all.
18524         * modules/unictype/bidiclass-name: Renamed from
18525         modules/unictype/bidiclass-name.
18526         (Description): Update.
18527         * modules/unictype/bidiclass-name-tests: Renamed from
18528         modules/unictype/bidicategory-name-tests.
18529         * modules/unictype/bidiclass-byname: Renamed from
18530         modules/unictype/bidicategory-byname.
18531         (Description): Update.
18532         * modules/unictype/bidiclass-byname-tests: Renamed from
18533         modules/unictype/bidicategory-byname-tests.
18534         * modules/unictype/bidiclass-of: Renamed from
18535         modules/unictype/bidicategory-of.
18536         (Description): Update.
18537         * modules/unictype/bidiclass-of-tests: Renamed from
18538         modules/unictype/bidicategory-of-tests.
18539         * modules/unictype/bidiclass-test: Renamed from
18540         modules/unictype/bidicategory-test.
18541         (Description): Update.
18542         * modules/unictype/bidiclass-test-tests: Renamed from
18543         modules/unictype/bidicategory-test-tests.
18544         * modules/unictype/bidicategory-all: New file, a simple redirection.
18545         * modules/unictype/bidicategory-name: Likewise.
18546         * modules/unictype/bidicategory-byname: Likewise.
18547         * modules/unictype/bidicategory-of: Likewise.
18548         * modules/unictype/bidicategory-test: Likewise.
18549         * modules/unictype/property-bidi-* (Dependencies): Update.
18550         * lib/unictype/bidi_*.c: Update comment.
18551
18552 2011-03-26  Bruno Haible  <bruno@clisp.org>
18553
18554         unictype/bidi*: Rename functions, part 2.
18555         * modules/unictype/bidicategory-name (configure.ac): Update required
18556         libunistring version.
18557         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18558
18559 2011-03-25  Bruno Haible  <bruno@clisp.org>
18560
18561         New module 'unictype/combining-class-all'.
18562         * modules/unictype/combining-class-all: New file.
18563
18564         Tests for module 'unictype/combining-class-byname'.
18565         * modules/unictype/combining-class-byname-tests: New file.
18566         * tests/unictype/test-combiningclass_byname.c: New file.
18567
18568         New module 'unictype/combining-class-byname'.
18569         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18570         * lib/unictype/combiningclass_byname.c: New file.
18571         * lib/unictype/combiningclass_byname.gperf: New file.
18572         * modules/unictype/combining-class-byname: New file.
18573
18574         Tests for module 'unictype/combining-class-longname'.
18575         * modules/unictype/combining-class-longname-tests: New file.
18576         * tests/unictype/test-combiningclass_longname.c: New file.
18577
18578         New module 'unictype/combining-class-longname'.
18579         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18580         * lib/unictype/combiningclass_longname.c: New file.
18581         * modules/unictype/combining-class-longname: New file.
18582
18583         Tests for module 'unictype/combining-class-name'.
18584         * modules/unictype/combining-class-name-tests: New file.
18585         * tests/unictype/test-combiningclass_name.c: New file.
18586
18587         New module 'unictype/combining-class-name'.
18588         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18589         * lib/unictype/combiningclass_name.c: New file.
18590         * modules/unictype/combining-class-name: New file.
18591
18592 2011-03-25  Bruno Haible  <bruno@clisp.org>
18593
18594         unictype/combining-class: Rename source files.
18595         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18596         of unictype/combining.h.
18597         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18598         Update.
18599         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18600         * modules/unictype/combining-class (Description): Fix.
18601         (Files, Makefile.am): Update.
18602         * tests/unictype/test-combiningclass.c: Renamed from
18603         tests/unictype/test-combining.c.
18604         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18605
18606 2011-03-25  Bruno Haible  <bruno@clisp.org>
18607
18608         unictype: Update list of canonical combining classes.
18609         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18610
18611 2011-03-25  Bruno Haible  <bruno@clisp.org>
18612
18613         unictype/category-byname: Recognize long names as well.
18614         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18615         a long name.
18616         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18617         unictype/categ_byname.h.
18618         (UC_CATEGORY_INDEX_*): New enumeration values.
18619         (uc_general_category_byname): Use uc_general_category_lookup and
18620         convert from index to value.
18621         * lib/unictype/categ_byname.gperf: New file.
18622         * modules/unictype/category-byname (Files): Add
18623         lib/unictype/categ_byname.gperf.
18624         (Depends-on): Add gperf.
18625         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18626         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18627         long names.
18628
18629         Tests for module 'unictype/category-longname'.
18630         * modules/unictype/category-longname-tests: New file.
18631         * tests/unictype/test-categ_longname.c: New file.
18632
18633         New module 'unictype/category-longname'.
18634         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18635         * lib/unictype/categ_longname.c: New file.
18636         * modules/unictype/category-longname: New file.
18637         * modules/unictype/category-all (Depends-on): Add it.
18638
18639 2011-03-25  Bruno Haible  <bruno@clisp.org>
18640
18641         Tests for module 'unictype/category-LC'.
18642         * modules/unictype/category-LC-tests: New file.
18643         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18644
18645         New module 'unictype/category-LC'.
18646         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18647         (UC_CATEGORY_LC): New declaration.
18648         (UC_CASED_LETTER): New macro.
18649         * lib/gen-uni-tables.c (is_category_LC): New function.
18650         (output_categories): Also handle category LC.
18651         (UC_CATEGORY_MASK_LC): New enumeration value.
18652         (general_category_byname): Also handle category LC.
18653         * lib/unictype/categ_LC.c: New file.
18654         * lib/unictype/categ_LC.h: New file, automatically generated.
18655         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18656         category LC.
18657         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18658         * modules/unictype/category-LC: New file.
18659         * modules/unictype/category-byname (Depends-on): Add
18660         unictype/category-LC.
18661         * modules/unictype/category-all (Depends-on): Likewise.
18662
18663 2011-03-25  Eric Blake  <eblake@redhat.com>
18664
18665         xmalloc: revert yesterday's regression
18666         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18667         realloc's underlying behavior (allowing allocation of zero-size
18668         objects, especially if malloc-gnu is also in use).
18669
18670 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18671
18672         maint.mk: add missing version to VC-tag
18673         * top/maint.mk: git tag was missing actual tag name; add it.
18674
18675         valgrind: do leak checking, and exit with code 1 on error (not 0)
18676         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18677         to VALGRIND.
18678
18679 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18680
18681         posix-modules: say what it does.
18682         * posix-modules: Add a line to the --help output saying what it does.
18683
18684 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18685
18686         xmalloc: Do not leak if underlying realloc is C99 compatible.
18687         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18688         This avoids a leak on C99-based systems.  See
18689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18690
18691 2011-03-24  Eric Blake  <eblake@redhat.com>
18692
18693         realloc: document portability problem
18694         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18695         passing 0 size to realloc.
18696
18697 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18698
18699         doc: update users.txt
18700         * users.txt: Add cvsps, tmpwatch
18701
18702 2011-03-23  Matt Rice  <ratmice@gmail.com>
18703
18704         doc: update users.txt
18705         * users.txt: Add gdb.
18706
18707 2011-03-23  Jim Meyering  <meyering@redhat.com>
18708
18709         doc: update users.txt
18710         Looking through matches up to the following URL (there are still
18711         several more pages), I found several projects that use gnulib:
18712         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18713         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18714         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18715
18716 2011-03-22  Bruno Haible  <bruno@clisp.org>
18717
18718         unictype/bidi*: Rename functions.
18719         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18720         uc_bidi_class, uc_is_bidi_class): New declarations.
18721         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18722         uc_bidi_category_byname.
18723         (uc_bidi_category_byname): New function.
18724         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18725         u_bidi_category_name.
18726         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18727         (uc_bidi_category_name): New function.
18728         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18729         uc_bidi_category.
18730         (uc_bidi_category): New function.
18731         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18732         uc_is_bidi_category. Invoke uc_bidi_class.
18733         (uc_is_bidi_category): New function.
18734         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18735         instead of uc_bidi_category_byname.
18736         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18737         instead of uc_bidi_category_name.
18738         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18739         uc_bidi_category.
18740         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18741         instead of uc_is_bidi_category.
18742
18743 2011-03-21  Bruno Haible  <bruno@clisp.org>
18744
18745         New module 'unictype/joininggroup-all'.
18746         * modules/unictype/joininggroup-all: New file.
18747
18748         Tests for module 'unictype/joininggroup-of'.
18749         * modules/unictype/joininggroup-of-tests: New file.
18750         * tests/unictype/test-joininggroup_of.c: New file.
18751         * tests/unictype/test-joininggroup_of.h: New file, automatically
18752         generated by gen-uni-tables.
18753
18754         New module 'unictype/joininggroup-of'.
18755         * modules/unictype/joininggroup-of: New file.
18756         * lib/unictype/joininggroup_of.c: New file.
18757         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18758         gen-uni-tables.
18759
18760         Tests for module 'unictype/joininggroup-byname'.
18761         * modules/unictype/joininggroup-byname-tests: New file.
18762         * tests/unictype/test-joininggroup_byname.c: New file.
18763
18764         New module 'unictype/joininggroup-byname'.
18765         * modules/unictype/joininggroup-byname: New file.
18766         * lib/unictype/joininggroup_byname.c: New file.
18767         * lib/unictype/joininggroup_byname.gperf: New file.
18768
18769         Tests for module 'unictype/joininggroup-name'.
18770         * modules/unictype/joininggroup-name-tests: New file.
18771         * tests/unictype/test-joininggroup_name.c: New file.
18772
18773         New module 'unictype/joininggroup-name'.
18774         * modules/unictype/joininggroup-name: New file.
18775         * lib/unictype/joininggroup_name.c: New file.
18776         * lib/unictype/joininggroup_name.h: New file.
18777
18778         New module 'unictype/joiningtype-all'.
18779         * modules/unictype/joiningtype-all: New file.
18780
18781         Tests for module 'unictype/joiningtype-of'.
18782         * modules/unictype/joiningtype-of-tests: New file.
18783         * tests/unictype/test-joiningtype_of.c: New file.
18784         * tests/unictype/test-joiningtype_of.h: New file, automatically
18785         generated by gen-uni-tables.
18786
18787         New module 'unictype/joiningtype-of'.
18788         * modules/unictype/joiningtype-of: New file.
18789         * lib/unictype/joiningtype_of.c: New file.
18790         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18791         gen-uni-tables.
18792
18793         Tests for module 'unictype/joiningtype-byname'.
18794         * modules/unictype/joiningtype-byname-tests: New file.
18795         * tests/unictype/test-joiningtype_byname.c: New file.
18796
18797         New module 'unictype/joiningtype-byname'.
18798         * modules/unictype/joiningtype-byname: New file.
18799         * lib/unictype/joiningtype_byname.c: New file.
18800
18801         Tests for module 'unictype/joiningtype-name'.
18802         * modules/unictype/joiningtype-name-tests: New file.
18803         * tests/unictype/test-joiningtype_name.c: New file.
18804
18805         New module 'unictype/joiningtype-name'.
18806         * modules/unictype/joiningtype-name: New file.
18807         * lib/unictype/joiningtype_name.c: New file.
18808
18809         unictype: Add support for Arabic shaping properties.
18810         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18811         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18812         declarations.
18813         (UC_JOINING_GROUP_*): New enumeration values.
18814         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18815         declarations.
18816         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18817         (unicode_joining_type): New variable.
18818         (UC_JOINING_GROUP_*): New enumeration values.
18819         (unicode_joining_group): New variable.
18820         (fill_arabicshaping, joining_type_as_c_identifier,
18821         output_joining_type_test, output_joining_type,
18822         joining_group_as_c_identifier, output_joining_group_test,
18823         output_joining_group): New functions.
18824         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18825         fill_arabicshaping and output_joining_type_test, output_joining_type,
18826         output_joining_group_test, output_joining_group.
18827         Reported by Simon Josefsson.
18828
18829 2011-03-21  Jim Meyering  <meyering@redhat.com>
18830
18831         strftime: fix a bug in yesterday's change
18832         * lib/strftime.c (add): Accommodate width's initial value of -1.
18833         Otherwise, nstrftime would copy uninitialized data into
18834         the result buffer.
18835
18836 2011-03-21  Jim Meyering  <meyering@redhat.com>
18837
18838         tests: add strftime-tests module
18839         * tests/test-strftime.c: New file.
18840         * modules/strftime-tests: New module.
18841
18842 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18843
18844         strftime: don't assume a byte count fits in 'int'
18845         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18846         found this problem by static analysis, using gcc -Wstrict-overflow
18847         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18848         on an integer overflow having undefined behavior, but it turns out
18849         that the argument is a size, which might not fit in 'int' anyway,
18850
18851 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18852
18853         stdio: don't require ignore_value around fwrite
18854
18855         This patch works around libc bug 11959
18856         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18857         Without this patch, applications must often write
18858         ignore_value (fwrite (...)) even though the ignore_value is
18859         not helpful here.  It's common to write many objects, using
18860         fwrite/printf/etc., and then use ferror to detect output error.
18861
18862         I considered making this patch optional, but decided against it,
18863         because libc is obviously being inconsistent here: there is no
18864         reason libc should insist that user code must inspect fwrite
18865         return's value without also insisting that it inspect printf's,
18866         putchar's, etc.  If user code wants to have a strict style where
18867         all these functions' values are checked (so that ferror need not
18868         be checked), we could add support for that style in a new gnulib
18869         module, but in the meantime it's better to be consistent and to
18870         support common usage.
18871
18872         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18873         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18874         that we are compiling in checking mode, and if not C++, and
18875         if not already wrapping fwrite for some other reason.
18876         (fwrite): #define to rpl_fwrite if the latter is defined.
18877
18878 2011-03-20  Bruno Haible  <bruno@clisp.org>
18879
18880         verror: Fix compilation error introduced on 2011-02-13.
18881         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18882         instead of __attribute__.
18883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18884
18885 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18886             Bruno Haible  <bruno@clisp.org>
18887
18888         socklen: do not depend on sys_socket
18889         While trying to modify Emacs to use gnulib's socklen module,
18890         I discovered a circular dependency: socklen depends on sys_socket
18891         and vice versa.  Emacs can use socklen, but it does not need
18892         sys_socket because it has its own substitute for sys/socket.h.
18893         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18894         gl_TYPE_SOCKLEN_T.
18895         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18896         gl_PREREQ_SYS_H_SOCKET.
18897         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18898         gl_PREREQ_SYS_H_SOCKET.
18899         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18900         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18901         * modules/socklen (Depends-on): Do not depend on sys_socket.
18902         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18903
18904 2011-03-20  Jim Meyering  <meyering@redhat.com>
18905
18906         maint.mk: sort file names *after* new transformation
18907         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18908         prefix would have led to an unwarranted failure in GNU parted.
18909         Sort after that transformation.
18910
18911 2011-03-19  Jim Meyering  <meyering@redhat.com>
18912
18913         maint.mk: fix po-file syntax-check rule
18914         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18915         Patch by Bruno Haible.
18916
18917 2011-03-19  Bruno Haible  <bruno@clisp.org>
18918
18919         socklen: Update comment.
18920         * m4/socklen.m4: Update comment about platforms.
18921
18922 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18923             Bruno Haible  <bruno@clisp.org>
18924
18925         inet_ntop, inet_pton: Simplify.
18926         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18927         documented to provide socklen_t and we already depend on sys_socket.
18928         * modules/inet_pton (Depends-on): Likewise.
18929         * lib/arpa_inet.in.h: Adjust comment.
18930
18931 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18932             Bruno Haible  <bruno@clisp.org>
18933
18934         netdb: Simplify.
18935         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18936         documented to provide socklen_t and we already depend on sys_socket.
18937         * lib/netdb.in.h: Adjust comment.
18938
18939 2011-03-19  Bruno Haible  <bruno@clisp.org>
18940
18941         sys_socket, netdb: Document problem with socklen_t.
18942         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18943         platforms.
18944         * doc/posix-headers/netdb.texi: Likewise.
18945
18946 2011-03-18  Eric Blake  <eblake@redhat.com>
18947
18948         maint.mk: let po check work in VPATH build
18949         * top/maint.mk (po_file): Allow cfg.mk override.
18950         (sc_po_check): Allow VPATH use.
18951         Reported by Jiri Denemark.
18952
18953 2011-03-16  Jim Meyering  <meyering@redhat.com>
18954
18955         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18956         Before, you would have had to create one .x-sc_ file per rule in order
18957         to exempt offending files.  Now, you may instead use a Make variable --
18958         usually defined in cfg.mk -- whose name identifies the affected rule.
18959         * top/maint.mk (_sc_excl): Define.
18960         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18961         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18962
18963 2011-03-13  Bruno Haible  <bruno@clisp.org>
18964
18965         ignore-value tests: Avoid warnings.
18966         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18967         empty for gcc < 3.4.
18968
18969 2011-03-13  Bruno Haible  <bruno@clisp.org>
18970
18971         passfd: Fix link error on Solaris.
18972         * modules/passfd (Description): Correct.
18973         (Depends-on): Add socketlib.
18974         (Link): New section.
18975         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18976
18977 2011-03-13  Bruno Haible  <bruno@clisp.org>
18978
18979         passfd: Fix link error on AIX 5.2.
18980         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18981
18982 2011-03-13  Bruno Haible  <bruno@clisp.org>
18983
18984         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18985         * lib/sys_socket.in.h: Include <stddef.h>.
18986         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18987         CMSG_FIRSTHDR. Remove unused variable.
18988
18989 2011-03-13  Bruno Haible  <bruno@clisp.org>
18990
18991         passfd: Fix compilation error on OpenBSD.
18992         * lib/passfd.c: Include <sys/uio.h>.
18993
18994 2011-03-13  Bruno Haible  <bruno@clisp.org>
18995
18996         passfd test: Fix warnings.
18997         * tests/test-passfd.c: Include <sys/wait.h>.
18998         (main): Fix typo.
18999
19000 2011-03-13  Bruno Haible  <bruno@clisp.org>
19001
19002         passfd module, part 4, tweaks.
19003         * tests/test-passfd.c: Reorder includes.
19004         (main): Fix perror and printf calls.
19005
19006 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19007
19008         passfd module, part 4.
19009         * modules/passfd-tests: New file.
19010         * tests/test-passfd.c: New file.
19011
19012 2011-03-13  Jim Meyering  <meyering@redhat.com>
19013
19014         Makefile: rely on GNU make; derive syntax-check rule names
19015         Rather than requiring that each sc_ rule be listed as a dependent
19016         of "check", use features of GNU make to derive the list.
19017         * Makefile (syntax-check-rules): Define.
19018         (check): Depend on the new variable, not the hard-coded list.
19019
19020 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19021             Bruno Haible  <bruno@clisp.org>
19022
19023         passfd module, part 3.
19024         * lib/passfd.h (recvfd): Add a flags argument.
19025         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19026         (recvfd): Add a flags argument.
19027         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19028         exists.
19029         * modules/passfd (Depends-on): Add cloexec.
19030         Suggested by Eric Blake.
19031
19032 2011-03-13  Bruno Haible  <bruno@clisp.org>
19033
19034         passfd module, part 2, tweaks.
19035         * modules/passfd (Files): Reorder.
19036         (Depends-on): Remove errno.
19037         (Include): Remove <sys/socket.h>, <sys/un.h>.
19038         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19039         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19040         specification header. Include <sys/socket.h> always. Don't include
19041         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19042         (sendfd): Clarify that it sets errno when it fails.
19043         (recvfd): Fix specification.
19044
19045 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19046
19047         passfd module, part 2.
19048         * modules/passfd: New file.
19049         * lib/passfd.h: New file.
19050         * lib/passfd.c: New file.
19051
19052 2011-03-12  Bruno Haible  <bruno@clisp.org>
19053
19054         wcswidth, mbswidth: Avoid integer overflow.
19055         * lib/wcswidth.c: Include <limits.h>.
19056         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19057         * lib/mbswidth.c: Include <limits.h>.
19058         (mbsnwidth): Avoid 'int' overflow.
19059         Reported by Jim Meyering.
19060
19061 2011-03-12  Bruno Haible  <bruno@clisp.org>
19062
19063         futimens, utimensat: Avoid endless recursion on Solaris 10.
19064         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19065         Solaris.
19066         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19067         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19068
19069 2011-03-11  Jim Meyering  <meyering@redhat.com>
19070
19071         maint.mk: relax a regexp to accommodate other formatting styles
19072         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19073         between "ngettext" and the following "(".
19074
19075 2011-03-11  Pádraig Brady <P@draigBrady.com>
19076
19077         maint.mk: suppress a false positive warning
19078         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19079         diagnostics are marked with ngettext.
19080
19081 2011-03-10  Eric Blake  <eblake@redhat.com>
19082
19083         wchar: add explicit dependencies, for Tru64
19084         * modules/mbmemcasecoll (Depends-on): Add wchar.
19085         * modules/mbtowc (Depends-on): Likewise.
19086         * modules/vasnprintf (Depends-on): Likewise.
19087         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19088         * modules/wctomb (Depends-on): Likewise.
19089         Reported by Peter O'Gorman.
19090
19091 2011-03-08  Bruno Haible  <bruno@clisp.org>
19092
19093         passfd module, part 1, tweaks.
19094         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19095         Improve indentation. Improve AC_MSG_CHECKING messages.
19096         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19097         gl_SOCKET_FAMILIES.
19098
19099 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19100
19101         passfd module, part 1.
19102         * m4/afunix.m4: New file.
19103         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19104         sockets.
19105
19106 2011-03-08  Bruno Haible  <bruno@clisp.org>
19107
19108         regex-quote: New API.
19109         * lib/regex-quote.h: Include <stdbool.h>.
19110         (struct regex_quote_spec): New type.
19111         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19112         New declarations.
19113         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19114         'const struct regex_quote_spec *' argument.
19115         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19116         (pcre_special): New constant.
19117         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19118         New functions.
19119         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19120         'const struct regex_quote_spec *' argument.
19121         * modules/regex-quote (Depends-on): Add stdbool.
19122         * tests/test-regex-quote.c (check): Update for new API. Add test for
19123         anchored results.
19124         * NEWS: Mention the API change.
19125         Reported by Reuben Thomas and Eric Blake.
19126
19127 2011-03-06  Bruno Haible  <bruno@clisp.org>
19128
19129         regex-quote: Fix creation of POSIX extended regular expressions.
19130         * lib/regex-quote.c (ere_special): Add grouping and alternation
19131         operators.
19132
19133 2011-03-05  Bruno Haible  <bruno@clisp.org>
19134
19135         doc: Improve doc regarding autopoint vs. gnulib.
19136         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19137         disable autopoint while running autoreconf.
19138         Suggested by Ralf Wildenhues.
19139
19140 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19141
19142         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19143         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19144
19145 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19146
19147         parse-duration: remove xalloc.h dependency
19148         * lib/parse-duration.c (parse_period): handle NULL return from
19149         strdup instead of calling xstrdup().
19150         * modules/parse-duration: remove "xalloc" dependency
19151
19152 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19153
19154         bootstrap: honor m4_base when running aclocal
19155         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19156
19157 2011-03-02  Jim Meyering  <meyering@redhat.com>
19158
19159         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19160         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19161         on request from Matt Booth.
19162
19163 2011-03-01  Eric Blake  <eblake@redhat.com>
19164
19165         test-link: work on Hurd
19166         * tests/test-link.h (test_link): Hurd rejects linking directories
19167         with EISDIR instead of the POSIX-mandated EPERM.
19168
19169 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19170
19171         stdio: simplify by moving files to printf-posix, sigpipe
19172         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19173         since this symbol is needed only if printf is replaced.
19174         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19175         Require gl_ASM_SYMBOL_PREFIX.
19176         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19177         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19178         (Depends-on): Add 'raise'.
19179         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19180         * modules/stdio (Files): Remove lib/stdio-write.c,
19181         m4/asm-underscore.m4.
19182         (Depends-on): Remove 'raise'.
19183
19184         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19185         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19186         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19187         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19188
19189 2011-02-28  Bruno Haible  <bruno@clisp.org>
19190
19191         localcharset: Assume ANSI C behaviour of free().
19192         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19193         calling free().
19194         Suggested by Simon Josefsson <simon@josefsson.org>.
19195
19196 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19197             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19198             Bruno Haible  <bruno@clisp.org>  (tiny change)
19199
19200         On Cygwin, use /proc file system instead of win32 API.
19201         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19202         Win32 file names.
19203         (DllMain): Simplify by removing Cygwin specific code.
19204         (find_shared_library_fullname): Use Linux specific implementation also
19205         for Cygwin.
19206         (get_shared_library_fullname): Update accordingly.
19207         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19208         Win32 file names.
19209         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19210         Cygwin specific code.
19211
19212 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19213             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19214
19215         Fix OpenMP flag detection for various Fortran compilers.
19216         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19217         OpenMP-conditional compilation construct, to force compile
19218         failure with missing OpenMP flag.
19219         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19220
19221 2011-02-25  Eric Blake  <eblake@redhat.com>
19222
19223         strstr: expand test coverage
19224         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19225         compilation.
19226         * tests/test-memmem.c (main): Duplicate tests.
19227         * tests/test-strcasestr.c (main): Likewise.
19228         * tests/test-c-strcasestr.c (main): Likewise.
19229
19230 2011-02-25  Jim Meyering  <meyering@redhat.com>
19231
19232         maint.mk: detect missing-NL-at-EOF, too
19233         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19234         it also detects when a file lacks a newline at EOF.
19235         (require_exactly_one_NL_at_EOF_): Renamed from
19236         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19237         since people may well have .x-sc_... file names tied to the
19238         existing name.  Suggested by Eric Blake.
19239
19240 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19241
19242         dirname: move m4/dos.m4 functionality into lib/dosname.h
19243
19244         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19245         extracts symbols from it, puts them into config.h; but it's much
19246         easier to use the symbols directly.  filename.h already does this,
19247         but it disagrees with dos.m4 in some respects.  This patch
19248         introduces a different include file dosname.h that packages up
19249         dos.m4, and then later we can work on merging filename.h and
19250         dosname.h.  Applications that need only the easy-to-configure
19251         symbols should consider including dosname.h rather than dirname.h.
19252         * NEWS: Mention incompatible changes.
19253         * m4/dos.m4: Remove.
19254         * lib/dosname.h, modules/dosname: New files.
19255         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19256         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19257         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19258         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19259         Include dosname.h, not dirname.h.
19260         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19261         Include dosname.h, for definitions of symbols like ISSLASH
19262         that used to be in config.h.
19263         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19264         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19265         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19266         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19267         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19268         * modules/rmdir (Files): Likewise.
19269         * modules/stat (Files): Likewise.
19270         * modules/unlink (Files): Likewise.
19271         * modules/dirname-lgpl (Depends-on): Add dosname.
19272         * modules/lstat (Depends-on): Likewise.
19273         * modules/openat (Depends-on): Likewise.
19274         * modules/rmdir (Depends-on): Likewise.
19275         * modules/savewd (Depends-on): Likewise.
19276         * modules/stat (Depends-on): Likewise.
19277         * modules/unlink (Depends-on): Likewise.
19278         * modules/openat (Depends-on): Remove dirname-lgpl.
19279         * modules/savewd (Depends-on): Likewise.
19280         * tests/test-dirname.c: Do not use removed symbols like
19281         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19282         the remaining symbols, e.g., ISSLASH ('\\').
19283
19284 2011-02-25  Eric Blake  <eblake@redhat.com>
19285
19286         strstr: revert patches that introduced bug and pessimization
19287         * lib/str-two-way.h: Add another reference.
19288         (two_way_short_needle, two_way_long_needle): Revert changes from
19289         2011-02-24; they pessimize search speed.
19290         (critical_factorization): Partially revert changes from
19291         2010-06-22; they violate the requirement that the left half of the
19292         needle be smaller than the period of the needle.
19293
19294 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19295
19296         filenamecat: remove unnecessary dependency on dirname-lgpl
19297         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19298         is no direct dependency, just an indirect one via filenamecat-lgpl.
19299
19300         remove: remove unnecessary use of m4/dos.m4
19301         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19302         * modules/remove (FILES): Remove m4/dos.m4.
19303
19304         * lib/openat-proc.c: Don't include dirname.h; not needed.
19305
19306         backupfile: remove unnecessary use of m4/dos.m4
19307         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19308         of its symbols are used by the backupfile code.  backupfile.c does
19309         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19310         for the rare case of programs that want all their backup file
19311         names to live within 8+3 limits, and dos.m4 doesn't address that.
19312         * modules/backupfile (Files): Remove m4/dos.m4.
19313
19314 2011-02-24  Jim Meyering  <meyering@redhat.com>
19315
19316         strstr: fix a bug whereby strstr would mistakenly return NULL
19317         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19318         in period calculation.
19319         (two_way_long_needle): Likewise.
19320         The original problem was reported by Mike Stump in
19321         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19322         Ralf Wildenhues provided the short needle and haystack.
19323         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19324         Add a more involved test to trigger the bug in two_way_long_needle.
19325
19326 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19327
19328         gnulib-tool: remove use of bold display in help screen
19329         * gnulib-tool (func_usage): Do not use bold display anymore in the
19330         help screen.  That was just meant to be a temporary emphasis for a
19331         backward-incompatible change.
19332
19333 2011-02-23  Bruno Haible  <bruno@clisp.org>
19334
19335         Fix misindentation of preprocessor directives.
19336         * lib/argp-namefrob.h: Reindent preprocessor directives.
19337         * lib/getopt_int.h (struct _getopt_data): Likewise.
19338         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19339         * lib/vasnprintf.c (decode_long_double): Likewise.
19340         * tests/test-argmatch.c: Insert blank lines, for clarity.
19341         * tests/test-exclude.c: Likewise.
19342
19343 2011-02-22  Bruno Haible  <bruno@clisp.org>
19344
19345         ioctl: Fix for MacOS X in 64-bit mode.
19346         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19347         value.
19348         Suggested by Eric Blake.
19349         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19350
19351 2011-02-22  Jim Meyering  <meyering@redhat.com>
19352
19353         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19354         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19355         in lib/.
19356
19357 2011-02-22  Eric Blake  <eblake@redhat.com>
19358
19359         maint: avoid any CDPATH issue
19360         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19361
19362         maint: adjust cpp indentation for my modules, as well
19363         * Makefile (sc_cpp_indent_check): Add my name.
19364         * lib/fbufmode.c: Filter through cppi.
19365         * lib/fpurge.c: Likewise.
19366         * lib/freadable.c: Likewise.
19367         * lib/freading.c: Likewise.
19368         * lib/fwritable.c: Likewise.
19369         * lib/fwriting.c: Likewise.
19370         * lib/sigaction.c: Likewise.
19371
19372 2011-02-22  Jim Meyering  <meyering@redhat.com>
19373
19374         maint: adjust cpp indentation to reflect nesting depth
19375         I.e., in a block of code that begins with an unnested "#if",
19376         put one space between the "#" in column 1 and following token.
19377         For example,
19378         -#include <sys/vfs.h>
19379         +# include <sys/vfs.h>
19380         Do this only in .c files that are part of a module I maintain.
19381         * lib/linkat.c: Filter through cppi.
19382         * lib/nanosleep.c: Likewise.
19383         * lib/openat.c: Likewise.
19384         * lib/openat-die.c: Likewise.
19385         * lib/dup3.c: Likewise.
19386         * lib/fchownat.c: Likewise.
19387         * lib/flock.c: Likewise.
19388         * lib/fsync.c: Likewise.
19389         * lib/fts.c: Likewise.
19390         * lib/getpass.c: Likewise.
19391         * lib/gettimeofday.c: Likewise.
19392         * lib/userspec.c: Likewise.
19393         * Makefile (sc_cpp_indent_check): New rule, to check this.
19394
19395 2011-02-22  Bruno Haible  <bruno@clisp.org>
19396
19397         New module 'wctomb'.
19398         * lib/stdlib.in.h (wctomb): New declaration.
19399         * lib/wctomb.c: New file.
19400         * lib/wctomb-impl.h: New file.
19401         * m4/wctomb.m4: New file.
19402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19403         REPLACE_WCTOMB.
19404         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19405         REPLACE_WCTOMB.
19406         * modules/wctomb: New file.
19407         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19408         * doc/posix-functions/wctomb.texi: Mention the new module.
19409         * modules/wctob (Depends-on): Add wctomb.
19410
19411 2011-02-22  Bruno Haible  <bruno@clisp.org>
19412
19413         New module 'mbtowc'.
19414         * lib/stdlib.in.h (mbtowc): New declaration.
19415         * lib/mbtowc.c: New file.
19416         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19417         * m4/mbtowc.m4: New file.
19418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19419         REPLACE_MBTOWC.
19420         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19421         REPLACE_MBTOWC.
19422         * modules/mbtowc: New file.
19423         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19424         * doc/posix-functions/mbtowc.texi: Mention the new module.
19425         * modules/btowc (Depends-on): Add mbtowc.
19426
19427 2011-02-22  Bruno Haible  <bruno@clisp.org>
19428
19429         wcrtomb: Add more tests for native Windows platforms.
19430         * tests/test-wcrtomb-w32-1.sh: New file.
19431         * tests/test-wcrtomb-w32-2.sh: New file.
19432         * tests/test-wcrtomb-w32-3.sh: New file.
19433         * tests/test-wcrtomb-w32-4.sh: New file.
19434         * tests/test-wcrtomb-w32-5.sh: New file.
19435         * tests/test-wcrtomb-w32.c: New file.
19436         * modules/wcrtomb-tests (Files): Add them.
19437         (Makefile.am): Arrange to run these tests.
19438         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19439         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19440
19441 2011-02-20  Bruno Haible  <bruno@clisp.org>
19442
19443         wcrtomb: Enhance test.
19444         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19445
19446 2011-02-20  Bruno Haible  <bruno@clisp.org>
19447
19448         mbrtowc: Tiny optimization.
19449         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19450
19451 2011-02-20  Jim Meyering  <meyering@redhat.com>
19452
19453         test-exclude.c: remove unmatched #endif
19454         * tests/test-exclude.c: Remove stray #endif, left over from
19455         the change of a week ago.
19456
19457 2011-02-19  Jim Meyering  <meyering@redhat.com>
19458
19459         git-version-gen: skip "-dirty" check when appropriate
19460         * build-aux/git-version-gen: Don't run any git commands when the
19461         version string comes from .tarball-version.  Prior to this, we
19462         would run git update-index --refresh even from a just-unpacked
19463         tarball directory, and that could affect a .git/ directory in a
19464         parent of the build directory.  Reported by Mike Frysinger.
19465
19466 2011-02-19  Bruno Haible  <bruno@clisp.org>
19467
19468         unictype/property-byname: Reduce the size of the 'data' segment.
19469         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19470
19471 2011-02-19  Bruno Haible  <bruno@clisp.org>
19472
19473         unictype/scripts: Reduce the size of the 'data' segment.
19474         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19475         '%pic'.
19476         * lib/unictype/scripts_byname.gperf: Regenerated.
19477
19478 2011-02-19  Bruno Haible  <bruno@clisp.org>
19479
19480         stdint: Update documentation.
19481         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19482
19483 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19484
19485         stdint: omit redundant check for wchar.h
19486         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19487         always tests whether wchar.h exists, so remove the now-redundant test.
19488
19489 2011-02-18  Bruno Haible  <bruno@clisp.org>
19490
19491         stdint: Cut dependency to module 'wchar'.
19492         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19493         include the necessary prerequisites.
19494         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19495         * modules/stdint (Depends-on): Remove wchar.
19496         (Makefile.am): Substitute HAVE_WCHAR_H.
19497         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19498
19499 2011-02-18  Eric Blake  <eblake@redhat.com>
19500
19501         longlong: skip, rather than fail, on cross-compilation
19502         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19503         when cross-compiling; regression from 2011-02-16.
19504
19505 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         * NEWS: Mention 2011-02-08 change to stdlib.
19508
19509 2011-02-17  Bruno Haible  <bruno@clisp.org>
19510
19511         getloadavg: Add comments about platforms.
19512         * m4/getloadavg.m4: Add comment.
19513         * lib/getloadavg.c: Likewise.
19514
19515 2011-02-17  Bruno Haible  <bruno@clisp.org>
19516
19517         getloadavg: Fix link error on Solaris 2.6.
19518         * modules/getloadavg (Link): New section.
19519         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19520         linking test-getloadavg.
19521         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19522         getloadavg.
19523
19524 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19525
19526         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19527         It was 'int', but this doesn't match the IRIX 6.5 manual.
19528         Suggested by Bruno Haible in
19529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19530
19531 2011-02-17  Bruno Haible  <bruno@clisp.org>
19532
19533         havelib: Fix comments.
19534         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19535         change.
19536
19537 2011-02-17  Bruno Haible  <bruno@clisp.org>
19538
19539         havelib: Update config.rpath.
19540         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19541
19542 2011-02-17  Bruno Haible  <bruno@clisp.org>
19543
19544         getloadavg test: Add some plausibility checks.
19545         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19546         is improbable.
19547
19548 2011-02-16  Eric Blake  <eblake@redhat.com>
19549
19550         maintainer-makefile: make syntax-check a no-op from tarballs
19551         * top/maint.mk (no-vc-detected): New rule.
19552         (local-checks-available): Use it to avoid hanging if someone tries
19553         'make syntax-check' from a tarball.  Also append to any non-syntax
19554         checks already defined in cfg.mk.
19555
19556 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19557
19558         longlong: tune, particularly for common case of c99
19559
19560         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19561         or running anything if c99, or if unsigned long long int does not
19562         work.  In either case, we know the answer without further tests.
19563         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19564         it at most once, and use its results for both long long int and
19565         unsigned long long int.  This is more likely to be efficient in
19566         the common case where the program wants to check for both long
19567         long int and unsigned long long int.
19568         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19569         since the answer is already known.
19570
19571 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19572
19573         getloadavg: set errno
19574         * lib/getloadavg.c: Set errno when returning -1.  If no other
19575         error number looks appropriate, set it to ENOSYS if the getloadavg
19576         looks like it can't possibly ever work, ENOTSUP otherwise.
19577         Suggested by Bruno Haible in
19578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19579
19580         getloadavg: trim unused parts and speed up 'configure'
19581         * NEWS: Document this.
19582         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19583         always compiled if getloadavg is absent.
19584         Move test code to ...
19585         * tests/test-getloadavg.c: New file, containing previous
19586         contents of test from lib/getloadavg.c.  It also contains
19587         suggestions by Bruno Haible in
19588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19589         * modules/getloadavg-tests: New file.
19590         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19591         Do tests in the same order as they're needed for getloadavg.c.
19592         Omit setgid-related tests that generate symbols KMEM_GROUP,
19593         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19594         Do only the tests that are needed to see whether the system has
19595         getloadavg, moving the other tests into ...
19596         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19597         NLIST_NAME_UNION; nobody should be using it.  Do not define
19598         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19599         relevant, as the user of this module shouldn't care how getloadavg
19600         is implemented.
19601
19602         getloadavg: omit unused var
19603         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19604
19605 2011-02-15  Jim Meyering  <meyering@redhat.com>
19606
19607         doc: update users.txt
19608         * users.txt: Update iwhd's URL.
19609
19610 2011-02-13  Bruno Haible  <bruno@clisp.org>
19611
19612         Consistent macro naming for macros that use GCC __attribute__.
19613         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19614         _ATTRIBUTE_NONNULL_.
19615         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19616         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19617         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19618         ATTRIBUTE_DEPRECATED.
19619         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19620         ATTRIBUTE_NORETURN.
19621         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19622         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19623         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19624         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19625         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19626         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19627         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19628         ATTRIBUTE_SENTINEL.
19629         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19630         ATTRIBUTE_RETURN_CHECK.
19631         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19632         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19633         ATTRIBUTE_NORETURN.
19634         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19635         Reported by Paul Eggert.
19636
19637 2011-02-13  Bruno Haible  <bruno@clisp.org>
19638
19639         Don't interfere with a program's definition of __attribute__.
19640         * lib/argp.h (__attribute__): Remove definition.
19641         (_GL_ATTRIBUTE_FORMAT): New macro.
19642         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19643         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19644         (_GL_ATTRIBUTE_FORMAT): New macro.
19645         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19646         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19647         GCC 3 or newer.
19648         * lib/error.h (__attribute__): Remove definition.
19649         (_GL_ATTRIBUTE_FORMAT): New macro.
19650         (error, error_at_line): Use it.
19651         * lib/hash.h (__attribute__): Remove definition.
19652         (ATTRIBUTE_WUR): Update definition. Define always.
19653         * lib/openat.h (__attribute__): Remove definition.
19654         (ATTRIBUTE_NORETURN): Update definition. Define always.
19655         * lib/sigpipe-die.h (__attribute__): Remove definition.
19656         (ATTRIBUTE_NORETURN): Update definition. Define always.
19657         * lib/vasnprintf.h (__attribute__): Remove definition.
19658         (_GL_ATTRIBUTE_FORMAT): New macro.
19659         (asnprintf, vasnprintf): Use it.
19660         * lib/xalloc.h (__attribute__): Remove definition.
19661         (ATTRIBUTE_NORETURN): Update definition. Define always.
19662         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19663         * lib/xmemdup0.h (__attribute__): Remove definition.
19664         (ATTRIBUTE_NORETURN): Update definition. Define always.
19665         * lib/xprintf.h (__attribute__): Remove definition.
19666         (_GL_ATTRIBUTE_FORMAT): New macro.
19667         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19668         * lib/xstrtol.h (__attribute__): Remove definition.
19669         (ATTRIBUTE_NORETURN): Update definition. Define always.
19670         * lib/xvasprintf.h (__attribute__): Remove definition.
19671         (_GL_ATTRIBUTE_FORMAT): New macro.
19672         (xasprintf, xvasprintf): Use it.
19673         * tests/test-argmatch.c (__attribute__): Remove definition.
19674         (ATTRIBUTE_NORETURN): Update definition. Define always.
19675         * tests/test-exclude.c (__attribute__): Remove definition.
19676         (ATTRIBUTE_NORETURN): Update definition. Define always.
19677         Reported by Paul Eggert.
19678
19679 2011-02-13  Bruno Haible  <bruno@clisp.org>
19680
19681         mbrtowc: Add more tests for native Windows platforms.
19682         * tests/test-mbrtowc-w32-1.sh: New file.
19683         * tests/test-mbrtowc-w32-2.sh: New file.
19684         * tests/test-mbrtowc-w32-3.sh: New file.
19685         * tests/test-mbrtowc-w32-4.sh: New file.
19686         * tests/test-mbrtowc-w32-5.sh: New file.
19687         * tests/test-mbrtowc-w32.c: New file.
19688         * modules/mbrtowc-tests (Files): Add them.
19689         (Makefile.am): Arrange to run these tests.
19690         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19691         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19692
19693 2011-02-13  Bruno Haible  <bruno@clisp.org>
19694
19695         mbrtowc: Work around native Windows bug.
19696         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19697         guess when no suitable locale for testing was found.
19698         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19699
19700 2011-02-13  Bruno Haible  <bruno@clisp.org>
19701
19702         mbsinit: Work around mingw bug.
19703         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19704         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19705         Windows.
19706         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19707
19708 2011-02-13  Bruno Haible  <bruno@clisp.org>
19709
19710         mbsinit: Don't crash for a NULL argument.
19711         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19712         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19713
19714 2011-02-13  Bruno Haible  <bruno@clisp.org>
19715
19716         Don't interfere with a program's definition of __attribute__.
19717         * lib/stdio.in.h (__attribute__): Remove definition.
19718         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19719         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19720         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19721         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19722         * lib/string.in.h (__attribute__): Remove definition.
19723         Reported by Paul Eggert.
19724
19725 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19726
19727         stdlib: don't get in the way of non-GCC __attribute__
19728         See thread starting at
19729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19730         Revert previous stdlib change, installing the following instead:
19731         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19732         to get in the way of a non-GCC compiler that supports __attribute__.
19733         (_GL_ATTRIBUTE_RETURN): New macro.
19734         (_Exit): Use it instead of __attribute__.
19735
19736 2011-02-12  Bruno Haible  <bruno@clisp.org>
19737
19738         quotearg test: Avoid test failure on mingw.
19739         * tests/test-quotearg.sh: Convert the locale identifier from native
19740         Windows syntax to Unix syntax.
19741
19742 2011-02-12  Bruno Haible  <bruno@clisp.org>
19743
19744         setlocale: Prefer gnulib's override over libintl's override.
19745         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19746         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19747         GNULIB_defined_setlocale is set.
19748
19749 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19750
19751         stdlib: support non-GCC __attribute__
19752
19753         Fix a serious and tricky problem encountered when attempting to
19754         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19755         5.5, but it crashed due to memory corruption on Solaris 10 with
19756         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19757         bits that are otherwise zero.  This tagging is optional inside
19758         Emacs but is preferred and is used when __attribute__ ((__aligned
19759         (8))) works, as it does with both recent-enough GCC and with Sun C
19760         5.11.  However, Sun C 5.11 is not GCC and does not #define
19761         __GNUC__ and __GNUC_MINOR__.
19762
19763         When I added the getloadavg module to Emacs, it brought in
19764         stdlib.in.h, which contained this fragment:
19765
19766            #ifndef __attribute__
19767            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19768            #  define __attribute__(Spec)   /* empty */
19769            # endif
19770            #endif
19771
19772         When files that include <stdlib.h> were compiled with Sun C 5.11,
19773         the above code disabled __attribute__ ((__aligned (8))), which
19774         caused variables to not be properly aligned, which eventually led
19775         to the pointer corruption mentioned above.  (This was a bit hard
19776         to diagnose, unfortunately.)
19777
19778         Several "#define __attribute__(X) /* empty */" code snippets need
19779         to be eradicated from Gnulib to work with non-GCC compilers that
19780         support __attribute__.  The Autoconf way to do this is to test for
19781         each kind of attribute that we want support for, and selectively
19782         enable that in source code.
19783
19784         Fix this problem just for stdlib.h, by adding a test for the
19785         __noreturn__ attribute, and change stdlib.in.h to use that test
19786         when needed.  This technique can be easily generalized to the
19787         other *.in.h files and attributes, and a similar technique can be
19788         used for *.h and *.c files.  This patch is enough to solve the
19789         problem for Emacs + getloadavg, and I thought I'd publish it for
19790         feedback before undertaking further, similar fixes in other
19791         modules.
19792
19793         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19794         because it's not needed for stdlib.h.  It merely substitutes the
19795         value directly into stdlib.h.  We may well need to #define it, or
19796         similar symbols, for other modules, but it's nice to also have an
19797         option to not #define it for applications like Emacs that do not
19798         need it.
19799
19800         * lib/stdlib.in.h (__attribute__): Do not #define.
19801         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19802         be defined only if the _Exit module is also used.
19803         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19805         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19806         platforms.
19807         * modules/_Exit (Files): Add m4/attribute.m4.
19808         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19809         * m4/attribute.m4: New file.
19810
19811 2011-02-12  Bruno Haible  <bruno@clisp.org>
19812
19813         wcsrtombs: Work around bug on native Windows.
19814         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19815         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19816         instead of len.
19817         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19818
19819 2011-02-12  Bruno Haible  <bruno@clisp.org>
19820
19821         mbsrtowcs: Work around bug on native Windows.
19822         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19823         against mingw bug.
19824         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19825
19826 2011-02-12  Bruno Haible  <bruno@clisp.org>
19827
19828         Avoid setlocale bugs in tests.
19829         * modules/btowc (Dependencies): Add setlocale.
19830         * modules/c-strcase (Dependencies): Likewise.
19831         * modules/mbmemcasecmp (Dependencies): Likewise.
19832         * modules/mbmemcasecoll (Dependencies): Likewise.
19833         * modules/mbrtowc (Dependencies): Likewise.
19834         * modules/mbscasecmp (Dependencies): Likewise.
19835         * modules/mbscasestr (Dependencies): Likewise.
19836         * modules/mbschr (Dependencies): Likewise.
19837         * modules/mbscspn (Dependencies): Likewise.
19838         * modules/mbsinit (Dependencies): Likewise.
19839         * modules/mbsncasecmp (Dependencies): Likewise.
19840         * modules/mbsnrtowcs (Dependencies): Likewise.
19841         * modules/mbspbrk (Dependencies): Likewise.
19842         * modules/mbspcasecmp (Dependencies): Likewise.
19843         * modules/mbsrchr (Dependencies): Likewise.
19844         * modules/mbsrtowcs (Dependencies): Likewise.
19845         * modules/mbsspn (Dependencies): Likewise.
19846         * modules/mbsstr (Dependencies): Likewise.
19847         * modules/nl_langinfo (Dependencies): Likewise.
19848         * modules/quotearg (Dependencies): Likewise.
19849         * modules/unicase/locale-language (Dependencies): Likewise.
19850         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19851         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19852         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19853         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19854         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19855         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19856         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19857         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19858         * modules/vasnprintf-posix (Dependencies): Likewise.
19859         * modules/wcrtomb (Dependencies): Likewise.
19860         * modules/wcsnrtombs (Dependencies): Likewise.
19861         * modules/wcsrtombs (Dependencies): Likewise.
19862
19863 2011-02-12  Bruno Haible  <bruno@clisp.org>
19864
19865         setlocale: Workaround native Windows bug.
19866         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19867         succeeds but sets LC_CTYPE to "C", report a failure.
19868         * tests/test-setlocale2.sh: New file.
19869         * tests/test-setlocale2.c: New file.
19870         * modules/setlocale-tests (Files): Add the new files.
19871         (Makefile.am): Enable test-setlocale2.sh test.
19872         * doc/posix-functions/setlocale.texi: Mention workaround.
19873
19874 2011-02-11  Bruno Haible  <bruno@clisp.org>
19875
19876         Tests for module 'setlocale'.
19877         * modules/setlocale-tests: New file.
19878         * tests/test-setlocale1.sh: New file.
19879         * tests/test-setlocale1.c: New file.
19880
19881         New module 'setlocale'.
19882         * lib/locale.in.h (setlocale): New declaration.
19883         * lib/setlocale.c: New file, based on
19884         gettext/gettext-runtime/intl/setlocale.c.
19885         * m4/setlocale.m4: New file.
19886         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19887         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19888         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19889         REPLACE_SETLOCALE.
19890         * modules/setlocale: New file.
19891         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19892         * doc/posix-functions/setlocale.texi: Mention the new module.
19893
19894 2011-02-11  Bruno Haible  <bruno@clisp.org>
19895
19896         Prepare for locale dependent tests on mingw.
19897         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19898         because it has the wrong locale encoding.
19899         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19900         French_France.1252 instead of "fr".
19901         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19902         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19903         because it has the wrong locale encoding.
19904         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19905         native Windows, try Turkish_Turkey.65001.
19906         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19907         Chinese_China.54936.
19908
19909         Prepare for locale dependent tests on mingw.
19910         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19911         differently.
19912         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19913         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19914         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19915         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19916
19917 2011-02-11  Eric Blake  <eblake@redhat.com>
19918
19919         strptime: avoid compiler warnings
19920         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19921         compiler warnings about dead code.
19922         Reported by Daniel P. Berrange.
19923
19924 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19925
19926         doc: update users.txt
19927         * users.txt: Add rcs.
19928
19929 2011-02-10  John W. Eaton  <jwe@gnu.org>
19930
19931         doc: update users.txt
19932         * users.txt: Add octave.
19933
19934 2011-02-10  Jim Meyering  <meyering@redhat.com>
19935
19936         doc: update users.txt
19937         * users.txt: Add iwhd.
19938
19939 2011-02-09  Bruno Haible  <bruno@clisp.org>
19940
19941         gnulib-tool: Make copyright notice adjustment more robust.
19942         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19943         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19944         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19945         License".
19946         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19947
19948 2011-02-06  Bruno Haible  <bruno@clisp.org>
19949
19950         New module 'towctrans'.
19951         * modules/towctrans: New file.
19952         * lib/wctype.in.h (towctrans): New declaration.
19953         * lib/towctrans.c: New file.
19954         * lib/towctrans-impl.h: New file.
19955         * m4/towctrans.m4: New file.
19956         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19957         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19958         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19959         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19960         * doc/posix-functions/towctrans.texi: Mention the new module.
19961
19962 2011-02-06  Bruno Haible  <bruno@clisp.org>
19963
19964         New module 'wctrans'.
19965         * modules/wctrans: New file.
19966         * lib/wctype.in.h (wctrans): New declaration.
19967         * lib/wctrans.c: New file.
19968         * lib/wctrans-impl.h: New file.
19969         * m4/wctrans.m4: New file.
19970         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19971         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19972         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19973         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19974         * doc/posix-functions/wctrans.texi: Mention the new module.
19975
19976 2011-02-06  Bruno Haible  <bruno@clisp.org>
19977
19978         New module 'iswctype'.
19979         * modules/iswctype: New file.
19980         * lib/wctype.in.h (iswctype): New declaration.
19981         * lib/iswctype.c: New file.
19982         * lib/iswctype-impl.h: New file.
19983         * m4/iswctype.m4: New file.
19984         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19985         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19986         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19987         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19988         * doc/posix-functions/iswctype.texi: Mention the new module and the
19989         HP-UX 11.00 problem.
19990
19991 2011-02-06  Bruno Haible  <bruno@clisp.org>
19992
19993         New module 'wctype'.
19994         * modules/wctype: Change to represent the wctype() substitute.
19995         * lib/wctype.in.h (wctype): New declaration.
19996         * lib/wctype.c: New file.
19997         * lib/wctype-impl.h: New file.
19998         * m4/wctype.m4: New file.
19999         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20000         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20001         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20002         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20003         * doc/posix-functions/wctype.texi: Mention the new module and the
20004         HP-UX 11.00 problem.
20005
20006 2011-02-06  Bruno Haible  <bruno@clisp.org>
20007
20008         wctype-h: Ensure wctype_t and wctrans_t are defined.
20009         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20010         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20011         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20012         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20013         HAVE_WCTRANS_T.
20014         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20015
20016 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20017
20018         flock: fix license typo
20019
20020         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20021         omitted.
20022
20023 2011-02-08  Bruno Haible  <bruno@clisp.org>
20024
20025         Split large sed scripts, for HP-UX sed.
20026         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20027         to avoid HP-UX limit of 99 commands, in the near future.
20028         * modules/stdlib (Makefile.am): Likewise.
20029         * modules/unistd (Makefile.am): Likewise.
20030         * modules/wchar (Makefile.am): Likewise.
20031         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20032         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20033         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20034
20035 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20036             Bruno Haible  <bruno@clisp.org>
20037
20038         stdlib: improve random_r modularization
20039         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20040         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20041         you also need the random_r module to get this material right.
20042         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20043         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20044         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20045
20046 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20047
20048         stdlib: don't depend on stdint
20049         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20050         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20051         be independent of whether stdint.h is needed.
20052         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20053         here, instead of ...
20054         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20055         struct random_data should be using the random_r module, not just
20056         the stdlib module (which wouldn't make sense: what package needs
20057         just struct random_data without also needing random_r?).
20058         * modules/stdlib (Depends-on): Remove stdint.
20059
20060         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20061         See the thread rooted at
20062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20063         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20064         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20065         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20066         __VMS)); previously it was always included (via fcntl--.h).
20067         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20068         hand; this is good enough for load averages.  Also, do not use
20069         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20070         flags directly if available and don't bother otherwise.  (Packages
20071         that need the extra reliability should use the modules that define
20072         these flags on older platforms that lack them.)
20073         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20074         fcntl-safer.
20075
20076 2011-02-08  Jim Meyering  <meyering@redhat.com>
20077
20078         di-set.h, ino-map.h: add multiple-inclusion guard
20079         Technically, the guard is required only for ino-map.h, due to its
20080         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20081         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20082         * lib/ino-map.h: Likewise.
20083
20084 2011-02-06  Bruno Haible  <bruno@clisp.org>
20085
20086         iswblank: Ensure declaration on glibc systems.
20087         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20088         * modules/iswblank (Dependencies): Add 'extensions'.
20089         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20090
20091 2011-02-06  Bruno Haible  <bruno@clisp.org>
20092
20093         New module 'iswblank'.
20094         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20095         * modules/iswblank: New file.
20096         * modules/wctype-h (Files): Remove lib/iswblank.c.
20097         (Makefile.am): Substitute GNULIB_ISWBLANK.
20098         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20099         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20100         (gl_WCTYPE_H_DEFAULTS): New macro.
20101         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20102         * modules/iswblank-tests: New file.
20103         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20104         * tests/test-wctype-h.c (main): Remove iswblank tests.
20105         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20106         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20107         of 'wctype-h'.
20108         * NEWS: Mention the change.
20109         * modules/mbchar (Depends-on): Add iswblank.
20110
20111 2011-02-08  Bruno Haible  <bruno@clisp.org>
20112
20113         di-set tests: Refactor.
20114         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20115         unnecessary includes.
20116         (ASSERT): Remove macro.
20117         (main): Make C90 compliant by avoiding variable declaration after
20118         statement.
20119         * modules/di-set-tests (Files): Add tests/macros.h.
20120
20121 2011-02-08  Bruno Haible  <bruno@clisp.org>
20122
20123         ino-map tests: Refactor.
20124         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20125         unnecessary includes.
20126         (ASSERT): Remove macro.
20127         (main): Make C90 compliant by avoiding variable declaration after
20128         statement.
20129         * modules/ino-map-tests (Files): Add tests/macros.h.
20130
20131 2011-02-08  Jim Meyering  <meyering@redhat.com>
20132
20133         di-set: add "const" to a cast
20134         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20135         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20136
20137 2011-02-06  Bruno Haible  <bruno@clisp.org>
20138
20139         Rename module 'wctype' to 'wctype-h'.
20140         * modules/wctype-h: Renamed from modules/wctype.
20141         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20142         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20143         (Files, Depends-on, Makefile.am): Update.
20144         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20145         (Files, Makefile.am): Update.
20146         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20147         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20148         * doc/posix-headers/wctype.texi: Update.
20149         * doc/posix-functions/iswalnum.texi: Update.
20150         * doc/posix-functions/iswalpha.texi: Update.
20151         * doc/posix-functions/iswblank.texi: Update.
20152         * doc/posix-functions/iswcntrl.texi: Update.
20153         * doc/posix-functions/iswdigit.texi: Update.
20154         * doc/posix-functions/iswgraph.texi: Update.
20155         * doc/posix-functions/iswlower.texi: Update.
20156         * doc/posix-functions/iswprint.texi: Update.
20157         * doc/posix-functions/iswpunct.texi: Update.
20158         * doc/posix-functions/iswspace.texi: Update.
20159         * doc/posix-functions/iswupper.texi: Update.
20160         * doc/posix-functions/iswxdigit.texi: Update.
20161         * doc/posix-functions/towlower.texi: Update.
20162         * doc/posix-functions/towupper.texi: Update.
20163         * NEWS: Mention the change.
20164         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20165         * modules/mbchar (Dependencies): Likewise.
20166         * modules/mbswidth (Dependencies): Likewise.
20167         * modules/quotearg (Dependencies): Likewise.
20168         * modules/regex (Dependencies): Likewise.
20169         * modules/wcscasecmp (Dependencies): Likewise.
20170         * modules/wcsncasecmp (Dependencies): Likewise.
20171         * modules/wcwidth (Dependencies): Likewise.
20172
20173 2011-02-06  Bruno Haible  <bruno@clisp.org>
20174
20175         New module 'wcswidth'.
20176         * modules/wcswidth: New file.
20177         * lib/wchar.in.h (wcswidth): New declaration.
20178         * lib/wcswidth.c: New file.
20179         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20180         * m4/wcswidth.m4: New file.
20181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20183         REPLACE_WCSWIDTH.
20184         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20185         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20186         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20187         * doc/posix-functions/wcswidth.texi: Mention the new module.
20188
20189 2011-02-06  Bruno Haible  <bruno@clisp.org>
20190
20191         New module 'wcstok'.
20192         * modules/wcstok: New file.
20193         * lib/wchar.in.h (wcstok): New declaration.
20194         * lib/wcstok.c: New file.
20195         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20196         * m4/wcstok.m4: New file.
20197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20200         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20201         * doc/posix-functions/wcstok.texi: Mention the new module.
20202
20203 2011-02-06  Bruno Haible  <bruno@clisp.org>
20204
20205         New module 'wcsstr'.
20206         * modules/wcsstr: New file.
20207         * lib/wchar.in.h (wcsstr): New declaration.
20208         * lib/wcsstr.c: New file.
20209         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20210         * m4/wcsstr.m4: New file.
20211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20214         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20215         * doc/posix-functions/wcsstr.texi: Mention the new module.
20216
20217 2011-02-06  Bruno Haible  <bruno@clisp.org>
20218
20219         New module 'wcspbrk'.
20220         * modules/wcspbrk: New file.
20221         * lib/wchar.in.h (wcspbrk): New declaration.
20222         * lib/wcspbrk.c: New file.
20223         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20224         * m4/wcspbrk.m4: New file.
20225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20228         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20229         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20230
20231 2011-02-06  Bruno Haible  <bruno@clisp.org>
20232
20233         New module 'wcsspn'.
20234         * modules/wcsspn: New file.
20235         * lib/wchar.in.h (wcsspn): New declaration.
20236         * lib/wcsspn.c: New file.
20237         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20238         * m4/wcsspn.m4: New file.
20239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20242         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20243         * doc/posix-functions/wcsspn.texi: Mention the new module.
20244
20245 2011-02-06  Bruno Haible  <bruno@clisp.org>
20246
20247         New module 'wcscspn'.
20248         * modules/wcscspn: New file.
20249         * lib/wchar.in.h (wcscspn): New declaration.
20250         * lib/wcscspn.c: New file.
20251         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20252         * m4/wcscspn.m4: New file.
20253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20256         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20257         * doc/posix-functions/wcscspn.texi: Mention the new module.
20258
20259 2011-02-06  Bruno Haible  <bruno@clisp.org>
20260
20261         New module 'wcsrchr'.
20262         * modules/wcsrchr: New file.
20263         * lib/wchar.in.h (wcsrchr): New declaration.
20264         * lib/wcsrchr.c: New file.
20265         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20266         * m4/wcsrchr.m4: New file.
20267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20269         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20270         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20271         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20272
20273 2011-02-06  Bruno Haible  <bruno@clisp.org>
20274
20275         New module 'wcschr'.
20276         * modules/wcschr: New file.
20277         * lib/wchar.in.h (wcschr): New declaration.
20278         * lib/wcschr.c: New file.
20279         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20280         * m4/wcschr.m4: New file.
20281         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20282         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20283         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20284         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20285         * doc/posix-functions/wcschr.texi: Mention the new module.
20286
20287 2011-02-06  Bruno Haible  <bruno@clisp.org>
20288
20289         New module 'wcsdup'.
20290         * modules/wcsdup: New file.
20291         * lib/wchar.in.h (wcsdup): New declaration.
20292         * lib/wcsdup.c: New file.
20293         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20294         * m4/wcsdup.m4: New file.
20295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20297         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20298         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20299         * doc/posix-functions/wcsdup.texi: Mention the new module.
20300
20301 2011-02-06  Bruno Haible  <bruno@clisp.org>
20302
20303         New module 'wcsxfrm'.
20304         * modules/wcsxfrm: New file.
20305         * lib/wchar.in.h (wcsxfrm): New declaration.
20306         * lib/wcsxfrm.c: New file.
20307         * lib/wcsxfrm-impl.h: New file.
20308         * m4/wcsxfrm.m4: New file.
20309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20311         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20312         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20313         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20314
20315 2011-02-06  Bruno Haible  <bruno@clisp.org>
20316
20317         New module 'wcscoll'.
20318         * modules/wcscoll: New file.
20319         * lib/wchar.in.h (wcscoll): New declaration.
20320         * lib/wcscoll.c: New file.
20321         * lib/wcscoll-impl.h: New file.
20322         * m4/wcscoll.m4: New file.
20323         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20324         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20325         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20326         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20327         * doc/posix-functions/wcscoll.texi: Mention the new module.
20328
20329 2011-02-06  Bruno Haible  <bruno@clisp.org>
20330
20331         New module 'wcsncasecmp'.
20332         * modules/wcsncasecmp: New file.
20333         * lib/wchar.in.h (wcsncasecmp): New declaration.
20334         * lib/wcsncasecmp.c: New file.
20335         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20336         * m4/wcsncasecmp.m4: New file.
20337         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20338         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20339         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20340         HAVE_WCSNCASECMP.
20341         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20342         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20343
20344 2011-02-06  Bruno Haible  <bruno@clisp.org>
20345
20346         New module 'wcscasecmp'.
20347         * modules/wcscasecmp: New file.
20348         * lib/wchar.in.h (wcscasecmp): New declaration.
20349         * lib/wcscasecmp.c: New file.
20350         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20351         * m4/wcscasecmp.m4: New file.
20352         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20353         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20354         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20355         HAVE_WCSCASECMP.
20356         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20357         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20358
20359 2011-02-05  Bruno Haible  <bruno@clisp.org>
20360
20361         New module 'wcsncmp'.
20362         * modules/wcsncmp: New file.
20363         * lib/wchar.in.h (wcsncmp): New declaration.
20364         * lib/wcsncmp.c: New file.
20365         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20366         * m4/wcsncmp.m4: New file.
20367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20370         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20371         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20372
20373 2011-02-05  Bruno Haible  <bruno@clisp.org>
20374
20375         New module 'wcscmp'.
20376         * modules/wcscmp: New file.
20377         * lib/wchar.in.h (wcscmp): New declaration.
20378         * lib/wcscmp.c: New file.
20379         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20380         * m4/wcscmp.m4: New file.
20381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20384         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20385         * doc/posix-functions/wcscmp.texi: Mention the new module.
20386
20387 2011-02-05  Bruno Haible  <bruno@clisp.org>
20388
20389         New module 'wcsncat'.
20390         * modules/wcsncat: New file.
20391         * lib/wchar.in.h (wcsncat): New declaration.
20392         * lib/wcsncat.c: New file.
20393         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20394         * m4/wcsncat.m4: New file.
20395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20398         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20399         * doc/posix-functions/wcsncat.texi: Mention the new module.
20400
20401 2011-02-05  Bruno Haible  <bruno@clisp.org>
20402
20403         New module 'wcscat'.
20404         * modules/wcscat: New file.
20405         * lib/wchar.in.h (wcscat): New declaration.
20406         * lib/wcscat.c: New file.
20407         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20408         * m4/wcscat.m4: New file.
20409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20412         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20413         * doc/posix-functions/wcscat.texi: Mention the new module.
20414
20415 2011-02-05  Bruno Haible  <bruno@clisp.org>
20416
20417         New module 'wcpncpy'.
20418         * modules/wcpncpy: New file.
20419         * lib/wchar.in.h (wcpncpy): New declaration.
20420         * lib/wcpncpy.c: New file.
20421         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20422         * m4/wcpncpy.m4: New file.
20423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20425         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20426         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20427         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20428
20429 2011-02-05  Bruno Haible  <bruno@clisp.org>
20430
20431         New module 'wcsncpy'.
20432         * modules/wcsncpy: New file.
20433         * lib/wchar.in.h (wcsncpy): New declaration.
20434         * lib/wcsncpy.c: New file.
20435         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20436         * m4/wcsncpy.m4: New file.
20437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20440         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20441         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20442
20443 2011-02-05  Bruno Haible  <bruno@clisp.org>
20444
20445         New module 'wcpcpy'.
20446         * modules/wcpcpy: New file.
20447         * lib/wchar.in.h (wcpcpy): New declaration.
20448         * lib/wcpcpy.c: New file.
20449         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20450         * m4/wcpcpy.m4: New file.
20451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20453         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20454         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20455         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20456
20457 2011-02-05  Bruno Haible  <bruno@clisp.org>
20458
20459         New module 'wcscpy'.
20460         * modules/wcscpy: New file.
20461         * lib/wchar.in.h (wcscpy): New declaration.
20462         * lib/wcscpy.c: New file.
20463         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20464         * m4/wcscpy.m4: New file.
20465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20468         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20469         * doc/posix-functions/wcscpy.texi: Mention the new module.
20470
20471 2011-02-05  Bruno Haible  <bruno@clisp.org>
20472
20473         New module 'wcsnlen'.
20474         * modules/wcsnlen: New file.
20475         * lib/wchar.in.h (wcsnlen): New declaration.
20476         * lib/wcsnlen.c: New file.
20477         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20478         * m4/wcsnlen.m4: New file.
20479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20482         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20483         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20484
20485 2011-02-05  Bruno Haible  <bruno@clisp.org>
20486
20487         New module 'wcslen'.
20488         * modules/wcslen: New file.
20489         * lib/wchar.in.h (wcslen): New declaration.
20490         * lib/wcslen.c: New file.
20491         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20492         * m4/wcslen.m4: New file.
20493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20496         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20497         * doc/posix-functions/wcslen.texi: Mention the new module.
20498
20499 2011-02-05  Bruno Haible  <bruno@clisp.org>
20500
20501         New module 'wmemset'.
20502         * modules/wmemset: New file.
20503         * lib/wchar.in.h (wmemset): New declaration.
20504         * lib/wmemset.c: New file.
20505         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20506         * m4/wmemset.m4: New file.
20507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20509         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20510         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20511         * doc/posix-functions/wmemset.texi: Mention the new module.
20512
20513 2011-02-05  Bruno Haible  <bruno@clisp.org>
20514
20515         New module 'wmemmove'.
20516         * modules/wmemmove: New file.
20517         * lib/wchar.in.h (wmemmove): New declaration.
20518         * lib/wmemmove.c: New file.
20519         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20520         * m4/wmemmove.m4: New file.
20521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20523         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20524         HAVE_WMEMMOVE.
20525         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20526         * doc/posix-functions/wmemmove.texi: Mention the new module.
20527
20528 2011-02-05  Bruno Haible  <bruno@clisp.org>
20529
20530         New module 'wmemcpy'.
20531         * modules/wmemcpy: New file.
20532         * lib/wchar.in.h (wmemcpy): New declaration.
20533         * lib/wmemcpy.c: New file.
20534         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20535         * m4/wmemcpy.m4: New file.
20536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20538         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20539         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20540         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20541
20542 2011-02-05  Bruno Haible  <bruno@clisp.org>
20543
20544         New module 'wmemcmp'.
20545         * modules/wmemcmp: New file.
20546         * lib/wchar.in.h (wmemcmp): New declaration.
20547         * lib/wmemcmp.c: New file.
20548         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20549         * m4/wmemcmp.m4: New file.
20550         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20551         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20552         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20553         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20554         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20555
20556 2011-02-07  Jim Meyering  <meyering@redhat.com>
20557
20558         di-set, ino-map: new modules, from coreutils
20559         * lib/di-set.c: New file.
20560         * lib/di-set.h: Likewise.
20561         * lib/ino-map.c: Likewise.
20562         * lib/ino-map.h: Likewise.
20563         * modules/di-set: Likewise.
20564         * modules/di-set-tests: Likewise.
20565         * modules/ino-map: Likewise.
20566         * modules/ino-map-tests: Likewise.
20567         * tests/test-di-set.c: Likewise.
20568         * tests/test-ino-map.c: Likewise.
20569
20570 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20571
20572         getloadavg: merge minor changes from Emacs
20573
20574         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20575         (getloadavg): Use memset, not bzero.
20576
20577         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20578         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20579         clash (bug#86).
20580
20581 2010-11-14  Bruno Haible  <bruno@clisp.org>
20582
20583         Allow multiple gnulib generated replacements to coexist.
20584         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20585         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20586         * lib/langinfo.in.h (nl_item): Likewise.
20587         * lib/math.in.h (_NaN, NAN): Likewise.
20588         * lib/netdb.in.h (struct addrinfo): Likewise.
20589         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20590         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20591         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20592         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20593         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20594         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20595         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20596         pthread_mutexattr_init, pthread_mutexattr_settype,
20597         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20598         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20599         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20600         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20601         * lib/sched.in.h (struct sched_param): Likewise.
20602         * lib/se-selinux.in.h (security_class_t, security_context_t,
20603         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20604         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20605         lsetfilecon, fsetfilecon, security_check_context,
20606         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20607         Likewise.
20608         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20609         Likewise.
20610         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20611         _gl_function_taking_int_returning_void_t, union sigval,
20612         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20613         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20614         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20615         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20616         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20617         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20618         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20619         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20620         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20621         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20622         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20623         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20624         socklen_t, rpl_fd_isset): Likewise.
20625         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20626         * lib/sys_time.in.h (struct timeval): Likewise.
20627         * lib/sys_times.in.h (struct tms): Likewise.
20628         * lib/sys_utsname.in.h (struct utsname):
20629         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20630         * lib/unistd.in.h (getpagesize): Likewise.
20631         * lib/wchar.in.h (mbstate_t): Likewise.
20632         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20633         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20634         towlower, towupper): Likewise.
20635         Reported by Sam Steingold <sds@gnu.org>.
20636
20637 2011-02-05  Eric Blake  <eblake@redhat.com>
20638
20639         unsetenv: work around Haiku issues
20640         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20641         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20642
20643 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20644
20645         libposix: avoid calling error() within libposix
20646         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20647         is defined.
20648
20649 2011-02-05  Eric Blake  <eblake@redhat.com>
20650
20651         strerror_r-posix: port to cygwin
20652         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20653         implementation.
20654         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20655         * tests/test-strerror_r.c (main): Fix test.
20656         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20657         issue.
20658
20659 2011-02-05  Bruno Haible  <bruno@clisp.org>
20660
20661         New module 'wmemchr'.
20662         * modules/wmemchr: New file.
20663         * lib/wchar.in.h (wmemchr): New declaration.
20664         * lib/wmemchr.c: New file.
20665         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20666         * m4/wmemchr.m4: New file.
20667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20669         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20670         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20671         * doc/posix-functions/wmemchr.texi: Mention the new module.
20672
20673 2011-02-04  Eric Blake  <eblake@redhat.com>
20674
20675         fdopendir: detect FreeBSD bug
20676         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20677         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20678
20679 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20680
20681         stdbool: do not define HAVE_STDBOOL_H
20682         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20683         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20684         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20685         imported from the latest Autoconf git.  It was motivated by Emacs,
20686         which uses gnulib but does not need HAVE_STDBOOL_H.
20687
20688 2011-02-04  Bruno Haible  <bruno@clisp.org>
20689
20690         wcsnrtombs: Prepare for new module wwcsnrtombs.
20691         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20692         * lib/wcsnrtombs.c: Include it.
20693         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20694
20695         wcsrtombs: Prepare for new module wwcsrtombs.
20696         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20697         * lib/wcsrtombs.c: Include it.
20698         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20699
20700         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20701         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20702         * lib/mbsnrtowcs.c: Include it.
20703         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20704
20705         mbsrtowcs: Prepare for new module mbsrtowwcs.
20706         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20707         * lib/mbsrtowcs.c: Include it.
20708         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20709
20710 2011-02-04  Bruno Haible  <bruno@clisp.org>
20711
20712         vasnprintf: Reduce use of malloc for small format strings.
20713         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20714         (arguments): Add room for the first 7 arguments.
20715         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20716         (char_directives, u8_directives, u16_directives, u32_directives): Add
20717         room for the first 7 directives.
20718         * lib/printf-parse.c: Include <string.h>.
20719         (PRINTF_PARSE): Change memory handling code so that it uses the first
20720         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20721         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20722         Reported by Pádraig Brady <P@draigbrady.com>.
20723
20724 2011-01-31  Eric Blake  <eblake@redhat.com>
20725
20726         dup2: work around Haiku bug
20727         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20728         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20729         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20730         * tests/test-dup2.c (main): Enhance test.
20731
20732 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20733
20734         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20735         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20736         declared by eglibc 2.11.2.
20737         * lib/stdio.in.h: Likewise.
20738
20739 2011-01-31  Eric Blake  <eblake@redhat.com>
20740
20741         ignore-value: add missing test dependency
20742         * tests/test-ignore-value.c: Revert previous change; stdio.h
20743         provides off_t.
20744         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20745
20746 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20747
20748         mktime: clarify long_int width checking
20749         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20750         the top level, to make it clearer that the assumption about
20751         long_int width is being checked.  See
20752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20753
20754 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20755
20756         ignore-value: Fix self-test.
20757         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20758
20759 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20760
20761         TYPE_MAXIMUM: avoid theoretically undefined behavior
20762         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20763         negative number, which the C Standard says has undefined behavior.
20764         In practice this is not a problem, but might as well do it by the book.
20765         Reported by Rich Felker and Eric Blake; see
20766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20767         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20768         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20769         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20770         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20771         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20772         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20773
20774         mktime: #undef mktime before #defining it
20775         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20776
20777         mktime: systematically normalize tm_isdst comparisons
20778         * lib/mktime.c (isdst_differ): New function.
20779         (__mktime_internal): Use it systematically for all isdst comparisons.
20780         This completes the fix for libc BZ #6723, and removes the need for
20781         normalizing tm_isdst.  See
20782         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20783         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20784
20785         mktime: fix some integer overflow issues and sidestep the rest
20786
20787         This was prompted by a bug report by Benjamin Lindner for MinGW
20788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20789         His bug is due to signed integer overflow (0 - INT_MIN), and I
20790         I scanned through mktime.c looking for other integer overflow
20791         problems, fixing all the bugs I found.
20792
20793         Although the C Standard says the resulting code is still not safe
20794         in the presence of integer overflow, in practice it should be good
20795         enough for all real-world two's-complement implementations, except
20796         for debugging environments that deliberately trap on integer
20797         overflow (e.g., gcc -ftrapv).
20798
20799         * lib/mktime.c (WRAPV): New macro.
20800         (SHR): Also check that long_int and time_t shift right in the
20801         usual way, before using the fast-but-unportable method.
20802         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20803         used.  The code already assumed two's complement, so there's
20804         no need to test for alternatives.  All uses removed.
20805         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20806         the C standard.  Problem reported by Rich Felker in
20807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20808         (twos_complement_arithmetic): Also check long_int and time_t.
20809         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20810         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20811         (__mktime_internal): Avoid integer overflow with unary subtraction
20812         in two instances where -1 - X is an adequate replacement for -X,
20813         since the calculations are approximate.
20814
20815 2011-01-29  Eric Blake  <eblake@redhat.com>
20816
20817         mktime: avoid infinite loop
20818         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20819         type; behavior is still undefined but portable to all known targets.
20820         Reported by Rich Felker.
20821
20822 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20823
20824         rename, unlink, same-inode: Relicense.
20825         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20826         * modules/unlink (License): Likewise.
20827         * modules/same-inode (License): Likewise.
20828
20829 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20830
20831         mktime: avoid problems on NetBSD 5 / i386
20832         * lib/mktime.c (long_int): New type.  This works around a problem
20833         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20834         but time_t is 64 bits, and where I expect the existing code is
20835         wrong in some cases.
20836         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20837         (ydhms_diff): Bring back the compile-time check for wide-enough
20838         year and yday.
20839
20840         mktime: fix misspelling in comment
20841         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20842         This merges all recent glibc changes of importance.
20843
20844 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20845
20846         move-if-change: cope with concurrent mv of identical file.
20847         * build-aux/move-if-change (CMPPROG): Accept environment
20848         variable as an override for `cmp'.
20849         (usage): Document CMPPROG.
20850         Adjust comparison to drop stdout.  Cope with failure of mv if
20851         the target file exists and is identical to the source, for
20852         parallel builds.
20853         Report from H.J. Lu against binutils in PR binutils/12283.
20854
20855 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20856
20857         * users.txt: Mention sharutils.
20858
20859 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20860
20861         * users.txt: Mention OATH Toolkit.
20862
20863 2011-01-27  Bruno Haible  <bruno@clisp.org>
20864
20865         Prepare for supporting FreeBSD 10.
20866         * build-aux/config.libpath: Remove handling of freebsd1*.
20867
20868 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20869
20870         Prepare for supporting FreeBSD 10.
20871         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20872         match FreeBSD 10.0.
20873
20874 2011-01-27  Bruno Haible  <bruno@clisp.org>
20875
20876         vma-iter, get-rusage-as: Add OpenBSD support.
20877         * modules/vma-iter (configure.ac): Test for mquery.
20878         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20879         * lib/vma-iter.c: Include <sys/mman.h>.
20880         (vma_iterate): Add an implementation based on mquery().
20881         * lib/resource-ext.h (get_rusage_as): Update comments.
20882         * lib/get-rusage-as.c: Likewise.
20883         * lib/get-rusage-data.c: Likewise.
20884
20885 2011-01-26  Karl Berry  <karl@gnu.org>
20886
20887         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20888         variables to make it easier to override the makeinfo program used.
20889
20890 2011-01-26  Eric Blake  <eblake@redhat.com>
20891
20892         fcntl: work around Haiku F_DUPFD bugs
20893         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20894         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20895         cloexec bit on duplication.
20896         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20897
20898 2011-01-26  Bruno Haible  <bruno@clisp.org>
20899
20900         Enable memory leak tests on AIX.
20901         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20902         * tests/test-fprintf-posix3.c (main): Likewise.
20903
20904 2011-01-26  Bruno Haible  <bruno@clisp.org>
20905
20906         Tests for module 'get-rusage-data'.
20907         * modules/get-rusage-data-tests: New file.
20908         * tests/test-get-rusage-data.c: New file.
20909
20910         New module 'get-rusage-data'.
20911         * lib/resource-ext.h (get_rusage_data): New declaration.
20912         * lib/get-rusage-data.c: New file.
20913         * modules/get-rusage-data: New file.
20914
20915 2011-01-25  Bruno Haible  <bruno@clisp.org>
20916
20917         get-rusage-as: Allow for easier testing.
20918         * lib/resource-ext.h (get_rusage_as): Add comment.
20919         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20920         (main): New function for interactive testing.
20921
20922 2011-01-25  Bruno Haible  <bruno@clisp.org>
20923
20924         vma-iter: Treat Haiku like BeOS.
20925         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20926         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20927
20928 2011-01-25  Eric Blake  <eblake@redhat.com>
20929
20930         c-stack: fix regression on cygwin when libsigsegv is present
20931         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20932
20933 2011-01-24  Bruno Haible  <bruno@clisp.org>
20934
20935         vma-iter: Avoid empty intervals.
20936         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20937         on an empty interval.
20938
20939 2011-01-24  Jim Meyering  <meyering@redhat.com>
20940
20941         u64: remove unnecessary #include
20942         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20943
20944 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20945
20946         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20947         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20948
20949 2011-01-23  Bruno Haible  <bruno@clisp.org>
20950
20951         New module 'vma-iter'.
20952         * lib/vma-iter.h: New file.
20953         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20954         * modules/vma-iter: New file.
20955         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20956         for get_rusage_as_via_iterator.
20957         (vma_iterate_callback): New function.
20958         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20959         * modules/get-rusage-as (Depends-on): Add vma-iter.
20960
20961 2011-01-23  Bruno Haible  <bruno@clisp.org>
20962
20963         uninorm: Tweak includes.
20964         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20965         Reported by Jim Meyering.
20966
20967 2011-01-23  Bruno Haible  <bruno@clisp.org>
20968
20969         get-rusage-as: Improve on NetBSD.
20970         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20971         /proc, like on FreeBSD.
20972
20973 2011-01-23  Jim Meyering  <meyering@redhat.com>
20974
20975         xreadlink.h: remove unnecessary #include
20976         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20977
20978         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20979         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20980
20981 2011-01-23  Bruno Haible  <bruno@clisp.org>
20982
20983         get-rusage-as: Fix bug.
20984         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20985         original limit when aborting the first loop.
20986
20987 2011-01-23  Bruno Haible  <bruno@clisp.org>
20988
20989         wctype: Ensure valid C syntax.
20990         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20991         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20992
20993 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20994
20995         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20996         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20997         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20998         as they are needed only for configure's test case.
20999         This removes two unnecessary symbols from config.h.
21000
21001         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21002         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21004         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21005         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21006         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21007         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21008         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21009         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21010         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21011         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21012         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21013         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21014         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21015         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21016         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21017         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21018         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21019
21020 2011-01-21  Eric Blake  <eblake@redhat.com>
21021
21022         maintainer-makefile: work with older git for submodule check
21023         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21024         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21025         Reported by Matthias Bolte.
21026
21027         bootstrap: minor portability fixes
21028         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21029         (usage): Omit leading capital and trailing . on help phrases, per
21030         GNU Coding Standards.
21031         (check_versions, top level): Prefix messages with script name.
21032
21033 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21034
21035         bootstrap: support --no-git option
21036         * build-aux/bootstrap: Add --no-git option, to be used when
21037         --gnulib-srcdir points to the exact desired checkout.
21038
21039 2011-01-21  Eric Blake  <eblake@redhat.com>
21040
21041         strerror_r-posix: work with glibc 2.13
21042         * lib/strerror_r.c (strerror_r): Fix return type.
21043
21044 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21045             Bruno Haible  <bruno@clisp.org>
21046
21047         uN_strstr: New unit tests.
21048         * modules/unistr/u8-strstr-tests: New file.
21049         * modules/unistr/u16-strstr-tests: New file.
21050         * modules/unistr/u32-strstr-tests: New file.
21051         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21052         * tests/unistr/test-u8-strstr.c: New file.
21053         * tests/unistr/test-u16-strstr.c: New file.
21054         * tests/unistr/test-u32-strstr.c: New file.
21055
21056 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21057             Bruno Haible  <bruno@clisp.org>
21058
21059         Make uN_strstr functions O(n) worst-case.
21060         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21061         16-bit and 32-bit unit cases, use the unibyte algorithm from
21062         lib/mbsstr.c.
21063         * lib/unistr/u8-strstr.c: Include <string.h>.
21064         (UNIT_IS_UINT8_T): New macro.
21065         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21066         (U_STRLEN, U_STRNLEN): New macros.
21067         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21068         (U_STRLEN, U_STRNLEN): New macros.
21069         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21070         (configure.ac): Update required libunistring version.
21071         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21072         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21073         malloca.
21074         (configure.ac): Update required libunistring version.
21075         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21076         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21077         malloca.
21078         (configure.ac): Update required libunistring version.
21079
21080 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21081             Bruno Haible  <bruno@clisp.org>
21082
21083         Prepare for faster uN_strstr functions.
21084         * lib/str-kmp.h: Support definable UNITs.
21085         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21086         needle_len argument.
21087         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21088         * lib/mbscasestr.c (mbscasestr): Likewise.
21089
21090 2011-01-21  Pádraig Brady <P@draigBrady.com>
21091
21092         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21093         * tests/test-malloca.c (main): Unset the environment variable
21094         to greatly speed up the test.
21095         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21096         * modules/malloca-tests: Depend on unsetenv.
21097
21098 2011-01-21  Pádraig Brady <P@draigBrady.com>
21099
21100         ignore-value: remove stdint dependency
21101         * lib/ignore-value.h: Remove <stdint.h>
21102         * modules/ignore-value: Remove stdint dependency.
21103
21104 2011-01-21  Jim Meyering  <meyering@redhat.com>
21105
21106         maint.mk: adjust variable name to be consistent with other gl_ vars
21107         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21108         to be lower case.
21109
21110 2011-01-20  Jim Meyering  <meyering@redhat.com>
21111
21112         maint.mk: make "check" depend on public-submodule-commit by default
21113         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21114
21115 2011-01-20  Bruno Haible  <bruno@clisp.org>
21116
21117         mbfile, mbiter: Complete change from 2008-12-21.
21118         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21119         * m4/mbiter.m4 (gl_MBITER): Likewise.
21120
21121 2011-01-20  Jim Meyering  <meyering@redhat.com>
21122
21123         init.sh: insert space between each function name and "()"
21124         * tests/init.sh: Make it a little easier to see that a function's
21125         name is "warn_", and not "warn" when looking at the first part of
21126         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21127
21128 2011-01-20  Jim Meyering  <meyering@redhat.com>
21129
21130         mountlist: clean up code formatting
21131         * lib/mountlist.c (read_file_system_list): Split a long line,
21132         correct bracing style, use NULL in place of "(struct statfs *)0",
21133         don't parenthesize return value, add spaces around "=" and after
21134         ";-in-for-stmt".
21135
21136 2011-01-14  Markus Duft <mduft@gentoo.org>
21137
21138         mountlist: add support for Interix
21139         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21140         Apply statvfs to all entries of /dev/fs.
21141         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21142         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21143
21144 2011-01-20  Jim Meyering  <meyering@redhat.com>
21145
21146         maint.mk: improve the public-submodule-commit rule
21147         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21148         to suppress printing of its commands... unless V=1.
21149         Add git submodule's --quiet option to suppress printing of e.g.,
21150         "Entering gnulib" output.
21151         "cd" into $(srcdir) before running git submodule.
21152
21153 2011-01-20  Bruno Haible  <bruno@clisp.org>
21154
21155         include_next: Fix bug introduced on 2011-01-18.
21156         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21157         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21158         ac_cv_header_... variable if the second argument is not 'check'.
21159         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21160         gl_NEXT_HEADERS_INTERNAL.
21161
21162 2011-01-20  Bruno Haible  <bruno@clisp.org>
21163
21164         Allow the user to avoid the GNULIB_TEST_* macros.
21165         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21166         Suggested by Paul Eggert.
21167
21168 2011-01-14  Jim Meyering  <meyering@redhat.com>
21169
21170         bootstrap: avoid failure when there is no .gitmodules file
21171         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21172         has been assigned to, even when its value is the empty string.
21173         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21174         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21175         Reported by John W. Eaton <jwe@gnu.org>.
21176
21177 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21178
21179         assume <ctype.h>, ..., <time.h> exist
21180         For years gnulib has been assuming the existence of the headers
21181         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21182         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21183         them, since they don't appear to be needed.
21184         * README (Portability guidelines): Document this.
21185         * lib/flock.c: Assume <fcntl.h> exists.
21186         * lib/regex_internal.h: Assume <locale.h> exists.
21187         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21189         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21190         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21191         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21192         * m4/regex.m4 (gl_REGEX): Likewise.
21193         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21194         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21195         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21196         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21197         * tests/test-argp.c: Likewise.
21198         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21199
21200         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21201         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21202         AA_APPLE_UNIVERSAL_BUILD.  See
21203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21204         * NEWS: Document this.
21205
21206 2011-01-19  Eric Blake  <eblake@redhat.com>
21207
21208         c-stack: assume stack overflow if SA_SIGINFO unsupported
21209         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21210         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21211         sigaction will work.
21212         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21213         behavior match Linux.
21214         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21215
21216         stdbool-tests: accomodate Haiku
21217         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21218
21219         binary-io: fix O_TEXT on Haiku
21220         * modules/binary-io (Depends-on): Add fcntl-h.
21221         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21222         than blindly undefining O_TEXT.
21223         Reported by Scott McCreary.
21224
21225 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21226
21227         include_next: do not check for standard headers like stddef.h
21228
21229         I found this problem when modifying Emacs to use gnulib.
21230         I noticed that it added HAVE_STDDEF_H to config.h, even though
21231         gnulib always assumes <stddef.h> exists as per README and this
21232         symbol is unnecessary.
21233         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21234         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21235         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21236         faster for headers like stddef.h that are known to exist.
21237         (gl_CHECK_NEXT_HEADERS): Use it.
21238         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21239         rather than gl_CHECK_NEXT_HEADERS.
21240         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21241         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21242
21243 2011-01-18  Eric Blake  <eblake@redhat.com>
21244
21245         ansi-c++-opt: skip C++ dependency style if C++ is unused
21246         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21247         tests when we know C++ compilation is not desired.
21248         Reported by Scott McCreary.
21249
21250 2011-01-18  Bruno Haible  <bruno@clisp.org>
21251
21252         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21253         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21254         (main): Perform test also when getrlimit and setrlimit don't exist or
21255         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21256         limiting the address space size using setrlimit, compare the address
21257         space size before and after the the test.
21258         * tests/test-dprintf-posix2.c: Likewise.
21259         * tests/test-fprintf-posix3.sh: Update skip messages.
21260         * tests/test-dprintf-posix2.sh: Likewise.
21261         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21262         * modules/dprintf-posix-tests (Depends-on): Likewise.
21263         Reported by Bruce Korb <bkorb@gnu.org> and
21264         Gary V. Vaughan <gary@gnu.org>.
21265
21266 2011-01-18  Bruno Haible  <bruno@clisp.org>
21267
21268         get-rusage-as: Improvement for Cygwin.
21269         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21270         areas that are merely reserved.
21271
21272 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21273
21274         strftime: remove dependencies on multibyte modules
21275
21276         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21277         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21278         only if __osf__ is defined, and I suspect OSF doesn't need these
21279         other modules.  If my guess is wrong, we'll need to come up with a
21280         variant of strftime that doesn't need the multibyte modules.
21281
21282         I discovered this problem when attempting modify Emacs to use the
21283         strftime module.  With the previous gnulib, this caused Emacs to
21284         need 31 new files, ranging from lib/config.charset to
21285         m4/wint_t.m4.  This was overkill and I expect would be offputting
21286         to the Emacs maintainers.  After this change, only 6 new files are
21287         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21288         stdbool.m4, and tm_gmtoff.m4.
21289
21290         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21291         Suggested by Bruno Haible in
21292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21293         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21294         and do not check for wchar.h.
21295         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21296         (Depends-on): Remove mbrlen, mbsinit, wchar.
21297
21298 2011-01-18  Bruno Haible  <bruno@clisp.org>
21299
21300         Tests for module 'get-rusage-as'.
21301         * modules/get-rusage-as-tests: New file.
21302         * tests/test-get-rusage-as.c: New file.
21303
21304         New module 'get-rusage-as'.
21305         * modules/get-rusage-as: New file.
21306         * lib/resource-ext.h: New file.
21307         * lib/get-rusage-as.c: New file.
21308
21309 2011-01-17  Eric Blake  <eblake@redhat.com>
21310
21311         sigaction: relax license from LGPLv3+ to LGPLv2+
21312         * modules/sigaction (License): Relax to LGPLv2+.
21313
21314 2011-01-14  Bruno Haible  <bruno@clisp.org>
21315
21316         filemode: Make function declarations usable in C++ mode.
21317         * lib/filemode.h: Enclose function declarations in extern "C" block.
21318         Reported by John W. Eaton <jwe@gnu.org>.
21319
21320 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21321
21322         save-cwd: no longer include "xgetcwd.h"
21323         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21324         This avoids a compilation failure in projects that use save-cwd
21325         without also using the xgetcwd module.
21326
21327 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21328
21329         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21330         This is so that a program like Emacs, which needs only dtoastr,
21331         does not have to bother with distributing and compiling ftoastr
21332         and ldtoastr.
21333         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21334         * modules/dtoastr, modules/ldtoastr: New files.
21335         * modules/ftoastr: Now works just for 'float'.
21336         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21337         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21338         dtoastr.c, ldtoastr.c.
21339
21340 2011-01-11  Jim Meyering  <meyering@redhat.com>
21341
21342         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21343         There is no need to work around the lack of the fchdir function,
21344         since gnulib can now provide a replacement when required.
21345         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21346         * modules/save-cwd (Depends-on): Add fchdir.
21347
21348 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21349
21350         openat, save-cwd: avoid xmalloc
21351
21352         This removes a direct (but undocumented) dependency of openat on
21353         xalloc, along with an indirect dependency via save-cwd.  It also
21354         removes a dependency of save-cwd on xgetcwd, and thereby
21355         indirectly on xalloc.  This change causes the openat substitute
21356         to fall back on save_cwd when memory is tight, and for save_cwd to
21357         fail instead of dying when memory is tight, but that's good enough.
21358         Problem and initial idea for fix reported by Bastien Roucaries in
21359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21360
21361         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21362         xalloc.h (for xmalloc).
21363         (openat_proc_name): Use malloc, not xmalloc.
21364         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21365         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21366
21367         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21368         This avoids heap allocation for file names whose lengths are in
21369         the range 512..1023, with the upper bound increasing to at most
21370         4031 depending on the platform's PATH_MAX.  (We do not want
21371         pathmax.h here as it might supply a non-constant PATH_MAX.)
21372         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21373         Perhaps they should be moved to malloca.h?
21374         (OPENAT_BUFFER_SIZE): Use them.
21375
21376 2011-01-10  Bruno Haible  <bruno@clisp.org>
21377
21378         doc: Update users.txt.
21379         * users.txt: Add recutils.
21380
21381 2011-01-09  Karl Berry  <karl@gnu.org>
21382
21383         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21384
21385         * doc/configmake.texi: New file.
21386         * doc/gnulib.texi: Include it.
21387         * modules/configmake: Move documentation from here.
21388
21389 2011-01-09  Bruno Haible  <bruno@clisp.org>
21390
21391         Update to Unicode 6.0.0.
21392         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21393         (get_lbp): Update for Unicode 6.0.0.
21394         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21395         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21396         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21397         U+11001, U+11038..U+11046. Remove U+06DE.
21398         (uc_width): Fix bounds of planes.
21399         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21400         lib/uniwidth/width.c.
21401         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21402         trailing whitespace removed.
21403         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21404         without comments, but with the original copyright notice.
21405         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21406         * lib/unicase/ignorable.h: Likewise.
21407         * lib/unicase/tocasefold.h: Likewise.
21408         * lib/unicase/tolower.h: Likewise.
21409         * lib/unicase/totitle.h: Likewise.
21410         * lib/unicase/toupper.h: Likewise.
21411         * lib/unictype/bidi_of.h: Likewise.
21412         * lib/unictype/blocks.h: Likewise.
21413         * lib/unictype/categ_C.h: Likewise.
21414         * lib/unictype/categ_Cn.h: Likewise.
21415         * lib/unictype/categ_L.h: Likewise.
21416         * lib/unictype/categ_Ll.h: Likewise.
21417         * lib/unictype/categ_Lm.h: Likewise.
21418         * lib/unictype/categ_Lo.h: Likewise.
21419         * lib/unictype/categ_Lu.h: Likewise.
21420         * lib/unictype/categ_M.h: Likewise.
21421         * lib/unictype/categ_Mc.h: Likewise.
21422         * lib/unictype/categ_Me.h: Likewise.
21423         * lib/unictype/categ_Mn.h: Likewise.
21424         * lib/unictype/categ_N.h: Likewise.
21425         * lib/unictype/categ_Nd.h: Likewise.
21426         * lib/unictype/categ_No.h: Likewise.
21427         * lib/unictype/categ_P.h: Likewise.
21428         * lib/unictype/categ_Po.h: Likewise.
21429         * lib/unictype/categ_S.h: Likewise.
21430         * lib/unictype/categ_Sc.h: Likewise.
21431         * lib/unictype/categ_Sk.h: Likewise.
21432         * lib/unictype/categ_Sm.h: Likewise.
21433         * lib/unictype/categ_So.h: Likewise.
21434         * lib/unictype/categ_of.h: Likewise.
21435         * lib/unictype/combining.h: Likewise.
21436         * lib/unictype/ctype_alnum.h: Likewise.
21437         * lib/unictype/ctype_alpha.h: Likewise.
21438         * lib/unictype/ctype_graph.h: Likewise.
21439         * lib/unictype/ctype_lower.h: Likewise.
21440         * lib/unictype/ctype_print.h: Likewise.
21441         * lib/unictype/ctype_punct.h: Likewise.
21442         * lib/unictype/ctype_upper.h: Likewise.
21443         * lib/unictype/decdigit.h: Likewise.
21444         * lib/unictype/digit.h: Likewise.
21445         * lib/unictype/numeric.h: Likewise.
21446         * lib/unictype/pr_alphabetic.h: Likewise.
21447         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21448         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21449         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21450         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21451         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21452         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21453         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21454         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21455         * lib/unictype/pr_case_ignorable.h: Likewise.
21456         * lib/unictype/pr_cased.h: Likewise.
21457         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21458         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21459         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21460         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21461         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21462         * lib/unictype/pr_combining.h: Likewise.
21463         * lib/unictype/pr_composite.h: Likewise.
21464         * lib/unictype/pr_currency_symbol.h: Likewise.
21465         * lib/unictype/pr_decimal_digit.h: Likewise.
21466         * lib/unictype/pr_deprecated.h: Likewise.
21467         * lib/unictype/pr_format_control.h: Likewise.
21468         * lib/unictype/pr_grapheme_base.h: Likewise.
21469         * lib/unictype/pr_grapheme_extend.h: Likewise.
21470         * lib/unictype/pr_grapheme_link.h: Likewise.
21471         * lib/unictype/pr_id_continue.h: Likewise.
21472         * lib/unictype/pr_id_start.h: Likewise.
21473         * lib/unictype/pr_ideographic.h: Likewise.
21474         * lib/unictype/pr_lowercase.h: Likewise.
21475         * lib/unictype/pr_math.h: Likewise.
21476         * lib/unictype/pr_numeric.h: Likewise.
21477         * lib/unictype/pr_other_alphabetic.h: Likewise.
21478         * lib/unictype/pr_other_id_continue.h: Likewise.
21479         * lib/unictype/pr_other_math.h: Likewise.
21480         * lib/unictype/pr_punctuation.h: Likewise.
21481         * lib/unictype/pr_sentence_terminal.h: Likewise.
21482         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21483         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21484         * lib/unictype/pr_unified_ideograph.h: Likewise.
21485         * lib/unictype/pr_uppercase.h: Likewise.
21486         * lib/unictype/pr_xid_continue.h: Likewise.
21487         * lib/unictype/pr_xid_start.h: Likewise.
21488         * lib/unictype/scripts.h: Likewise.
21489         * lib/unictype/scripts_byname.gperf: Likewise.
21490         * lib/unictype/sy_java_ident.h: Likewise.
21491         * lib/unigbrk/gbrkprop.h: Likewise.
21492         * lib/unilbrk/lbrkprop1.h: Likewise.
21493         * lib/unilbrk/lbrkprop2.h: Likewise.
21494         * lib/uninorm/decomposition-table2.h: Likewise.
21495         * lib/uniwbrk/wbrkprop.h: Likewise.
21496         * tests/unicase/test-cased.c: Likewise.
21497         * tests/unicase/test-ignorable.c: Likewise.
21498         * tests/unicase/test-uc_tolower.c: Likewise.
21499         * tests/unicase/test-uc_totitle.c: Likewise.
21500         * tests/unicase/test-uc_toupper.c: Likewise.
21501         * tests/unictype/test-categ_C.c: Likewise.
21502         * tests/unictype/test-categ_Cn.c: Likewise.
21503         * tests/unictype/test-categ_L.c: Likewise.
21504         * tests/unictype/test-categ_Ll.c: Likewise.
21505         * tests/unictype/test-categ_Lm.c: Likewise.
21506         * tests/unictype/test-categ_Lo.c: Likewise.
21507         * tests/unictype/test-categ_Lu.c: Likewise.
21508         * tests/unictype/test-categ_M.c: Likewise.
21509         * tests/unictype/test-categ_Mc.c: Likewise.
21510         * tests/unictype/test-categ_Me.c: Likewise.
21511         * tests/unictype/test-categ_Mn.c: Likewise.
21512         * tests/unictype/test-categ_N.c: Likewise.
21513         * tests/unictype/test-categ_Nd.c: Likewise.
21514         * tests/unictype/test-categ_No.c: Likewise.
21515         * tests/unictype/test-categ_P.c: Likewise.
21516         * tests/unictype/test-categ_Po.c: Likewise.
21517         * tests/unictype/test-categ_S.c: Likewise.
21518         * tests/unictype/test-categ_Sc.c: Likewise.
21519         * tests/unictype/test-categ_Sk.c: Likewise.
21520         * tests/unictype/test-categ_Sm.c: Likewise.
21521         * tests/unictype/test-categ_So.c: Likewise.
21522         * tests/unictype/test-ctype_alnum.c: Likewise.
21523         * tests/unictype/test-ctype_alpha.c: Likewise.
21524         * tests/unictype/test-ctype_graph.c: Likewise.
21525         * tests/unictype/test-ctype_lower.c: Likewise.
21526         * tests/unictype/test-ctype_print.c: Likewise.
21527         * tests/unictype/test-ctype_punct.c: Likewise.
21528         * tests/unictype/test-ctype_upper.c: Likewise.
21529         * tests/unictype/test-decdigit.h: Likewise.
21530         * tests/unictype/test-digit.h: Likewise.
21531         * tests/unictype/test-numeric.h: Likewise.
21532         * tests/unictype/test-pr_alphabetic.c: Likewise.
21533         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21534         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21535         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21536         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21537         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21538         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21539         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21540         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21541         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21542         * tests/unictype/test-pr_cased.c: Likewise.
21543         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21544         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21545         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21546         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21547         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21548         * tests/unictype/test-pr_combining.c: Likewise.
21549         * tests/unictype/test-pr_composite.c: Likewise.
21550         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21551         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21552         * tests/unictype/test-pr_deprecated.c: Likewise.
21553         * tests/unictype/test-pr_format_control.c: Likewise.
21554         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21555         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21556         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21557         * tests/unictype/test-pr_id_continue.c: Likewise.
21558         * tests/unictype/test-pr_id_start.c: Likewise.
21559         * tests/unictype/test-pr_ideographic.c: Likewise.
21560         * tests/unictype/test-pr_lowercase.c: Likewise.
21561         * tests/unictype/test-pr_math.c: Likewise.
21562         * tests/unictype/test-pr_numeric.c: Likewise.
21563         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21564         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21565         * tests/unictype/test-pr_other_math.c: Likewise.
21566         * tests/unictype/test-pr_punctuation.c: Likewise.
21567         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21568         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21569         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21570         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21571         * tests/unictype/test-pr_uppercase.c: Likewise.
21572         * tests/unictype/test-pr_xid_continue.c: Likewise.
21573         * tests/unictype/test-pr_xid_start.c: Likewise.
21574         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21575         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21576         changes.
21577         * lib/unictype/categ_Cc.h: Likewise.
21578         * lib/unictype/categ_Cf.h: Likewise.
21579         * lib/unictype/categ_Co.h: Likewise.
21580         * lib/unictype/categ_Cs.h: Likewise.
21581         * lib/unictype/categ_Lt.h: Likewise.
21582         * lib/unictype/categ_Nl.h: Likewise.
21583         * lib/unictype/categ_Pc.h: Likewise.
21584         * lib/unictype/categ_Pd.h: Likewise.
21585         * lib/unictype/categ_Pe.h: Likewise.
21586         * lib/unictype/categ_Pf.h: Likewise.
21587         * lib/unictype/categ_Pi.h: Likewise.
21588         * lib/unictype/categ_Ps.h: Likewise.
21589         * lib/unictype/categ_Z.h: Likewise.
21590         * lib/unictype/categ_Zl.h: Likewise.
21591         * lib/unictype/categ_Zp.h: Likewise.
21592         * lib/unictype/categ_Zs.h: Likewise.
21593         * lib/unictype/ctype_blank.h: Likewise.
21594         * lib/unictype/ctype_cntrl.h: Likewise.
21595         * lib/unictype/ctype_digit.h: Likewise.
21596         * lib/unictype/ctype_space.h: Likewise.
21597         * lib/unictype/ctype_xdigit.h: Likewise.
21598         * lib/unictype/mirror.h: Likewise.
21599         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21600         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21601         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21602         * lib/unictype/pr_bidi_control.h: Likewise.
21603         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21604         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21605         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21606         * lib/unictype/pr_bidi_pdf.h: Likewise.
21607         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21608         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21609         * lib/unictype/pr_dash.h: Likewise.
21610         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21611         * lib/unictype/pr_diacritic.h: Likewise.
21612         * lib/unictype/pr_extender.h: Likewise.
21613         * lib/unictype/pr_hex_digit.h: Likewise.
21614         * lib/unictype/pr_hyphen.h: Likewise.
21615         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21616         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21617         * lib/unictype/pr_ignorable_control.h: Likewise.
21618         * lib/unictype/pr_iso_control.h: Likewise.
21619         * lib/unictype/pr_join_control.h: Likewise.
21620         * lib/unictype/pr_left_of_pair.h: Likewise.
21621         * lib/unictype/pr_line_separator.h: Likewise.
21622         * lib/unictype/pr_logical_order_exception.h: Likewise.
21623         * lib/unictype/pr_non_break.h: Likewise.
21624         * lib/unictype/pr_not_a_character.h: Likewise.
21625         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21626         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21627         * lib/unictype/pr_other_id_start.h: Likewise.
21628         * lib/unictype/pr_other_lowercase.h: Likewise.
21629         * lib/unictype/pr_other_uppercase.h: Likewise.
21630         * lib/unictype/pr_paired_punctuation.h: Likewise.
21631         * lib/unictype/pr_paragraph_separator.h: Likewise.
21632         * lib/unictype/pr_pattern_syntax.h: Likewise.
21633         * lib/unictype/pr_pattern_white_space.h: Likewise.
21634         * lib/unictype/pr_private_use.h: Likewise.
21635         * lib/unictype/pr_quotation_mark.h: Likewise.
21636         * lib/unictype/pr_radical.h: Likewise.
21637         * lib/unictype/pr_soft_dotted.h: Likewise.
21638         * lib/unictype/pr_space.h: Likewise.
21639         * lib/unictype/pr_titlecase.h: Likewise.
21640         * lib/unictype/pr_variation_selector.h: Likewise.
21641         * lib/unictype/pr_white_space.h: Likewise.
21642         * lib/unictype/pr_zero_width.h: Likewise.
21643         * lib/unictype/sy_c_ident.h: Likewise.
21644         * lib/unictype/sy_c_whitespace.h: Likewise.
21645         * lib/unictype/sy_java_whitespace.h: Likewise.
21646         * lib/uninorm/composition-table.gperf: Likewise.
21647         * lib/uninorm/decomposition-table1.h: Likewise.
21648         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21649         LB8.
21650         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21651         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21652         * modules/unictype/*: Bump version number of expected libunistring
21653         version.
21654
21655 2011-01-09  Bruno Haible  <bruno@clisp.org>
21656
21657         Update to Unicode 5.2.0.
21658         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21659         trailing whitespace removed.
21660
21661 2011-01-09  Bruno Haible  <bruno@clisp.org>
21662
21663         New Unicode character properties, from Unicode 5.2.0.
21664         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21665         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21666         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21667         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21668         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21669         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21670         uc_is_property_cased, uc_is_property_case_ignorable,
21671         uc_is_property_changes_when_lowercased,
21672         uc_is_property_changes_when_uppercased,
21673         uc_is_property_changes_when_titlecased,
21674         uc_is_property_changes_when_casefolded,
21675         uc_is_property_changes_when_casemapped): New declarations.
21676         * lib/unictype/pr_byname.gperf: Add the new properties.
21677         * modules/unictype/property-byname (Depends-on): Depend on the new
21678         properties modules.
21679         * modules/unictype/property-all (Depends-on): Likewise.
21680         * MODULES.html.sh (Unicode string functions): Add
21681         unictype/property-case-ignorable, unictype/property-cased,
21682         unictype/property-changes-when-casefolded,
21683         unictype/property-changes-when-casemapped,
21684         unictype/property-changes-when-lowercased,
21685         unictype/property-changes-when-titlecased,
21686         unictype/property-changes-when-uppercased.
21687
21688         New module 'unictype/property-changes-when-casemapped'.
21689         * modules/unictype/property-changes-when-casemapped: New file.
21690         * lib/unictype/pr_changes_when_casemapped.c: New file.
21691         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21692         generated by gen-uni-tables.
21693         * modules/unictype/property-changes-when-casemapped-tests: New file.
21694         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21695         automatically generated by gen-uni-tables.
21696
21697         New module 'unictype/property-changes-when-casefolded'.
21698         * modules/unictype/property-changes-when-casefolded: New file.
21699         * lib/unictype/pr_changes_when_casefolded.c: New file.
21700         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21701         generated by gen-uni-tables.
21702         * modules/unictype/property-changes-when-casefolded-tests: New file.
21703         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21704         automatically generated by gen-uni-tables.
21705
21706         New module 'unictype/property-changes-when-titlecased'.
21707         * modules/unictype/property-changes-when-titlecased: New file.
21708         * lib/unictype/pr_changes_when_titlecased.c: New file.
21709         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21710         generated by gen-uni-tables.
21711         * modules/unictype/property-changes-when-titlecased-tests: New file.
21712         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21713         automatically generated by gen-uni-tables.
21714
21715         New module 'unictype/property-changes-when-uppercased'.
21716         * modules/unictype/property-changes-when-uppercased: New file.
21717         * lib/unictype/pr_changes_when_uppercased.c: New file.
21718         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21719         generated by gen-uni-tables.
21720         * modules/unictype/property-changes-when-uppercased-tests: New file.
21721         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21722         automatically generated by gen-uni-tables.
21723
21724         New module 'unictype/property-changes-when-lowercased'.
21725         * modules/unictype/property-changes-when-lowercased: New file.
21726         * lib/unictype/pr_changes_when_lowercased.c: New file.
21727         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21728         generated by gen-uni-tables.
21729         * modules/unictype/property-changes-when-lowercased-tests: New file.
21730         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21731         automatically generated by gen-uni-tables.
21732
21733         New module 'unictype/property-case-ignorable'.
21734         * modules/unictype/property-case-ignorable: New file.
21735         * lib/unictype/pr_case_ignorable.c: New file.
21736         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21737         by gen-uni-tables.
21738         * modules/unictype/property-case-ignorable-tests: New file.
21739         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21740         generated by gen-uni-tables.
21741
21742         New module 'unictype/property-cased'.
21743         * modules/unictype/property-cased: New file.
21744         * lib/unictype/pr_cased.c: New file.
21745         * lib/unictype/pr_cased.h: New file, automatically generated by
21746         gen-uni-tables.
21747         * modules/unictype/property-cased-tests: New file.
21748         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21749         gen-uni-tables.
21750
21751 2011-01-09  Bruno Haible  <bruno@clisp.org>
21752
21753         Update to Unicode 5.2.0.
21754         * lib/gen-uni-tables.c (output_predicate, output_category,
21755         output_combclass, output_bidi_category, output_decimal_digit_test,
21756         output_decimal_digit, output_digit_test, output_digit,
21757         output_numeric_test, output_numeric, output_mirror, output_scripts,
21758         output_scripts_byname, output_blocks, output_ident_category): Fix
21759         comment header.
21760         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21761         get_wbp.
21762         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21763         items.
21764         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21765         Changes_When_Lowercased, Changes_When_Uppercased,
21766         Changes_When_Titlecased, Changes_When_Casefolded,
21767         Changes_When_Casemapped.
21768         (is_property_alphabetic, is_property_default_ignorable_code_point):
21769         Update for Unicode 5.2.0.
21770         (is_property_cased, is_property_case_ignorable,
21771         is_property_changes_when_lowercased,
21772         is_property_changes_when_uppercased,
21773         is_property_changes_when_titlecased,
21774         is_property_changes_when_casefolded,
21775         is_property_changes_when_casemapped): New functions.
21776         (output_properties): Output also the properties cased, case_ignorable,
21777         changes_when_lowercased, changes_when_uppercased,
21778         changes_when_titlecased, changes_when_casefolded,
21779         changes_when_casemapped.
21780         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21781         Unicode TR#11 revision 17 -> 19.
21782         (LBP_CP): New enumeration value.
21783         (LBP_*): Adjust values accordingly.
21784         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21785         TR#14 revision 22 -> 24.
21786         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21787         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21788         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21789         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21790         is_WBP_MIDLETTER.
21791         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21792         the code1 and code2 of each composition rule.
21793         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21794         * lib/unicase/ignorable.h: Likewise.
21795         * lib/unicase/tocasefold.h: Likewise.
21796         * lib/unicase/tolower.h: Likewise.
21797         * lib/unicase/totitle.h: Likewise.
21798         * lib/unicase/toupper.h: Likewise.
21799         * lib/unictype/bidi_of.h: Likewise.
21800         * lib/unictype/blocks.h: Likewise.
21801         * lib/unictype/categ_C.h: Likewise.
21802         * lib/unictype/categ_Cf.h: Likewise.
21803         * lib/unictype/categ_Cn.h: Likewise.
21804         * lib/unictype/categ_L.h: Likewise.
21805         * lib/unictype/categ_Ll.h: Likewise.
21806         * lib/unictype/categ_Lm.h: Likewise.
21807         * lib/unictype/categ_Lo.h: Likewise.
21808         * lib/unictype/categ_Lu.h: Likewise.
21809         * lib/unictype/categ_M.h: Likewise.
21810         * lib/unictype/categ_Mc.h: Likewise.
21811         * lib/unictype/categ_Mn.h: Likewise.
21812         * lib/unictype/categ_N.h: Likewise.
21813         * lib/unictype/categ_Nd.h: Likewise.
21814         * lib/unictype/categ_Nl.h: Likewise.
21815         * lib/unictype/categ_No.h: Likewise.
21816         * lib/unictype/categ_P.h: Likewise.
21817         * lib/unictype/categ_Pd.h: Likewise.
21818         * lib/unictype/categ_Po.h: Likewise.
21819         * lib/unictype/categ_S.h: Likewise.
21820         * lib/unictype/categ_Sc.h: Likewise.
21821         * lib/unictype/categ_So.h: Likewise.
21822         * lib/unictype/categ_of.h: Likewise.
21823         * lib/unictype/combining.h: Likewise.
21824         * lib/unictype/ctype_alnum.h: Likewise.
21825         * lib/unictype/ctype_alpha.h: Likewise.
21826         * lib/unictype/ctype_graph.h: Likewise.
21827         * lib/unictype/ctype_lower.h: Likewise.
21828         * lib/unictype/ctype_print.h: Likewise.
21829         * lib/unictype/ctype_punct.h: Likewise.
21830         * lib/unictype/ctype_upper.h: Likewise.
21831         * lib/unictype/decdigit.h: Likewise.
21832         * lib/unictype/digit.h: Likewise.
21833         * lib/unictype/numeric.h: Likewise.
21834         * lib/unictype/pr_alphabetic.h: Likewise.
21835         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21836         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21837         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21838         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21839         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21840         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21841         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21842         * lib/unictype/pr_combining.h: Likewise.
21843         * lib/unictype/pr_composite.h: Likewise.
21844         * lib/unictype/pr_currency_symbol.h: Likewise.
21845         * lib/unictype/pr_dash.h: Likewise.
21846         * lib/unictype/pr_decimal_digit.h: Likewise.
21847         * lib/unictype/pr_deprecated.h: Likewise.
21848         * lib/unictype/pr_diacritic.h: Likewise.
21849         * lib/unictype/pr_extender.h: Likewise.
21850         * lib/unictype/pr_grapheme_base.h: Likewise.
21851         * lib/unictype/pr_grapheme_extend.h: Likewise.
21852         * lib/unictype/pr_grapheme_link.h: Likewise.
21853         * lib/unictype/pr_id_continue.h: Likewise.
21854         * lib/unictype/pr_id_start.h: Likewise.
21855         * lib/unictype/pr_ideographic.h: Likewise.
21856         * lib/unictype/pr_ignorable_control.h: Likewise.
21857         * lib/unictype/pr_logical_order_exception.h: Likewise.
21858         * lib/unictype/pr_lowercase.h: Likewise.
21859         * lib/unictype/pr_numeric.h: Likewise.
21860         * lib/unictype/pr_other_alphabetic.h: Likewise.
21861         * lib/unictype/pr_punctuation.h: Likewise.
21862         * lib/unictype/pr_sentence_terminal.h: Likewise.
21863         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21864         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21865         * lib/unictype/pr_unified_ideograph.h: Likewise.
21866         * lib/unictype/pr_uppercase.h: Likewise.
21867         * lib/unictype/pr_xid_continue.h: Likewise.
21868         * lib/unictype/pr_xid_start.h: Likewise.
21869         * lib/unictype/pr_zero_width.h: Likewise.
21870         * lib/unictype/scripts.h: Likewise.
21871         * lib/unictype/scripts_byname.gperf: Likewise.
21872         * lib/unictype/sy_java_ident.h: Likewise.
21873         * lib/unigbrk/gbrkprop.h: Likewise.
21874         * lib/unilbrk/lbrkprop1.h: Likewise.
21875         * lib/unilbrk/lbrkprop2.h: Likewise.
21876         * lib/unilbrk/lbrktables.h: Likewise.
21877         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21878         LBP_CP. Implement rule LB30.
21879         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21880         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21881         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21882         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21883         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21884         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21885         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21886         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21887         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21888         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21889         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21890         bits instead of 16 bits in the code1 and code2 of each composition
21891         rule.
21892         (uc_composition): Update for Unicode 5.2.0.
21893         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21894         * lib/uninorm/decomposition-table2.h: Likewise.
21895         * lib/uniwbrk/wbrkprop.h: Likewise.
21896         * tests/unicase/test-cased.c: Likewise.
21897         * tests/unicase/test-ignorable.c: Likewise.
21898         * tests/unicase/test-uc_tolower.c: Likewise.
21899         * tests/unicase/test-uc_totitle.c: Likewise.
21900         * tests/unicase/test-uc_toupper.c: Likewise.
21901         * tests/unictype/test-categ_C.c: Likewise.
21902         * tests/unictype/test-categ_Cf.c: Likewise.
21903         * tests/unictype/test-categ_Cn.c: Likewise.
21904         * tests/unictype/test-categ_L.c: Likewise.
21905         * tests/unictype/test-categ_Ll.c: Likewise.
21906         * tests/unictype/test-categ_Lm.c: Likewise.
21907         * tests/unictype/test-categ_Lo.c: Likewise.
21908         * tests/unictype/test-categ_Lu.c: Likewise.
21909         * tests/unictype/test-categ_M.c: Likewise.
21910         * tests/unictype/test-categ_Mc.c: Likewise.
21911         * tests/unictype/test-categ_Mn.c: Likewise.
21912         * tests/unictype/test-categ_N.c: Likewise.
21913         * tests/unictype/test-categ_Nd.c: Likewise.
21914         * tests/unictype/test-categ_Nl.c: Likewise.
21915         * tests/unictype/test-categ_No.c: Likewise.
21916         * tests/unictype/test-categ_P.c: Likewise.
21917         * tests/unictype/test-categ_Pd.c: Likewise.
21918         * tests/unictype/test-categ_Po.c: Likewise.
21919         * tests/unictype/test-categ_S.c: Likewise.
21920         * tests/unictype/test-categ_Sc.c: Likewise.
21921         * tests/unictype/test-categ_So.c: Likewise.
21922         * tests/unictype/test-ctype_alnum.c: Likewise.
21923         * tests/unictype/test-ctype_alpha.c: Likewise.
21924         * tests/unictype/test-ctype_graph.c: Likewise.
21925         * tests/unictype/test-ctype_lower.c: Likewise.
21926         * tests/unictype/test-ctype_print.c: Likewise.
21927         * tests/unictype/test-ctype_punct.c: Likewise.
21928         * tests/unictype/test-ctype_upper.c: Likewise.
21929         * tests/unictype/test-decdigit.h: Likewise.
21930         * tests/unictype/test-digit.h: Likewise.
21931         * tests/unictype/test-numeric.h: Likewise.
21932         * tests/unictype/test-pr_alphabetic.c: Likewise.
21933         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21934         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21935         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21936         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21937         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21938         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21939         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21940         * tests/unictype/test-pr_combining.c: Likewise.
21941         * tests/unictype/test-pr_composite.c: Likewise.
21942         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21943         * tests/unictype/test-pr_dash.c: Likewise.
21944         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21945         * tests/unictype/test-pr_deprecated.c: Likewise.
21946         * tests/unictype/test-pr_diacritic.c: Likewise.
21947         * tests/unictype/test-pr_extender.c: Likewise.
21948         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21949         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21950         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21951         * tests/unictype/test-pr_id_continue.c: Likewise.
21952         * tests/unictype/test-pr_id_start.c: Likewise.
21953         * tests/unictype/test-pr_ideographic.c: Likewise.
21954         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21955         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21956         * tests/unictype/test-pr_lowercase.c: Likewise.
21957         * tests/unictype/test-pr_numeric.c: Likewise.
21958         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21959         * tests/unictype/test-pr_punctuation.c: Likewise.
21960         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21961         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21962         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21963         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21964         * tests/unictype/test-pr_uppercase.c: Likewise.
21965         * tests/unictype/test-pr_xid_continue.c: Likewise.
21966         * tests/unictype/test-pr_xid_start.c: Likewise.
21967         * tests/unictype/test-pr_zero_width.c: Likewise.
21968         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21969         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21970         changed behaviour: line breaking is now disallowed between a letter
21971         or '=' and '('.
21972         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21973         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21974         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21975         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21976         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21977         lib/uniwidth/width.c.
21978         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21979         without comments, but with the original copyright notice.
21980         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21981         changes.
21982         * lib/unictype/categ_Cc.h: Likewise.
21983         * lib/unictype/categ_Co.h: Likewise.
21984         * lib/unictype/categ_Cs.h: Likewise.
21985         * lib/unictype/categ_Lt.h: Likewise.
21986         * lib/unictype/categ_Me.h: Likewise.
21987         * lib/unictype/categ_Pc.h: Likewise.
21988         * lib/unictype/categ_Pe.h: Likewise.
21989         * lib/unictype/categ_Pf.h: Likewise.
21990         * lib/unictype/categ_Pi.h: Likewise.
21991         * lib/unictype/categ_Ps.h: Likewise.
21992         * lib/unictype/categ_Sk.h: Likewise.
21993         * lib/unictype/categ_Sm.h: Likewise.
21994         * lib/unictype/categ_Z.h: Likewise.
21995         * lib/unictype/categ_Zl.h: Likewise.
21996         * lib/unictype/categ_Zp.h: Likewise.
21997         * lib/unictype/categ_Zs.h: Likewise.
21998         * lib/unictype/ctype_blank.h: Likewise.
21999         * lib/unictype/ctype_cntrl.h: Likewise.
22000         * lib/unictype/ctype_digit.h: Likewise.
22001         * lib/unictype/ctype_space.h: Likewise.
22002         * lib/unictype/ctype_xdigit.h: Likewise.
22003         * lib/unictype/mirror.h: Likewise.
22004         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22005         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22006         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22007         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22008         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22009         * lib/unictype/pr_bidi_control.h: Likewise.
22010         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22011         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22012         * lib/unictype/pr_bidi_pdf.h: Likewise.
22013         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22014         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22015         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22016         * lib/unictype/pr_format_control.h: Likewise.
22017         * lib/unictype/pr_hex_digit.h: Likewise.
22018         * lib/unictype/pr_hyphen.h: Likewise.
22019         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22020         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22021         * lib/unictype/pr_iso_control.h: Likewise.
22022         * lib/unictype/pr_join_control.h: Likewise.
22023         * lib/unictype/pr_left_of_pair.h: Likewise.
22024         * lib/unictype/pr_line_separator.h: Likewise.
22025         * lib/unictype/pr_math.h: Likewise.
22026         * lib/unictype/pr_non_break.h: Likewise.
22027         * lib/unictype/pr_not_a_character.h: Likewise.
22028         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22029         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22030         * lib/unictype/pr_other_id_continue.h: Likewise.
22031         * lib/unictype/pr_other_id_start.h: Likewise.
22032         * lib/unictype/pr_other_lowercase.h: Likewise.
22033         * lib/unictype/pr_other_math.h: Likewise.
22034         * lib/unictype/pr_other_uppercase.h: Likewise.
22035         * lib/unictype/pr_paired_punctuation.h: Likewise.
22036         * lib/unictype/pr_paragraph_separator.h: Likewise.
22037         * lib/unictype/pr_pattern_syntax.h: Likewise.
22038         * lib/unictype/pr_pattern_white_space.h: Likewise.
22039         * lib/unictype/pr_private_use.h: Likewise.
22040         * lib/unictype/pr_quotation_mark.h: Likewise.
22041         * lib/unictype/pr_radical.h: Likewise.
22042         * lib/unictype/pr_soft_dotted.h: Likewise.
22043         * lib/unictype/pr_space.h: Likewise.
22044         * lib/unictype/pr_titlecase.h: Likewise.
22045         * lib/unictype/pr_variation_selector.h: Likewise.
22046         * lib/unictype/pr_white_space.h: Likewise.
22047         * lib/unictype/sy_c_ident.h: Likewise.
22048         * lib/unictype/sy_c_whitespace.h: Likewise.
22049         * lib/unictype/sy_java_whitespace.h: Likewise.
22050         * modules/uni*/*: Bump version number of expected libunistring version.
22051         Reported by Simon Josefsson.
22052
22053 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22054
22055         useless-if-before-free: fix typo in --help and make the internal,
22056         automatic version date update process work once again.
22057         --help output contained a NUL character instead of the
22058         backslash-zero that was intended.  Also, the "must lie within
22059         the first 8 lines" line is on line 9, and hence not getting
22060         automatically updated.
22061         * build-aux/useless-if-before-free: Fix the former by adding a
22062         backslash, and the latter by condensing the three lines of what-it-does
22063         to a single line, leaving one line of slack for the future.
22064
22065 2011-01-09  Bruno Haible  <bruno@clisp.org>
22066
22067         uniwidth/width: Fix width of U+1D173..U+1D17A.
22068         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22069         symbolic_width, output_width_property_test): New functions.
22070         (main): Invoke output_nonspacing_property, output_width_property_test.
22071         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22072         U+1D173..U+1D17A.
22073         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22074         1.
22075         * modules/uniwidth/*: Bump version number of expected libunistring
22076         version.
22077         * modules/unilbrk/*: Likewise.
22078
22079 2011-01-08  Bruno Haible  <bruno@clisp.org>
22080
22081         uninorm tests: Preserve copyright of Unicode data file.
22082         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22083         Mention modifications.
22084
22085 2011-01-08  Bruno Haible  <bruno@clisp.org>
22086
22087         gen-uni-tables: Prepare for Unicode 5.2.0.
22088         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22089         (debug_output_lbp, output_lbp): Update.
22090
22091 2011-01-08  Bruno Haible  <bruno@clisp.org>
22092
22093         unilbrk: Clarify gen-uni-tables.c code.
22094         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22095         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22096         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22097
22098 2011-01-07  Bruno Haible  <bruno@clisp.org>
22099
22100         strtod: Restore errno when successfully parsing Infinity or NaN.
22101         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22102         restore the original errno.
22103
22104 2011-01-07  Bruno Haible  <bruno@clisp.org>
22105
22106         remove test: Avoid failure on HP-UX 11.
22107         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22108
22109 2011-01-07  Bruno Haible  <bruno@clisp.org>
22110
22111         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22112         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22113         error code.
22114
22115 2011-01-07  Pádraig Brady <P@draigBrady.com>
22116
22117         ignore-value: fixup comments, and add Eric Blake
22118         as an author since he rewrote the macros.
22119         * lib/ignore-value.h (ignore_value):  State that
22120         we now support aggregates.  Also specify exactly
22121         when the GCC warn_unused_result feature was added.
22122
22123 2011-01-06  Eric Blake  <eblake@redhat.com>
22124
22125         ignore-value: support aggregate types
22126         * lib/ignore-value.h (ignore_value): Provide separate gcc
22127         definition.
22128         * modules/ignore-value-tests: New test module.
22129         * tests/test-ignore-value.c: New test.
22130
22131         maint.mk: improve sc_prohibit_strcmp regex
22132         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22133         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22134         definition of STRNEQ.
22135
22136         signal: work around Haiku issue with SIGBUS
22137         * lib/siglist.h: Add comment.
22138         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22139         strsignal's favoring of SIGSEGV.
22140         * tests/test-signal.c (main): Avoid test failure.
22141         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22142         Reported by Scott McCreary.
22143
22144         maint.mk: add pre-release check to ensure submodule commits are public
22145         * top/maint.mk (public-submodule-commit): New rule.
22146         (submodule-checks): New variable.
22147         (alpha beta stable): Depend on the variable.
22148
22149 2011-01-05  Pádraig Brady <P@draigBrady.com>
22150         and Jim Meyering  <meyering@redhat.com>
22151
22152         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22153         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22154         (ATTRIBUTE_DEPRECATED): Define.
22155         (_ignore_case): New function.
22156         (ignore_value): New macro, to replace the old function.
22157         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22158         * modules/ignore-value (Depends-on): Add stdint.
22159
22160 2011-01-04  Eric Blake  <eblake@redhat.com>
22161
22162         doc: regenerate INSTALL
22163         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22164         @firstparagraphindent support, now that autoconf dropped it.
22165         (INSTALL_PRELUDE): Reinstate old macro.
22166         * doc/install.texi: Resync from autoconf.
22167         * doc/INSTALL: Reflect recent autoconf update.
22168         * doc/INSTALL.ISO: Likewise.
22169         * doc/INSTALL.UTF-8: Likewise.
22170         Reported by Karl Berry.
22171
22172 2011-01-04  Bruce Korb  <address@hidden>
22173
22174         git-version-gen: avoid a sub-shell
22175         * build-aux/git-version-gen: Redirect stderr in `...` via
22176         "exec 2>...", rather than via an added sub-shell.
22177
22178 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22179
22180         git-version-gen: use (...) rather than sh -c '...'
22181         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22182         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22183
22184 2011-01-03  Jim Meyering  <meyering@redhat.com>
22185
22186         git-version-gen: convert leading TABs to spaces
22187         * build-aux/git-version-gen: Expand leading TABs.
22188
22189         git-version-gen: handle failed "git rev-list"
22190         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22191         from git and proceeding as if it had succeeded but printed no SHA1
22192         checksums, suppress the diagnostic and handle the failure.
22193         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22194
22195         git-version-gen: include command name in one more diagnostic
22196         * build-aux/git-version-gen: When the required .tarball-version file
22197         was missing or unreadable, you might see the diagnostic from "cat",
22198         but no trace of the name of the invoking script.  Now, you still see
22199         the diagnostic from cat, but also get one from "git-version-gen: ".
22200         Inspired by a patch from Bruce Korb.
22201
22202         update-copyright: adjust test to match changed code
22203         * tests/test-update-copyright.sh: Change test's expected output
22204         to match new actual output.
22205
22206 2011-01-02  Bruno Haible  <bruno@clisp.org>
22207
22208         getlogin_r: Avoid test failure on HP-UX 11.
22209         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22210         ERANGE when the second argument is zero.
22211         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22212         portability problem.
22213
22214 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22215
22216         * build-aux/update-copyright: doc Simon's changes
22217
22218 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22219
22220         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22221         environment variable.
22222
22223 2011-01-02  Bruno Haible  <bruno@clisp.org>
22224
22225         unigbrk: Avoid gcc warnings.
22226         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22227         unused variable.
22228         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22229         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22230         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22231         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22232         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22233         Change type of first argument to 'const char *'.
22234         (main): Remove unused variable.
22235         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22236         type of first argument to 'const char *'.
22237         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22238         Likewise.
22239         (main): Change type of variable 's'.
22240         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22241         to 'int'.
22242
22243 2011-01-02  Bruno Haible  <bruno@clisp.org>
22244
22245         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22246         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22247         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22248         bug.
22249         * lib/pwrite.c: Undo 2010-12-31 patch.
22250         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22251
22252 2011-01-02  Bruno Haible  <bruno@clisp.org>
22253
22254         pread: Fix test whether it works.
22255         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22256
22257 2011-01-02  Bruno Haible  <bruno@clisp.org>
22258
22259         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22260         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22261         ends in "6". Don't require a specific month name. Try also the locale
22262         names found on HP-UX 11 and Solaris 7.
22263
22264 2011-01-02  Bruno Haible  <bruno@clisp.org>
22265
22266         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22267         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22268         C linkage.
22269         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22270
22271 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22272
22273         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22274         for consistency, since the "cluster" term is not used elsewhere.
22275         * lib/unigbrk.in.h: Update name.
22276         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22277         * lib/unigbrk/u16-grapheme-next.c: Update name.
22278         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22279         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22280         * lib/unigbrk/u32-grapheme-next.c: Update name.
22281         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22282         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22283         * lib/unigbrk/u8-grapheme-next.c: Update name.
22284         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22285         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22286         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22287         Suggested by Bruno Haible.
22288
22289 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22290
22291         Remove module 'u8-grapheme-len' as too redundant with
22292         'u8-grapheme-next'.
22293         * modules/unigbrk/u8-grapheme-len: Delete file.
22294         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22295         * lib/unigbrk.in.h: Remove prototype for deleted function.
22296         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22297         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22298
22299         Remove module 'u16-grapheme-len' as too redundant with
22300         'u16-grapheme-next'.
22301         * modules/unigbrk/u16-grapheme-len: Delete file.
22302         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22303         * lib/unigbrk.in.h: Remove prototype for deleted function.
22304         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22305         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22306
22307         Remove module 'u32-grapheme-len' as too redundant with
22308         'u32-grapheme-next'.
22309         * modules/unigbrk/u32-grapheme-len: Delete file.
22310         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22311         * lib/unigbrk.in.h: Remove prototype for deleted function.
22312         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22313         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22314
22315         Suggested by Bruno Haible.
22316
22317 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22318
22319         * unigbrk.in.h: Fix typo: "ben" => "been".
22320         Reported by Bruno Haible.
22321
22322 2011-01-01  Jim Meyering  <meyering@redhat.com>
22323
22324         maint: update almost all copyright ranges to include 2011
22325         Run the new "make update-copyright" rule.
22326
22327 2011-01-01  Jim Meyering  <meyering@redhat.com>
22328
22329         maint: update-copyright: exempt doc/INSTALL*
22330         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22331         since they are generated.  Suggested by Bruno Haible.
22332
22333 2011-01-01  Jim Meyering  <meyering@redhat.com>
22334
22335         maint: refine the update-copyright rule
22336         * Makefile (update-copyright): Also exclude any file that includes
22337         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22338         code that merely generates the comment.
22339
22340 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22341
22342         New module 'u8-grapheme-len'.
22343         * modules/unigbrk/u8-grapheme-len: New file.
22344         * modules/unigbrk/u8-grapheme-len-tests: New file.
22345         * lib/unigbrk.in.h: Add prototype for new function.
22346         * lib/unigbrk/u8-grapheme-len.c: New file.
22347         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22348
22349         New module 'u16-grapheme-len'.
22350         * modules/unigbrk/u16-grapheme-len: New file.
22351         * modules/unigbrk/u16-grapheme-len-tests: New file.
22352         * lib/unigbrk.in.h: Add prototype for new function.
22353         * lib/unigbrk/u16-grapheme-len.c: New file.
22354         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22355
22356         New module 'u32-grapheme-len'.
22357         * modules/unigbrk/u32-grapheme-len: New file.
22358         * modules/unigbrk/u32-grapheme-len-tests: New file.
22359         * lib/unigbrk.in.h: Add prototype for new function.
22360         * lib/unigbrk/u32-grapheme-len.c: New file.
22361         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22362
22363         New module 'u8-grapheme-next'.
22364         * modules/unigbrk/u8-grapheme-next: New file.
22365         * modules/unigbrk/u8-grapheme-next-tests: New file.
22366         * lib/unigbrk.in.h: Add prototype for new function.
22367         * lib/unigbrk/u8-grapheme-next.c: New file.
22368         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22369
22370         New module 'u16-grapheme-next'.
22371         * modules/unigbrk/u16-grapheme-next: New file.
22372         * modules/unigbrk/u16-grapheme-next-tests: New file.
22373         * lib/unigbrk.in.h: Add prototype for new function.
22374         * lib/unigbrk/u16-grapheme-next.c: New file.
22375         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22376
22377         New module 'u32-grapheme-next'.
22378         * modules/unigbrk/u32-grapheme-next: New file.
22379         * modules/unigbrk/u32-grapheme-next-tests: New file.
22380         * lib/unigbrk.in.h: Add prototype for new function.
22381         * lib/unigbrk/u32-grapheme-next.c: New file.
22382         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22383
22384         New module 'u8-grapheme-prev'.
22385         * modules/unigbrk/u8-grapheme-prev: New file.
22386         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22387         * lib/unigbrk.in.h: Add prototype for new function.
22388         * lib/unigbrk/u8-grapheme-prev.c: New file.
22389         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22390
22391         New module 'u16-grapheme-prev'.
22392         * modules/unigbrk/u16-grapheme-prev: New file.
22393         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22394         * lib/unigbrk.in.h: Add prototype for new function.
22395         * lib/unigbrk/u16-grapheme-prev.c: New file.
22396         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22397
22398         New module 'u32-grapheme-prev'.
22399         * modules/unigbrk/u32-grapheme-prev: New file.
22400         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22401         * lib/unigbrk.in.h: Add prototype for new function.
22402         * lib/unigbrk/u32-grapheme-prev.c: New file.
22403         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22404
22405         New module 'u8-grapheme-breaks'.
22406         * modules/unigbrk/u8-grapheme-breaks: New file.
22407         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22408         * lib/unigbrk.in.h: Add prototype for new function.
22409         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22410         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22411
22412         New module 'u16-grapheme-breaks'.
22413         * modules/unigbrk/u16-grapheme-breaks: New file.
22414         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22415         * lib/unigbrk.in.h: Add prototype for new function.
22416         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22417         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22418
22419         New module 'u32-grapheme-breaks'.
22420         * modules/unigbrk/u32-grapheme-breaks: New file.
22421         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22422         * lib/unigbrk.in.h: Add prototype for new function.
22423         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22424         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22425
22426         New module 'ulc-grapheme-breaks'.
22427         * modules/unigbrk/ulc-grapheme-breaks: New file.
22428         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22429         * m4/locale-ar.m4: New file.
22430         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22431         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22432         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22433
22434 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22435
22436         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22437         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22438         modified how this file was generated before I initially submitted
22439         the module, but failed to regenerate it.  This meant that several
22440         of the level2 entries were wrong.
22441         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22442         Remove the division-by-2 that is folded into the table now that
22443         gbrkprop.h has been regenerated properly.  Now -1 entries are
22444         handled correctly.
22445
22446         New module 'unigbrk/uc-gbrk-prop-tests'.
22447         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22448         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22449         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22450         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22451
22452 2011-01-01  Bruno Haible  <bruno@clisp.org>
22453
22454         Avoid use of hexadecimal escapes.
22455         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22456         instead of hexadecimal escapes.
22457
22458 2011-01-01  Jim Meyering  <meyering@redhat.com>
22459
22460         maint: new rule to update copyright year ranges
22461         * Makefile (update-copyright): New rule.
22462
22463         maint: indent with TABs in Makefile
22464         * Makefile: Expand leading sequences of spaces to TABs
22465
22466         version-etc: update the copyright year it reports
22467         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22468
22469 2010-12-31  Bruno Haible  <bruno@clisp.org>
22470
22471         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22472         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22473         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22474         zero.
22475
22476 2010-12-31  Bruno Haible  <bruno@clisp.org>
22477
22478         pwrite: Work around HP-UX 11.11 bug.
22479         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22480         works and set REPLACE_PWRITE if not.
22481         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22482         function.
22483         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22484
22485 2010-12-31  Bruno Haible  <bruno@clisp.org>
22486
22487         pread: Work around HP-UX 11 bugs.
22488         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22489         and set REPLACE_PREAD if not.
22490         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22491
22492 2010-12-31  Eric Blake  <eblake@redhat.com>
22493
22494         nl_langinfo: fix YESEXPR on Irix 6.5
22495         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22496         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22497         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22498         it.
22499
22500 2010-12-31  Bruno Haible  <bruno@clisp.org>
22501
22502         iconv: Document HP-UX 11 bug.
22503         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22504
22505 2010-12-31  Bruno Haible  <bruno@clisp.org>
22506
22507         ldexpl: Fix link error on HP-UX 11.
22508         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22509         LDEXPL_LIBM, using $ISNANL_LIBM.
22510
22511 2010-12-31  Eric Blake  <eblake@redhat.com>
22512
22513         ftello: avoid compilation failure with SunStudio c89
22514         * lib/ftello.c (ftello): Use lseek, not llseek.
22515
22516         tests: avoid failing coreutils tests on cygwin
22517         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22518         (create_exe_shims_): Return 0 when skipping.
22519
22520 2010-12-31  Bruno Haible  <bruno@clisp.org>
22521
22522         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22523         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22524
22525 2010-12-31  Bruno Haible  <bruno@clisp.org>
22526
22527         waitpid: Fix link error in C++ mode.
22528         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22529
22530 2010-12-31  Bruno Haible  <bruno@clisp.org>
22531
22532         isnan: Use GCC built-ins when possible.
22533         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22534         __builtin_isnan.
22535         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22536         (isnan): Define using GCC built-ins for GCC >= 4.0.
22537
22538 2010-12-31  Bruno Haible  <bruno@clisp.org>
22539
22540         isnand: Fix mistake.
22541         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22542         __builtin_isnand.
22543
22544 2010-12-31  Bruno Haible  <bruno@clisp.org>
22545
22546         open: Avoid C++ error on HP-UX 11.
22547         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22548
22549 2010-12-31  Bruno Haible  <bruno@clisp.org>
22550
22551         time_r: Add missing declarations on HP-UX 11.
22552         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22553         instead of HAVE_LOCALTIME_R.
22554         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22555         HAVE_LOCALTIME_R always.
22556         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22557         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22558         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22559         HAVE_LOCALTIME_R.
22560         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22561         * doc/posix-functions/localtime_r.texi: Likewise.
22562
22563 2010-12-29  Eric Blake  <eblake@redhat.com>
22564
22565         mountlist: tweak previous commit
22566         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22567         Reported by Paul Eggert.
22568
22569         mountlist: fix local drive detection on cygwin
22570         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22571         that works for cygwin.
22572
22573 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22574
22575         ftoastr, snprintf: ftoastr + snprintf module
22576         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22577         since the snprintf module now should be good enough here.
22578         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22579         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22580         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22581         GNULIB_SNPRINTF only for the test directory, and the latter
22582         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22583         seems to suffice by itself.
22584
22585 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         alloca: one step towards thread-safety
22588         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22589         need for a static variable.  All callers changed.  This does not
22590         make the alloca replacement thread-safe, but it's one step.
22591
22592         tests: minor indenting change
22593         * tests/init.sh: Sync from coreutils housekeeping patch
22594         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22595         to keep lines within 80 columns.
22596
22597 2010-12-28  Jim Meyering  <meyering@redhat.com>
22598
22599         regex: don't infloop on persistent failing calloc
22600         * lib/regexec.c (build_trtable): Return failure indication upon
22601         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22602         In glibc, this was fixed for version 2.13:
22603         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22604
22605 2010-12-28  Bruno Haible  <bruno@clisp.org>
22606             Paul Eggert <eggert@cs.ucla.edu>
22607
22608         linkat: Make implementation robust against system behaviour variations.
22609         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22610         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22611         way, and to -2 if it needs a generic runtime test.
22612         * lib/linkat.c (solaris_optimized_link_immediate,
22613         solaris_optimized_link_follow): New functions.
22614         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22615         (check_same_link): Use it.
22616
22617 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22618
22619         New module 'unigbrk/base'.
22620         * modules/unigbrk/base: New file.
22621         * lib/unigbrk.in.h: New file.
22622
22623         New module 'unigbrk/uc-gbrk-prop'.
22624         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22625         * modules/unigbrk/uc-gbrk-prop: New file.
22626         * lib/unigbrk/gbrkprop.h: New file.
22627         * lib/unigbrk/uc-gbrk-prop.c: New file.
22628
22629         New module 'unigbrk/uc-is-grapheme-break'.
22630         * modules/unigbrk/uc-is-grapheme-break: New file.
22631         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22632         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22633         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22634         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22635         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22636
22637         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22638
22639 2010-12-27  Bruno Haible  <bruno@clisp.org>
22640
22641         linkat test: Avoid failure on Solaris 11 2010-11.
22642         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22643
22644 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22645
22646         utimens: work around glibc rounding bug on more platforms
22647         * lib/utimens.c (fdutimens): Work around rounding bug even if
22648         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22649         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22650
22651 2010-12-27  Bruno Haible  <bruno@clisp.org>
22652
22653         select tests: Improve comments.
22654         * tests/test-select.c (do_select): Add comments.
22655
22656 2010-12-27  Bruno Haible  <bruno@clisp.org>
22657
22658         select tests: Safer way of handling timeout.
22659         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22660         at every invocation.
22661
22662 2010-12-27  Bruno Haible  <bruno@clisp.org>
22663
22664         select tests: Use 'bool' where appropriate.
22665         * tests/test-select.c (connect_to_socket): Change argument type to
22666         'bool'.
22667
22668 2010-12-27  Bruno Haible  <bruno@clisp.org>
22669
22670         select tests: Use existing modules.
22671         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22672         (configure.ac): Don't test for unistd.h.
22673         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22674         declared in <unistd.h>.
22675
22676 2010-12-27  Bruno Haible  <bruno@clisp.org>
22677
22678         mbrtowc: Work around a Solaris 7 bug.
22679         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22680         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22681         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22682         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22683         MBRTOWC_NULL_ARG1_BUG.
22684         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22685         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22686         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22687         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22688
22689 2010-12-27  Jim Meyering  <meyering@redhat.com>
22690
22691         read-file.c: tweak syntax
22692         * lib/read-file.c (fread_file): Remove space after "*" in function
22693         definitions.
22694
22695 2010-12-27  Bruno Haible  <bruno@clisp.org>
22696
22697         times test: Avoid gcc warnings on OSF/1.
22698         * tests/test-times.c (main): Cast printf arguments from clock_t to
22699         'long int'.
22700
22701 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22702
22703         utimens: work around glibc rounding bug on older Linux kernels
22704         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22705         on Linux with a glibc whose utimes might not work, then work
22706         around a longstanding glibc bug involving rounding rather than
22707         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22708         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22709
22710 2010-12-26  Bruno Haible  <bruno@clisp.org>
22711
22712         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22713         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22714         _GL_CXXALIAS_SYS.
22715         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22716
22717 2010-12-26  Bruno Haible  <bruno@clisp.org>
22718
22719         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22720         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22721         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22722         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22723         looking for the declaration.
22724         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22725         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22726         problem.
22727         * doc/posix-functions/inet_pton.texi: Likewise.
22728
22729 2010-12-26  Bruno Haible  <bruno@clisp.org>
22730
22731         arpa_inet: Use the common idioms with C++ support.
22732         * lib/arpa_inet.in.h: Include c++defs.h.
22733         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22734         support.
22735         * modules/arpa_inet (Depends-on): Add c++defs.
22736         (Makefile.am): Substitute the contents of c++defs.h.
22737         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22738         * modules/arpa_inet-c++-tests: New file.
22739         * tests/test-arpa_inet-c++.cc: New file.
22740
22741 2010-12-25  Bruno Haible  <bruno@clisp.org>
22742
22743         Fix more C++ link errors on Solaris 8.
22744         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22745         $(LIB_EACCESS).
22746         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22747         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22748         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22749         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22750         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22751
22752 2010-12-25  Bruno Haible  <bruno@clisp.org>
22753
22754         printf-posix: Fix link error when a non-GCC compiler is used.
22755         * lib/stdio.in.h (printf): When not using GCC, override printf
22756         correctly.
22757         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22758
22759 2010-12-25  Bruno Haible  <bruno@clisp.org>
22760
22761         strerror_r-posix: Update doc.
22762         * doc/posix-functions/strerror_r.texi: Update doc about the return
22763         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22764
22765 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22766
22767         utimens: simplify the logic of the previous change
22768         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22769         This should not affect whether the test succeeds or fails.
22770
22771         utimens: configure better on hosts with NFS clock skew
22772         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22773         uses the clock of the local host.  It might use the clock of the
22774         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22775         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22776
22777 2010-12-25  Bruno Haible  <bruno@clisp.org>
22778
22779         ptsname test: Avoid failure on Solaris.
22780         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22781         open a pseudo-terminal; don't use BSD-style ptys.
22782         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22783
22784 2010-12-25  Bruno Haible  <bruno@clisp.org>
22785
22786         ptsname: Avoid ERANGE failure on some systems.
22787         * lib/ptsname.c (buffer): Increase size.
22788
22789 2010-12-25  Bruno Haible  <bruno@clisp.org>
22790
22791         rename, renameat: Avoid test failures at NFS mounted locations.
22792         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22793         so that subsequent mkdir calls succeed.
22794
22795 2010-12-25  Bruno Haible  <bruno@clisp.org>
22796
22797         iswblank: Fix C++ link error on Solaris 8.
22798         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22799         _GL_FUNCDECL_SYS.
22800
22801 2010-12-25  Bruno Haible  <bruno@clisp.org>
22802
22803         unistd: Fix C++ link error on Solaris 8.
22804         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22805
22806 2010-12-25  Bruno Haible  <bruno@clisp.org>
22807
22808         readlink doc: Mention an old glibc bug.
22809         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22810
22811 2010-12-25  Bruno Haible  <bruno@clisp.org>
22812
22813         fcntl-h: Fix for use of C++ on glibc systems.
22814         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22815         also on glibc systems in C++ mode.
22816         Reported by Gary V. Vaughan <gary@gnu.org>.
22817
22818 2010-12-25  Bruno Haible  <bruno@clisp.org>
22819
22820         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22821         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22822
22823 2010-12-25  Bruno Haible  <bruno@clisp.org>
22824
22825         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22826         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22827         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22828         test whether truncl works according to ISO C 99 with IEC 60559.
22829         * m4/truncl-ieee.m4: New file.
22830         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22831         m4/signbit.m4.
22832         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22833
22834 2010-12-25  Bruno Haible  <bruno@clisp.org>
22835
22836         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22837         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22838         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22839         test whether ceill works according to ISO C 99 with IEC 60559.
22840         * m4/ceill-ieee.m4: New file.
22841         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22842         m4/signbit.m4.
22843         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22844
22845 2010-12-25  Bruno Haible  <bruno@clisp.org>
22846
22847         Ensure all prerequisites of <wchar.h> are included.
22848         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22849         before <wchar.h>.
22850         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22851         gl_MBRLEN_NUL_RETVAL): Likewise.
22852         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22853         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22854         AC_FUNC_MBRTOWC): Likewise.
22855         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22856         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22857         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22858         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22859         Likewise.
22860         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22861         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22862         (gl_WCHAR_H): Improve comments.
22863         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22864
22865 2010-12-25  Bruno Haible  <bruno@clisp.org>
22866
22867         strtok_r: Fix C syntax error in autoconf macro.
22868         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22869         characters in test program.
22870
22871 2010-12-24  Bruno Haible  <bruno@clisp.org>
22872
22873         ceil, trunc, round: Fix gcc warnings.
22874         * lib/ceil.c (MIN): Undefine before redefining.
22875         * lib/trunc.c (MIN): Likewise.
22876         * lib/round.c (MIN): Likewise.
22877         Include <math.h> first.
22878
22879 2010-12-24  Bruno Haible  <bruno@clisp.org>
22880
22881         select tests: Avoid failures on OSF/1 5.1.
22882         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22883         failure of closing the last socket; it may fail with ECONNRESET.
22884
22885 2010-12-24  Eric Blake  <eblake@redhat.com>
22886
22887         stdint: avoid HP-UX 10.20 preprocessor bug
22888         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22889         than #if.
22890         * tests/test-floor2.c (main): Likewise.
22891         Reported by Peter O'Gorman.
22892
22893         pipe: make obsoletion transition easier
22894         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22895         * modules/pipe (Files): Include revived file.
22896         (Include): Drop reference, to mirror getdate's behavior.
22897
22898 2010-12-24  Bruno Haible  <bruno@clisp.org>
22899
22900         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22901         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22902         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22903         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22904
22905 2010-12-24  Bruno Haible  <bruno@clisp.org>
22906
22907         gethostname: Ensure declaration on NonStop Kernel.
22908         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22909         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22910
22911 2010-12-24  Bruno Haible  <bruno@clisp.org>
22912
22913         sys_select: Ensure all necessary types on NonStop Kernel.
22914         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22915         include <sys/time.h>.
22916         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22917         NonStop Kernel.
22918         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22919
22920 2010-12-24  Bruno Haible  <bruno@clisp.org>
22921
22922         sys_select: Remove unneeded include.
22923         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22924         have <sys/select.h>.
22925
22926 2010-12-24  Bruno Haible  <bruno@clisp.org>
22927
22928         gethostname: Provide a fallback for HOST_NAME_MAX.
22929         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22930         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22931         instead.
22932         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22933
22934 2010-12-24  Bruno Haible  <bruno@clisp.org>
22935
22936         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22937         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22938         (SA_RESTART): Likewise.
22939         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22940
22941 2010-12-24  Bruno Haible  <bruno@clisp.org>
22942
22943         signal: Define NSIG.
22944         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22945         * tests/test-signal.c (nsig): New variable.
22946         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22947
22948 2010-12-24  Bruno Haible  <bruno@clisp.org>
22949
22950         rename, renameat: Avoid test failures on OSF/1 5.1.
22951         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22952         alternative error codes.
22953         * tests/test-renameat.c (main): Likewise.
22954
22955 2010-12-24  Bruno Haible  <bruno@clisp.org>
22956
22957         *printf: Detect large precisions bug on Solaris 10/SPARC.
22958         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22959         by Paul Eggert.
22960         * tests/test-snprintf-posix.h (test_function): Add this test code here
22961         too.
22962         * tests/test-sprintf-posix.h (test_function): Likewise.
22963         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22964         * tests/test-vasprintf-posix.c (test_function): Likewise.
22965         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22966         around by gnulib.
22967         * doc/posix-functions/printf.texi: Likewise.
22968         * doc/posix-functions/snprintf.texi: Likewise.
22969         * doc/posix-functions/sprintf.texi: Likewise.
22970         * doc/posix-functions/vfprintf.texi: Likewise.
22971         * doc/posix-functions/vprintf.texi: Likewise.
22972         * doc/posix-functions/vsnprintf.texi: Likewise.
22973         * doc/posix-functions/vsprintf.texi: Likewise.
22974         * doc/posix-functions/dprintf.texi: Undo last commit.
22975         * doc/posix-functions/vdprintf.texi: Likewise.
22976
22977 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22978
22979         tests: port test-fdutimensat.c to Solaris 8
22980         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22981         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22982         On Solaris 8, it fails with errno == ENOSYS, because there is no
22983         futimens (so it can't use the fd), and there is no lutimens (so it
22984         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22985
22986         vsnprintf: make more consistent with snprintf; doc fixes
22987
22988         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22989         the byte count return problem was promoted from the snprintf-posix
22990         to the snprintf module.
22991         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22992         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22993         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22994         * tests/test-snprintf.c (main): Check the byte count returned.
22995         * tests/test-vsnprintf.c (main): Likewise.
22996
22997 2010-12-23  Eric Blake  <eblake@redhat.com>
22998
22999         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23000         * modules/sigpipe (License): Relax license.
23001
23002 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23003
23004         doc: document Solaris printf bug with large float precisions
23005         * doc/posix-functions/dprintf.texi (dprintf):
23006         * doc/posix-functions/fprintf.texi (fprintf):
23007         * doc/posix-functions/printf.texi (printf):
23008         * doc/posix-functions/snprintf.texi (snprintf):
23009         * doc/posix-functions/sprintf.texi (sprintf):
23010         * doc/posix-functions/vdprintf.texi (vdprintf):
23011         * doc/posix-functions/vfprintf.texi (vfprintf):
23012         * doc/posix-functions/vprintf.texi (vprintf):
23013         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23014         * doc/posix-functions/vsprintf.texi (vsprintf):
23015         Mention that these functions mishandle large floating point
23016         precisions on Solaris 10.  The same bug is also present in Solaris
23017         8, and I assume earlier.  This causes "cd gnulib-tests; make
23018         check" to fail on Solaris 8 (and I assume, later) when building
23019         the latest coreutils, in test-vasprintf-posix's call to
23020         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23021         the wide flavors (e.g., wprintf) so this patch just updates the
23022         documentation for the narrow ones.
23023
23024         test-posixtm.c: add two tests
23025         * tests/test-posixtm.c: Add two tests, to highlight the
23026         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23027         around this bug; this is merely to document it.
23028
23029 2010-12-22  Bruno Haible  <bruno@clisp.org>
23030
23031         getlogin_r: Work around portability problem on OSF/1.
23032         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23033         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23034         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23035         test for a truncated result.
23036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23037         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23038         * modules/getlogin_r (Depends-on): Add memchr.
23039         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23040
23041 2010-12-22  Bruno Haible  <bruno@clisp.org>
23042
23043         ptsname: Avoid test failure on OSF/1 5.1.
23044         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23045         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23046         (same_slave): New function.
23047         (main): Use it to compare ptsname's result with the expected file name.
23048
23049 2010-12-22  Bruno Haible  <bruno@clisp.org>
23050
23051         Port extended stdio modules to HP NonStop Kernel.
23052         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23053         macros.
23054         * lib/fbufmode.c: Update comments.
23055         * lib/fflush.c: Likewise.
23056         * lib/fpurge.c: Likewise.
23057         * lib/freadable.c: Likewise.
23058         * lib/freadahead.c: Likewise.
23059         * lib/freading.c: Likewise.
23060         * lib/freadptr.c: Likewise.
23061         * lib/freadseek.c: Likewise.
23062         * lib/fseeko.c: Likewise.
23063         * lib/fseterr.c: Likewise.
23064         * lib/fwritable.c: Likewise.
23065         * lib/fwriting.c: Likewise.
23066         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23067
23068 2010-12-22  Bruno Haible  <bruno@clisp.org>
23069
23070         ttyname_r: Work around bug on OSF/1 5.1.
23071         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23072         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23073         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23074         present.
23075         * lib/ttyname_r.c (ttyname_r): Update comments.
23076
23077 2010-12-22  Bruno Haible  <bruno@clisp.org>
23078
23079         round: Implement result sign according to IEEE 754.
23080         * lib/round.c (MIN, MINUS_ZERO): New macros.
23081         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23082         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23083         * tests/test-round-ieee.c (main): Likewise.
23084         * tests/test-roundl-ieee.c (main): Likewise.
23085
23086         trunc: Implement result sign according to IEEE 754.
23087         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23088         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23089         * tests/test-trunc2.c: Include minus-zero.h.
23090         (MINUS_ZERO): New macro.
23091         (trunc_reference): Keep in sync with lib/trunc.c.
23092         * tests/test-truncf2.c: Include minus-zero.h.
23093         (MINUS_ZERO): New macro.
23094         (truncf_reference): Keep in sync with lib/trunc.c.
23095         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23096         * tests/test-trunc-ieee.c (main): Likewise.
23097         * tests/test-truncl-ieee.c (main): Likewise.
23098
23099         ceil: Implement result sign according to IEEE 754.
23100         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23101         (FUNC): Return -0.0 for -1 < x < 0.
23102         * tests/test-ceil2.c: Include minus-zero.h.
23103         (MINUS_ZERO): New macro.
23104         (ceil_reference): Keep in sync with lib/ceil.c.
23105         * tests/test-ceilf2.c: Include minus-zero.h.
23106         (MINUS_ZERO): New macro.
23107         (ceilf_reference): Keep in sync with lib/ceil.c.
23108         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23109         * tests/test-ceil-ieee.c (main): Likewise.
23110         * tests/test-ceill-ieee.c (main): Likewise.
23111
23112         floor: Implement result sign according to IEEE 754.
23113         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23114         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23115         * tests/test-floorf2.c (floorf_reference): Likewise.
23116         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23117         * tests/test-floor-ieee.c (main): Likewise.
23118         * tests/test-floorl-ieee.c (main): Likewise.
23119
23120 2010-12-22  Bruno Haible  <bruno@clisp.org>
23121
23122         getaddrinfo: Update doc.
23123         * doc/posix-functions/gai_strerror.texi: Return type is also different
23124         on AIX and HP-UX.
23125
23126 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23127
23128         getaddrinfo, inet_ntop: Update doc for Solaris.
23129         * doc/posix-functions/gai_strerror.texi: Return type is also an
23130         issue on Solaris 9 and earlier.
23131         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23132         on Solaris 10 and earlier.
23133
23134 2010-12-21  Bruno Haible  <bruno@clisp.org>
23135
23136         New module 'roundl-ieee'.
23137         * modules/roundl-ieee: New file.
23138         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23139         test whether roundl works according to ISO C 99 with IEC 60559.
23140         * m4/roundl-ieee.m4: New file.
23141         * modules/roundl-ieee-tests: New file.
23142         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23143         * tests/test-roundl.c (main): Remove signbit tests.
23144         * modules/roundl-tests (Depends-on): Remove signbit.
23145         * doc/posix-functions/roundl.texi: Mention the new module.
23146
23147 2010-12-21  Bruno Haible  <bruno@clisp.org>
23148
23149         New module 'truncl-ieee'.
23150         * modules/truncl-ieee: New file.
23151         * modules/truncl-ieee-tests: New file.
23152         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23153         * tests/test-truncl.c (main): Remove signbit tests.
23154         * modules/truncl-tests (Depends-on): Remove signbit.
23155         * doc/posix-functions/truncl.texi: Mention the new module.
23156
23157 2010-12-21  Bruno Haible  <bruno@clisp.org>
23158
23159         New module 'ceill-ieee'.
23160         * modules/ceill-ieee: New file.
23161         * modules/ceill-ieee-tests: New file.
23162         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23163         * tests/test-ceill.c (main): Remove signbit tests.
23164         * modules/ceill-tests (Depends-on): Remove signbit.
23165         * doc/posix-functions/ceill.texi: Mention the new module.
23166
23167 2010-12-21  Bruno Haible  <bruno@clisp.org>
23168
23169         New module 'floorl-ieee'.
23170         * modules/floorl-ieee: New file.
23171         * modules/floorl-ieee-tests: New file.
23172         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23173         * tests/test-floorl.c (main): Remove signbit tests.
23174         * modules/floorl-tests (Depends-on): Remove signbit.
23175         * doc/posix-functions/floorl.texi: Mention the new module.
23176
23177 2010-12-21  Bruno Haible  <bruno@clisp.org>
23178
23179         New module 'round-ieee'.
23180         * modules/round-ieee: New file.
23181         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23182         whether round works according to ISO C 99 with IEC 60559.
23183         * m4/round-ieee.m4: New file.
23184         * modules/round-ieee-tests: New file.
23185         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23186         * tests/test-round1.c (main): Remove signbit tests.
23187         * modules/round-tests (Depends-on): Remove 'signbit'.
23188         * doc/posix-functions/round.texi: Mention the new module.
23189
23190 2010-12-21  Bruno Haible  <bruno@clisp.org>
23191
23192         New module 'trunc-ieee'.
23193         * modules/trunc-ieee: New file.
23194         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23195         whether trunc works according to ISO C 99 with IEC 60559.
23196         * m4/trunc-ieee.m4: New file.
23197         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23199         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23200         * modules/trunc-ieee-tests: New file.
23201         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23202         * tests/test-trunc1.c (main): Remove signbit tests.
23203         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23204         * doc/posix-functions/trunc.texi: Mention the new module.
23205
23206 2010-12-21  Bruno Haible  <bruno@clisp.org>
23207
23208         New module 'ceil-ieee'.
23209         * modules/ceil-ieee: New file.
23210         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23211         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23212         ISO C 99 with IEC 60559.
23213         * m4/ceil-ieee.m4: New file.
23214         * modules/ceil (Files): Add lib/ceil.c.
23215         (Depends-on): Add 'float'.
23216         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23217         * lib/math.in.h (ceil): New declaration.
23218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23219         REPLACE_CEIL.
23220         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23221         * modules/ceil-ieee-tests: New file.
23222         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23223         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23224         * doc/posix-functions/ceil.texi: Mention the new module.
23225
23226 2010-12-21  Bruno Haible  <bruno@clisp.org>
23227
23228         New module 'floor-ieee'.
23229         * modules/floor-ieee: New file.
23230         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23231         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23232         ISO C 99 with IEC 60559.
23233         * m4/floor-ieee.m4: New file.
23234         * modules/floor (Files): Add lib/floor.c.
23235         (Depends-on): Add 'float'.
23236         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23237         * lib/math.in.h (floor): New declaration.
23238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23239         REPLACE_FLOOR.
23240         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23241         * modules/floor-ieee-tests: New file.
23242         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23243         * tests/test-math-c++.cc: Check the signature of 'floor'.
23244         * doc/posix-functions/floor.texi: Mention the new module.
23245
23246 2010-12-21  Bruno Haible  <bruno@clisp.org>
23247
23248         New module 'roundf-ieee'.
23249         * modules/roundf-ieee: New file.
23250         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23251         test whether roundf works according to ISO C 99 with IEC 60559.
23252         * m4/roundf-ieee.m4: New file.
23253         * modules/roundf-ieee-tests: New file.
23254         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23255         * tests/test-roundf1.c (main): Remove signbit tests.
23256         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23257         * doc/posix-functions/roundf.texi: Mention the new module.
23258
23259 2010-12-21  Bruno Haible  <bruno@clisp.org>
23260
23261         New module 'truncf-ieee'.
23262         * modules/truncf-ieee: New file.
23263         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23264         test whether truncf works according to ISO C 99 with IEC 60559.
23265         * m4/truncf-ieee.m4: New file.
23266         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23268         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23269         * modules/truncf-ieee-tests: New file.
23270         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23271         * tests/test-truncf1.c (main): Remove signbit tests.
23272         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23273         * doc/posix-functions/truncf.texi: Mention the new module.
23274
23275 2010-12-21  Bruno Haible  <bruno@clisp.org>
23276
23277         New module 'ceilf-ieee'.
23278         * modules/ceilf-ieee: New file.
23279         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23280         test whether ceilf works according to ISO C 99 with IEC 60559.
23281         * m4/ceilf-ieee.m4: New file.
23282         * modules/ceilf-ieee-tests: New file.
23283         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23284         * tests/test-ceilf1.c (main): Remove signbit tests.
23285         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23286         * doc/posix-functions/ceilf.texi: Mention the new module.
23287
23288 2010-12-21  Bruno Haible  <bruno@clisp.org>
23289
23290         New module 'floorf-ieee'.
23291         * modules/floorf-ieee: New file.
23292         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23293         test whether floorf works according to ISO C 99 with IEC 60559.
23294         * m4/floorf-ieee.m4: New file.
23295         * modules/floorf-ieee-tests: New file.
23296         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23297         * tests/test-floorf1.c (main): Remove signbit tests.
23298         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23299         * doc/posix-functions/floorf.texi: Mention the new module.
23300
23301 2010-12-21  Bruno Haible  <bruno@clisp.org>
23302
23303         Support for minus zero in autoconf macros.
23304         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23305         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23306         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23307         * tests/minus-zero.h: Update comments.
23308
23309 2010-12-21  Bruno Haible  <bruno@clisp.org>
23310
23311         Tests for module 'ceil'.
23312         * modules/ceil-tests: New file.
23313         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23314         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23315
23316 2010-12-21  Bruno Haible  <bruno@clisp.org>
23317
23318         Tests for module 'floor'.
23319         * modules/floor-tests: New file.
23320         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23321         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23322
23323 2010-12-21  Bruno Haible  <bruno@clisp.org>
23324
23325         math: Fix indentation.
23326         * lib/math.in.h (floorf): Fix indentation.
23327
23328 2010-12-21  Bruno Haible  <bruno@clisp.org>
23329
23330         Fix cross-compilation guesses on Solaris.
23331         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23332         not match "solaris2.10".
23333         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23334         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23335         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23336
23337 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23338
23339         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23340         This fixes a problem observed with the latest coreutils snapshot
23341         that caused a test to fail on Solaris 8.  src/csplit.c's call
23342         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23343         earlier, instead of returning the number of bytes that would have
23344         been generated; this causes csplit to incorrectly report memory
23345         exhaustion.
23346         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23347         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23348         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23349         comments to match.
23350         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23351         Fix typo in matching older versions of Solaris: "solaris2.10"
23352         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23353         only for guessing while cross-compiling.
23354         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23355
23356 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23357
23358         ftoastr: fix comment again
23359         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23360         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23361         Also, simplify example a bit by using flags = 0.
23362
23363 2010-12-20  Bruno Haible  <bruno@clisp.org>
23364
23365         round*, trunc*: Update documentation regarding glibc.
23366         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23367         * doc/posix-functions/round.texi: Likewise.
23368         * doc/posix-functions/roundl.texi: Likewise.
23369         * doc/posix-functions/truncf.texi: Likewise.
23370         * doc/posix-functions/trunc.texi: Likewise.
23371         * doc/posix-functions/truncl.texi: Likewise.
23372
23373 2010-12-20  Bruno Haible  <bruno@clisp.org>
23374
23375         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23376         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23377         * doc/posix-functions/round.texi: Likewise.
23378         * doc/posix-functions/roundl.texi: Likewise.
23379
23380 2010-12-20  Bruno Haible  <bruno@clisp.org>
23381
23382         ttyname_r: Add missing declaration on HP-UX 11.
23383         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23384         HAVE_TTYNAME_R.
23385         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23386         declared. Set HAVE_TTYNAME_R always.
23387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23388         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23389         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23390         HAVE_TTYNAME_R.
23391         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23392
23393 2010-12-20  Bruno Haible  <bruno@clisp.org>
23394
23395         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23396         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23397         * doc/posix-functions/getlogin_r.texi: Likewise.
23398         * tests/test-getlogin.c: Include <errno.h>.
23399         (main): Avoid test failure on HP-UX 11.11.
23400         * tests/test-getlogin_r.c (main): Likewise.
23401
23402 2010-12-20  Bruno Haible  <bruno@clisp.org>
23403
23404         getlogin_r: Add missing declaration on HP-UX 11.
23405         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23406         declared also when it exists as a function.
23407         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23408
23409 2010-12-20  Bruno Haible  <bruno@clisp.org>
23410
23411         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23412         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23413         through wcrtomb.
23414
23415 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23416
23417         ftoastr: fix comment
23418         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23419         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23420
23421 2010-12-19  Bruno Haible  <bruno@clisp.org>
23422
23423         isnan: Ensure it is a macro.
23424         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23425         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23426         Solaris.
23427
23428 2010-12-19  Bruno Haible  <bruno@clisp.org>
23429
23430         ldexpl test: Fix link error on OSF/1 5.1.
23431         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23432
23433 2010-12-19  Bruno Haible  <bruno@clisp.org>
23434
23435         wctype: Make it work in C++ mode on OSF/1 5.1.
23436         * lib/wctype.in.h (iswblank): Declare but not define here.
23437         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23438         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23439         * modules/wctype (Files): Add lib/iswblank.c.
23440
23441 2010-12-19  Bruno Haible  <bruno@clisp.org>
23442
23443         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23444         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23445         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23446
23447 2010-12-19  Bruno Haible  <bruno@clisp.org>
23448
23449         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23451         _POSIX_PII_SOCKET.
23452         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23453         * doc/posix-functions/recvfrom.texi: Likewise.
23454         * doc/posix-functions/send.texi: Likewise.
23455         * doc/posix-functions/sendto.texi: Likewise.
23456
23457 2010-12-19  Bruno Haible  <bruno@clisp.org>
23458
23459         tcgetsid: Add missing declaration on OSF/1 5.1.
23460         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23461         HAVE_TCGETSID.
23462         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23463         Don't set HAVE_TCGETSID.
23464         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23465         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23466         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23467         HAVE_TCGETSID.
23468         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23469
23470 2010-12-19  Bruno Haible  <bruno@clisp.org>
23471
23472         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23473         * lib/stdio.in.h: During the include_next statement, let recursive
23474         includes of this file include only the system header file.
23475
23476 2010-12-19  Bruno Haible  <bruno@clisp.org>
23477
23478         iconv_open: Fix regression from 2010-12-04.
23479         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23480         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23481
23482 2010-12-19  Bruno Haible  <bruno@clisp.org>
23483
23484         stdbool test: Avoid a gcc warning.
23485         * tests/test-stdbool.c (main): Fail if e1 is false.
23486         Reported by Jim Meyering.
23487
23488 2010-12-19  Jim Meyering  <meyering@redhat.com>
23489
23490         setenv: restore to working order
23491         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23492         mistakenly removed.
23493         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23494         HAVE_SETENV.
23495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23496         HAVE_SETENV.
23497
23498 2010-12-19  Bruno Haible  <bruno@clisp.org>
23499
23500         Document some different function declarations on OSF/1 5.1.
23501         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23502         * doc/posix-functions/inet_ntop.texi: Likewise.
23503         * doc/posix-functions/gethostname.texi: Likewise.
23504         * lib/unistd.in.h (gethostname): Update comment.
23505
23506 2010-12-19  Bruno Haible  <bruno@clisp.org>
23507
23508         doc: Mention vasprintf-posix module.
23509         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23510         the 'vasprintf-posix' module.
23511         * doc/glibc-functions/vasprintf.texi: Likewise.
23512
23513 2010-12-19  Bruno Haible  <bruno@clisp.org>
23514
23515         unsetenv: Add missing declaration on OSF/1 5.1.
23516         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23517         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23518         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23520         not HAVE_UNSETENV.
23521         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23522         HAVE_UNSETENV.
23523         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23524
23525 2010-12-19  Bruno Haible  <bruno@clisp.org>
23526
23527         setenv: Add missing declaration on OSF/1 5.1.
23528         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23529         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23530         declared. Don't set HAVE_SETENV.
23531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23532         not HAVE_SETENV.
23533         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23534         HAVE_SETENV.
23535         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23536
23537 2010-12-19  Bruno Haible  <bruno@clisp.org>
23538
23539         nl_langinfo tests: Avoid gcc warning.
23540         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23541
23542 2010-12-19  Bruno Haible  <bruno@clisp.org>
23543
23544         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23545         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23546         _GL_CXXALIAS_SYS.
23547
23548 2010-12-19  Bruno Haible  <bruno@clisp.org>
23549
23550         stdbool: Relax test.
23551         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23552         address to 'bool' work in static initializer, for compilers other than
23553         GCC.
23554
23555 2010-12-19  Bruno Haible  <bruno@clisp.org>
23556
23557         ftello: Add missing declaration on OSF/1 5.1.
23558         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23559         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23561         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23562         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23563
23564 2010-12-19  Bruno Haible  <bruno@clisp.org>
23565
23566         fseeko: Add missing declaration on OSF/1 5.1.
23567         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23570         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23571         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23572
23573 2010-12-19  Bruno Haible  <bruno@clisp.org>
23574
23575         fchdir: Add missing declaration on OSF/1 5.1.
23576         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23579         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23580         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23581
23582 2010-12-19  Bruno Haible  <bruno@clisp.org>
23583
23584         relocatable-prog-wrapper: Separate from relocatable-prog.
23585         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23586         uninstall-relocwrapper rule here.
23587         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23588         Reported by Ian Beckwith <ianb@erislabs.net>.
23589
23590 2010-12-19  Bruno Haible  <bruno@clisp.org>
23591
23592         unistr/u8-mbsnlen: Add missing dependency.
23593         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23594         Reported by Ian Beckwith <ianb@erislabs.net>.
23595
23596 2010-12-19  Bruno Haible  <bruno@clisp.org>
23597
23598         iconv: Make it possible again to use this module without 'iconv-h'.
23599         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23600         if it is not defined.
23601         Reported by Ian Beckwith <ianb@erislabs.net>.
23602
23603 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23604
23605         acl: port to Solaris 8 when copying from tmpfs to ufs
23606         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23607         error number.  Problem observed on Solaris 8 with latest
23608         coreutils, with "mv A B", where A is on a tmpfs file system and B
23609         is on a ufs file system.  This caused coreutils' mv/part-symlink
23610         test to fail.
23611
23612         tests: set fail=0 at start
23613         * tests/init.sh (setup_): Move fail=0 initialization here ...
23614         (mktempd_): ... from here, so that tests can rely on fail being
23615         set to 0 initially.  This fixes a problem in coreutils; see:
23616         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23617
23618 2010-12-18  Bruno Haible  <bruno@clisp.org>
23619
23620         memmem-simple: Stylistic changes.
23621         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23622         Fix preprocessor directive indentation.
23623
23624 2010-12-15  Pádraig Brady <P@draigBrady.com>
23625
23626         memmem, memmem-simple: reorganize and expand empty needle check
23627         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23628         functional checks to memmem-simple so that one has a fully functional
23629         memmem by using just this module.
23630         Restrict the performance only check to the memmem module.
23631         Also expand the empty needle check to ensure the correct
23632         pointer is returned, not just a non NULL pointer.
23633         * doc/glibc-functions/memmem.texi: Rearrange the portability
23634         documentation to correlate with the rearranged checks.
23635         Clarify exactly how the memmem and memmem-simple modules
23636         relate to each other.
23637
23638 2010-12-15  Pádraig Brady <P@draigBrady.com>
23639             Bruno Haible  <bruno@clisp.org>
23640
23641         Improve cross-compilation guesses for uClibc.
23642         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23643         that uClibc does not have the glibc bug.
23644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23645         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23646
23647 2010-12-14  Eric Blake  <eblake@redhat.com>
23648
23649         configmake: provide fallbacks for oldest supported autotools
23650         * m4/configmake.m4: New file.
23651         * modules/configmake (Files): Ship it.
23652         (configure.ac): Use it to guarantee fallbacks.
23653
23654 2010-12-13  Pádraig Brady <P@draigBrady.com>
23655
23656         read-file: Improve handling of large files
23657         * lib/read-file.c (fread_file): Minimize realloc()s
23658         for regular files, and better manage sizes around SIZE_MAX.
23659
23660 2010-12-13  Eric Blake  <eblake@redhat.com>
23661
23662         cloexec, fcntl: relax license
23663         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23664         consent from all contributors.
23665         * modules/fcntl (License): Likewise.
23666
23667 2010-12-10  Bruno Haible  <bruno@clisp.org>
23668
23669         Tests for module 'pipe-posix'.
23670         * modules/pipe-posix-tests: New file.
23671         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23672
23673 2010-12-10  Bruno Haible  <bruno@clisp.org>
23674
23675         pipe-posix: Make it work in C++ mode.
23676         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23677         (pipe): Use common idiom, not a macro definition.
23678         * lib/pipe.c: New file.
23679         * m4/pipe.m4: New file.
23680         * modules/pipe-posix (Description): Enhance.
23681         (Files): Add lib/pipe.c, m4/pipe.m4.
23682         (configure.ac): Invoke gl_FUNC_PIPE.
23683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23684         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23685         * tests/test-unistd-c++.cc: Check the signature of pipe.
23686
23687 2010-12-10  Bruno Haible  <bruno@clisp.org>
23688
23689         Rename module 'pipe' to 'spawn-pipe'.
23690         * modules/spawn-pipe: New file, renamed from modules/pipe.
23691         (Files, configure.ac, Makefile.am): Update.
23692         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23693         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23694         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23695         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23696         "spawn-pipe.h" instead of "pipe.h".
23697         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23698         to gl_SPAWN_PIPE.
23699         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23700         (Files, Makefile.am): Update.
23701         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23702         Update.
23703         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23704         Include "spawn-pipe.h" instead of "pipe.h".
23705         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23706         * lib/javacomp.c: Likewise.
23707         * lib/javaversion.c: Likewise.
23708         * lib/pipe-filter-gi.c: Likewise.
23709         * lib/pipe-filter-ii.c: Likewise.
23710         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23711         * modules/javacomp (Depends-on): Likewise.
23712         * modules/javaversion (Depends-on): Likewise.
23713         * modules/pipe-filter-gi (Depends-on): Likewise.
23714         * modules/pipe-filter-ii (Depends-on): Likewise.
23715         * MODULES.html.sh (Executing programs): Update.
23716         * NEWS: Mention the change.
23717
23718 2010-12-10  Eric Blake  <eblake@redhat.com>
23719
23720         pipe-posix: new module
23721         * modules/pipe-posix: New file.
23722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23723         (gl_UNISTD_H): Check for declaration.
23724         * modules/unistd (Makefile.am): Substitute it.
23725         * lib/unistd.in.h (pipe): Provide it for mingw.
23726         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23727         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23728
23729 2010-12-07  Bruno Haible  <bruno@clisp.org>
23730
23731         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23732         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23733         u8_strcmp_gnu.
23734         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23735
23736 2010-12-06  Bruno Haible  <bruno@clisp.org>
23737
23738         Update internal documentation.
23739         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23740
23741 2010-12-04  Bruno Haible  <bruno@clisp.org>
23742
23743         Put more information about failed tests into the test return codes.
23744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23745         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23746         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23747         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23748         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23749         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23750         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23751         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23752         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23754         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23755         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23756         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23757         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23758         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23759         returns a bit mask.
23760         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23761         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23762         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23763         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23764         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23765         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23766         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23768         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23769         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23770         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23771         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23773         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23774         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23775         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23776         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23777         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23778         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23779         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23780         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23781         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23782         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23783         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23784         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23785         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23786         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23787         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23788         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23789         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23790         gl_PRINTF_PRECISION): Likewise.
23791         * m4/regex.m4 (gl_REGEX): Likewise.
23792         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23793         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23795         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23798         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23799         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23800         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23801         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23802         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23803         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23804         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23805         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23806         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23807         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23808         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23809         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23811         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23812         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23813         enumerated value.
23814         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23815
23816 2010-12-04  Bruno Haible  <bruno@clisp.org>
23817
23818         Update for Solaris 11 2010-11.
23819         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23820         Express, released in November 2010.
23821
23822 2010-12-04  Bruno Haible  <bruno@clisp.org>
23823
23824         nproc: Relax license.
23825         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23826         and Paul Eggert.
23827         Requested by Ludovic Courtès <ludo@gnu.org>.
23828
23829 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23830
23831         utimecmp: fine-grained src to nearby coarse-grained dest
23832
23833         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23834         and the source is on a file system with higher-resolution time
23835         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23836         not work, and the time stamps are close together, the algorithm to
23837         determine the exact resolution from the read-back mtime was buggy:
23838         it had a "!=" where it should have had an "==".  This bug has been
23839         in the code ever since it was introduced to gnulib.
23840         Problem reported by Dan Jacobson in
23841         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23842
23843 2010-11-30  Bruno Haible  <bruno@clisp.org>
23844
23845         strerror_r-posix: Fix autoconf test.
23846         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23847
23848 2010-11-28  Bruno Haible  <bruno@clisp.org>
23849             Paul Eggert  <eggert@cs.ucla.edu>
23850
23851         Tests for module 'getdomainname'.
23852         * modules/getdomainname-tests: New file.
23853         * tests/test-getdomainname.c: New file, based on
23854         tests/test-gethostname.c.
23855
23856 2010-11-28  Bruno Haible  <bruno@clisp.org>
23857             Paul Eggert  <eggert@cs.ucla.edu>
23858
23859         getdomainname: Use the system function when possible.
23860         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23861         (getdomainname): Replace if needed. Provide the declaration if it is
23862         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23863         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23864         (getdomainname): When the system has getdomainname, call the system
23865         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23866         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23867         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23868         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23869         the function if its second argument is of type 'int' or if it is found
23870         in libnsl.
23871         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23872         <sys/systeminfo.h> and sysinfo().
23873         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23875         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23876         HAVE_GETDOMAINNAME.
23877         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23878         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23879         * doc/glibc-functions/getdomainname.texi: Document the problems with
23880         the getdomainname declaration.
23881
23882 2010-11-28  Bruno Haible  <bruno@clisp.org>
23883
23884         sys_socket: Ensure ss_family field on AIX.
23885         * lib/sys_socket.in.h (ss_family): New macro definition.
23886         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23887         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23888         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23889         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23890         * modules/sys_socket (Makefile.am): Substitute
23891         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23892         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23893
23894 2010-11-27  Bruno Haible  <bruno@clisp.org>
23895
23896         readline: Improve configure output.
23897         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23898         "checking for readline..." result understandable.
23899
23900 2010-11-27  Bruno Haible  <bruno@clisp.org>
23901
23902         *printf-posix: Detect a bug on Solaris 10/x86.
23903         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23904         for floating-point output.
23905         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23906         directive.
23907         * tests/test-snprintf-posix.h (test_function): Likewise.
23908         * tests/test-sprintf-posix.h (test_function): Likewise.
23909         * tests/test-vasprintf-posix.c (test_function): Likewise.
23910         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23911         * doc/posix-functions/printf.texi: Likewise.
23912         * doc/posix-functions/snprintf.texi: Likewise.
23913         * doc/posix-functions/sprintf.texi: Likewise.
23914         * doc/posix-functions/vfprintf.texi: Likewise.
23915         * doc/posix-functions/vprintf.texi: Likewise.
23916         * doc/posix-functions/vsnprintf.texi: Likewise.
23917         * doc/posix-functions/vsprintf.texi: Likewise.
23918         * doc/glibc-functions/obstack_printf.texi: Likewise.
23919         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23920
23921 2010-11-27  Bruno Haible  <bruno@clisp.org>
23922
23923         Fix link error when module libunistring-optional is in use.
23924         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23925         * modules/striconveha-tests (Makefile.am): Likewise.
23926
23927 2010-11-27  Bruno Haible  <bruno@clisp.org>
23928
23929         regex: Mention link dependencies.
23930         * modules/regex (Link): New section.
23931         * modules/rpmatch (Link): Likewise.
23932         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23933
23934 2010-11-27  Bruno Haible  <bruno@clisp.org>
23935
23936         ftoastr: Fix compilation error on Solaris.
23937         * lib/ftoastr.c: Include <config.h>.
23938
23939 2010-11-27  Bruno Haible  <bruno@clisp.org>
23940
23941         getloadavg: Update documentation.
23942         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23943
23944 2010-11-27  Bruno Haible  <bruno@clisp.org>
23945
23946         sys_socket: Fix test whether the functions are declared.
23947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23948         not <sys/select.h>.
23949
23950 2010-11-27  Bruno Haible  <bruno@clisp.org>
23951
23952         getpass: Make sure to get system declaration on some platforms.
23953         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23954         gl_USE_SYSTEM_EXTENSIONS.
23955         * modules/getpass (Depends-on): Add extensions.
23956
23957 2010-11-26  Bruno Haible  <bruno@clisp.org>
23958
23959         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23960         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23961         'iconv' module is present.
23962         (ICONV_CONST): New macro.
23963         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23964         ICONV_CONST.
23965         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23966         set ICONV_CONST.
23967         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23968         here.
23969         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23970         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23971         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23972         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23973         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23974         present.
23975
23976 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23977
23978         ftoastr: comment fix
23979         * lib/ftoastr.c: "little" -> "little or no" in comment
23980
23981 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23982
23983         stdint: port to GCC 4.3 + OSX + Octave
23984         On this platform, stdint.h is buggy and defines int64_t to long
23985         long int.  The replacement defined it to long int, causing
23986         problems with C++ style name mangling.  Instead, trust the system
23987         definition if INT64_MAX is defined, and likewise for the unsigned
23988         variant.   Problem reported by Jarno Rajahalme in
23989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23990         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23991         and don't mess with int64_t and INT64_MAX in this case.
23992         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23993
23994 2010-11-24  Bruno Haible  <bruno@clisp.org>
23995
23996         doc: Corrections regarding MacOS X 10.4 and 10.5.
23997         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23998         MacOS X.
23999         Reported by Simon Josefsson.
24000
24001 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24002
24003         Uninstall ".bin" files installed by relocwrapper.
24004         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24005         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24006         unless it is already there.
24007
24008 2010-11-21  Bruno Haible  <bruno@clisp.org>
24009
24010         Update for NetBSD 5.0.
24011         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24012         NetBSD; the test fails on NetBSD 5.0.
24013         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24014         about NetBSD.
24015
24016 2010-11-21  Bruno Haible  <bruno@clisp.org>
24017
24018         Update for HP-UX 11.23 and HP-UX 11.31.
24019         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24020         HP-UX.
24021
24022 2010-11-21  Bruno Haible  <bruno@clisp.org>
24023
24024         Update for MacOS X 10.5.
24025         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24026         MacOS X; the test fails on MacOS X 10.5.8.
24027         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24028         about MacOS X.
24029
24030 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24031
24032         bootstrap: add bootstrap_sync option.
24033         See discussion at
24034         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24035         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24036         * build-aux/bootstrap: Accept --bootstrap-sync to update
24037         bootstrap if it is not identical to the local gnulib's
24038         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24039         enable this by default.  Accept --no-bootstrap-sync to disable
24040         it.
24041
24042 2010-11-20  Bruno Haible  <bruno@clisp.org>
24043
24044         Ensure that <features.h> is included before __GLIBC__ is tested.
24045         * lib/printf-parse.h: Include <features.h>.
24046         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24047         Reported by Mike Frysinger <vapier@gentoo.org>.
24048
24049         Ensure that <features.h> is included before __GLIBC__ is tested.
24050         * lib/wchar.in.h: Include <features.h>.
24051         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24052         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24053         Reported by Mike Frysinger <vapier@gentoo.org>.
24054
24055         Ensure that <features.h> is included before __GLIBC__ is tested.
24056         * lib/arpa_inet.in.h: Include <features.h>.
24057         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24058         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24059         Reported by Mike Frysinger <vapier@gentoo.org>.
24060
24061         Ensure that <features.h> is included before __GLIBC__ is tested.
24062         * build-aux/link-warning.h: Include <features.h>.
24063         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24064         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24065         Reported by Mike Frysinger <vapier@gentoo.org>.
24066
24067         Ensure that <features.h> is included before __GLIBC__ is tested.
24068         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24069         Reported by Mike Frysinger <vapier@gentoo.org>.
24070
24071 2010-11-20  Bruno Haible  <bruno@clisp.org>
24072
24073         memmem: Fix autoconf test.
24074         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24075
24076 2010-11-20  Bruno Haible  <bruno@clisp.org>
24077
24078         Port to uClibc.
24079         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24080         * lib/fcntl.in.h: Likewise.
24081         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24082         * lib/mbrtowc.c (mbrtowc): Likewise.
24083         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24084         * lib/strerror_r.c: Likewise.
24085         * lib/unistr/u8-strnlen.c: Likewise.
24086         * lib/vasnprintf.c (decimal_point_char): Likewise.
24087         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24088         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24089         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24090         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24091         * tests/test-sigaction.c (handler, main): Likewise.
24092         * lib/freading.h: Treat uClibc like a non-glibc platform.
24093         * lib/freading.c: Likewise.
24094         * lib/gettext.h: Likewise.
24095         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24096         Likewise.
24097         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24098         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24099         * lib/propername.c (proper_name_utf8): Likewise.
24100         * lib/spawn.in.h: Likewise.
24101         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24102         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24103         mem_cd_iconveh_internal): Likewise.
24104         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24105         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24106         strstr, strcasestr): Likewise.
24107         * lib/unicodeio.c (unicode_to_mb): Likewise.
24108         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24109         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24110         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24111         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24112         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24113         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24114         * lib/unistr/u8-stpncpy.c: Likewise.
24115         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24116         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24117         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24118         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24119         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24120         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24121         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24122         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24124         Likewise.
24125         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24126         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24127         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24129         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24130         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24131         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24132         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24133         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24134         * tests/test-striconveha.c (main): Likewise.
24135         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24136         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24137         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24138         * doc/posix-functions/getline.texi: Likewise.
24139         Reported by Mike Frysinger <vapier@gentoo.org>.
24140
24141 2010-11-20  Bruno Haible  <bruno@clisp.org>
24142
24143         nproc: Fix condition.
24144         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24145         HAVE_PTHREAD_AFFINITY_NP.
24146
24147 2010-11-20  Bruno Haible  <bruno@clisp.org>
24148
24149         Fix a comment.
24150         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24151
24152 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24153
24154         ftoastr: don't assume snprintf
24155         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24156         Implement a subset of snprintf here, by using sprintf safely.
24157         * modules/ftoastr (Depends-on): Remove snprintf.
24158
24159 2010-11-19  Jim Meyering  <meyering@redhat.com>
24160
24161         test-rename.h: fix compilation failure
24162         * tests/test-rename.h (test_rename): Add omitted "}".
24163
24164 2010-11-17  Jim Meyering  <meyering@redhat.com>
24165
24166         maint.mk: add a URL discussing the no-@acronym policy
24167         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24168
24169 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24170
24171         ftoastr: depend on snprintf, improve comments
24172         * lib/ftoastr.c: Also mention Loitsch's draft.
24173         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24174         needed in the current implementation, but it might simplify
24175         speeding up the code later.
24176         * modules/ftoastr: Depend on snprintf; this improves portability.
24177         Suggested by Bruno Haible in the same email.
24178
24179         ftoastr: port to hosts lacking strtof and strtold
24180         Problem reported by Bruno Haible in
24181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24182         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24183         environment and strtold (and presumably strtof) are not available.
24184         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24185         (configure.ac): Require gl_C99_STRTOLD.
24186
24187 2010-11-18  Bruno Haible  <bruno@clisp.org>
24188
24189         c-strtold: Avoid link error on AIX 7.
24190         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24191         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24192         (gl_C_STRTOLD): Test whether strtold_l exists.
24193         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24194
24195 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24196
24197         intprops: new macro INT_BITS_STRLEN_BOUND
24198         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24199         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24200         not exposed.  Also, it uses a slightly tighter bound than before;
24201         though this makes no practical difference, we might as well be as
24202         tight as we easily can.
24203
24204         ftoastr: new module, for lossless conversion of floats to short strings
24205         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24206         * modules/ftoastr: New files.
24207
24208 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24209
24210         bootstrap: port to Solaris sed
24211         * build-aux/bootstrap (get_version): Port to Solaris sed.
24212         See Ralf Wildenhues's note in
24213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24214
24215 2010-11-14  Jim Meyering  <meyering@redhat.com>
24216
24217         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24218         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24219         and move definition closer to sole use.
24220
24221 2010-11-13  Jim Meyering  <meyering@redhat.com>
24222
24223         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24224         Now we require at least autoconf-2.59, which means the work-around
24225         is no longer needed.
24226         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24227         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24228         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24229         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24230         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24231
24232 2010-11-13  Bruno Haible  <bruno@clisp.org>
24233
24234         rename, renameat: Avoid test failures at NFS mounted locations.
24235         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24236         functions.
24237         (test_rename): Use assert_nonexistent.
24238         * tests/test-rename.c: Include <dirent.h>.
24239         * tests/test-renameat.c: Likewise.
24240         Reported by Gary V. Vaughan <gary@gnu.org>.
24241
24242         rename, renameat: Document Linux bug with NFS
24243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24244         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24245         * doc/posix-functions/renameat.texi: Likewise.
24246         Suggested by Eric Blake.
24247
24248 2010-11-13  Bruno Haible  <bruno@clisp.org>
24249
24250         rename test: Add comments.
24251         * tests/test-rename.h (test_rename): Add structure and comments.
24252
24253 2010-11-13  Eric Blake  <eblake@redhat.com>
24254
24255         maintainer-makefile: cover a few more files
24256         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24257         scripts generated within C files, for libvirt.
24258
24259 2010-11-13  Bruno Haible  <bruno@clisp.org>
24260
24261         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24262         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24263         character, return the number of bytes that belong together, not always
24264         1.
24265         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24266         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24267         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24268         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24269         number of bytes of an invalid character.
24270         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24271         (main): Invoke it.
24272         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24273         results.
24274         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24275         malformed byte sequences.
24276         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24277         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24278         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24279         Reported by Ben Pfaff and Paolo Bonzini.
24280
24281 2010-11-13  Bruno Haible  <bruno@clisp.org>
24282
24283         openat: Work around glibc bug with fchownat() and empty file names.
24284         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24285         (gl_FUNC_FCHOWNAT): Invoke it.
24286         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24287         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24288         Reported by Gary V. Vaughan <gary@gnu.org>.
24289
24290 2010-11-13  Bruno Haible  <bruno@clisp.org>
24291
24292         openat: Ensure autoconf macro ordering.
24293         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24294         gl_USE_SYSTEM_EXTENSIONS.
24295         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24296
24297 2010-11-13  Bruno Haible  <bruno@clisp.org>
24298
24299         Update comments.
24300         * lib/unistr/u8-check.c: Update file name in comments.
24301         * lib/unistr/u8-mblen.c: Likewise.
24302         * lib/unistr/u8-prev.c: Likewise.
24303         * lib/unistr/u8-strmblen.c: Likewise.
24304         * lib/unistr/u8-strmbtouc.c: Likewise.
24305
24306 2010-11-13  Jim Meyering  <meyering@redhat.com>
24307
24308         tests: avoid test failure on Solaris 10 due to lack of PATH export
24309         * tests/test-update-copyright.sh: Don't forget to export PATH.
24310
24311         init.sh: ensure that IFS is defined, just in case...
24312         * tests/init.sh (setup_): Ensure that IFS is defined,
24313         so that saving and restoring it works as expected.  This
24314         appears to be useful at least for an old version of dash
24315         from a long time ago (RH 6).  See here for details:
24316         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24317
24318         maint.mk: tighten "test a == b" check
24319         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24320         test to files that contain something like #!/bin/sh.
24321         Without this, coreutils would get two false positives in
24322         the comments of C source files.
24323
24324 2010-11-12  Eric Blake  <eblake@redhat.com>
24325
24326         bootstrap: fix typo in previous attempt
24327         * build-aux/bootstrap (buildreq): Correct the grouping.
24328         Reported by Paul Eggert.
24329
24330         maintainer-makefile: prohibit test x == x
24331         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24332         Based on a report by Matthias Bolte.
24333
24334         bootstrap: allow FreeBSD gzip
24335         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24336         which has no '.' and goes to stderr.
24337         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24338         Reported by Matthias Bolte.
24339
24340         maintainer-makefile: check for i18n setup
24341         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24342         will likely work.
24343
24344 2010-11-12  Bruno Haible  <bruno@clisp.org>
24345
24346         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24347         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24348         * lib/nanosleep.c (nanosleep): Likewise.
24349
24350 2010-11-11  Bruno Haible  <bruno@clisp.org>
24351
24352         fcntl-h: Fix for use of C++ on glibc systems.
24353         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24354         also on glibc systems in C++ mode.
24355         Reported by Gary V. Vaughan <gary@gnu.org>.
24356
24357 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24358
24359         mknod: avoid false failure with dash
24360         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24361
24362 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24363
24364         unlink: Fix "is it should" typo in diagnostic.
24365         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24366         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24367
24368 2010-11-11  Bruno Haible  <bruno@clisp.org>
24369
24370         Tests for module 'strerror_r-posix'.
24371         * modules/strerror_r-posix-tests: New file.
24372         * tests/test-strerror_r.c: New file.
24373         * tests/test-string-c++.cc: Check the signature of strerror_r.
24374
24375         New module 'strerror_r-posix'.
24376         * lib/string.in.h (strerror_r): New declaration.
24377         * lib/strerror_r.c: New file.
24378         * m4/strerror_r.m4: New file.
24379         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24380         of strerror_r.
24381         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24382         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24383         * modules/strerror_r-posix: New file.
24384         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24385         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24386         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24387         portability problems.
24388
24389 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24390
24391         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24392         line is also considered for output. Quoted function name in shell
24393         command, so temporary files for functions like MyClass::operator()
24394         are removed correctly without errors.
24395
24396 2010-11-09  Bruno Haible  <bruno@clisp.org>
24397
24398         * doc/posix-functions/strerror.texi: List more failing platforms.
24399
24400         * doc/posix-functions/strerror.texi: Add a comment.
24401
24402 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24403
24404         fdopendir: fix bug on MacOS X when low on file descriptors
24405
24406         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24407         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24408         All callers changed.
24409         (fdopendir): Invoke save_cwd at the top level, not after using
24410         multiple dup() calls to use up file descriptors.  Then retry
24411         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24412         less than the maximum number of open file descriptors, because
24413         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24414         on Mac OS X 10.6.4 for tar 1.24
24415         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24416         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24417         and for tar 1.25
24418         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24419
24420 2010-11-07  Bruno Haible  <bruno@clisp.org>
24421
24422         vasnprintf: Support I flag on glibc systems.
24423         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24424         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24425         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24426         snprintf function.
24427         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24428         glibc systems.
24429         * tests/test-vasnprintf-posix3.c: New file.
24430         * modules/vasnprintf-posix-tests (Files): Add it.
24431         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24432
24433 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24434
24435         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24436         * MODULES.html.sh: For compiler warnings, use name
24437         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24438
24439 2010-11-05  Eric Blake  <eblake@redhat.com>
24440
24441         ceil, floor: avoid spurious failure with icc
24442         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24443         [denormals-as-zero] when optimizing without -mieee-fp option.
24444         * tests/test-floorf2.c (floorf_reference): Likewise.
24445         * tests/test-ceilf1.c (dummy): New function.
24446         (main): Use it to outsmart icc's optimization.
24447         * tests/test-floorf1.c (dummy, main): Likewise.
24448
24449         tests: require working signbit
24450         * modules/ceilf-tests (Depends-on): Add signbit.
24451         * modules/ceill-tests (Depends-on): Likewise.
24452         * modules/floorf-tests (Depends-on): Likewise.
24453         * modules/floorl-tests (Depends-on): Likewise.
24454         * modules/round-tests (Depends-on): Likewise.
24455         * modules/roundf-tests (Depends-on): Likewise.
24456         * modules/roundl-tests (Depends-on): Likewise.
24457         * modules/trunc-tests (Depends-on): Likewise.
24458         * modules/truncf-tests (Depends-on): Likewise.
24459         * modules/truncl-tests (Depends-on): Likewise.
24460
24461         strtod: work around icc bug
24462         * lib/strtod.c (minus_zero): Define to working value.
24463         (strtod): Use it to avoid icc bug.
24464
24465         copysign: enhance tests
24466         * modules/copysign-tests (Files): Add minus-zero.h.
24467         * tests/test-copysign.c (main): Also test zeros.
24468
24469 2010-11-04  Eric Blake  <eblake@redhat.com>
24470
24471         ceil, floor, round, trunc: enhance tests of -0
24472         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24473         * tests/test-ceill.c (main): Likewise.
24474         * tests/test-floorf1.c (main): Likewise.
24475         * tests/test-floorl.c (main): Likewise.
24476         * tests/test-round1.c (main): Likewise.
24477         * tests/test-roundf1.c (main): Likewise.
24478         * tests/test-roundl.c (main): Likewise.
24479         * tests/test-trunc1.c (main): Likewise.
24480         * tests/test-truncf1.c (main): Likewise.
24481         * tests/test-truncl.c (main): Likewise.
24482
24483 2010-11-04  Eric Blake  <eblake@redhat.com>
24484
24485         frexp, tests: work around ICC bug with -zero
24486         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24487         works with more compilers.
24488         * tests/minus-zero.h: New file.
24489         * modules/ceilf-tests (Files): Include it.
24490         * modules/ceill-tests (Files): Likewise.
24491         * modules/floorf-tests (Files): Likewise.
24492         * modules/floorl-tests (Files): Likewise.
24493         * modules/frexp-nolibm-tests (Files): Likewise.
24494         * modules/frexp-tests (Files): Likewise.
24495         * modules/frexpl-nolibm-tests (Files): Likewise.
24496         * modules/frexpl-tests (Files): Likewise.
24497         * modules/isnan-tests (Files): Likewise.
24498         * modules/isnand-nolibm-tests (Files): Likewise.
24499         * modules/isnand-tests (Files): Likewise.
24500         * modules/isnanf-nolibm-tests (Files): Likewise.
24501         * modules/isnanf-tests (Files): Likewise.
24502         * modules/isnanl-nolibm-tests (Files): Likewise.
24503         * modules/isnanl-tests (Files): Likewise.
24504         * modules/round-tests (Files): Likewise.
24505         * modules/roundf-tests (Files): Likewise.
24506         * modules/roundl-tests (Files): Likewise.
24507         * modules/ldexpl-tests (Files): Likewise.
24508         * modules/signbit-tests (Files): Likewise.
24509         * modules/snprintf-posix-tests (Files): Likewise.
24510         * modules/sprintf-posix-tests (Files): Likewise.
24511         * modules/strtod-tests (Files): Likewise.
24512         * modules/trunc-tests (Files): Likewise.
24513         * modules/truncf-tests (Files): Likewise.
24514         * modules/truncl-tests (Files): Likewise.
24515         * modules/vsnprintf-posix-tests (Files): Likewise.
24516         * modules/vsprintf-posix-tests (Files): Likewise.
24517         * modules/vasnprintf-posix-tests (Files): Likewise.
24518         * modules/vasprintf-posix-tests (Files): Likewise.
24519         * tests/test-ceilf1.c (main): Use it.
24520         * tests/test-ceill.c (main): Likewise.
24521         * tests/test-floorf1.c (main): Likewise.
24522         * tests/test-floorl.c (main): Likewise.
24523         * tests/test-frexp.c (main): Likewise.
24524         * tests/test-frexpl.c (main): Likewise.
24525         * tests/test-isnan.c (main): Likewise.
24526         * tests/test-isnand.h (main): Likewise.
24527         * tests/test-isnanf.h (main): Likewise.
24528         * tests/test-isnanl.h (main): Likewise.
24529         * tests/test-ldexpl.c (main): Likewise.
24530         * tests/test-round.c (main): Likewise.
24531         * tests/test-roundf.c (main): Likewise.
24532         * tests/test-roundl.c (main): Likewise.
24533         * tests/test-signbit.c (test_signbitf, test_signbitd)
24534         (test_signbitl): Likewise.
24535         * tests/test-snprintf-posix.h (test_function): Likewise.
24536         * tests/test-sprintf-posix.h (test_function): Likewise.
24537         * tests/test-strtod.c (main): Likewise.
24538         * tests/test-trunc1.c (main): Likewise.
24539         * tests/test-truncf1.c (main): Likewise.
24540         * tests/test-truncl.c (main): Likewise.
24541
24542         isnanl: work around icc bug
24543         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24544
24545 2010-11-03  Eric Blake  <eblake@redhat.com>
24546
24547         tests: fix compiler warnings
24548         * tests/test-getopt.h (test_getopt): Fix condition.
24549         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24550         * tests/test-pipe2.c (main): Likewise.
24551         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24552
24553         utimens: fix broken m4 test
24554         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24555
24556 2010-10-28  Bruno Haible  <bruno@clisp.org>
24557
24558         posix_spawn*, getdtablesize: Relax license.
24559         * modules/posix_spawn (License): Change to LGPLv2+.
24560         * modules/posix_spawnp (License): Likewise.
24561         * modules/posix_spawn-internal (License): Likewise.
24562         * modules/posix_spawnattr_init (License): Likewise.
24563         * modules/posix_spawnattr_getflags (License): Likewise.
24564         * modules/posix_spawnattr_setflags (License): Likewise.
24565         * modules/posix_spawnattr_getpgroup (License): Likewise.
24566         * modules/posix_spawnattr_setpgroup (License): Likewise.
24567         * modules/posix_spawnattr_getschedparam (License): Likewise.
24568         * modules/posix_spawnattr_setschedparam (License): Likewise.
24569         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24570         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24571         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24572         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24573         * modules/posix_spawnattr_getsigmask (License): Likewise.
24574         * modules/posix_spawnattr_setsigmask (License): Likewise.
24575         * modules/posix_spawnattr_destroy (License): Likewise.
24576         * modules/posix_spawn_file_actions_init (License): Likewise.
24577         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24578         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24579         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24580         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24581         * modules/getdtablesize (License): Likewise.
24582         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24583
24584 2010-10-26  Bruno Haible  <bruno@clisp.org>
24585
24586         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24587         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24588         Cygwin and mingw.
24589         Suggested by Eric Blake.
24590
24591 2010-10-26  Bruno Haible  <bruno@clisp.org>
24592
24593         stdio: Work around compilation error due to renameat() on Solaris 10.
24594         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24595         * lib/renameat.c: Don't include <unistd.h> here.
24596         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24597         Reported by Paul Eggert and Eric Blake.
24598
24599 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24600
24601         renameat: port to Solaris 10, which declares renameat in unistd.h
24602
24603         * lib/renameat.c: Include unistd.h before stdio.h, because
24604         Solaris 10 declares renameat in unistd.h.  Problem encountered
24605         when building GNU tar 1.24 on Solaris 10.
24606
24607 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24608
24609         fdopendir: fix C89 compilation
24610         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24611         compilers.
24612
24613 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24614
24615         inttostr: simplify by removing unnecessary redundancy
24616         * lib/anytostr.c: Don't include verify.h.
24617         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24618         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24619         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24620         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24621         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24622         Likewise.
24623         * modules/inttostr (Depends-on): Remove 'verify'.
24624
24625 2010-10-23  Bruno Haible  <bruno@clisp.org>
24626
24627         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24628         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24629         Reported by Eric Blake.
24630
24631 2010-10-23  Bruno Haible  <bruno@clisp.org>
24632
24633         Tests: Fix LOCALE_JA on MirBSD 10.
24634         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24635         to an UTF-8 locale.
24636         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24637         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24638         Reported by Eric Blake.
24639
24640 2010-10-21  Bruno Haible  <bruno@clisp.org>
24641
24642         nl_langinfo test: Avoid test failure on NetBSD 5.
24643         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24644         Reported by Eric Blake.
24645
24646 2010-10-21  Eric Blake  <eblake@redhat.com>
24647
24648         c-stack: work around libsigsegv 2.8 bug
24649         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24650         overflow on at least PowerPC64.
24651
24652 2010-10-17  Bruno Haible  <bruno@clisp.org>
24653
24654         userspec: Drop redundant file.
24655         * modules/userspec (Files): Remove lib/inttostr.h.
24656
24657 2010-10-17  Bruno Haible  <bruno@clisp.org>
24658
24659         nl_langinfo tests: Silence some warnings.
24660         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24661         Reported by Jim Meyering.
24662
24663 2010-10-17  Bruno Haible  <bruno@clisp.org>
24664
24665         Make use of GCC's attribute __alloc_size__.
24666         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24667         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24668         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24669         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24670         __alloc_size__.
24671         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24672         Suggested by Jim Meyering.
24673
24674 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24675
24676         bootstrap: anchor .gitignore entries.
24677         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24678         with...
24679         (insert_vc_ignore): ... this new function, which prepends `/' to
24680         all .gitignore entries before passing them to
24681         insert_sorted_if_absent.
24682
24683 2010-10-16  Bruno Haible  <bruno@clisp.org>
24684
24685         nextafter: Fix configure check.
24686         * modules/nextafter (configure.ac): Correct expected prototype.
24687
24688 2010-10-16  Bruno Haible  <bruno@clisp.org>
24689
24690         termios: Update documentation.
24691         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24692
24693 2010-10-16  Bruno Haible  <bruno@clisp.org>
24694
24695         tests: Make them compile with TinyCC.
24696         * tests/test-strstr.c (main): Remove parentheses around array
24697         initializer.
24698
24699 2010-10-15  Eric Blake  <eblake@redhat.com>
24700
24701         ignore-value: make header idempotent
24702         * lib/ignore-value.h: Add double-inclusion guards.
24703         Reported by Stefan Berger.
24704
24705 2010-10-15  Jim Meyering  <meyering@redhat.com>
24706
24707         GNUmakefile: handle "stable" target, not "major"
24708         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24709         lists in maint.mk and announce-gen.  Without this, "make stable"
24710         would fail to ensure that $(VERSION) is up to date.
24711
24712 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24713
24714         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24715         & co.
24716
24717 2010-10-14  Bruno Haible  <bruno@clisp.org>
24718
24719         vasnprintf: Don't set errno to 0.
24720         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24721         block that sets it to 0.
24722         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24723
24724 2010-10-14  Bruno Haible  <bruno@clisp.org>
24725
24726         socketlib: Fix.
24727         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24728         gl_PREREQ_SYS_H_WINSOCK2.
24729         Reported by Ian Beckwith <ianb@erislabs.net>.
24730
24731 2010-10-13  Jim Meyering  <meyering@redhat.com>
24732
24733         test-select-stdin.c: avoid warn_unused_result warnings
24734         * tests/test-select-stdin.c: Include "macros.h".
24735         ASSERT that read and fflush succeed.
24736
24737 2010-10-13  Jim Meyering  <meyering@redhat.com>
24738
24739         git-version-gen: do require git-VC'd files in cwd
24740         * build-aux/git-version-gen: Reject a git version string
24741         if there are no commits associated with the current directory.
24742         This avoids an unlikely false-positive (unrelated dir whose parent
24743         repository also contains a tag matching v*), as pointed out
24744         by Giuseppe Scrivano in
24745         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24746
24747 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24748
24749         argv-iter: omit nonconforming declaration
24750         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24751         enum arg_iter_err declaration, which doesn't conform to C99.
24752         Solaris 10 cc warns about this.
24753
24754 2010-10-13  Eric Blake  <eblake@redhat.com>
24755
24756         termios: fix compilation on mingw
24757         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24758         (gl_TERMIOS_H): Adjust it on mingw.
24759         * modules/termios (Makefile.am): Substitute new key.
24760         * lib/termios.in.h (includes): Make include_next conditional.
24761         * doc/posix-headers/termios.texi (termios.h): Update
24762         documentation.
24763         Reported by Daniel P. Berrange.
24764
24765 2010-10-13  Jim Meyering  <meyering@redhat.com>
24766
24767         git-version-gen: don't require that .git/ be in the current dir
24768         * build-aux/git-version-gen: Adjust this script so that it works
24769         when run from any working directory beneath the top-level .git/-
24770         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24771         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24772
24773         test-select: avoid warn_unused_result warnings
24774         * tests/test-select.c: Include "macros.h".
24775         ASSERT that each call to read, write, and pipe succeeds.
24776         While not technically required, also check each "close".
24777         * modules/select-tests (Files): Add tests/macros.h.
24778
24779         test-symlinkat: remove declaration of unused local
24780         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24781
24782         test-inttostr: avoid shadowing warnings
24783         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24784         and use malloc rather than the stack for the same reason as
24785         mentioned in the comment justifying the other allocation.
24786
24787 2010-10-11  Bruno Haible  <bruno@clisp.org>
24788
24789         stdlib: Allow multiple gnulib generated replacements to coexist.
24790         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24791         Reported by Sam Steingold <sds@gnu.org>.
24792
24793 2010-10-11  Jim Meyering  <meyering@redhat.com>
24794
24795         fix a documentation typo
24796         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24797
24798 2010-10-11  Eric Blake  <eblake@redhat.com>
24799
24800         futimens: work around Solaris 11 bug
24801         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24802         * tests/test-futimens.h (test_futimens): Enhance, rather than
24803         weaken test.
24804         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24805
24806 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24807
24808         Indentation.
24809         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24810         higher-level operators more to the left.
24811
24812 2010-10-11  Jim Meyering  <meyering@redhat.com>
24813
24814         test-futimens: avoid unwarranted test failure on Solaris 5.11
24815         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24816         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24817         because it tries to dereference the NULL name argument.
24818
24819 2010-10-11  Bruno Haible  <bruno@clisp.org>
24820
24821         Indentation.
24822         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24823         indentation.
24824
24825 2010-10-11  Jim Meyering  <meyering@redhat.com>
24826
24827         spawn.in.h: make indentation consistent with parentheses
24828         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24829         Make indentation consistent with parentheses.
24830
24831 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24832
24833         Fix mismatched parens in previous commit
24834         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24835         parens.
24836
24837 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24838
24839         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24840
24841         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24842         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24843         * lib/malloca.c: Include "verify.h".
24844         (verify1): Remove, replacing with a verify call.
24845         * lib/relocwrapper.c (verify1): Likewise.
24846         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24847         Likewise.
24848         * modules/malloca (Depends-on): Add 'verify'.
24849         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24850         * modules/vasnprintf (Depends-on): Add 'verify'.
24851         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24852         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24853         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24854         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24855         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24856         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24857         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24858
24859         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24860
24861         Formerly the style was sometimes 2*X - 1, because the C standard
24862         was wrongly thought to disallow ?: in integral constant expressions.
24863         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24864         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24865         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24866         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24867         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24868         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24869         verify that time_t cannot be floating.
24870
24871 2010-10-08  Eric Blake  <eblake@redhat.com>
24872
24873         time: enforce recent POSIX ruling that time_t is integral
24874         * lib/time.in.h (__time_t_must_be_integral): Detect any
24875         problematic systems, allowing the rest of gnulib to assume POSIX.
24876
24877 2010-10-08  Jim Meyering  <meyering@redhat.com>
24878
24879         fdopendir: fix a bug on systems lacking openat and /proc support
24880         OpenBSD 4.7 is one such system.  The most noticeable effect was
24881         failure of any application making nontrivial use of fts: rm, du,
24882         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24883           ./rm: traversal failed: `a': Bad file descriptor
24884         Debugging that, you see that even though FD 6 was closed just
24885         prior to the opendir call in fd_clone_opendir, its resulting
24886         dir->dd_fd was 8, rather than the expected value of 6:
24887
24888         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24889         93                close (fd);
24890         (gdb) n
24891         94                dir = fd_clone_opendir (dupfd);
24892         (gdb) n
24893         95                saved_errno = errno;
24894         (gdb) p dir->dd_fd
24895         $11 = 8
24896
24897         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24898         The problem is that on OpenBSD, fd_clone_opendir has to resort
24899         to using the old-style save/restore CWD mechanism, due to its
24900         lack of openat/proc support, and *that* would steal the FD (6)
24901         that opendir was supposed to use.
24902
24903         The fix is to squirrel away the desired FD so that save_cwd uses a
24904         different one, and then free the dest FD right before calling opendir.
24905         That guarantees opendir will use the required file descriptor.
24906
24907         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24908
24909 2010-10-08  Bruno Haible  <bruno@clisp.org>
24910
24911         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24912         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24913
24914 2010-10-08  Bruno Haible  <bruno@clisp.org>
24915
24916         nanosleep: Make replacement POSIX compliant.
24917         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24918         is out of range.
24919         Reported by Jim Meyering.
24920
24921 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24922
24923         bootstrap: add hook for altering gnulib.mk, for Bison
24924         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24925         the Bison bootstrapping process can rewrite file names and variables
24926         in this file before later parts of 'bootstrap' use the file.
24927         Bison wants to include lib/gnulib.mk from the top-level makefile,
24928         so it needs the file names in this file to be relative to the top
24929         level, not relative to lib; plus it needs variable names to be
24930         rewritten.
24931         (slurp): Use the new function.
24932
24933         bootstrap: reformat for readability
24934         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24935
24936 2010-10-08  Eric Blake  <eblake@redhat.com>
24937
24938         docs: update cygwin progress
24939         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24940         1.7.7.
24941         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24942         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24943         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24944         * doc/posix-functions/carg.texi (carg): Likewise.
24945         * doc/posix-functions/cargf.texi (cargf): Likewise.
24946         * doc/posix-functions/casin.texi (casin): Likewise.
24947         * doc/posix-functions/casinf.texi (casinf): Likewise.
24948         * doc/posix-functions/casinh.texi (casinh): Likewise.
24949         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24950         * doc/posix-functions/catan.texi (catan): Likewise.
24951         * doc/posix-functions/catanf.texi (catanf): Likewise.
24952         * doc/posix-functions/catanh.texi (catanh): Likewise.
24953         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24954         * doc/posix-functions/ccos.texi (ccos): Likewise.
24955         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24956         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24957         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24958         * doc/posix-functions/cexp.texi (cexp): Likewise.
24959         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24960         * doc/posix-functions/cimag.texi (cimag): Likewise.
24961         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24962         * doc/posix-functions/clog.texi (clog): Likewise.
24963         * doc/posix-functions/clogf.texi (clogf): Likewise.
24964         * doc/posix-functions/conj.texi (conj): Likewise.
24965         * doc/posix-functions/conjf.texi (conjf): Likewise.
24966         * doc/posix-functions/cpow.texi (cpow): Likewise.
24967         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24968         * doc/posix-functions/cproj.texi (cproj): Likewise.
24969         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24970         * doc/posix-functions/creal.texi (creal): Likewise.
24971         * doc/posix-functions/crealf.texi (crealf): Likewise.
24972         * doc/posix-functions/csin.texi (csin): Likewise.
24973         * doc/posix-functions/csinf.texi (csinf): Likewise.
24974         * doc/posix-functions/csinh.texi (csinh): Likewise.
24975         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24976         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24977         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24978         * doc/posix-functions/ctan.texi (ctan): Likewise.
24979         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24980         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24981         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24982         * doc/posix-headers/complex.texi (complex.h): Likewise.
24983
24984 2010-10-07  Jim Meyering  <meyering@redhat.com>
24985
24986         parse-datetime: avoid compilation failure on OpenBSD 4.7
24987         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24988         This works around a compilation failure on OpenBSD 4.7:
24989         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24990
24991 2010-10-07  Eric Blake  <eblake@redhat.com>
24992
24993         docs: update cygwin progress
24994         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24995         1.7.6.
24996         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24997         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24998         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24999         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25000         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25001         Likewise.
25002         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25003         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25004         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25005         Likewise.
25006         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25007         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25008         Likewise.
25009         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25010         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25011         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25012         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25013         Likewise.
25014         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25015         Likewise.
25016         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25017
25018         docs: update parse-datetime history
25019         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25020         documentation of this function's history and alternatives.
25021
25022         cygwin: use more robust version check
25023         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25024         exclude an eventual cygwin 1.9.1.
25025         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25027         (gl_FUNC_STRCASESTR): Likewise.
25028         Reported by Bruno Haible.
25029
25030 2010-10-06  Bruno Haible  <bruno@clisp.org>
25031
25032         string, sys_select: Avoid #including large headers unless necessary.
25033         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25034         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25035         OSF/1, BeOS, Haiku.
25036         Reported by Jim Meyering.
25037
25038 2010-10-05  Eric Blake  <eblake@redhat.com>
25039
25040         memmem, strstr, strcasestr: fix bug with long periodic needle
25041         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25042         periodic needle having false positive.
25043         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25044         and cygwin 1.7.7.
25045         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25047         (gl_FUNC_STRCASESTR): Likewise.
25048         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25049         * tests/test-memmem.c (main): Expose the bug.
25050         * tests/test-strcasestr.c (main): Likewise.
25051         * tests/test-strstr.c (main): Likewise.
25052         * tests/test-c-strcasestr.c (main): Likewise.
25053         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25054         * doc/posix-functions/strstr.texi (strstr): Likewise.
25055         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25056         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25057
25058 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25059
25060         parse-datetime: do some more renaming
25061         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25062         parse_datetime, not get_date.  Mention the renaming.
25063         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25064         in comments.
25065         * m4/bison.m4: Likewise.
25066
25067 2010-10-05  Eric Blake  <eblake@redhat.com>
25068
25069         parse-datetime: better name than get_date
25070         * NEWS: Reword the deprecation notice.
25071         * modules/get_date: Rename to modules/parse-datetime.
25072         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25073         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25074         * lib/get_date.y: Rename to lib/parse-datetime.y.
25075         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25076         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25077         * doc/getdate.texi: Provide fallback wrapper.
25078         * lib/getdate.h: Move guts, and wrap...
25079         * lib/parse-datetime.h: ...new file.
25080         * lib/parse-datetime.y (get_date): Rename...
25081         (parse_datetime): ...to this.
25082         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25083         (gl_PARSE_DATETIME): ...to this.
25084         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25085         documentation.
25086         * modules/getdate (Files): Provide fallback docs and header.
25087         (Notice, Depends-on): Update references.
25088         * tests/test-parse-datetime.c: Likewise.
25089         * DEPENDENCIES: Likewise.
25090         * MODULES.html.sh (Date and time <time.h>): Likewise.
25091         * doc/parse-datetime.texi (Date input formats)
25092         (Authors of parse_datetime): Likewise.
25093         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25094         (Include): Likewise.
25095         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25096         * gnulib-tool: Likewise.
25097         * m4/bison.m4 (gl_BISON): Likewise.
25098         Suggested by Bruno Haible.
25099
25100 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25101
25102         more ports to Solaris tr, which needs [] around ranges
25103         * gnulib-tool: Solaris tr needs [] around ranges.
25104         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25105         * tests/test-pipe-filter-gi1.c (main): Likewise.
25106         * tests/test-pipe-filter-ii1.c (main): Likewise.
25107
25108 2010-10-05  Eric Blake  <eblake@redhat.com>
25109
25110         bootstrap: fix Solaris regression
25111         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25112         around ranges.
25113         Reported by Pádraig Brady.
25114
25115         bootstrap: work with pkg-config
25116         * build-aux/bootstrap (check_versions): Also transliterate - in
25117         prerequisite name.
25118         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25119         prerequisites that were already found, to avoid confusion.
25120         Reported by Justin Clift.
25121
25122         faccessat: remove unused wrappers
25123         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25124         presence of these wrappers dragged in -lgen on Solaris.
25125         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25126
25127 2010-10-05  Jim Meyering  <meyering@redhat.com>
25128
25129         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25130         * Makefile (sc_pragma_columns): New syntax-check rule.
25131
25132 2010-10-04  Bruno Haible  <bruno@clisp.org>
25133
25134         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25135         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25136         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25137         Reported by Bruce Korb and Eric Blake.
25138
25139 2010-10-04  Bruno Haible  <bruno@clisp.org>
25140
25141         threadlib: Make option --with-libpth-prefix work.
25142         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25143         use $LIBPTH, not just -lpth.
25144
25145 2010-10-04  Bruno Haible  <bruno@clisp.org>
25146
25147         Avoid line length limitation from HP NonStop system header files.
25148         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25149         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25150         * lib/ctype.in.h: Likewise.
25151         * lib/dirent.in.h: Likewise.
25152         * lib/errno.in.h: Likewise.
25153         * lib/fcntl.in.h: Likewise.
25154         * lib/float.in.h: Likewise.
25155         * lib/getopt.in.h: Likewise.
25156         * lib/iconv.in.h: Likewise.
25157         * lib/inttypes.in.h: Likewise.
25158         * lib/langinfo.in.h: Likewise.
25159         * lib/locale.in.h: Likewise.
25160         * lib/math.in.h: Likewise.
25161         * lib/netdb.in.h: Likewise.
25162         * lib/netinet_in.in.h: Likewise.
25163         * lib/poll.in.h: Likewise.
25164         * lib/pthread.in.h: Likewise.
25165         * lib/pty.in.h: Likewise.
25166         * lib/sched.in.h: Likewise.
25167         * lib/se-selinux.in.h: Likewise.
25168         * lib/search.in.h: Likewise.
25169         * lib/signal.in.h: Likewise.
25170         * lib/spawn.in.h: Likewise.
25171         * lib/stdarg.in.h: Likewise.
25172         * lib/stddef.in.h: Likewise.
25173         * lib/stdint.in.h: Likewise.
25174         * lib/stdio.in.h: Likewise.
25175         * lib/stdlib.in.h: Likewise.
25176         * lib/string.in.h: Likewise.
25177         * lib/strings.in.h: Likewise.
25178         * lib/sys_file.in.h: Likewise.
25179         * lib/sys_ioctl.in.h: Likewise.
25180         * lib/sys_select.in.h: Likewise.
25181         * lib/sys_socket.in.h: Likewise.
25182         * lib/sys_stat.in.h: Likewise.
25183         * lib/sys_time.in.h: Likewise.
25184         * lib/sys_times.in.h: Likewise.
25185         * lib/sys_utsname.in.h: Likewise.
25186         * lib/sys_wait.in.h: Likewise.
25187         * lib/sysexits.in.h: Likewise.
25188         * lib/termios.in.h: Likewise.
25189         * lib/time.in.h: Likewise.
25190         * lib/unistd.in.h: Likewise.
25191         * lib/wchar.in.h: Likewise.
25192         * lib/wctype.in.h: Likewise.
25193         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25194         * modules/ctype (Makefile.am): Likewise.
25195         * modules/dirent (Makefile.am): Likewise.
25196         * modules/errno (Makefile.am): Likewise.
25197         * modules/fcntl-h (Makefile.am): Likewise.
25198         * modules/float (Makefile.am): Likewise.
25199         * modules/getopt-posix (Makefile.am): Likewise.
25200         * modules/iconv-h (Makefile.am): Likewise.
25201         * modules/inttypes (Makefile.am): Likewise.
25202         * modules/langinfo (Makefile.am): Likewise.
25203         * modules/locale (Makefile.am): Likewise.
25204         * modules/math (Makefile.am): Likewise.
25205         * modules/netdb (Makefile.am): Likewise.
25206         * modules/netinet_in (Makefile.am): Likewise.
25207         * modules/poll-h (Makefile.am): Likewise.
25208         * modules/pthread (Makefile.am): Likewise.
25209         * modules/pty (Makefile.am): Likewise.
25210         * modules/sched (Makefile.am): Likewise.
25211         * modules/search (Makefile.am): Likewise.
25212         * modules/selinux-h (Makefile.am): Likewise.
25213         * modules/signal (Makefile.am): Likewise.
25214         * modules/spawn (Makefile.am): Likewise.
25215         * modules/stdarg (Makefile.am): Likewise.
25216         * modules/stddef (Makefile.am): Likewise.
25217         * modules/stdint (Makefile.am): Likewise.
25218         * modules/stdio (Makefile.am): Likewise.
25219         * modules/stdlib (Makefile.am): Likewise.
25220         * modules/string (Makefile.am): Likewise.
25221         * modules/strings (Makefile.am): Likewise.
25222         * modules/sys_file (Makefile.am): Likewise.
25223         * modules/sys_ioctl (Makefile.am): Likewise.
25224         * modules/sys_select (Makefile.am): Likewise.
25225         * modules/sys_socket (Makefile.am): Likewise.
25226         * modules/sys_stat (Makefile.am): Likewise.
25227         * modules/sys_time (Makefile.am): Likewise.
25228         * modules/sys_times (Makefile.am): Likewise.
25229         * modules/sys_utsname (Makefile.am): Likewise.
25230         * modules/sys_wait (Makefile.am): Likewise.
25231         * modules/sysexits (Makefile.am): Likewise.
25232         * modules/termios (Makefile.am): Likewise.
25233         * modules/time (Makefile.am): Likewise.
25234         * modules/unistd (Makefile.am): Likewise.
25235         * modules/wchar (Makefile.am): Likewise.
25236         * modules/wctype (Makefile.am): Likewise.
25237
25238 2010-10-04  Bruno Haible  <bruno@clisp.org>
25239
25240         read-file tests: Avoid a test failure on NonStop Kernel.
25241         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25242         a regular file.
25243         Reported by Joachim Schmitz <schmitz@hp.com>.
25244
25245 2010-10-03  Bruno Haible  <bruno@clisp.org>
25246
25247         gnulib-tool: Fixes for --create-testdir with --libtool.
25248         * gnulib-tool (func_get_automake_snippet): Don't augment
25249         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25250         an executable.
25251         (func_create_testdir): Handle module 'alloca' like func_import.
25252         Reported by Bruce Korb <bruce.korb@gmail.com>.
25253
25254 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25255
25256         Avoid some lines longer than 80 characters.
25257         * lib/stdint.in.h: Break long comment lines.
25258         * lib/math.in.h: Likewise.
25259         (_GL_NUM_UINT_WORDS): New macro, for readability.
25260         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25261         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25262         * lib/stdlib.in.h: Likewise.
25263         * lib/spawn.in.h: Likewise.
25264         * lib/sys_socket.in.h: Update an URL.
25265         * lib/sys_stat.in.h: Break long line.
25266
25267 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25268
25269         Improve pmccabe2html.
25270         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25271         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25272         when the sources change. Remove the line in the HTML about "Used
25273         ranges" (which implied that there might be other unused ranges),
25274         rename "Resume" to "Summary" (easier to understand for more users).
25275         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25276         styles, and some unnecessary blank lines.
25277
25278 2010-10-03  Bruno Haible  <bruno@clisp.org>
25279             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25280
25281         acl: Add support for ACLs on NonStop Kernel.
25282         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25283         Check whether the function aclsort() exists.
25284         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25285         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25286         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25287         (acl_nontrivial [HAVE_ACLSORT]: New function.
25288         (file_has_acl): Implement for NonStop Kernel.
25289         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25290         (qset_acl): Implement for NonStop Kernel.
25291         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25292         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25293         (main): Implement for NonStop Kernel.
25294         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25295         Kernel. Handle this flavor.
25296         * tests/test-set-mode-acl.sh: Likewise.
25297         * tests/test-copy-acl.sh: Likewise.
25298         * tests/test-copy-file.sh: Likewise.
25299
25300 2010-10-03  Bruno Haible  <bruno@clisp.org>
25301
25302         Info about ACLs on NonStop Kernel.
25303         * doc/acl-resources.txt: Add info about NonStop Kernel.
25304         References by Joachim Schmitz <schmitz@hp.com>.
25305
25306 2010-10-02  Bruno Haible  <bruno@clisp.org>
25307
25308         Define missing EDQUOT on NonStop Kernel.
25309         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25310         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25311         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25312         missing.
25313         * doc/posix-headers/errno.texi: Mention the NSK bug.
25314         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25315         Reported by Joachim Schmitz <schmitz@hp.com>.
25316
25317 2010-10-02  Bruno Haible  <bruno@clisp.org>
25318
25319         Update doc for POSIX:2008.
25320         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25321         Update URL of POSIX specification.
25322
25323 2010-10-02  Bruno Haible  <bruno@clisp.org>
25324
25325         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25326         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25327         from gnulib, not from Automake.
25328
25329 2010-10-02  Bruno Haible  <bruno@clisp.org>
25330
25331         New module 'system-posix'.
25332         * modules/system-posix: New file.
25333         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25334         module is present.
25335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25336         GNULIB_SYSTEM_POSIX.
25337         * modules/stdlib (Depends-on): Remove sys_wait.
25338         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25339         * doc/posix-functions/system.texi: Mention the new module.
25340         * doc/posix-headers/stdlib.texi: Likewise.
25341         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25342         define test_sys_wait_macros to a no-op.
25343         Reported by Sam Steingold <sds@gnu.org>.
25344
25345 2010-09-30  Bruno Haible  <bruno@clisp.org>
25346
25347         More renaming from 'getdate' to 'get_date'.
25348         * doc/get_date.texi: Renamed from doc/getdate.texi.
25349         * modules/get_date (Files): Update.
25350         * MODULES.html.sh (Date and time <time.h>): Update.
25351         * DEPENDENCIES: Update.
25352         * gnulib-tool: Update comment.
25353         * m4/bison.m4 (gl_BISON): Likewise.
25354         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25355
25356 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25357
25358         bootstrap: support ACLOCAL_FLAGS during aclocal
25359         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25360         can add additional -I dir for third-party .m4 files.
25361
25362 2010-09-30  Eric Blake  <eblake@redhat.com>
25363
25364         bootstrap: use glibtoolize on MacOS
25365         * build-aux/bootstrap (check_versions): Convert libtool into
25366         libtoolize.
25367         (tool search): Move libtool check earlier, and look for
25368         glibtoolize for MacOS.
25369         (gnulib_tool_options): Auto-add --libtool when appropriate.
25370         Reported by Justin Clift.
25371
25372         poll: fix typo that broke test on MacOS
25373         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25374         Reported by Justin Clift.
25375
25376         getdate: rename to get_date
25377         Note: getdate.h is not renamed, to minimize client impact.
25378         * modules/getdate: Mark obsolete.  Move old contents...
25379         * modules/get_date: ...to new module name.
25380         * modules/getdate-tests: Move...
25381         * modules/get_date-tests: ...here.
25382         * m4/getdate.m4: Move...
25383         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25384         * lib/getdate.y: Move...
25385         * lib/get_date.y: ...here.
25386         * tests/test-getdate.c: Move...
25387         * tests/test-get_date.c: ...here.
25388         * doc/posix-functions/getdate.texi (getdate): Update name.
25389         * NEWS: Mention the change.
25390
25391 2010-09-29  Bruno Haible  <bruno@clisp.org>
25392
25393         Separate the module 'waitpid' from the module 'sys_wait'.
25394         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25395         present.
25396         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25397         gl_MODULE_INDICATOR_FOR_TESTS.
25398         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25399         * modules/sys_wait (Depends-on): Remove waitpid.
25400         (Makefile.am): Substitute GNULIB_WAITPID.
25401         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25402         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25403         signature only if the 'waitpid' module is present.
25404         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25405         * NEWS: Mention the change.
25406         * modules/grantpt (Depends-on): Add waitpid.
25407         * modules/wait-process (Depends-on): Likewise.
25408
25409 2010-09-29  Bruno Haible  <bruno@clisp.org>
25410
25411         More tests for module 'sys_wait'.
25412         * modules/sys_wait-c++-tests: New file.
25413         * tests/test-sys_wait-c++.cc: New file.
25414         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25415         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25416
25417 2010-09-29  Bruno Haible  <bruno@clisp.org>
25418
25419         New module 'waitpid'.
25420         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25421         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25422         Don't include <process.h>.
25423         (waitpid): Declare only, using modern idiom.
25424         * m4/waitpid.m4: New file.
25425         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25426         * modules/waitpid: New file.
25427         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25428         (Makefile.am): Update.
25429         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25430
25431 2010-09-28  Bruno Haible  <bruno@clisp.org>
25432
25433         poll: Assume ANSI C.
25434         * lib/poll.c (poll): Use an ANSI C declaration.
25435
25436 2010-09-28  Bruno Haible  <bruno@clisp.org>
25437
25438         poll-h: Create poll.h on all platforms.
25439         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25440         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25441         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25442         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25443         (gl_REPLACE_POLL_H): Don't set POLL_H.
25444         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25445         * modules/poll-h (Depends-on): Add include_next.
25446         (Makefile.am): Create poll.h unconditionally. Substitute also
25447         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25448
25449 2010-09-28  Bruno Haible  <bruno@clisp.org>
25450
25451         Tests for module 'poll-h'.
25452         * modules/poll-h-c++-tests: New file.
25453         * tests/test-poll-h-c++.cc: New file.
25454
25455         Tests for module 'poll-h'.
25456         * modules/poll-h-tests: New file.
25457         * tests/test-poll-h.c: New file.
25458
25459 2010-09-28  Bruno Haible  <bruno@clisp.org>
25460
25461         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25462         * modules/poll-h (Depends-on): Add 'extensions'.
25463
25464 2010-09-28  Bruno Haible  <bruno@clisp.org>
25465
25466         New module 'poll-h'.
25467         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25468         (poll): Use modern idiom.
25469         * modules/poll-h: New file.
25470         * modules/poll (Files): Remove lib/poll.in.h.
25471         (Depends-on): Add poll-h.
25472         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25473         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25474         * m4/poll_h.m4: New file.
25475         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25476         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25477         and invoke gl_REPLACE_POLL_H.
25478         * lib/poll.c: Use common idiom.
25479         * tests/test-poll.c: Likewise.
25480         * doc/posix-headers/poll.texi: Mention the poll-h module.
25481         Suggested by Eric Blake.
25482
25483 2010-09-26  Bruno Haible  <bruno@clisp.org>
25484
25485         sys_wait: Implement WSTOPSIG.
25486         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25487         Reported by Simon Josefsson.
25488
25489 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25490
25491         stdlib, sys_wait: Avoid compilation error on mingw.
25492         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25493
25494 2010-09-26  Bruno Haible  <bruno@clisp.org>
25495
25496         stdlib tests: Avoid code duplication.
25497         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25498         * modules/sys_wait-tests (Files): Likewise.
25499         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25500         * tests/test-stdlib.c: Include test-sys_wait.h.
25501         (main): Invoke test_sys_wait_macros.
25502         * tests/test-sys_wait.c: Include test-sys_wait.h.
25503         (main): Invoke test_sys_wait_macros.
25504
25505 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25506
25507         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25508         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25509         sure Windows sockets are working before calling getaddrinfo.
25510         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25511         * doc/gnulib.texi (Windows sockets): Fix typo.
25512
25513 2010-09-25  Bruno Haible  <bruno@clisp.org>
25514
25515         Tests for module 'regex-quote'.
25516         * modules/regex-quote-tests: New file.
25517         * tests/test-regex-quote.c: New file.
25518
25519         New module 'regex-quote'.
25520         * lib/regex-quote.h: New file.
25521         * lib/regex-quote.c: New file.
25522         * modules/regex-quote: New file.
25523         Suggested by Reuben Thomas <rrt@sc3d.org>.
25524
25525 2010-09-24  Bruno Haible  <bruno@clisp.org>
25526
25527         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25528         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25529
25530 2010-09-23  Bruno Haible  <bruno@clisp.org>
25531
25532         setenv: Relax license.
25533         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25534         Blake.
25535         Requested by Eric Blake.
25536
25537 2010-09-22  Bruno Haible  <bruno@clisp.org>
25538
25539         termios: Relax license.
25540         * modules/termios (License): Change to LGPLv2+.
25541         Requested by Eric Blake.
25542
25543 2010-09-22  Bruno Haible  <bruno@clisp.org>
25544
25545         threadlib: Allow the package to change the default to 'no'.
25546         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25547         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25548         Reported by Paul Eggert.
25549
25550 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25551             Bruno Haible  <bruno@clisp.org>
25552
25553         Fix endless loop in mbmemcasecoll.
25554         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25555         byte.
25556         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25557
25558 2010-09-22  Bruno Haible  <bruno@clisp.org>
25559
25560         Tests for module 'memcoll'.
25561         * modules/memcoll-tests: New file.
25562         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25563
25564         memcoll, xmemcoll: Clarify size vs. length.
25565         * modules/memcoll.c (memcoll0): Clarify specification.
25566         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25567         passed to collate_error.
25568
25569 2010-09-22  Bruno Haible  <bruno@clisp.org>
25570
25571         Tests for module 'memcasecmp'.
25572         * modules/memcasecmp-tests: New file.
25573         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25574
25575 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25576
25577         * lib/pthread.in.h: Add split double-inclusion guard, and include
25578         system <pthread.h> if there is one.  Use @@-style as in other
25579         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25580         pthread.h doesn't.
25581         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25582         (pthread_mutexattr_settype, pthread_mutex_trylock):
25583         New static inline functions, if there's no system <pthread.h>.
25584         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25585         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25586         Approximate with mutexes if the system lacks spinlocks, as in
25587         MacOS.
25588         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25589         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25590         @@-style.  Check for spinlocks separately.
25591         (gl_PTHREAD_DEFAULTS): New macro.
25592         * modules/pthread: Redo to use a more typical style for in.h files.
25593
25594 2010-09-21  Eric Blake  <eblake@redhat.com>
25595
25596         net_if: enhance tests
25597         * tests/test-net_if.c (main): Move signature checks earlier.
25598         Print failures to stderr.
25599         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25600         Document the bug that we do not yet fix.
25601
25602 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25603
25604         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25605         about gnulib, not GSS.
25606
25607 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25608
25609         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25610         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25611         for Emacs.
25612         * build-aux/pmccabe2html: Make Makefile.am example code more
25613         cut-and-paste friendly.
25614
25615 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25616
25617         * tests/test-net_if.c: New file.
25618         * modules/net_if-tests: New file.
25619
25620 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25621
25622         pthread: add pthread_spin_destroy
25623         * lib/pthread.in.h (pthread_spin_destroy): New function.
25624
25625 2010-09-19  Bruno Haible  <bruno@clisp.org>
25626
25627         gnulib-tool: Fix --help output.
25628         * gnulib-tool (func_usage): Fix help message.
25629         Reported by Reuben Thomas <rrt@sc3d.org>.
25630
25631 2010-09-18  Jim Meyering  <meyering@redhat.com>
25632
25633         maint.mk: avoid unexpanded \n in two diagnostics
25634         * top/maint.mk (sc_prohibit_always_true_header_tests):
25635         Don't use a literal \n in a halt=... assignment.  It would not be
25636         expanded, and the two \n bytes would appear in the diagnostic output
25637         rather than the desired newline.  Use halt=$$(printf ... instead.
25638         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25639
25640 2010-09-18  Bruno Haible  <bruno@clisp.org>
25641
25642         netinet_in: Doc tweak.
25643         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25644         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25645
25646 2010-09-18  Jim Meyering  <meyering@redhat.com>
25647
25648         init.sh: correct an outdated comment
25649         * tests/init.sh (create_exe_shims_):  s/function/alias/
25650
25651         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25652         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25653         a file named "*.exe" is removed between the glob expansion and the
25654         processing of that oddly named file.
25655
25656 2010-09-17  Eric Blake  <eblake@redhat.com>
25657
25658         mirbsd: add some more support
25659         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25660         in BSD family.
25661         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25662         devices as OpenBSD.
25663         * m4/host-os.m4 (mirbsd): Add MirBSD.
25664
25665         tests: fix unportable assumption on sys/wait.h
25666         * tests/test-sys_wait.c (main): Relax test.
25667         * tests/test-stdlib.c (main): Likewise.
25668
25669         init.sh: accomodate directory with no .exes
25670         * tests/init.sh: Accomodate directory containing only scripts.
25671
25672         tests: avoid compiler warning
25673         * tests/test-stdlib.c (main): Use the variable.
25674
25675         fdutimens, fdutimensat: update signature, again
25676         * lib/utimens.h (gl_futimens): Delete, and move signature...
25677         (fdutimens): ...here.
25678         (fdutimensat): Rearrange signature.
25679         (lutimensat): Rename variable for clarity.
25680         * lib/fdutimensat.c (fdutimensat): Update signature.
25681         * lib/utimens.c (fdutimens): Likewise.
25682         (gl_futimens): Delete.
25683         (utimens, lutimens): Update callers.
25684         * lib/futimens.c (futimens): Likewise.
25685         * tests/test-fdutimensat.c: Likewise.
25686         * tests/test-utimens.c: Likewise.
25687         * tests/test-futimens.h: Update comment.
25688         * NEWS: Mention this.
25689         Suggested by Paul Eggert.
25690
25691 2010-09-17  Bruno Haible  <bruno@clisp.org>
25692
25693         Take over the maintenance of some older macros from Autoconf.
25694         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25695         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25696         GNU Autoconf.
25697         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25698         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25699
25700 2010-09-17  Eric Blake  <eblake@redhat.com>
25701
25702         fdutimensat: drop atflag validation
25703         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25704         with valid fd, to close a race scenario where futimens is
25705         unsupported and FILE was replaced by a symlink.
25706         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25707         accordingly.
25708         Suggested by Paul Eggert.
25709
25710 2010-09-16  Bruno Haible  <bruno@clisp.org>
25711
25712         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25713         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25714
25715 2010-09-16  Bruno Haible  <bruno@clisp.org>
25716
25717         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25718         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25719         login_tty exists.
25720         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25721
25722 2010-09-16  Bruno Haible  <bruno@clisp.org>
25723
25724         login_tty: Make the replacement code work on BSD systems.
25725         * lib/login_tty.c: Include <sys/ioctl.h>.
25726         (login_tty): Use ioctl TIOCSCTTY when available.
25727         * modules/login_tty (Depends-on): Add sys_ioctl.
25728         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25729
25730 2010-09-16  Bruno Haible  <bruno@clisp.org>
25731
25732         login_tty: Stricter unit test.
25733         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25734         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25735         and tcgetsid() after login_tty.
25736         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25737
25738 2010-09-16  Bruno Haible  <bruno@clisp.org>
25739
25740         New module 'tcgetsid'.
25741         * lib/tcgetsid.c: New file.
25742         * m4/tcgetsid.m4: New file.
25743         * modules/tcgetsid: New file.
25744         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25745         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25746         GNULIB_TCGETSID, HAVE_TCGETSID.
25747         * lib/termios.in.h: Include <sys/types.h>.
25748         (tcgetsid): New declaration.
25749         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25750         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25751         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25752         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25753
25754 2010-09-16  Bruno Haible  <bruno@clisp.org>
25755
25756         Tests for module 'termios'.
25757         * modules/termios-c++-tests: New file.
25758         * modules/termios-tests: New file.
25759         * tests/test-termios-c++.cc: New file.
25760         * tests/test-termios.c: New file.
25761
25762         New module 'termios'.
25763         * modules/termios: New file.
25764         * lib/termios.in.h: New file.
25765         * m4/termios_h.m4: New file.
25766         * doc/posix-headers/termios.texi: Mention the new module.
25767
25768 2010-09-16  Eric Blake  <eblake@redhat.com>
25769
25770         fdutimensat: add an atflag parameter
25771         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25772         * lib/utimens.h (fdutimensat): Update prototype.
25773         * tests/test-fdutimensat.c: Adjust test to match.
25774         * NEWS: Document the change.
25775         Suggested by Paul Eggert.
25776
25777 2010-09-16  Bruno Haible  <bruno@clisp.org>
25778
25779         Fix typos in comments.
25780         * lib/striconveh.h: Fix typo in comment.
25781         * lib/login_tty.c (login_tty): Likewise.
25782
25783 2010-09-15  Bruno Haible  <bruno@clisp.org>
25784
25785         stdlib: clarify MirBSD WEXITSTATUS bug
25786         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25787         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25788
25789 2010-09-15  Eric Blake  <eblake@redhat.com>
25790
25791         stdlib: work around MirBSD WEXITSTATUS bug
25792         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25793         * modules/stdlib (Depends-on): Add sys_wait.
25794         * tests/test-sys_wait.c (main): Enhance test.
25795         * tests/test-stdlib.c (main): Likewise.
25796         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25797
25798         docs: mention MacOS issue with WEXITSTATUS(constant)
25799         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25800         issue.
25801         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25802
25803         strnlen: add tests
25804         * modules/strnlen-tests: New file.
25805         * tests/test-strnlen.c: Likewise.
25806
25807 2010-09-14  Bruno Haible  <bruno@clisp.org>
25808
25809         unistr/base: Avoid link errors when module 'libunistring' is also used.
25810         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25811         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25812         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25813         Declare also when HAVE_LIBUNISTRING is set.
25814         Reported by Pádraig Brady <P@draigbrady.com>.
25815
25816 2010-09-14  Eric Blake  <eblake@redhat.com>
25817
25818         test-rawmemchr: make more robust
25819         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25820         (Depends-on, configure.ac): Add needed prerequisites to use it.
25821         * modules/memchr-tests (Files, Depends-on, configure.ac):
25822         Likewise, to avoid implicit reliance on memchr module prereqs.
25823         * tests/test-memchr.c (main): Ensure proper masking.
25824         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25825         reads.
25826
25827         memchr: detect glibc Alpha bug
25828         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25829         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25830         Alpha.
25831         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25832         * tests/test-memchr.c (main): Enhance test.
25833         Reported by Nelson H. F. Beebe.
25834
25835 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25836
25837         fts, getcwd, glob: audit for dirfd returning -1
25838         * lib/fts.c (opendir): Remove #define; no longer used.
25839         (opendirat): New arg PDIR_FD.  All callers changed.
25840         (fts_build, _opendir2): Use new opendirat to avoid the need for
25841         dirfd, or for checking whether dirfd returns a negative value.
25842         Don't use opendir; always use openat followed by fdopendir.
25843         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25844         it.
25845         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25846         returns -1 here.
25847         * modules/fts (Depends-on): Remove dirfd.
25848         * modules/getcwd (Depends-on): Likewise.
25849
25850 2010-09-13  Eric Blake  <eblake@redhat.com>
25851
25852         float: fix broken MirBSD header
25853         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25854         * doc/posix-headers/float.texi (float.h): Document it.
25855
25856 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25857
25858         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25859         * lib/fts.c (opendirat): New arg extra_flags.
25860         (__opendir2): Use it to avoid following symlinks when opening
25861         a directory, if symlinks are not supposed to be followed.  See
25862         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25863
25864         fdopendir: preserve argument fd before returning
25865         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25866         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25867         (fdopendir): Use them, arranging for FD to be open to the same
25868         directory that it was when it started.  (It might be temporarily
25869         closed while fdopendir is running, so this not thread- or
25870         signal-safe.)  Be careful to do the right thing even when file
25871         descriptors are scarce and dup fails with errno == EMFILE.  See
25872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25873
25874 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25875
25876         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25877         * NEWS: Document change.
25878         * m4/regex.m4: Disable test for regoff_t size.
25879
25880 2010-09-13  Jim Meyering  <meyering@redhat.com>
25881
25882         fts: don't operate on an invalid file descriptor after failed dup
25883         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25884         negative file descriptor.
25885
25886 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25887
25888         savedir: add streamsavedir, deprecate fdsavedir
25889         * NEWS: Mention deprecation of fdsavedir.
25890         * lib/savedir.c (streamsavedir): New extern function, whose name
25891         ends in "savedir" to be consistent with the others.  This differs
25892         from savedirstream in that it doesn't close its argument.  The
25893         next version of GNU tar will use this instead of fdsavedir, to
25894         avoid some race conditions and conserve file descriptors.
25895         (savedirstream): Reimplement as a wrapper around streamsavedir.
25896         (fdsavedir): Add a comment deprecating this function.  As far as
25897         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25898         * lib/savedir.h (streamsavedir): New decl.
25899         (fdsavedir): Add a comment deprecating this.
25900
25901 2010-09-10  Bruno Haible  <bruno@clisp.org>
25902
25903         langinfo: Fix last commit.
25904         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25905         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25907
25908 2010-09-10  Bruno Haible  <bruno@clisp.org>
25909
25910         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25911         * lib/progreloc.c (O_EXEC): Define fallback.
25912
25913 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25914
25915         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25916         * NEWS: Document recent changes to fcntl-h.
25917         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25918         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25919         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25920         Similarly for O_SEARCH; this last was already true, but not documented.
25921         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25922         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25923         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25924         Likewise.
25925         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25926         is zero, not whether it is defined.
25927         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25928         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25929         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25930
25931 2010-09-10  Bruno Haible  <bruno@clisp.org>
25932
25933         langinfo, nl_langinfo: Fix for IRIX 5.3.
25934         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25935         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25936         HAVE_LANGINFO_YESEXPR.
25937         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25938         HAVE_LANGINFO_YESEXPR.
25939         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25940         HAVE_LANGINFO_T_FMT_AMPM is 0.
25941         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25942         HAVE_LANGINFO_YESEXPR is 0.
25943         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25944         NOEXPR.
25945         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25946         * doc/posix-functions/nl_langinfo.texi: Likewise.
25947         Reported by Eric Blake.
25948
25949 2010-09-10  Bruno Haible  <bruno@clisp.org>
25950
25951         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25952         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25953         on FreeBSD 8.0 and OpenBSD 4.6.
25954         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25955         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25956         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25957         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25958         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25959         ac_includes_default.
25960         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25961
25962 2010-09-09  Eric Blake  <eblake@redhat.com>
25963
25964         strsignal: work around NetBSD bug
25965         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25966         * lib/string.in.h (includes): Likewise.
25967         * doc/posix-functions/strsignal.texi (strsignal): Document the
25968         bug.
25969         Reported by Nelson H. F. Beebe.
25970
25971         gnulib-tool: work with NetBSD /bin/sh
25972         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25973         (func_get_description, func_get_comment, func_get_status)
25974         (func_get_notice, func_get_applicability, func_get_filelist)
25975         (func_get_dependencies, func_get_autoconf_early_snippet)
25976         (func_get_autoconf_snippet, func_get_automake_snippet)
25977         (func_get_include_directive, func_get_link_directive)
25978         (func_get_license, func_get_maintainer, func_import): Avoid
25979         shell syntax errors from parsing syntax extensions.
25980
25981 2010-09-09  Bruno Haible  <bruno@clisp.org>
25982
25983         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25984         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25985         a reliable way to determine whether the 'alias' command works.
25986
25987 2010-09-08  Jim Meyering  <meyering@redhat.com>
25988
25989         init.sh: penalize a set-x-impaired shell; don't disqualify it
25990         * tests/init.sh: Too many shells corrupt application stderr when
25991         you set -x, so we can't afford to disqualify them, since at least
25992         on Irix-6.5, that would disqualify all bourne shells.
25993         Instead, use a two-pass approach.
25994         On the first pass, try to find a shell that meets the stricter
25995         condition that set -x does not corrupt stderr.
25996         If no shell meets the stricter condition, retest each candidate
25997         shell, but without that extra condition.  Finally, when
25998         VERBOSE=yes is requested and set -x might cause trouble, simply
25999         issue a warning and refrain from enabling debug output.
26000
26001 2010-09-08  Eric Blake  <eblake@redhat.com>
26002
26003         unsetenv: fix OpenBSD bug
26004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26005         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26006         documentation.
26007         Reported by Jim Meyering.
26008
26009         strtod: work around IRIX 6.5 bug
26010         * lib/strtod.c (strtod): Reparse number on shorter string if
26011         exponent parse was invalid.
26012         * tests/test-strtod.c (main): Add check for "0x1p 2".
26013         Reported by Tom G. Christensen.
26014
26015         getopt: optimize previous patch
26016         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26017         empty variable.  Speed up awk script.
26018         Reported by Paolo Bonzini.
26019
26020 2010-09-08  Jim Meyering  <meyering@redhat.com>
26021
26022         test.sh: disqualify shells for which set -x corrupts stderr
26023         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26024         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26025         appear in stderr output.  For example, this command:
26026             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26027         prints "P=1" on those two systems:
26028
26029 2010-09-08  Bruno Haible  <bruno@clisp.org>
26030
26031         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26032         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26033         commands, because some shells ignore redirections when there is an
26034         error in the command lookup.
26035         Reported by Eric Blake.
26036
26037 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26038
26039         * lib/regex.h: Fix a mention of `regex_compile' (should be
26040         `re_compile_pattern').
26041         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26042         (re_set_registers): Correct name of parameter in comment.
26043
26044         * doc/regex.texi: Add documentation for missing syntax flags.
26045         Remove commented-out documentation of defunct syntax option
26046         RE_NO_EMPTY_ALTS.
26047         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26048         Add documentation of re_set_registers.
26049         Document trick to re-use a pattern buffer by setting fastmap manually.
26050         Update documentation of struct re_pattern_buffer per public members.
26051         Uncomment documentation of equivalence class operators and
26052         collating symbol operators, since they are now implemented,
26053         Explain leftmost-longest matching in relation to alternatives.
26054         Tidy documentation of substring matching.
26055         Remove POSIX documentation, which is done better in
26056         glibc, and refer the reader there. Keep BSD API documentation, as
26057         that is not readily available elsewhere.
26058
26059 2010-09-07  Eric Blake  <eblake@redhat.com>
26060
26061         getopt: handle POSIXLY_CORRECT set but not exported
26062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26063         export state of POSIXLY_CORRECT, due to bash set -o posix.
26064         Reported by Dustin J. Mitchell.
26065
26066 2010-09-05  Bruno Haible  <bruno@clisp.org>
26067
26068         gnulib-tool: Highlight the changed options.
26069         * gnulib-tool (func_usage): Display the --import, --add-import,
26070         --remove-import explanations in bold font.
26071
26072 2010-09-06  Karl Berry  <karl@gnu.org>
26073
26074         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26075
26076 2010-09-05  Bruno Haible  <bruno@clisp.org>
26077
26078         uniwidth/width: Update comment.
26079         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26080         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26081
26082 2010-09-05  Bruno Haible  <bruno@clisp.org>
26083
26084         isinf, isnan: Relax license.
26085         * modules/isinf (License): Change from GPL to LGPL, with consent from
26086         Ben Pfaff.
26087         * modules/isnan (License): Likewise.
26088         Requested by Ludovic Courtès.
26089
26090 2010-09-04  Bruno Haible  <bruno@clisp.org>
26091
26092         gnulib-tool: Help migration from --import to --add-import or --update.
26093         * gnulib-tool: Emit a verbose error message when --import is used
26094         without any module name.
26095
26096 2010-09-04  Bruno Haible  <bruno@clisp.org>
26097
26098         Update doc about gnulib-tool.
26099         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26100         'gnulib-tool --update' in more detail.
26101         Reported by Eric Blake.
26102
26103 2010-09-04  Bruno Haible  <bruno@clisp.org>
26104
26105         gnulib-tool: Change --import. New options --add/remove-import.
26106         * gnulib-tool: New options --add-import, --remove-import.
26107         (func_usage): Document them.
26108         (have_associative): Define always.
26109         (func_import): In import mode, don't merge the specified settings with
26110         the cached settings. Implement remove-import mode.
26111         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26112         Explain when to use them versus --import.
26113         (Simple update): Use --add-import instead of --import.
26114         * NEWS: Mention the change.
26115
26116 2010-09-04  Bruno Haible  <bruno@clisp.org>
26117
26118         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26119         separate gnulib.mk.
26120
26121 2010-09-04  Bruno Haible  <bruno@clisp.org>
26122
26123         gnulib-tool: Don't talk about CVS any more.
26124         * gnulib-tool (func_usage, func_import): Write "version control"
26125         instead of CVS.
26126
26127 2010-09-04  Jim Meyering  <meyering@redhat.com>
26128
26129         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26130         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26131         false positives (whose names may be ill-chosen) when searching
26132         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26133         would cause a false-positive.
26134
26135         avoid coreutils "make distcheck" failure
26136         Coreutils tests with an absolute build directory name that contains
26137         a space.  Not quoting this directory name caused a failure.
26138         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26139         * tests/test-vc-list-files-cvs.sh: Likewise.
26140
26141 2010-09-04  Bruno Haible  <bruno@clisp.org>
26142
26143         gnulib-tool: Avoid error when run in a package without Makefile.am.
26144         * gnulib-tool: When collecting the m4dirs in a package that does not
26145         have a Makefile.am, eliminate those directories that contain no
26146         gnulib-cache.m4. Fix expression that counts these directories.
26147
26148 2010-09-04  Bruno Haible  <bruno@clisp.org>
26149
26150         update-copyright test: Improve output when perl is missing or too old.
26151         * tests/test-update-copyright.sh: Move test of Perl version down after
26152         the test whether Perl exists. Provide an explanation relating Perl's
26153         error message to Automake's SKIP: message.
26154
26155 2010-09-04  Bruno Haible  <bruno@clisp.org>
26156
26157         Don't augment PATH in TESTS_ENVIRONMENT.
26158         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26159         set abs_aux_dir instead of augmenting PATH.
26160         * modules/vc-list-files-tests (Makefile.am): Likewise.
26161         * tests/test-update-copyright.sh: Augment PATH here.
26162         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26163         path_prepend_.
26164         * tests/test-vc-list-files-git.sh: Likewise.
26165
26166 2010-09-04  Jim Meyering  <meyering@redhat.com>
26167
26168         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26169         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26170
26171 2010-09-04  Bruno Haible  <bruno@clisp.org>
26172
26173         strdup: Fix compilation error in C++ mode.
26174         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26175         the macro.
26176
26177 2010-09-04  Bruno Haible  <bruno@clisp.org>
26178
26179         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26180         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26181         macro into a function.
26182         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26183
26184 2010-09-04  Bruno Haible  <bruno@clisp.org>
26185
26186         Set PATH_SEPARATOR the same way autoconf does.
26187         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26188         the value of PATH_SEPARATOR the same way autoconf-generated configure
26189         scripts do.
26190         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26191         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26192
26193 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26194
26195         Set PATH_SEPARATOR the same way autoconf does.
26196         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26197         the same way autoconf-generated configure scripts do.
26198         * posix-modules: Likewise.
26199
26200 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26201
26202         hash: fix safe_hasher const typo
26203         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26204         const; otherwise, there is a type error later.
26205
26206 2010-09-02  Jim Meyering  <meyering@redhat.com>
26207
26208         test-update-copyright.sh: require perl 5.8.0
26209         * tests/test-update-copyright.sh: Require 5.8.0,
26210         which Tom G. Christensen has confirmed is adequate,
26211         while 5.6.1 is not.
26212
26213 2010-09-02  Eric Blake  <eblake@redhat.com>
26214
26215         tests: init.sh improvements for re-exec'ing with zsh
26216         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26217         -vx through shell re-exec.
26218         Reported by Tom G. Christensen.
26219
26220         wctype: fix typo in previous commit
26221         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26222         Reported by Ludovic Courtès.
26223
26224 2010-09-02  Jim Meyering  <meyering@redhat.com>
26225
26226         test-update-copyright.sh: skip test if Perl is too old
26227         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26228         Reported by Tom G. Christensen.
26229
26230 2010-09-02  Bruno Haible  <bruno@clisp.org>
26231
26232         wctype: Avoid compilation error on IRIX 6.5.30.
26233         * lib/wctype.in.h (iswblank): Declare with a replacement if
26234         REPLACE_ISWBLANK is set.
26235         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26236         declared. Set REPLACE_ISWBLANK.
26237         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26238         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26239         * doc/posix-headers/wctype.texi: Likewise.
26240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26241
26242 2010-09-01  Bruno Haible  <bruno@clisp.org>
26243
26244         New module 'socketlib'.
26245         * modules/socketlib: New file.
26246         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26247         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26248         * modules/sockets (Depends-on): Add socketlib.
26249         Suggested by Sam Steingold <sds@gnu.org>.
26250
26251 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26252
26253         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26254
26255         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26256         when one needs search access to a directory but not read access.
26257         On systems where it is available, it works in some cases where
26258         O_RDONLY does not, namely on directories that are searchable but
26259         not readable, and which need only to be searchable.  If O_SEARCH
26260         is not available, fall back to the traditional method of using
26261         O_RDONLY.
26262
26263         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26264         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26265         when opening a directory that needs only to be searchable.
26266         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26267         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26268         * lib/openat-proc.c (openat_proc_name): Likewise.
26269         * lib/openat.c (openat_needs_fchdir): Likewise.
26270         * lib/save-cwd.c (save_cwd): Likewise.
26271         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26272
26273 2010-08-28  Bruno Haible  <bruno@clisp.org>
26274
26275         New module 'host-cpu-c-abi'.
26276         * modules/host-cpu-c-abi: New file.
26277         * m4/host-cpu-c-abi.m4: New file, based on part of
26278         clisp/src/m4/general.m4.
26279         Requested by Sam Steingold <sds@gnu.org>.
26280
26281 2010-08-31  Eric Blake  <eblake@redhat.com>
26282         and Jim Meyering  <meyering@redhat.com>
26283
26284         hash: factor, and guard against misbehaving hasher function
26285         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26286         of table->hasher's return value.  Also protect against a hash value
26287         so large that adding it to table->bucket results in a NULL pointer.
26288         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26289         Use it in place of open-coded check-and-abort.
26290
26291 2010-08-30  Bruno Haible  <bruno@clisp.org>
26292
26293         hash: silence spurious clang warning
26294         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26295         Reported by Eric Blake.
26296
26297 2010-08-30  Eric Blake  <eblake@redhat.com>
26298
26299         strstr, memmem, strcasestr: avoid leaked shell message
26300         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26301         FreeBSD.
26302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26303         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26304
26305         tests: silence clang warning
26306         * tests/test-malloca.c (do_allocation): Avoid dead store.
26307
26308 2010-08-29  Bruno Haible  <bruno@clisp.org>
26309
26310         gettext: Fix recent mistake.
26311         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26312
26313 2010-08-29  Bruno Haible  <bruno@clisp.org>
26314
26315         selinux-h: Offer a --without-selinux option.
26316         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26317         --without-selinux was specified, skip all tests and define
26318         HAVE_SELINUX_SELINUX_H to 0.
26319         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26320         set LIB_SELINUX to empty.
26321         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26322         gl_LIBSELINUX. If --without-selinux was specified, replace
26323         selinux/context.h.
26324         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26325
26326 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26327             Bruno Haible  <bruno@clisp.org>
26328
26329         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26330         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26331         of HAVE_REALLOC.
26332         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26333         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26334         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26335         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26336
26337 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26338             Bruno Haible  <bruno@clisp.org>
26339
26340         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26341         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26342         HAVE_CALLOC.
26343         * lib/xmalloc.c: Update accordingly.
26344         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26345         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26346         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26347
26348 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26349             Bruno Haible  <bruno@clisp.org>
26350
26351         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26352         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26353         HAVE_MALLOC.
26354         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26355         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26356         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26357
26358 2010-08-29  Bruno Haible  <bruno@clisp.org>
26359
26360         Update modules list.
26361         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26362         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26363         (String handling <string.h>): Add astrxfrm.
26364         (File system functions): Add readlinkat.
26365
26366 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26367
26368         Tests for module 'realloc-gnu'.
26369         * modules/realloc-gnu-tests: New file.
26370         * tests/test-realloc-gnu.c: New file.
26371
26372         Tests for module 'calloc-gnu'.
26373         * modules/calloc-gnu-tests: New file.
26374         * tests/test-calloc-gnu.c: New file.
26375
26376         Tests for module 'malloc-gnu'.
26377         * modules/malloc-gnu-tests: New file.
26378         * tests/test-malloc-gnu.c: New file.
26379
26380 2010-08-28  Bruno Haible  <bruno@clisp.org>
26381
26382         Rename module 'realloc' -> 'realloc-gnu'.
26383         * modules/realloc-gnu: New file, copied from modules/realloc.
26384         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26385         obsolete.
26386         * modules/mgetgroups (Depends-on): Update.
26387         * doc/posix-functions/realloc.texi: Update.
26388         * NEWS: Mention the change.
26389
26390         Rename module 'calloc' -> 'calloc-gnu'.
26391         * modules/calloc-gnu: New file, copied from modules/calloc.
26392         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26393         obsolete.
26394         * doc/posix-functions/calloc.texi: Update.
26395         * NEWS: Mention the change.
26396
26397         Rename module 'malloc' -> 'malloc-gnu'.
26398         * modules/malloc-gnu: New file, copied from modules/malloc.
26399         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26400         obsolete.
26401         * modules/argp (Depends-on): Update.
26402         * modules/regex (Depends-on): Update.
26403         * doc/posix-functions/malloc.texi: Update.
26404         * NEWS: Mention the change.
26405
26406 2010-08-28  Eric Blake  <eblake@redhat.com>
26407
26408         pread, pwrite: add missing dependency
26409         * modules/pread (Depends-on): Add extensions.
26410         * modules/pwrite (Depends-on): Likewise.
26411
26412 2010-08-28  Bruno Haible  <bruno@clisp.org>
26413
26414         unistr/u*-strchr: Fix tests dependencies.
26415         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26416         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26417         Reported by Ian Beckwith <ianb@erislabs.net>.
26418
26419 2010-08-28  Bruno Haible  <bruno@clisp.org>
26420
26421         read-file: Don't occupy too much unused memory.
26422         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26423
26424 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26425             Eric Blake  <eblake@redhat.com>
26426             Bruno Haible  <bruno@clisp.org>
26427
26428         read-file: Avoid memory reallocations with regular files.
26429         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26430         (fread_file): With regular files, use the remaining length as the
26431         initial buffer size.  Check against overflow.
26432         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26433         sys_stat.
26434
26435 2010-08-28  Bruno Haible  <bruno@clisp.org>
26436
26437         ftello: Relax license.
26438         * modules/ftello (License): Relax to LGPLv2+.
26439         Reported by Eric Blake.
26440
26441 2010-08-28  Bruno Haible  <bruno@clisp.org>
26442
26443         Avoid relocwrapper link errors due to gnulib replacement functions.
26444         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26445         function.
26446         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26447
26448 2010-08-28  Bruno Haible  <bruno@clisp.org>
26449
26450         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26451         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26452         defined.
26453         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26454         Suggested by Eric Blake.
26455
26456 2010-08-28  Bruno Haible  <bruno@clisp.org>
26457
26458         sys_socket, netdb: Ensure socklen_t gets defined.
26459         * modules/sys_socket (Depends-on): Add socklen.
26460         * modules/netdb (Depends-on): Likewise.
26461         * modules/getaddrinfo (Depends-on): Remove socklen.
26462         * modules/getsockopt (Depends-on): Likewise.
26463         * modules/setsockopt (Depends-on): Likewise.
26464         * tests/test-sys_socket.c: Check that socklen_t is defined.
26465         * tests/test-netdb.c: Likewise.
26466         * m4/socklen.m4: Update comments.
26467         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26468
26469 2010-08-27  Eric Blake  <eblake@redhat.com>
26470
26471         login_tty: add missing dependency
26472         * modules/login_tty (Depends-on): Add pty.
26473
26474 2010-08-26  Eric Blake  <eblake@redhat.com>
26475
26476         lib-symbol-versions: fix m4 quoting
26477         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26478         format for AC_LINK_IFELSE.
26479
26480         glob: fix compile test
26481         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26482
26483         btowc: fix missing file
26484         * modules/btowc (Files): Also ship locale-fr.m4.
26485
26486         lseek: fix link test
26487         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26488         AC_LINK_IFELSE.
26489
26490         include_next: silence autoconf 2.68 warning
26491         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26492         AC_COMPILE_IFELSE as special.
26493         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26494         autoconf < 2.68.
26495
26496         acl: fix compilation test
26497         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26498         AC_COMPILE_IFELSE.
26499
26500 2010-08-26  Bruno Haible  <bruno@clisp.org>
26501
26502         Modernize AC_TRY_RUN invocations.
26503         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26504         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26505         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26506         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26507         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26508         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26509         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26510         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26511         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26512         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26513         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26514         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26515         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26516         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26517         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26518         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26519         gl_MBRLEN_NUL_RETVAL): Likewise.
26520         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26521         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26522         Likewise.
26523         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26524         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26525         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26526         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26527         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26528         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26529         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26530         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26531         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26532         Likewise.
26533         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26534         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26535         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26536         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26537         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26538         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26539         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26540         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26541         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26543
26544 2010-08-26  Bruno Haible  <bruno@clisp.org>
26545
26546         Modernize AC_TRY_LINK invocations.
26547         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26548         AC_TRY_LINK.
26549         * m4/argp.m4 (gl_ARGP): Likewise.
26550         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26551         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26552         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26553         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26554         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26555         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26556         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26557         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26558         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26559         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26560         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26561         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26562         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26563         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26564         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26565         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26566         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26567         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26568         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26569         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26570         Likewise.
26571         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26572         Likewise.
26573         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26574         Likewise.
26575         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26576         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26577         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26578         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26579         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26580         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26581         * m4/servent.m4 (gl_SERVENT): Likewise.
26582         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26583         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26584         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26585         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26586         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26587         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26588         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26590         * modules/tsearch-tests (configure.ac): Likewise.
26591
26592 2010-08-26  Bruno Haible  <bruno@clisp.org>
26593
26594         Modernize AC_TRY_COMPILE invocations.
26595         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26596         AC_TRY_COMPILE.
26597         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26598         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26599         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26600         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26601         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26602         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26603         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26604         * m4/lock.m4 (gl_LOCK): Likewise.
26605         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26606         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26607         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26608         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26609         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26610         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26611         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26613         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26614         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26615         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26616         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26617         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26618         extraneous semicolon.
26619
26620 2010-08-26  Jim Meyering  <meyering@redhat.com>
26621
26622         stat-time: relax license LGPL
26623         * modules/stat-time (License): Change from GPL to LGPL,
26624         with consent from all contributors, for use in libguile.
26625         Requested by Ludovic Courtès.
26626
26627 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26628
26629         poll: return immediately on POLLHUP.
26630         * lib/poll.c (poll): Always set timeout before wait_timeout is
26631         computed.
26632
26633 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26634
26635         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26636         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26637         rmdir ("dir/.//"), unlinkat.
26638
26639 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26640
26641         stdbool: avoid spurious failure with modern xlc
26642         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26643
26644 2010-08-24  Bruno Haible  <bruno@clisp.org>
26645
26646         getloadavg: simplify code
26647         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26648         gl_have_func. Update comments.
26649
26650 2010-08-24  Eric Blake  <eblake@redhat.com>
26651
26652         getloadavg: don't define SVR4 on cygwin
26653         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26654         only define SVR4 when -lkvm is required.
26655         Reported by Yaakov Selkowitz.
26656
26657 2010-08-24  Bruno Haible  <bruno@clisp.org>
26658
26659         priv-set: fix comment
26660         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26661
26662 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26663
26664         priv-set: fix comments
26665         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26666         to match code, as suggested by David Bartley in:
26667         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26668
26669 2010-08-23  Eric Blake  <eblake@redhat.com>
26670
26671         stdbool: avoid rejecting clang
26672         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26673         * tests/test-stdbool.c: Enable more tests if using the system
26674         <stdbool.h> instead of the gnulib replacement.
26675         (main): Move xlc bug test to a runtime test for all compilers.
26676         Reported by Anders Kaseorg.
26677
26678         argz: fix shell quoting issue
26679         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26680         Reported by Charles Wilson.
26681
26682 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26683             Erik Faye-Lund <kusmabite@gmail.com>
26684
26685         poll, select: handle ERROR_BROKEN_PIPE.
26686         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26687         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26688         * lib/select.c (win32_compute_revents): Do not mark a pipe
26689         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26690
26691 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26692
26693         fts: allow compilation with C++
26694         * lib/fts_.h: Specify extern "C" linkage with C++.
26695
26696 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26697
26698         Fix gnulib-tool sed script de-commentation for AIX sed.
26699         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26700         sed.
26701
26702 2010-08-17  Eric Blake  <eblake@redhat.com>
26703
26704         test-stddef: test for (some) offsetof bugs
26705         * tests/test-stddef.c: Enhance test to ensure correct type of
26706         offsetof.
26707         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26708         that we are not fixing at this time.
26709
26710 2010-08-15  Bruno Haible  <bruno@clisp.org>
26711
26712         stpncpy: Allow stpncpy to be defined as a macro.
26713         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26714         if it's already correctly declared.
26715         * lib/string.in.h (stpncpy): Undefine before redefining.
26716         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26717
26718 2010-08-14  Bruno Haible  <bruno@clisp.org>
26719
26720         Rename module 'memxfrm' to 'amemxfrm'.
26721         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26722         (amemxfrm): Renamed from memxfrm.
26723         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26724         (amemxfrm): Renamed from memxfrm.
26725         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26726         * NEWS: Mention the change.
26727         * MODULES.html.sh (String handling <string.h>): Update.
26728         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26729         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26730         * lib/unicase/u16-casexfrm.c: Likewise.
26731         * lib/unicase/u32-casexfrm.c: Likewise.
26732         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26733         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26734         * lib/uninorm/u16-normxfrm.c: Likewise.
26735         * lib/uninorm/u32-normxfrm.c: Likewise.
26736         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26737         memxfrm.
26738         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26739         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26740         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26741         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26742         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26743         Suggested by Paul Eggert.
26744
26745 2010-08-14  Bruno Haible  <bruno@clisp.org>
26746
26747         Tests for module 'astrxfrm'.
26748         * modules/astrxfrm-tests: New file.
26749         * tests/test-astrxfrm.c: New file.
26750
26751         New module 'astrxfrm'.
26752         * lib/astrxfrm.h: New file.
26753         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26754         * modules/astrxfrm: New file.
26755
26756 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26757
26758         regex: Tweak doc.
26759         * doc/regex.texi (Overview): Don't mention regex.c.
26760         (GNU Regular Expression Compiling): Likewise.
26761         (Match-end-of-line Operator): Mention 'not_eol'.
26762
26763 2010-08-14  Brian Gough  <bjg@gnu.org>
26764             Bruno Haible  <bruno@clisp.org>
26765
26766         git-merge-changelog: add doc relating to use with bzr and hg.
26767         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26768
26769 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26770
26771         pthread: fix pthread.h creation for srcdir != builddir
26772         * modules/pthread (Makefile.am): Fix the rule to work also in a
26773         non-srcdir build.
26774
26775 2010-08-13  Karl Berry  <karl@gnu.org>
26776
26777         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26778         * doc/posix-*/*: force line break before @url of POSIX
26779         specifications.
26780         Suggested by Werner Lemberg.
26781
26782 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26783
26784         strtod: fix const diagnostic
26785         * lib/strtod.c (strtod): Don't assign const char * to char *,
26786         as this elicits a warning from GCC when warnings are enabled.
26787
26788 2010-08-10  Pádraig Brady <P@draigbrady.com>
26789         and Eric Blake  <eblake@redhat.com>
26790
26791         copy-acl: ignore ENOTSUP on HP-UX
26792         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26793         so that it is available for HP-UX.
26794         * lib/copy-acl.c (qcopy_acl): Use it.
26795         Reported by Patrick M. Callahan.
26796
26797 2010-08-10  Eric Blake  <eblake@redhat.com>
26798
26799         open, chown: relax license
26800         * modules/open (License): Change to LGPLv2+, with consent by all
26801         authors, for use in augeas.
26802         * modules/chown (License): Likewise.
26803         * modules/lchown (Likewise): Likewise.
26804         Requested by Adam Stokes.
26805
26806 2010-08-09  Karl Berry  <karl@gnu.org>
26807
26808         * build-aux/ar-lib: new file, import from Automake.
26809         * config/srclist.txt: autocheck for updates.
26810
26811 2010-08-09  Eric Blake  <eblake@redhat.com>
26812
26813         readlinkat: adjust client modules
26814         * modules/areadlinkat (Depends-on): Use readlinkat, not
26815         symlinkat.
26816         * modules/areadlinkat-with-size (Depends-on): Likewise.
26817
26818         mknod: be more vocal about danger of running tests as root
26819         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26820         root, since that is just asking for problems.
26821         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26822
26823         readlinkat: split into its own module
26824         * modules/symlinkat: Split readlinkat...
26825         * modules/readlinkat: ...into separate module.
26826         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26827         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26828         * lib/symlinkat.c (readlinkat): Move...
26829         * lib/readlinkat.c: ...into new file.
26830         * modules/symlinkat-tests: Split readlinkat test...
26831         * modules/readlinkat-tests: ...into separate module.
26832         * tests/test-symlinkat.c: Split...
26833         * tests/test-readlinkat.c: ...into new file.
26834         * NEWS: Document the split.
26835         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26836         * lib/unistd.in.h (readlinkat): Likewise.
26837         Suggested by Bruno Haible.
26838
26839 2010-08-08  Bruno Haible  <bruno@clisp.org>
26840
26841         memxfrm: Speed up.
26842         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26843         that usually only one call to strxfrm is necessary for each string
26844         part.
26845         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26846
26847 2010-08-07  Karl Berry  <karl@gnu.org>
26848
26849         * doc/posix-headers/limits.texi,
26850         * doc/posix-functions/malloc.texi,
26851         * doc/posix-functions/strsignal.texi: missing @item.
26852         * doc/ld-version-script.texi: spurious leading i.
26853         * doc/regex.texi (Interval Operators): no commas inside @var.
26854
26855 2010-08-01  Bruno Haible  <bruno@clisp.org>
26856
26857         Integrate the regex documentation.
26858         * doc/gnulib.texi: Define 'cn' index.
26859         (Regular expressions): New a chapter that includes regex.texi and
26860         regexprops-generic.texi.
26861         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26862         syntax.
26863
26864         Whitespace cleanup.
26865         * doc/regex.texi: Remove trailing spaces.
26866
26867         Add regex documentation.
26868         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26869         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26870         Written by Kathy A. Hargreaves and Karl Berry.
26871
26872 2010-08-01  Bruno Haible  <bruno@clisp.org>
26873
26874         link: Update documentation.
26875         * doc/posix-functions/link.texi: Update regarding Solaris.
26876
26877 2010-07-31  Bruno Haible  <bruno@clisp.org>
26878
26879         Update modules list.
26880         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26881         (String handling <string.h>): Add memcmp2, memxfrm.
26882         (Container data structures): Add xlist, xsublist, xoset.
26883         (Core language properties): Add alignof, unused-parameter.
26884         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26885         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26886         (Unibyte characters <ctype.h>): New section.
26887         (String handling <string.h>): New section.
26888         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26889         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26890         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26891         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26892         tan, tanh, tanl, y0, y1, yn.
26893         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26894         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26895         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26896         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26897         unlockpt, vdprintf, vdprintf-posix.
26898         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26899         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26900         xconcat-filename.
26901         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26902         getdtablesize, pipe2, pipe2-safer.
26903         (Security): New section.
26904         (Networking functions): Add accept4.
26905         (Signal handling): Add sigpipe.
26906         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26907         mbmemcasecoll.
26908         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26909         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26910         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26911         pipe-filter-ii.
26912         (Misc): Add argp-version-etc, login_tty, parse-duration.
26913
26914 2010-07-31  Bruno Haible  <bruno@clisp.org>
26915
26916         Improve doc in MODULES.html.
26917         * modules/linkat (Description): Add the word "function".
26918         * modules/mkfifo (Description): Likewise.
26919         * modules/mknod (Description): Likewise.
26920         * modules/remove (Description): Likewise.
26921         * modules/renameat (Description): Likewise.
26922         * modules/stat (Description): Likewise.
26923         * modules/symlink (Description): Likewise.
26924         * modules/unlink (Description): Likewise.
26925
26926 2010-07-31  Bruno Haible  <bruno@clisp.org>
26927
26928         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26929         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26930         option --enable/disable-c++ instead of --enable/disable-cxx.
26931         * NEWS: Mention the change.
26932
26933 2010-07-31  Bruno Haible  <bruno@clisp.org>
26934
26935         readlink, areadlink: Relax test a bit.
26936         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26937         alternative to ENOTDIR.
26938         * tests/test-areadlink.h (test_areadlink): Likewise.
26939         Reported by Rainer Tammer.
26940
26941 2010-07-31  Bruno Haible  <bruno@clisp.org>
26942
26943         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26944         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26945         character, perform the search using U_STRCHR.
26946         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26947         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26948         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26949         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26950         Suggested by Paolo Bonzini.
26951
26952 2010-07-31  Bruno Haible  <bruno@clisp.org>
26953
26954         unistr/u*-strstr: Fix dependencies.
26955         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26956         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26957         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26958
26959 2010-07-31  Bruno Haible  <bruno@clisp.org>
26960
26961         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26962         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26963         the beginning of the loop.
26964         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26965         cases in 'switch' statement.
26966
26967         unistr/u8-strchr: Fix several bugs.
26968         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26969         the string. When not found, return NULL, not a pointer near the end.
26970
26971         More tests for unistr/u8-strchr.
26972         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26973         that the function does not read past the first occurrence of the byte
26974         being searched.
26975         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26976         * tests/unistr/test-u16-strchr.c (main): New function.
26977         * tests/unistr/test-u32-strchr.c (main): New function.
26978
26979 2010-07-31  Bruno Haible  <bruno@clisp.org>
26980
26981         posix-modules: Ignore backup files of documentation files.
26982         * posix-modules: grep only through files named *.texi.
26983
26984 2010-07-31  Bruno Haible  <bruno@clisp.org>
26985
26986         symlinkat: Fix documentation.
26987         * doc/posix-functions/readlinkat.texi: Fix module name.
26988
26989 2010-07-31  Bruno Haible  <bruno@clisp.org>
26990
26991         fchownat: Replace also when chown has the trailing slash bug.
26992         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26993         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26994         introduced on 2010-04-10.
26995         Reported by Rainer Tammer.
26996
26997 2010-07-31  Bruno Haible  <bruno@clisp.org>
26998
26999         linkat: Work around AIX 7.1 bug.
27000         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27001         whether linkat handles trailing slash correctly. If not, replace linkat
27002         and define LINKAT_TRAILING_SLASH_BUG.
27003         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27004         check whether (fd1,file1) points to a directory if file1 or file2 ends
27005         in a slash. Code taken from lib/link.c.
27006         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27007         Reported by Rainer Tammer.
27008
27009 2010-07-31  Bruno Haible  <bruno@clisp.org>
27010
27011         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27012         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27013         This disables an xlc optimization that was causing wrong test results.
27014         Reported by Rainer Tammer.
27015
27016 2010-07-31  Bruno Haible  <bruno@clisp.org>
27017
27018         iconv: Work around AIX 6.1..7.1 bug.
27019         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27020         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27021         cross-compiling, guess no on all versions of AIX.
27022         Reported by Rainer Tammer.
27023
27024 2010-07-31  Bruno Haible  <bruno@clisp.org>
27025
27026         readlink: Relax test a bit.
27027         * tests/test-readlink.h (test_readlink): Allow different errno value
27028         when readlink is called with a file name that ends in / and refers to
27029         a file.
27030         Suggested by Eric Blake.
27031         Reported by Rainer Tammer.
27032
27033 2010-07-31  Bruno Haible  <bruno@clisp.org>
27034
27035         copysign: Does not require -lm on glibc systems.
27036         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27037         gl_COMMON_DOUBLE_MATHFUNC.
27038         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27039
27040 2010-07-31  Bruno Haible  <bruno@clisp.org>
27041
27042         duplocale: Work around AIX 7.1 bug.
27043         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27044         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27045         * lib/duplocale.c (rpl_duplocale): Update comment.
27046         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27047         Reported by Rainer Tammer.
27048
27049 2010-07-30  Bruno Haible  <bruno@clisp.org>
27050
27051         dirfd: Avoid link error on AIX 7.1.
27052         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27053         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27054         exist, set REPLACE_DIRFD.
27055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27056         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27057         * doc/posix-functions/dirfd.texi: Update.
27058         Reported by Rainer Tammer.
27059
27060 2010-07-30  Eric Blake  <eblake@redhat.com>
27061
27062         strtod: next round of AIX fixes
27063         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27064         exponent.
27065         * tests/test-strtod.c (main): Enhance tests.
27066         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27067         Reported by Rainer Tammer.
27068
27069         futimens: fix configure check
27070         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27071         Reported by Bruno Haible.
27072
27073 2010-07-30  Bruno Haible  <bruno@clisp.org>
27074
27075         getline: Update regarding AIX.
27076         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27077         Reported by Rainer Tammer.
27078
27079 2010-07-30  Bruno Haible  <bruno@clisp.org>
27080
27081         wcwidth: Drop replacement on AIX 7.
27082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27083         AIX 7.
27084         Reported by Rainer Tammer.
27085
27086 2010-07-30  Bruno Haible  <bruno@clisp.org>
27087
27088         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27090         a 'char *'.
27091         Reported by Rainer Tammer.
27092
27093 2010-07-30  Bruno Haible  <bruno@clisp.org>
27094
27095         unlink: Update regarding AIX.
27096         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27097         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27098         Reported by Rainer Tammer.
27099
27100 2010-07-30  Bruno Haible  <bruno@clisp.org>
27101
27102         symlink: Update regarding AIX.
27103         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27104         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27105         Reported by Rainer Tammer.
27106
27107 2010-07-30  Bruno Haible  <bruno@clisp.org>
27108
27109         strndup: Update regarding AIX.
27110         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27111         AIX 7.
27112         Reported by Rainer Tammer.
27113
27114 2010-07-30  Bruno Haible  <bruno@clisp.org>
27115
27116         stat: Update regarding AIX.
27117         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27118         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27119         Reported by Rainer Tammer.
27120
27121 2010-07-30  Bruno Haible  <bruno@clisp.org>
27122
27123         truncl: Fix autoconf test.
27124         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27125         whether truncl works.
27126         Reported by Rainer Tammer.
27127
27128 2010-07-30  Bruno Haible  <bruno@clisp.org>
27129
27130         round: Update regarding AIX.
27131         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27132         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27133         Reported by Rainer Tammer.
27134
27135 2010-07-30  Bruno Haible  <bruno@clisp.org>
27136
27137         rename: Update regarding AIX.
27138         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27139         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27140         Reported by Rainer Tammer.
27141
27142 2010-07-30  Bruno Haible  <bruno@clisp.org>
27143
27144         printf.m4: Update regarding AIX.
27145         * m4/printf.m4: Update comments regarding AIX.
27146         Reported by Rainer Tammer.
27147
27148 2010-07-30  Bruno Haible  <bruno@clisp.org>
27149
27150         iconv: Update regarding AIX.
27151         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27152         AIX 7.
27153         Reported by Rainer Tammer.
27154
27155 2010-07-30  Bruno Haible  <bruno@clisp.org>
27156
27157         getopt: Update regarding AIX.
27158         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27159         no on AIX.
27160         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27161         Reported by Rainer Tammer.
27162
27163 2010-07-30  Bruno Haible  <bruno@clisp.org>
27164
27165         ldexpl; Update regarding AIX.
27166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27167         on AIX 7.
27168         Reported by Rainer Tammer.
27169
27170 2010-07-30  Bruno Haible  <bruno@clisp.org>
27171
27172         frexpl: Update regarding AIX.
27173         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27174         on AIX 7.
27175         Reported by Rainer Tammer.
27176
27177 2010-07-30  Bruno Haible  <bruno@clisp.org>
27178
27179         open, fopen: Update regarding AIX.
27180         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27181         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27182         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27183         * doc/posix-functions/fopen.texi: Likewise.
27184         Reported by Rainer Tammer.
27185
27186 2010-07-30  Bruno Haible  <bruno@clisp.org>
27187
27188         chown: Update doc regarding AIX.
27189         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27190         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27191         Reported by Rainer Tammer.
27192
27193 2010-07-30  Eric Blake  <eblake@redhat.com>
27194
27195         strtod: fix bug in replacement function on AIX
27196         * lib/strtod.c (strtod): Special case broken "0x" parse in
27197         underlying strtod.
27198         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27199         * doc/posix-functions/strtod.texi (strtod): Likewise.
27200         Reported by Rainer Tammer.
27201
27202 2010-07-30  Bruno Haible  <bruno@clisp.org>
27203
27204         mbrlen: Fix cross-compilation guess for AIX.
27205         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27206         guess. Leftover from 2008-12-22.
27207
27208 2010-07-30  Bruno Haible  <bruno@clisp.org>
27209
27210         mbrtowc: Fix cross-compilation guess for AIX.
27211         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27212         guess. Leftover from 2008-12-21.
27213
27214 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27215
27216         init.sh: work around trap limitation of some shells
27217         * tests/init.sh (setup_): Move exit trap outside of shell function.
27218
27219 2010-07-29  Eric Blake  <eblake@redhat.com>
27220
27221         strtod: aid debugging
27222         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27223         understanding why strtod is rejected.
27224
27225 2010-07-28  Bruno Haible  <bruno@clisp.org>
27226
27227         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27228         * lib/unistr/u8-chr.c: Include <string.h>.
27229         * tests/unistr/test-u8-chr.c: Likewise.
27230         * tests/unistr/test-u16-chr.c: Likewise.
27231         * tests/unistr/test-u32-chr.c: Likewise.
27232         * tests/unistr/test-u8-strchr.c: Likewise.
27233         * tests/unistr/test-u16-strchr.c: Likewise.
27234         * tests/unistr/test-u32-strchr.c: Likewise.
27235         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27236         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27237         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27238         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27239
27240 2010-07-28  Bruno Haible  <bruno@clisp.org>
27241
27242         Use spaces for indentation, not tabs.
27243         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27244
27245 2010-07-27  Bruno Haible  <bruno@clisp.org>
27246
27247         mbspcasecmp: Fix function specification.
27248         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27249         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27250         Reported by Eric Blake <eblake@redhat.com>.
27251
27252 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27253
27254         timespec: use cast and not conditional, as truncation isn't possible
27255         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27256         instead of a conditional.  Comment about the situation in more detail.
27257         This undoes most of the 2009-10-29 patch.
27258
27259 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27260
27261         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27262         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27263         * lib/unistr/u8-strchr.c: Likewise.
27264         * modules/unistr/u8-chr: Depend on memchr.
27265
27266         unistr/u*-strchr: add tests
27267         * modules/unistr/u8-strchr-tests: New file.
27268         * modules/unistr/u16-strchr-tests: New file.
27269         * modules/unistr/u32-strchr-tests: New file.
27270         * tests/unistr/test-strchr.h: New file.
27271         * tests/unistr/test-u8-strchr.c: New file.
27272         * tests/unistr/test-u16-strchr.c: New file.
27273         * tests/unistr/test-u32-strchr.c: New file.
27274
27275         unistr/u*-chr: test multibyte sequences more
27276         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27277         test vector.
27278         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27279         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27280         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27281
27282         unistr/u*-chr: test multibyte sequences
27283         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27284
27285         unistr/u*-chr: prepare for multibyte tests
27286         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27287         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27288         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27289         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27290         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27291         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27292
27293 2010-07-18  Bruno Haible  <bruno@clisp.org>
27294
27295         unistr/u8-strchr: Optimize non-ASCII argument case.
27296         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27297         because the first byte often matches anyway.
27298         Reported by Pádraig Brady <P@draigbrady.com>.
27299
27300 2010-07-15  Karl Berry  <karl@gnu.org>
27301
27302         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27303
27304 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27305
27306         getcwd: on Solaris, work better if ancestors are inaccessible
27307         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27308         buffer and size, try again with a large buffer.  This works better
27309         on Solaris, since its getcwd succeeds even if the path to the root
27310         is inaccessible, and this is helpful in common cases such as .zfs
27311         hidden directories.  Problem reported by J Chapman Flack in
27312         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27313         Use system getcwd if it's declared, not merely if it's partly
27314         working; use the partly-working test only to avoid needless effort
27315         if the system getcwd fails.
27316         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27317         comment that was already obsolete and is now even more obsolete.
27318         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27319         now might call strdup.
27320
27321 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27322
27323         pthread: Add enough so that coreutils/src/sort.c compiles.
27324         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27325         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27326         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27327         Include <sys/types.h>, in case it defines pthread_t.
27328         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27329         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27330         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27331         (pthread_rwlockattr_t, pthread_spinlock_t):
27332         New typedefs, if HAVE_PTHREAD_T is not defined.
27333         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27334         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27335         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27336         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27337         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27338         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27339         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27340         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27341         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27342         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27343         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27344         New macros.
27345         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27346         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27347         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27348         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27349         (pthread_spin_unlock): New dummy functions.
27350         (pthread_create): Return EAGAIN; don't set errno.
27351         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27352         require AC_C_INLINE.
27353         * modules/pthread (Depends-on): Add sched, time.
27354         (pthread.h): Use AM_V_GEN.
27355
27356 2010-07-13  Bruno Haible  <bruno@clisp.org>
27357
27358         striconveh: Don't malloc memory if the result buffer is sufficient.
27359         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27360         buffer if its size is sufficient.
27361         Reported by Ludovic Courtès <ludo@gnu.org>.
27362
27363 2010-07-13  Bruno Haible  <bruno@clisp.org>
27364
27365         strtod: Add safety check.
27366         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27367
27368 2010-07-12  Bruno Haible  <bruno@clisp.org>
27369
27370         Unify tests that set gl_cv_func_ldexpl_no_libm.
27371         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27372         gl_FUNC_LDEXPL.
27373         (gl_FUNC_LDEXPL): Invoke it.
27374         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27375
27376 2010-07-12  Bruno Haible  <bruno@clisp.org>
27377
27378         Unify tests that set gl_cv_func_ldexp_no_libm.
27379         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27380         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27381         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27382         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27383         * modules/strtod (Files): Add m4/ldexp.m4.
27384
27385 2010-07-12  Bruno Haible  <bruno@clisp.org>
27386
27387         Unify tests that set gl_cv_func_frexpl_no_libm.
27388         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27389         gl_FUNC_FREXPL_NO_LIBM.
27390         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27391         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27392
27393 2010-07-12  Bruno Haible  <bruno@clisp.org>
27394
27395         Unify tests that set gl_cv_func_frexp_no_libm.
27396         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27397         gl_FUNC_FREXP_NO_LIBM.
27398         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27399         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27400
27401 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27402
27403         memcoll: clarify sizes versus lengths, document better, and tweak perf
27404         * lib/memcoll.c (strcoll_loop, memcoll0):
27405         Improve quality of descriptive comments.  Name variables
27406         consistently as to whether they are lengths (which do not include
27407         terminating null) versus sizes (which do).
27408         * lib/xmemcoll.c (xmemcoll0): Likewise.
27409         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27410         returned when s1size == 0; this is easier to compile and saves
27411         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27412
27413 2010-07-12  Bruno Haible  <bruno@clisp.org>
27414
27415         Tests for module '_Exit'.
27416         * modules/_Exit-tests: New file.
27417         * tests/test-_Exit.sh: New file.
27418         * tests/test-_Exit.c: New file.
27419
27420         New module '_Exit'.
27421         * lib/stdlib.in.h (__attribute__): New macro.
27422         (_Exit): New declaration.
27423         * lib/_Exit.c: New file.
27424         * m4/_Exit.m4: New file.
27425         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27426         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27427         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27428         * modules/_Exit: New file.
27429         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27430         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27431
27432 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27433
27434         strtod: make it more-accurate typically, and don't require libm
27435         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27436         Include limits.h.  Don't include string.h.
27437         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27438         (locale_isspace): New function, so that no casts are needed to
27439         check whether *s is a space.
27440         (ldexp): Provide an unused dummy if not available.
27441         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27442         (strtod): Use them.  This implementation prefers to use the
27443         underlying strtod if available, falling back on our own code
27444         only to fix known bugs.  This is more likely to produce an
27445         accurate result.  Also, it avoids the use of libm functions.
27446         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27447         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27448         was absent, but it caused a test failure with coreutils.
27449         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27450         with libm.
27451         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27452         * modules/strtod-tests (Makefile.am): Likewise.
27453
27454 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27455             Bruno Haible  <bruno@clisp.org>
27456
27457         unistr/u8-strchr: Optimize ASCII argument case.
27458         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27459
27460 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27461
27462         (x)memcoll: minor tweaks
27463         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27464         is after the type that it qualifies.
27465         (memcoll0): Likewise.
27466         * lib/memcoll.h (memcoll0): Likewise.
27467         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27468         * lib/xmemcoll.h (xmemcoll0): Likewise.
27469         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27470         differs from memcoll in that the NUL byte is part of the argument.
27471         Omit the abort-checks, as performance is a real issue here.  Plus,
27472         the checks were wrong anyway (an off-by-one error).  Omit local
27473         variable 'diff', as it's a bit clearer that way.
27474         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27475         no longer needed.
27476
27477 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27478
27479         (x)memcoll: speedup when input is known to be NUL delimited
27480         * lib/memcoll.c: Include stdlib.
27481         (memcoll0): New function.
27482         (strcoll_loop): New function, refactored for use in both memcoll
27483         and memcoll0.
27484         * lib/memcoll.h (memcoll0): Add prototype.
27485         * lib/xmemcoll.c (xmemcoll0): New function.
27486         (collate_error): New function, refactored for use in both xmemcoll
27487         and xmemcoll0.
27488         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27489         * m4/memcoll.m4: add inline invocation.
27490
27491 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27492
27493         * build-aux/bootstrap: Remove any local translations
27494         from the translation project synchronization directory,
27495         so that local only translations are not distributed.
27496
27497 2010-07-04  Bruno Haible  <bruno@clisp.org>
27498
27499         fsusage: Clarify which code applies to which platforms.
27500         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27501         platform.
27502         * lib/fsusage.c (get_fs_usage): Likewise.
27503
27504 2010-07-04  Bruno Haible  <bruno@clisp.org>
27505
27506         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27507         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27508         Reported by Martin Lambers <marlam@marlam.de>.
27509
27510 2010-07-04  Jim Meyering  <meyering@redhat.com>
27511
27512         hash: once again explicitly disallow insertion of NULL
27513         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27514         inserting a NULL pointer cannot work with these functions.
27515         Add a comment with details.
27516         This reverts part of the 2010-07-01 commit, 5bef1a35
27517         "hash: extend module to deal with non-pointer keys".
27518
27519 2010-07-01  Bruno Haible  <bruno@clisp.org>
27520
27521         stdbool: Update doc.
27522         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27523         Info from Christian Weisgerber <naddy@mips.inka.de>.
27524
27525 2010-07-01  Jim Meyering  <meyering@redhat.com>
27526
27527         hash: extend module to deal with non-pointer keys
27528         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27529         but that allows insertion of non-pointer entries.
27530         Do not disallow an ENTRY value of NULL.
27531         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27532         * lib/hash.h (hash_insert0): Declare.
27533
27534 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27535
27536         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27537         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27538         not present (i.e. with autoconf 2.59 and when using gettextize, not
27539         gnulib), require AC_GNU_SOURCE instead.
27540
27541 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27542
27543         idpriv-drop: Fix tests.
27544         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27545         not to the test-idpriv-droptemp program.
27546
27547 2010-06-29  Bruno Haible  <bruno@clisp.org>
27548
27549         string: Fix syntax error with g++ 2.96.
27550         * lib/string.in.h (__pure__): Remove definition.
27551         (_GL_ATTRIBUTE_PURE): New macro.
27552         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27553         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27554         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27555
27556 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27557
27558         unitypes: Fix bug introduced on 2010-05-18.
27559         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27560
27561 2010-06-22  Eric Blake  <eblake@redhat.com>
27562
27563         memmem: slight optimization
27564         * lib/str-two-way.h (critical_factorization): Update comments.
27565         Reduce work during factorization phase.
27566         Reported by Carlos Bueno <carlos@bueno.org>.
27567
27568 2010-06-21  Bruno Haible  <bruno@clisp.org>
27569
27570         Fix HAVE_CALLOC_POSIX misnomer.
27571         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27572         !HAVE_CALLOC_POSIX.
27573         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27574         HAVE_CALLOC_POSIX.
27575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27576         instead of HAVE_CALLOC_POSIX.
27577         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27578         HAVE_CALLOC_POSIX.
27579
27580         Use modern idiom for calloc() replacement.
27581         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27582         AC_FUNC_CALLOC.
27583         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27584         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27585         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27586         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27587         (gl_REPLACE_CALLOC): New macro.
27588
27589 2010-06-21  Bruno Haible  <bruno@clisp.org>
27590
27591         Fix HAVE_REALLOC_POSIX misnomer.
27592         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27593         !HAVE_REALLOC_POSIX.
27594         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27595         HAVE_REALLOC_POSIX.
27596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27597         instead of HAVE_REALLOC_POSIX.
27598         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27599         HAVE_REALLOC_POSIX.
27600
27601         Use modern idiom for realloc() replacement.
27602         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27603         AC_FUNC_REALLOC.
27604         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27605         Autoconf's AC_FUNC_REALLOC.
27606         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27607         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27608         (gl_REPLACE_REALLOC): New macro.
27609         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27610
27611 2010-06-21  Bruno Haible  <bruno@clisp.org>
27612
27613         Fix HAVE_MALLOC_POSIX misnomer.
27614         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27615         !HAVE_MALLOC_POSIX.
27616         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27617         HAVE_MALLOC_POSIX.
27618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27619         instead of HAVE_MALLOC_POSIX.
27620         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27621         HAVE_MALLOC_POSIX.
27622
27623         Use modern idiom for malloc() replacement.
27624         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27625         AC_FUNC_MALLOC.
27626         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27627         Autoconf's AC_FUNC_MALLOC.
27628         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27629         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27630         (gl_REPLACE_MALLOC): New macro.
27631         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27632
27633 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27634
27635         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27636         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27637         This macro takes 3 arguments, not 4.
27638
27639 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27640
27641         ipv6: fix detection under mingw
27642         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27643         in6_addr.
27644
27645 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27646
27647         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27648         that strtod() works when cross-compiling to a glibc version known
27649         to work.
27650
27651 2010-06-15  Bruno Haible  <bruno@clisp.org>
27652
27653         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27654
27655 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27656
27657         select: Correct timeout.
27658         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27659
27660 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27661
27662         git-version-gen: init shell var to avoid env var influence
27663         * build-aux/git-version-gen (v): Init shell var to empty.
27664
27665 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27666
27667         priv-set: Don't assume that priv.h exists merely because getppriv does.
27668         See Jan Andersen's bug report about AIX 5L in
27669         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27670         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27671         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27672         * lib/priv-set.h: Likewise.
27673         * tests/test-priv-set.c: Likewise.
27674
27675 2010-06-13  Bruno Haible  <bruno@clisp.org>
27676
27677         relocatable: Make it easier to test whether to install wrappers.
27678         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27679         RELOCATABLE_VIA_WRAPPER.
27680
27681 2010-06-13  Bruno Haible  <bruno@clisp.org>
27682
27683         gnulib-tool: Display specified modules and dependencies differently.
27684         * gnulib-tool (func_show_module_list): New function.
27685         (func_import, func_create_testdir): Invoke it.
27686         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27687
27688 2010-06-13  Bruno Haible  <bruno@clisp.org>
27689
27690         gnulib-tool: Align code of func_import and func_create_testdir.
27691         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27692         specified_modules.
27693
27694 2010-06-12  Jim Meyering  <meyering@redhat.com>
27695
27696         test-inttostr: avoid spurious failure on Solaris 9
27697         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27698         to accept "%ju".  Reported by Bruno Haible.
27699
27700 2010-06-11  Jim Meyering  <meyering@redhat.com>
27701
27702         test-sys_socket: mark variables as used more readably
27703         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27704         as "used" explicitly via (void) statement casts.  This is more
27705         readable than using them in an artificial return expression.
27706         Suggestion from Bruno Haible.
27707
27708 2010-06-11  Bruno Haible  <bruno@clisp.org>
27709
27710         Avoid some more warnings from "gcc -Wwrite-strings".
27711         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27712         to 'const char *'.
27713         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27714         * tests/test-c-strcasestr.c (main): Likewise.
27715         * tests/test-mbscasestr1.c (main): Likewise.
27716         * tests/test-mbscasestr2.c (main): Likewise.
27717         * tests/test-memmem.c (main): Likewise.
27718         * tests/test-strstr.c (main): Likewise.
27719         * tests/test-strcasestr.c (main): Likewise.
27720
27721 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27722
27723         init.sh: change framework_failure_ to fail with status 99, not 1
27724         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27725         automake's parallel-tests rule that this is an unexpected failure,
27726         even if the test is listed in XFAIL_TESTS.
27727
27728 2010-06-11  Jim Meyering  <meyering@redhat.com>
27729
27730         test-inttostr: avoid warnings about 4-6KB literal strings
27731         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27732         Include "macros.h", for its definition of ASSERT.
27733         (CK): s/assert/ASSERT/
27734         * modules/inttostr-tests (Files): Add macros.h.
27735
27736         init.sh: don't use $ME_ or skip_ before they are defined
27737         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27738         their first uses.  Also hoist their companions: warn_, fail_,
27739         framework_failure_, $stderr_fileno.  Prompted by a patch from
27740         Stefano Lattarini.
27741
27742         test-sys_socket: avoid set-but-not-used warnings from gcc
27743         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27744         avoid warning about set-but-not-used variables.
27745
27746         test-xvasprintf: avoid 'const' discard warnings
27747         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27748         "const" when assigning from literal strings.
27749         (test_xasprintf): Add "void" in function argument list to placate
27750         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27751
27752         tests: avoid compilation warnings in argmatch and exclude tests...
27753         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27754         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27755         Since it always exits, declare with the "noreturn" attribute.
27756         * tests/test-argmatch.c: Likewise.
27757
27758         tests: avoid 'const' discard warnings in mbsstr tests
27759         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27760         * tests/test-mbsstr2.c (main): Likewise.
27761
27762         test-verify: avoid warning from gcc's -Wmissing-declarations
27763         * tests/test-verify.c (function): Declare to be static.
27764
27765         test-inttostr.c: include <string.h> for use of strcmp
27766         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27767
27768         test-linkat: avoid failed assertion on "other" architectures
27769         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27770         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27771         sparc: https://bugs.launchpad.net/bugs/591968
27772
27773 2010-06-11  Jim Meyering  <meyering@redhat.com>
27774
27775         printf.m4: avoid autoconf's "Expanded Before Required" warning
27776         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27777         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27778         autoconf warning.
27779
27780 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27781
27782         Replacement header templates are now named with ".in", not "_".
27783         * doc/gnulib-intro.texi: Correct.
27784
27785 2010-06-10  Jim Meyering  <meyering@redhat.com>
27786
27787         inttostr-tests: depend on snprintf, not snprintf-posix
27788         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27789         snprintf-posix, to avoid this aclocal failure:
27790           missing file gnulib-tests/vasnprintf.c
27791           configure.ac:45: error: expected source file, required through \
27792           AC_LIBSOURCES, not found
27793
27794 2010-06-10  Jim Meyering  <meyering@redhat.com>
27795
27796         inttostr: add a new function, inttostr, and tests
27797         The namesake function was not available.  The existence of the
27798         template file, inttostr.c makes its addition nontrivial.
27799         * lib/anytostr.c: Rename from inttostr.c.
27800         (anytostr): Rename from inttostr.
27801         * lib/inttostr.c: New file.
27802         * modules/inttostr (Files): Add anytostr.c.
27803         (Makefile.am): Set lib_SOURCES instead of ...
27804         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27805         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27806         * lib/offtostr.c: Likewise.
27807         * lib/uinttostr.c: Likewise.
27808         * lib/umaxtostr.c: Likewise.
27809         * modules/inttostr-tests: New file.
27810         * tests/test-inttostr.c: New file.  Test these functions.
27811
27812 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27813             Bruno Haible  <bruno@clisp.org>
27814
27815         Add "Extending Gnulib" chapter to manual.
27816         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27817         chapter.
27818         (Extending Gnulib): New chapter.
27819         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27820         chapter.
27821
27822 2010-06-09  Bruno Haible  <bruno@clisp.org>
27823
27824         Avoid relocwrapper link errors due to gnulib replacement functions.
27825         * lib/areadlink.c: Use the system's malloc, realloc functions.
27826         (areadlink): Set errno to ENOMEM explicitly.
27827         * modules/areadlink (Depends-on): Remove malloc-posix.
27828         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27829
27830 2010-06-09  Bruno Haible  <bruno@clisp.org>
27831
27832         Avoid relocwrapper link errors due to gnulib replacement functions.
27833         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27834         * lib/malloca.c: Likewise.
27835         * lib/relocatable.c: Likewise.
27836         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27837         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27838         * lib/setenv.c: Use the system's malloc, realloc functions.
27839         * lib/strerror.c: Use the system's sprintf function.
27840         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27841
27842 2010-06-04  Bruno Haible  <bruno@clisp.org>
27843
27844         Prefer documented low-level autoconf macro names.
27845         * m4/lib-link.m4: Use m4_translit instead of translit.
27846         * m4/environ.m4: Likewise.
27847         * m4/mathfunc.m4: Likewise.
27848         * m4/onceonly.m4: Likewise.
27849         * m4/stdint.m4: Likewise.
27850         Suggested by Eric Blake.
27851
27852 2010-06-04  Martin Lambers  <marlam@marlam.de>
27853             Bruno Haible  <bruno@clisp.org>
27854
27855         havelib: Allow library names with '+' characters.
27856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27857         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27858
27859 2010-06-09  Bruno Haible  <bruno@clisp.org>
27860
27861         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27862         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27863         realloc failed.
27864
27865 2010-06-08  Peter Simons  <simons@cryp.to>
27866
27867         maint.mk: make the news-check rule more configurable
27868         * top/maint.mk (news-check-lines-spec): New variable.
27869         (news-check): Use "sed -n 1,10p" in place of "head".
27870
27871 2010-06-07  Jim Meyering  <meyering@redhat.com>
27872
27873         do-release-commit-and-tag: fix typo in --help
27874         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27875
27876         regex: avoid new dead-code warning with gcc-4.6.0
27877         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27878         if-block containing a while-loop.  It's been unused for at least
27879         5 years.
27880
27881 2010-06-05  Bruno Haible  <bruno@clisp.org>
27882
27883         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27884         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27885
27886 2010-06-04  Bruno Haible  <bruno@clisp.org>
27887
27888         Update to GNU gettext 0.18.1.
27889         * modules/gettext (configure.ac): Require gettext infrastructure from
27890         version 0.18.1.
27891
27892 2010-06-03  Bruno Haible  <bruno@clisp.org>
27893
27894         Don't use AC_LIBOBJ with file names in subdirectories.
27895         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27896         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27897         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27898         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27899         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27900         gl_LIBUNISTRING_LIBSOURCE.
27901         (Makefile.am): Augment lib_SOURCES here, conditionally.
27902         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27903
27904 2010-06-03  Bruno Haible  <bruno@clisp.org>
27905
27906         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27907         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27908         expansion does not end with a newline.
27909         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27910         unnecessary newline.
27911
27912 2010-06-03  Bruno Haible  <bruno@clisp.org>
27913
27914         Reduce dependencies.
27915         * tests/test-quotearg.h: New file, extracted from
27916         tests/test-quotearg.c.
27917         * tests/test-quotearg-simple.c: New file, extracted from
27918         tests/test-quotearg.c.
27919         * tests/test-quotearg.c: Don't include <ctype.h>.
27920         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27921         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27922         use_quote_double_quotes, use_quotearg_colon): Moved to
27923         tests/test-quotearg.h.
27924         (results_g, flag_results, custom_quotes, custom_results): Moved
27925         to tests/test-quotearg-simple.c.
27926         (main): Moved the part that does not depend on gettext to
27927         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27928         performed.
27929         * modules/quotearg-simple: New file.
27930         * modules/quotearg-simple-tests: New file.
27931         * modules/quotearg (Depends-on): Add quotearg-simple.
27932         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27933         (Files): Add tests/test-quotearg.h.
27934         Reported by Paolo Bonzini.
27935
27936 2010-06-03  Bruno Haible  <bruno@clisp.org>
27937
27938         Reduce dependencies.
27939         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27940
27941 2010-06-03  Bruno Haible  <bruno@clisp.org>
27942
27943         time: Undefine more broken macros.
27944         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27945         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27946         Reported by Eric Blake.
27947
27948 2010-06-03  Bruno Haible  <bruno@clisp.org>
27949
27950         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27951         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27952         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27953         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27954         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27955         Reported by Ludovic Courtès <ludo@gnu.org>.
27956
27957 2010-06-02  Eric Blake  <eblake@redhat.com>
27958
27959         time: work with mingw + pthreads-win32 library
27960         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27961         if timespec is defined only in pthread.h.
27962         * modules/time (Makefile.am): Substitute it.
27963         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27964         <pthread.h>, when needed.
27965         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27966         from the library.
27967
27968 2010-05-31  Bruno Haible  <bruno@clisp.org>
27969
27970         Avoid expanding two macros in the wrong order.
27971         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27972         gl_LIBUNISTRING if it is defined.
27973         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27974         autoconf >= 2.64.
27975         Reported by Ludovic Courtès <ludo@gnu.org>.
27976
27977 2010-05-27  Jim Meyering  <meyering@redhat.com>
27978
27979         maint.mk: also prohibit "#undef" of always-defined symbols
27980         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27981         Allow more than one space before the symbol name.
27982         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27983         the regexp uses alternation.
27984
27985 2010-05-26  Eric Blake  <eblake@redhat.com>
27986
27987         maint.mk: avoid echo -e
27988         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27989         Convert all uses of echo -* to printf.
27990         Reported by Matthias Bolte.
27991
27992 2010-05-25  Bruno Haible  <bruno@clisp.org>
27993
27994         Update to GNU gettext 0.18, part 2.
27995         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27996         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27997
27998 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27999
28000         Add missing include in test-pwrite.c.
28001         * tests/test-pwrite.c: Include string.h, for strcmp.
28002
28003 2010-05-24  Bruno Haible  <bruno@clisp.org>
28004
28005         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28006
28007 2010-05-24  Bruno Haible  <bruno@clisp.org>
28008
28009         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28010         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28011         iconveh_error argument.
28012         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28013         U_STRCONV_TO_LOCALE.
28014         * lib/unistr/u16-strcoll.c: Likewise.
28015         * lib/unistr/u32-strcoll.c: Likewise.
28016         * modules/unistr/u8-strcoll (Depends-on): Add
28017         uniconv/u8-strconv-to-enc, localcharset. Remove
28018         uniconv/u8-strconv-to-locale.
28019         (configure.ac): Bump version number.
28020         * modules/unistr/u16-strcoll (Depends-on): Add
28021         uniconv/u16-strconv-to-enc, localcharset. Remove
28022         uniconv/u16-strconv-to-locale.
28023         (configure.ac): Bump version number.
28024         * modules/unistr/u32-strcoll (Depends-on): Add
28025         uniconv/u32-strconv-to-enc, localcharset. Remove
28026         uniconv/u32-strconv-to-locale.
28027         (configure.ac): Bump version number.
28028
28029 2010-05-24  Bruno Haible  <bruno@clisp.org>
28030
28031         Avoid a test failure on NetBSD 5.0.
28032         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28033         an iconv() bug.
28034
28035 2010-05-24  Bruno Haible  <bruno@clisp.org>
28036
28037         Adjust #include directive style.
28038         * modules/regex (Includes): Recommend to write <regex.h>.
28039
28040 2010-05-24  Bruno Haible  <bruno@clisp.org>
28041
28042         regex: Don't require alloca.
28043         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28044         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28045         only inside if (0).
28046
28047 2010-05-23  Jim Meyering  <meyering@redhat.com>
28048
28049         test-renameat.c: include <sys/stat.h>
28050         * tests/test-renameat.c: Include <sys/stat.h>; required for
28051         definition of S_IS* macros.
28052
28053 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28054
28055         Update maintainer documentation for 'relocatable-prog' module.
28056         * doc/relocatable-maint.texi: Update.
28057         Comments by Bruno Haible.
28058
28059 2010-05-23  Bruno Haible  <bruno@clisp.org>
28060
28061         git-merge-changelog: Enable --split-merged-entry by default.
28062         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28063         (usage): Don't mention this option any more.
28064         Reported by Ralf Wildenhues.
28065
28066 2010-05-23  Jim Meyering  <meyering@redhat.com>
28067
28068         test-pwrite: do not leave behind a test file named "out"
28069         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28070         The trivial-looking use of init.sh is really necessary.
28071         It ensures that the temporary file, "out", is created in
28072         a temporary directory, and removed upon termination.
28073         * tests/test-pwrite.sh: Re-add file.
28074         * modules/pwrite-tests: Reference it.
28075
28076 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28077
28078         Fix output redirection buglet in init.sh.
28079         * tests/init.sh: Fix redirection of stderr.
28080
28081 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28082
28083         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28084
28085 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28086
28087         * modules/valgrind-tests: New file.
28088         * m4/valgrind-tests.m4: New file.
28089         * doc/valgrind-tests.texi: New file.
28090         * doc/gnulib.texi (Running self-tests under valgrind): New
28091         section.
28092
28093 2010-05-19  Bruno Haible  <bruno@clisp.org>
28094
28095         Clean up dead code in recent commit.
28096         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28097         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28098         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28099         Suggested by Paolo Bonzini.
28100
28101 2010-05-19  Bruno Haible  <bruno@clisp.org>
28102
28103         Avoid valgrind error reports from libunistring.
28104         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28105         * modules/libunistring (Files): Add it.
28106         * modules/libunistring-optional (Files): Likewise.
28107
28108 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28109             Bruno Haible  <bruno@clisp.org>
28110
28111         New module 'libunistring-optional'.
28112         * modules/libunistring-optional: New file.
28113         * m4/libunistring-base.m4: New file.
28114         * m4/libunistring-optional.m4: New file.
28115         * lib/unicase.in.h: Renamed from lib/unicase.h.
28116         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28117         * lib/unictype.in.h: Renamed from lib/unictype.h.
28118         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28119         * lib/uniname.in.h: Renamed from lib/uniname.h.
28120         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28121         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28122         * lib/unistr.in.h: Renamed from lib/unistr.h.
28123         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28124         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28125         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28126         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28127         gl_LIBUNISTRING. If the library was found, determine the installed
28128         version and set LIBUNISTRING_VERSION.
28129         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28130         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28131         handle a configuration option --with-included-libunistring.
28132         * modules/libunistring (Files): Add m4/absolute-header.m4.
28133         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28134         Add m4/libunistring-base.m4.
28135         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28136         (Makefile.am): Build unicase.h from unicase.in.h.
28137         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28138         Add m4/libunistring-base.m4.
28139         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28140         (Makefile.am): Build uniconv.h from uniconv.in.h.
28141         * modules/unictype/base (Files): Use unictype.in.h instead of
28142         unictype.h. Add m4/libunistring-base.m4.
28143         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28144         (Makefile.am): Build unictype.h from unictype.in.h.
28145         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28146         Add m4/libunistring-base.m4.
28147         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28148         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28149         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28150         Add m4/libunistring-base.m4.
28151         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28152         (Makefile.am): Build uniname.h from uniname.in.h.
28153         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28154         Add m4/libunistring-base.m4.
28155         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28156         (Makefile.am): Build uninorm.h from uninorm.in.h.
28157         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28158         unistdio.h. Add m4/libunistring-base.m4.
28159         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28160         (Makefile.am): Build unistdio.h from unistdio.in.h.
28161         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28162         Add m4/libunistring-base.m4.
28163         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28164         (Makefile.am): Build unistr.h from unistr.in.h.
28165         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28166         Add m4/libunistring-base.m4.
28167         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28168         (Makefile.am): Build unitypes.h from unitypes.in.h.
28169         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28170         Add m4/libunistring-base.m4.
28171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28172         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28173         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28174         uniwidth.h. Add m4/libunistring-base.m4.
28175         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28176         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28177         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28178         instead of augmenting lib_SOURCES.
28179         * modules/unicase/empty-suffix-context: Likewise.
28180         * modules/unicase/locale-language: Likewise.
28181         * modules/unicase/tolower: Likewise.
28182         * modules/unicase/totitle: Likewise.
28183         * modules/unicase/toupper: Likewise.
28184         * modules/unicase/u8-casecmp: Likewise.
28185         * modules/unicase/u8-casecoll: Likewise.
28186         * modules/unicase/u8-casefold: Likewise.
28187         * modules/unicase/u8-casexfrm: Likewise.
28188         * modules/unicase/u8-ct-casefold: Likewise.
28189         * modules/unicase/u8-ct-tolower: Likewise.
28190         * modules/unicase/u8-ct-totitle: Likewise.
28191         * modules/unicase/u8-ct-toupper: Likewise.
28192         * modules/unicase/u8-is-cased: Likewise.
28193         * modules/unicase/u8-is-casefolded: Likewise.
28194         * modules/unicase/u8-is-lowercase: Likewise.
28195         * modules/unicase/u8-is-titlecase: Likewise.
28196         * modules/unicase/u8-is-uppercase: Likewise.
28197         * modules/unicase/u8-prefix-context: Likewise.
28198         * modules/unicase/u8-suffix-context: Likewise.
28199         * modules/unicase/u8-tolower: Likewise.
28200         * modules/unicase/u8-totitle: Likewise.
28201         * modules/unicase/u8-toupper: Likewise.
28202         * modules/unicase/u16-casecmp: Likewise.
28203         * modules/unicase/u16-casecoll: Likewise.
28204         * modules/unicase/u16-casefold: Likewise.
28205         * modules/unicase/u16-casexfrm: Likewise.
28206         * modules/unicase/u16-ct-casefold: Likewise.
28207         * modules/unicase/u16-ct-tolower: Likewise.
28208         * modules/unicase/u16-ct-totitle: Likewise.
28209         * modules/unicase/u16-ct-toupper: Likewise.
28210         * modules/unicase/u16-is-cased: Likewise.
28211         * modules/unicase/u16-is-casefolded: Likewise.
28212         * modules/unicase/u16-is-lowercase: Likewise.
28213         * modules/unicase/u16-is-titlecase: Likewise.
28214         * modules/unicase/u16-is-uppercase: Likewise.
28215         * modules/unicase/u16-prefix-context: Likewise.
28216         * modules/unicase/u16-suffix-context: Likewise.
28217         * modules/unicase/u16-tolower: Likewise.
28218         * modules/unicase/u16-totitle: Likewise.
28219         * modules/unicase/u16-toupper: Likewise.
28220         * modules/unicase/u32-casecmp: Likewise.
28221         * modules/unicase/u32-casecoll: Likewise.
28222         * modules/unicase/u32-casefold: Likewise.
28223         * modules/unicase/u32-casexfrm: Likewise.
28224         * modules/unicase/u32-ct-casefold: Likewise.
28225         * modules/unicase/u32-ct-tolower: Likewise.
28226         * modules/unicase/u32-ct-totitle: Likewise.
28227         * modules/unicase/u32-ct-toupper: Likewise.
28228         * modules/unicase/u32-is-cased: Likewise.
28229         * modules/unicase/u32-is-casefolded: Likewise.
28230         * modules/unicase/u32-is-lowercase: Likewise.
28231         * modules/unicase/u32-is-titlecase: Likewise.
28232         * modules/unicase/u32-is-uppercase: Likewise.
28233         * modules/unicase/u32-prefix-context: Likewise.
28234         * modules/unicase/u32-suffix-context: Likewise.
28235         * modules/unicase/u32-tolower: Likewise.
28236         * modules/unicase/u32-totitle: Likewise.
28237         * modules/unicase/u32-toupper: Likewise.
28238         * modules/unicase/ulc-casecmp: Likewise.
28239         * modules/unicase/ulc-casecoll: Likewise.
28240         * modules/unicase/ulc-casexfrm: Likewise.
28241         * modules/uniconv/u8-conv-from-enc: Likewise.
28242         * modules/uniconv/u8-conv-to-enc: Likewise.
28243         * modules/uniconv/u8-strconv-from-enc: Likewise.
28244         * modules/uniconv/u8-strconv-from-locale: Likewise.
28245         * modules/uniconv/u8-strconv-to-enc: Likewise.
28246         * modules/uniconv/u8-strconv-to-locale: Likewise.
28247         * modules/uniconv/u16-conv-from-enc: Likewise.
28248         * modules/uniconv/u16-conv-to-enc: Likewise.
28249         * modules/uniconv/u16-strconv-from-enc: Likewise.
28250         * modules/uniconv/u16-strconv-from-locale: Likewise.
28251         * modules/uniconv/u16-strconv-to-enc: Likewise.
28252         * modules/uniconv/u16-strconv-to-locale: Likewise.
28253         * modules/uniconv/u32-conv-from-enc: Likewise.
28254         * modules/uniconv/u32-conv-to-enc: Likewise.
28255         * modules/uniconv/u32-strconv-from-enc: Likewise.
28256         * modules/uniconv/u32-strconv-from-locale: Likewise.
28257         * modules/uniconv/u32-strconv-to-enc: Likewise.
28258         * modules/uniconv/u32-strconv-to-locale: Likewise.
28259         * modules/unictype/bidicategory-byname: Likewise.
28260         * modules/unictype/bidicategory-name: Likewise.
28261         * modules/unictype/bidicategory-of: Likewise.
28262         * modules/unictype/bidicategory-test: Likewise.
28263         * modules/unictype/block-list: Likewise.
28264         * modules/unictype/block-test: Likewise.
28265         * modules/unictype/category-C: Likewise.
28266         * modules/unictype/category-Cc: Likewise.
28267         * modules/unictype/category-Cf: Likewise.
28268         * modules/unictype/category-Cn: Likewise.
28269         * modules/unictype/category-Co: Likewise.
28270         * modules/unictype/category-Cs: Likewise.
28271         * modules/unictype/category-L: Likewise.
28272         * modules/unictype/category-Ll: Likewise.
28273         * modules/unictype/category-Lm: Likewise.
28274         * modules/unictype/category-Lo: Likewise.
28275         * modules/unictype/category-Lt: Likewise.
28276         * modules/unictype/category-Lu: Likewise.
28277         * modules/unictype/category-M: Likewise.
28278         * modules/unictype/category-Mc: Likewise.
28279         * modules/unictype/category-Me: Likewise.
28280         * modules/unictype/category-Mn: Likewise.
28281         * modules/unictype/category-N: Likewise.
28282         * modules/unictype/category-Nd: Likewise.
28283         * modules/unictype/category-Nl: Likewise.
28284         * modules/unictype/category-No: Likewise.
28285         * modules/unictype/category-P: Likewise.
28286         * modules/unictype/category-Pc: Likewise.
28287         * modules/unictype/category-Pd: Likewise.
28288         * modules/unictype/category-Pe: Likewise.
28289         * modules/unictype/category-Pf: Likewise.
28290         * modules/unictype/category-Pi: Likewise.
28291         * modules/unictype/category-Po: Likewise.
28292         * modules/unictype/category-Ps: Likewise.
28293         * modules/unictype/category-S: Likewise.
28294         * modules/unictype/category-Sc: Likewise.
28295         * modules/unictype/category-Sk: Likewise.
28296         * modules/unictype/category-Sm: Likewise.
28297         * modules/unictype/category-So: Likewise.
28298         * modules/unictype/category-Z: Likewise.
28299         * modules/unictype/category-Zl: Likewise.
28300         * modules/unictype/category-Zp: Likewise.
28301         * modules/unictype/category-Zs: Likewise.
28302         * modules/unictype/category-and: Likewise.
28303         * modules/unictype/category-and-not: Likewise.
28304         * modules/unictype/category-byname: Likewise.
28305         * modules/unictype/category-name: Likewise.
28306         * modules/unictype/category-none: Likewise.
28307         * modules/unictype/category-of: Likewise.
28308         * modules/unictype/category-or: Likewise.
28309         * modules/unictype/category-test: Likewise.
28310         * modules/unictype/combining-class: Likewise.
28311         * modules/unictype/ctype-alnum: Likewise.
28312         * modules/unictype/ctype-alpha: Likewise.
28313         * modules/unictype/ctype-blank: Likewise.
28314         * modules/unictype/ctype-cntrl: Likewise.
28315         * modules/unictype/ctype-digit: Likewise.
28316         * modules/unictype/ctype-graph: Likewise.
28317         * modules/unictype/ctype-lower: Likewise.
28318         * modules/unictype/ctype-print: Likewise.
28319         * modules/unictype/ctype-punct: Likewise.
28320         * modules/unictype/ctype-space: Likewise.
28321         * modules/unictype/ctype-upper: Likewise.
28322         * modules/unictype/ctype-xdigit: Likewise.
28323         * modules/unictype/decimal-digit: Likewise.
28324         * modules/unictype/digit: Likewise.
28325         * modules/unictype/mirror: Likewise.
28326         * modules/unictype/numeric: Likewise.
28327         * modules/unictype/property-alphabetic: Likewise.
28328         * modules/unictype/property-ascii-hex-digit: Likewise.
28329         * modules/unictype/property-bidi-arabic-digit: Likewise.
28330         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28331         * modules/unictype/property-bidi-block-separator: Likewise.
28332         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28333         * modules/unictype/property-bidi-common-separator: Likewise.
28334         * modules/unictype/property-bidi-control: Likewise.
28335         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28336         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28337         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28338         * modules/unictype/property-bidi-european-digit: Likewise.
28339         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28340         * modules/unictype/property-bidi-left-to-right: Likewise.
28341         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28342         * modules/unictype/property-bidi-other-neutral: Likewise.
28343         * modules/unictype/property-bidi-pdf: Likewise.
28344         * modules/unictype/property-bidi-segment-separator: Likewise.
28345         * modules/unictype/property-bidi-whitespace: Likewise.
28346         * modules/unictype/property-byname: Likewise.
28347         * modules/unictype/property-combining: Likewise.
28348         * modules/unictype/property-composite: Likewise.
28349         * modules/unictype/property-currency-symbol: Likewise.
28350         * modules/unictype/property-dash: Likewise.
28351         * modules/unictype/property-decimal-digit: Likewise.
28352         * modules/unictype/property-default-ignorable-code-point: Likewise.
28353         * modules/unictype/property-deprecated: Likewise.
28354         * modules/unictype/property-diacritic: Likewise.
28355         * modules/unictype/property-extender: Likewise.
28356         * modules/unictype/property-format-control: Likewise.
28357         * modules/unictype/property-grapheme-base: Likewise.
28358         * modules/unictype/property-grapheme-extend: Likewise.
28359         * modules/unictype/property-grapheme-link: Likewise.
28360         * modules/unictype/property-hex-digit: Likewise.
28361         * modules/unictype/property-hyphen: Likewise.
28362         * modules/unictype/property-id-continue: Likewise.
28363         * modules/unictype/property-id-start: Likewise.
28364         * modules/unictype/property-ideographic: Likewise.
28365         * modules/unictype/property-ids-binary-operator: Likewise.
28366         * modules/unictype/property-ids-trinary-operator: Likewise.
28367         * modules/unictype/property-ignorable-control: Likewise.
28368         * modules/unictype/property-iso-control: Likewise.
28369         * modules/unictype/property-join-control: Likewise.
28370         * modules/unictype/property-left-of-pair: Likewise.
28371         * modules/unictype/property-line-separator: Likewise.
28372         * modules/unictype/property-logical-order-exception: Likewise.
28373         * modules/unictype/property-lowercase: Likewise.
28374         * modules/unictype/property-math: Likewise.
28375         * modules/unictype/property-non-break: Likewise.
28376         * modules/unictype/property-not-a-character: Likewise.
28377         * modules/unictype/property-numeric: Likewise.
28378         * modules/unictype/property-other-alphabetic: Likewise.
28379         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28380         * modules/unictype/property-other-grapheme-extend: Likewise.
28381         * modules/unictype/property-other-id-continue: Likewise.
28382         * modules/unictype/property-other-id-start: Likewise.
28383         * modules/unictype/property-other-lowercase: Likewise.
28384         * modules/unictype/property-other-math: Likewise.
28385         * modules/unictype/property-other-uppercase: Likewise.
28386         * modules/unictype/property-paired-punctuation: Likewise.
28387         * modules/unictype/property-paragraph-separator: Likewise.
28388         * modules/unictype/property-pattern-syntax: Likewise.
28389         * modules/unictype/property-pattern-white-space: Likewise.
28390         * modules/unictype/property-private-use: Likewise.
28391         * modules/unictype/property-punctuation: Likewise.
28392         * modules/unictype/property-quotation-mark: Likewise.
28393         * modules/unictype/property-radical: Likewise.
28394         * modules/unictype/property-sentence-terminal: Likewise.
28395         * modules/unictype/property-soft-dotted: Likewise.
28396         * modules/unictype/property-space: Likewise.
28397         * modules/unictype/property-terminal-punctuation: Likewise.
28398         * modules/unictype/property-test: Likewise.
28399         * modules/unictype/property-titlecase: Likewise.
28400         * modules/unictype/property-unassigned-code-value: Likewise.
28401         * modules/unictype/property-unified-ideograph: Likewise.
28402         * modules/unictype/property-uppercase: Likewise.
28403         * modules/unictype/property-variation-selector: Likewise.
28404         * modules/unictype/property-white-space: Likewise.
28405         * modules/unictype/property-xid-continue: Likewise.
28406         * modules/unictype/property-xid-start: Likewise.
28407         * modules/unictype/property-zero-width: Likewise.
28408         * modules/unictype/scripts: Likewise.
28409         * modules/unictype/syntax-c-ident: Likewise.
28410         * modules/unictype/syntax-c-whitespace: Likewise.
28411         * modules/unictype/syntax-java-ident: Likewise.
28412         * modules/unictype/syntax-java-whitespace: Likewise.
28413         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28414         * modules/unilbrk/u8-width-linebreaks: Likewise.
28415         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28416         * modules/unilbrk/u16-width-linebreaks: Likewise.
28417         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28418         * modules/unilbrk/u32-width-linebreaks: Likewise.
28419         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28420         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28421         * modules/uniname/uniname: Likewise.
28422         * modules/uninorm/canonical-decomposition: Likewise.
28423         * modules/uninorm/composition: Likewise.
28424         * modules/uninorm/decomposing-form: Likewise.
28425         * modules/uninorm/decomposition: Likewise.
28426         * modules/uninorm/filter: Likewise.
28427         * modules/uninorm/nfc: Likewise.
28428         * modules/uninorm/nfd: Likewise.
28429         * modules/uninorm/nfkc: Likewise.
28430         * modules/uninorm/nfkd: Likewise.
28431         * modules/uninorm/u8-normalize: Likewise.
28432         * modules/uninorm/u8-normcmp: Likewise.
28433         * modules/uninorm/u8-normcoll: Likewise.
28434         * modules/uninorm/u8-normxfrm: Likewise.
28435         * modules/uninorm/u16-normalize: Likewise.
28436         * modules/uninorm/u16-normcmp: Likewise.
28437         * modules/uninorm/u16-normcoll: Likewise.
28438         * modules/uninorm/u16-normxfrm: Likewise.
28439         * modules/uninorm/u32-normalize: Likewise.
28440         * modules/uninorm/u32-normcmp: Likewise.
28441         * modules/uninorm/u32-normcoll: Likewise.
28442         * modules/uninorm/u32-normxfrm: Likewise.
28443         * modules/unistdio/u8-asnprintf: Likewise.
28444         * modules/unistdio/u8-asprintf: Likewise.
28445         * modules/unistdio/u8-snprintf: Likewise.
28446         * modules/unistdio/u8-sprintf: Likewise.
28447         * modules/unistdio/u8-u8-asnprintf: Likewise.
28448         * modules/unistdio/u8-u8-asprintf: Likewise.
28449         * modules/unistdio/u8-u8-snprintf: Likewise.
28450         * modules/unistdio/u8-u8-sprintf: Likewise.
28451         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28452         * modules/unistdio/u8-u8-vasprintf: Likewise.
28453         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28454         * modules/unistdio/u8-u8-vsprintf: Likewise.
28455         * modules/unistdio/u8-vasnprintf: Likewise.
28456         * modules/unistdio/u8-vasprintf: Likewise.
28457         * modules/unistdio/u8-vsnprintf: Likewise.
28458         * modules/unistdio/u8-vsprintf: Likewise.
28459         * modules/unistdio/u16-asnprintf: Likewise.
28460         * modules/unistdio/u16-asprintf: Likewise.
28461         * modules/unistdio/u16-snprintf: Likewise.
28462         * modules/unistdio/u16-sprintf: Likewise.
28463         * modules/unistdio/u16-u16-asnprintf: Likewise.
28464         * modules/unistdio/u16-u16-asprintf: Likewise.
28465         * modules/unistdio/u16-u16-snprintf: Likewise.
28466         * modules/unistdio/u16-u16-sprintf: Likewise.
28467         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28468         * modules/unistdio/u16-u16-vasprintf: Likewise.
28469         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28470         * modules/unistdio/u16-u16-vsprintf: Likewise.
28471         * modules/unistdio/u16-vasnprintf: Likewise.
28472         * modules/unistdio/u16-vasprintf: Likewise.
28473         * modules/unistdio/u16-vsnprintf: Likewise.
28474         * modules/unistdio/u16-vsprintf: Likewise.
28475         * modules/unistdio/u32-asnprintf: Likewise.
28476         * modules/unistdio/u32-asprintf: Likewise.
28477         * modules/unistdio/u32-snprintf: Likewise.
28478         * modules/unistdio/u32-sprintf: Likewise.
28479         * modules/unistdio/u32-u32-asnprintf: Likewise.
28480         * modules/unistdio/u32-u32-asprintf: Likewise.
28481         * modules/unistdio/u32-u32-snprintf: Likewise.
28482         * modules/unistdio/u32-u32-sprintf: Likewise.
28483         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28484         * modules/unistdio/u32-u32-vasprintf: Likewise.
28485         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28486         * modules/unistdio/u32-u32-vsprintf: Likewise.
28487         * modules/unistdio/u32-vasnprintf: Likewise.
28488         * modules/unistdio/u32-vasprintf: Likewise.
28489         * modules/unistdio/u32-vsnprintf: Likewise.
28490         * modules/unistdio/u32-vsprintf: Likewise.
28491         * modules/unistdio/ulc-asnprintf: Likewise.
28492         * modules/unistdio/ulc-asprintf: Likewise.
28493         * modules/unistdio/ulc-fprintf: Likewise.
28494         * modules/unistdio/ulc-snprintf: Likewise.
28495         * modules/unistdio/ulc-sprintf: Likewise.
28496         * modules/unistdio/ulc-vasnprintf: Likewise.
28497         * modules/unistdio/ulc-vasprintf: Likewise.
28498         * modules/unistdio/ulc-vfprintf: Likewise.
28499         * modules/unistdio/ulc-vsnprintf: Likewise.
28500         * modules/unistdio/ulc-vsprintf: Likewise.
28501         * modules/unistr/u8-check: Likewise.
28502         * modules/unistr/u8-chr: Likewise.
28503         * modules/unistr/u8-cmp: Likewise.
28504         * modules/unistr/u8-cmp2: Likewise.
28505         * modules/unistr/u8-cpy: Likewise.
28506         * modules/unistr/u8-cpy-alloc: Likewise.
28507         * modules/unistr/u8-endswith: Likewise.
28508         * modules/unistr/u8-mblen: Likewise.
28509         * modules/unistr/u8-mbsnlen: Likewise.
28510         * modules/unistr/u8-mbtouc: Likewise.
28511         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28512         * modules/unistr/u8-mbtoucr: Likewise.
28513         * modules/unistr/u8-move: Likewise.
28514         * modules/unistr/u8-next: Likewise.
28515         * modules/unistr/u8-prev: Likewise.
28516         * modules/unistr/u8-set: Likewise.
28517         * modules/unistr/u8-startswith: Likewise.
28518         * modules/unistr/u8-stpcpy: Likewise.
28519         * modules/unistr/u8-stpncpy: Likewise.
28520         * modules/unistr/u8-strcat: Likewise.
28521         * modules/unistr/u8-strchr: Likewise.
28522         * modules/unistr/u8-strcmp: Likewise.
28523         * modules/unistr/u8-strcoll: Likewise.
28524         * modules/unistr/u8-strcpy: Likewise.
28525         * modules/unistr/u8-strcspn: Likewise.
28526         * modules/unistr/u8-strdup: Likewise.
28527         * modules/unistr/u8-strlen: Likewise.
28528         * modules/unistr/u8-strmblen: Likewise.
28529         * modules/unistr/u8-strmbtouc: Likewise.
28530         * modules/unistr/u8-strncat: Likewise.
28531         * modules/unistr/u8-strncmp: Likewise.
28532         * modules/unistr/u8-strncpy: Likewise.
28533         * modules/unistr/u8-strnlen: Likewise.
28534         * modules/unistr/u8-strpbrk: Likewise.
28535         * modules/unistr/u8-strrchr: Likewise.
28536         * modules/unistr/u8-strspn: Likewise.
28537         * modules/unistr/u8-strstr: Likewise.
28538         * modules/unistr/u8-strtok: Likewise.
28539         * modules/unistr/u8-to-u16: Likewise.
28540         * modules/unistr/u8-to-u32: Likewise.
28541         * modules/unistr/u8-uctomb: Likewise.
28542         * modules/unistr/u16-check: Likewise.
28543         * modules/unistr/u16-chr: Likewise.
28544         * modules/unistr/u16-cmp: Likewise.
28545         * modules/unistr/u16-cmp2: Likewise.
28546         * modules/unistr/u16-cpy: Likewise.
28547         * modules/unistr/u16-cpy-alloc: Likewise.
28548         * modules/unistr/u16-endswith: Likewise.
28549         * modules/unistr/u16-mblen: Likewise.
28550         * modules/unistr/u16-mbsnlen: Likewise.
28551         * modules/unistr/u16-mbtouc: Likewise.
28552         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28553         * modules/unistr/u16-mbtoucr: Likewise.
28554         * modules/unistr/u16-move: Likewise.
28555         * modules/unistr/u16-next: Likewise.
28556         * modules/unistr/u16-prev: Likewise.
28557         * modules/unistr/u16-set: Likewise.
28558         * modules/unistr/u16-startswith: Likewise.
28559         * modules/unistr/u16-stpcpy: Likewise.
28560         * modules/unistr/u16-stpncpy: Likewise.
28561         * modules/unistr/u16-strcat: Likewise.
28562         * modules/unistr/u16-strchr: Likewise.
28563         * modules/unistr/u16-strcmp: Likewise.
28564         * modules/unistr/u16-strcoll: Likewise.
28565         * modules/unistr/u16-strcpy: Likewise.
28566         * modules/unistr/u16-strcspn: Likewise.
28567         * modules/unistr/u16-strdup: Likewise.
28568         * modules/unistr/u16-strlen: Likewise.
28569         * modules/unistr/u16-strmblen: Likewise.
28570         * modules/unistr/u16-strmbtouc: Likewise.
28571         * modules/unistr/u16-strncat: Likewise.
28572         * modules/unistr/u16-strncmp: Likewise.
28573         * modules/unistr/u16-strncpy: Likewise.
28574         * modules/unistr/u16-strnlen: Likewise.
28575         * modules/unistr/u16-strpbrk: Likewise.
28576         * modules/unistr/u16-strrchr: Likewise.
28577         * modules/unistr/u16-strspn: Likewise.
28578         * modules/unistr/u16-strstr: Likewise.
28579         * modules/unistr/u16-strtok: Likewise.
28580         * modules/unistr/u16-to-u32: Likewise.
28581         * modules/unistr/u16-to-u8: Likewise.
28582         * modules/unistr/u16-uctomb: Likewise.
28583         * modules/unistr/u32-check: Likewise.
28584         * modules/unistr/u32-chr: Likewise.
28585         * modules/unistr/u32-cmp: Likewise.
28586         * modules/unistr/u32-cmp2: Likewise.
28587         * modules/unistr/u32-cpy: Likewise.
28588         * modules/unistr/u32-cpy-alloc: Likewise.
28589         * modules/unistr/u32-endswith: Likewise.
28590         * modules/unistr/u32-mblen: Likewise.
28591         * modules/unistr/u32-mbsnlen: Likewise.
28592         * modules/unistr/u32-mbtouc: Likewise.
28593         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28594         * modules/unistr/u32-mbtoucr: Likewise.
28595         * modules/unistr/u32-move: Likewise.
28596         * modules/unistr/u32-next: Likewise.
28597         * modules/unistr/u32-prev: Likewise.
28598         * modules/unistr/u32-set: Likewise.
28599         * modules/unistr/u32-startswith: Likewise.
28600         * modules/unistr/u32-stpcpy: Likewise.
28601         * modules/unistr/u32-stpncpy: Likewise.
28602         * modules/unistr/u32-strcat: Likewise.
28603         * modules/unistr/u32-strchr: Likewise.
28604         * modules/unistr/u32-strcmp: Likewise.
28605         * modules/unistr/u32-strcoll: Likewise.
28606         * modules/unistr/u32-strcpy: Likewise.
28607         * modules/unistr/u32-strcspn: Likewise.
28608         * modules/unistr/u32-strdup: Likewise.
28609         * modules/unistr/u32-strlen: Likewise.
28610         * modules/unistr/u32-strmblen: Likewise.
28611         * modules/unistr/u32-strmbtouc: Likewise.
28612         * modules/unistr/u32-strncat: Likewise.
28613         * modules/unistr/u32-strncmp: Likewise.
28614         * modules/unistr/u32-strncpy: Likewise.
28615         * modules/unistr/u32-strnlen: Likewise.
28616         * modules/unistr/u32-strpbrk: Likewise.
28617         * modules/unistr/u32-strrchr: Likewise.
28618         * modules/unistr/u32-strspn: Likewise.
28619         * modules/unistr/u32-strstr: Likewise.
28620         * modules/unistr/u32-strtok: Likewise.
28621         * modules/unistr/u32-to-u16: Likewise.
28622         * modules/unistr/u32-to-u8: Likewise.
28623         * modules/unistr/u32-uctomb: Likewise.
28624         * modules/uniwbrk/u8-wordbreaks: Likewise.
28625         * modules/uniwbrk/u16-wordbreaks: Likewise.
28626         * modules/uniwbrk/u32-wordbreaks: Likewise.
28627         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28628         * modules/uniwbrk/wordbreak-property: Likewise.
28629         * modules/uniwidth/u8-strwidth: Likewise.
28630         * modules/uniwidth/u8-width: Likewise.
28631         * modules/uniwidth/u16-strwidth: Likewise.
28632         * modules/uniwidth/u16-width: Likewise.
28633         * modules/uniwidth/u32-strwidth: Likewise.
28634         * modules/uniwidth/u32-width: Likewise.
28635         * modules/uniwidth/width: Likewise.
28636         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28637         with $(LIBUNISTRING).
28638         * modules/unicase/ignorable-tests: Likewise.
28639         * modules/unicase/locale-language-tests: Likewise.
28640         * modules/unicase/tolower-tests: Likewise.
28641         * modules/unicase/totitle-tests: Likewise.
28642         * modules/unicase/toupper-tests: Likewise.
28643         * modules/unicase/u8-casecmp-tests: Likewise.
28644         * modules/unicase/u8-casecoll-tests: Likewise.
28645         * modules/unicase/u8-casefold-tests: Likewise.
28646         * modules/unicase/u8-is-cased-tests: Likewise.
28647         * modules/unicase/u8-is-casefolded-tests: Likewise.
28648         * modules/unicase/u8-is-lowercase-tests: Likewise.
28649         * modules/unicase/u8-is-titlecase-tests: Likewise.
28650         * modules/unicase/u8-is-uppercase-tests: Likewise.
28651         * modules/unicase/u8-tolower-tests: Likewise.
28652         * modules/unicase/u8-totitle-tests: Likewise.
28653         * modules/unicase/u8-toupper-tests: Likewise.
28654         * modules/unicase/u16-casecmp-tests: Likewise.
28655         * modules/unicase/u16-casecoll-tests: Likewise.
28656         * modules/unicase/u16-casefold-tests: Likewise.
28657         * modules/unicase/u16-is-cased-tests: Likewise.
28658         * modules/unicase/u16-is-casefolded-tests: Likewise.
28659         * modules/unicase/u16-is-lowercase-tests: Likewise.
28660         * modules/unicase/u16-is-titlecase-tests: Likewise.
28661         * modules/unicase/u16-is-uppercase-tests: Likewise.
28662         * modules/unicase/u16-tolower-tests: Likewise.
28663         * modules/unicase/u16-totitle-tests: Likewise.
28664         * modules/unicase/u16-toupper-tests: Likewise.
28665         * modules/unicase/u32-casecmp-tests: Likewise.
28666         * modules/unicase/u32-casecoll-tests: Likewise.
28667         * modules/unicase/u32-casefold-tests: Likewise.
28668         * modules/unicase/u32-is-cased-tests: Likewise.
28669         * modules/unicase/u32-is-casefolded-tests: Likewise.
28670         * modules/unicase/u32-is-lowercase-tests: Likewise.
28671         * modules/unicase/u32-is-titlecase-tests: Likewise.
28672         * modules/unicase/u32-is-uppercase-tests: Likewise.
28673         * modules/unicase/u32-tolower-tests: Likewise.
28674         * modules/unicase/u32-totitle-tests: Likewise.
28675         * modules/unicase/u32-toupper-tests: Likewise.
28676         * modules/unicase/ulc-casecmp-tests: Likewise.
28677         * modules/unicase/ulc-casecoll-tests: Likewise.
28678         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28679         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28680         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28681         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28682         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28683         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28684         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28685         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28686         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28687         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28688         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28689         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28690         * modules/unictype/bidicategory-byname-tests: Likewise.
28691         * modules/unictype/bidicategory-name-tests: Likewise.
28692         * modules/unictype/bidicategory-of-tests: Likewise.
28693         * modules/unictype/bidicategory-test-tests: Likewise.
28694         * modules/unictype/block-list-tests: Likewise.
28695         * modules/unictype/block-of-tests: Likewise.
28696         * modules/unictype/block-test-tests: Likewise.
28697         * modules/unictype/category-C-tests: Likewise.
28698         * modules/unictype/category-Cc-tests: Likewise.
28699         * modules/unictype/category-Cf-tests: Likewise.
28700         * modules/unictype/category-Cn-tests: Likewise.
28701         * modules/unictype/category-Co-tests: Likewise.
28702         * modules/unictype/category-Cs-tests: Likewise.
28703         * modules/unictype/category-L-tests: Likewise.
28704         * modules/unictype/category-Ll-tests: Likewise.
28705         * modules/unictype/category-Lm-tests: Likewise.
28706         * modules/unictype/category-Lo-tests: Likewise.
28707         * modules/unictype/category-Lt-tests: Likewise.
28708         * modules/unictype/category-Lu-tests: Likewise.
28709         * modules/unictype/category-M-tests: Likewise.
28710         * modules/unictype/category-Mc-tests: Likewise.
28711         * modules/unictype/category-Me-tests: Likewise.
28712         * modules/unictype/category-Mn-tests: Likewise.
28713         * modules/unictype/category-N-tests: Likewise.
28714         * modules/unictype/category-Nd-tests: Likewise.
28715         * modules/unictype/category-Nl-tests: Likewise.
28716         * modules/unictype/category-No-tests: Likewise.
28717         * modules/unictype/category-P-tests: Likewise.
28718         * modules/unictype/category-Pc-tests: Likewise.
28719         * modules/unictype/category-Pd-tests: Likewise.
28720         * modules/unictype/category-Pe-tests: Likewise.
28721         * modules/unictype/category-Pf-tests: Likewise.
28722         * modules/unictype/category-Pi-tests: Likewise.
28723         * modules/unictype/category-Po-tests: Likewise.
28724         * modules/unictype/category-Ps-tests: Likewise.
28725         * modules/unictype/category-S-tests: Likewise.
28726         * modules/unictype/category-Sc-tests: Likewise.
28727         * modules/unictype/category-Sk-tests: Likewise.
28728         * modules/unictype/category-Sm-tests: Likewise.
28729         * modules/unictype/category-So-tests: Likewise.
28730         * modules/unictype/category-Z-tests: Likewise.
28731         * modules/unictype/category-Zl-tests: Likewise.
28732         * modules/unictype/category-Zp-tests: Likewise.
28733         * modules/unictype/category-Zs-tests: Likewise.
28734         * modules/unictype/category-and-not-tests: Likewise.
28735         * modules/unictype/category-and-tests: Likewise.
28736         * modules/unictype/category-byname-tests: Likewise.
28737         * modules/unictype/category-name-tests: Likewise.
28738         * modules/unictype/category-none-tests: Likewise.
28739         * modules/unictype/category-of-tests: Likewise.
28740         * modules/unictype/category-or-tests: Likewise.
28741         * modules/unictype/category-test-withtable-tests: Likewise.
28742         * modules/unictype/combining-class-tests: Likewise.
28743         * modules/unictype/ctype-alnum-tests: Likewise.
28744         * modules/unictype/ctype-alpha-tests: Likewise.
28745         * modules/unictype/ctype-blank-tests: Likewise.
28746         * modules/unictype/ctype-cntrl-tests: Likewise.
28747         * modules/unictype/ctype-digit-tests: Likewise.
28748         * modules/unictype/ctype-graph-tests: Likewise.
28749         * modules/unictype/ctype-lower-tests: Likewise.
28750         * modules/unictype/ctype-print-tests: Likewise.
28751         * modules/unictype/ctype-punct-tests: Likewise.
28752         * modules/unictype/ctype-space-tests: Likewise.
28753         * modules/unictype/ctype-upper-tests: Likewise.
28754         * modules/unictype/ctype-xdigit-tests: Likewise.
28755         * modules/unictype/decimal-digit-tests: Likewise.
28756         * modules/unictype/digit-tests: Likewise.
28757         * modules/unictype/mirror-tests: Likewise.
28758         * modules/unictype/numeric-tests: Likewise.
28759         * modules/unictype/property-alphabetic-tests: Likewise.
28760         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28761         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28762         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28763         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28764         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28765         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28766         * modules/unictype/property-bidi-control-tests: Likewise.
28767         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28768         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28769         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28770         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28771         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28772         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28773         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28774         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28775         * modules/unictype/property-bidi-pdf-tests: Likewise.
28776         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28777         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28778         * modules/unictype/property-byname-tests: Likewise.
28779         * modules/unictype/property-combining-tests: Likewise.
28780         * modules/unictype/property-composite-tests: Likewise.
28781         * modules/unictype/property-currency-symbol-tests: Likewise.
28782         * modules/unictype/property-dash-tests: Likewise.
28783         * modules/unictype/property-decimal-digit-tests: Likewise.
28784         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28785         * modules/unictype/property-deprecated-tests: Likewise.
28786         * modules/unictype/property-diacritic-tests: Likewise.
28787         * modules/unictype/property-extender-tests: Likewise.
28788         * modules/unictype/property-format-control-tests: Likewise.
28789         * modules/unictype/property-grapheme-base-tests: Likewise.
28790         * modules/unictype/property-grapheme-extend-tests: Likewise.
28791         * modules/unictype/property-grapheme-link-tests: Likewise.
28792         * modules/unictype/property-hex-digit-tests: Likewise.
28793         * modules/unictype/property-hyphen-tests: Likewise.
28794         * modules/unictype/property-id-continue-tests: Likewise.
28795         * modules/unictype/property-id-start-tests: Likewise.
28796         * modules/unictype/property-ideographic-tests: Likewise.
28797         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28798         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28799         * modules/unictype/property-ignorable-control-tests: Likewise.
28800         * modules/unictype/property-iso-control-tests: Likewise.
28801         * modules/unictype/property-join-control-tests: Likewise.
28802         * modules/unictype/property-left-of-pair-tests: Likewise.
28803         * modules/unictype/property-line-separator-tests: Likewise.
28804         * modules/unictype/property-logical-order-exception-tests: Likewise.
28805         * modules/unictype/property-lowercase-tests: Likewise.
28806         * modules/unictype/property-math-tests: Likewise.
28807         * modules/unictype/property-non-break-tests: Likewise.
28808         * modules/unictype/property-not-a-character-tests: Likewise.
28809         * modules/unictype/property-numeric-tests: Likewise.
28810         * modules/unictype/property-other-alphabetic-tests: Likewise.
28811         * modules/unictype/property-other-default-ignorable-code-point-tests:
28812         Likewise.
28813         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28814         * modules/unictype/property-other-id-continue-tests: Likewise.
28815         * modules/unictype/property-other-id-start-tests: Likewise.
28816         * modules/unictype/property-other-lowercase-tests: Likewise.
28817         * modules/unictype/property-other-math-tests: Likewise.
28818         * modules/unictype/property-other-uppercase-tests: Likewise.
28819         * modules/unictype/property-paired-punctuation-tests: Likewise.
28820         * modules/unictype/property-paragraph-separator-tests: Likewise.
28821         * modules/unictype/property-pattern-syntax-tests: Likewise.
28822         * modules/unictype/property-pattern-white-space-tests: Likewise.
28823         * modules/unictype/property-private-use-tests: Likewise.
28824         * modules/unictype/property-punctuation-tests: Likewise.
28825         * modules/unictype/property-quotation-mark-tests: Likewise.
28826         * modules/unictype/property-radical-tests: Likewise.
28827         * modules/unictype/property-sentence-terminal-tests: Likewise.
28828         * modules/unictype/property-soft-dotted-tests: Likewise.
28829         * modules/unictype/property-space-tests: Likewise.
28830         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28831         * modules/unictype/property-test-tests: Likewise.
28832         * modules/unictype/property-titlecase-tests: Likewise.
28833         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28834         * modules/unictype/property-unified-ideograph-tests: Likewise.
28835         * modules/unictype/property-uppercase-tests: Likewise.
28836         * modules/unictype/property-variation-selector-tests: Likewise.
28837         * modules/unictype/property-white-space-tests: Likewise.
28838         * modules/unictype/property-xid-continue-tests: Likewise.
28839         * modules/unictype/property-xid-start-tests: Likewise.
28840         * modules/unictype/property-zero-width-tests: Likewise.
28841         * modules/unictype/scripts-tests: Likewise.
28842         * modules/unictype/syntax-c-ident-tests: Likewise.
28843         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28844         * modules/unictype/syntax-java-ident-tests: Likewise.
28845         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28846         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28847         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28848         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28849         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28850         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28851         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28852         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28853         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28854         * modules/uniname/uniname-tests: Likewise.
28855         * modules/uninorm/canonical-decomposition-tests: Likewise.
28856         * modules/uninorm/compat-decomposition-tests: Likewise.
28857         * modules/uninorm/composition-tests: Likewise.
28858         * modules/uninorm/decomposing-form-tests: Likewise.
28859         * modules/uninorm/decomposition-tests: Likewise.
28860         * modules/uninorm/filter-tests: Likewise.
28861         * modules/uninorm/nfc-tests: Likewise.
28862         * modules/uninorm/nfd-tests: Likewise.
28863         * modules/uninorm/nfkc-tests: Likewise.
28864         * modules/uninorm/nfkd-tests: Likewise.
28865         * modules/uninorm/u8-normcmp-tests: Likewise.
28866         * modules/uninorm/u8-normcoll-tests: Likewise.
28867         * modules/uninorm/u16-normcmp-tests: Likewise.
28868         * modules/uninorm/u16-normcoll-tests: Likewise.
28869         * modules/uninorm/u32-normcmp-tests: Likewise.
28870         * modules/uninorm/u32-normcoll-tests: Likewise.
28871         * modules/unistdio/u8-asnprintf-tests: Likewise.
28872         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28873         * modules/unistdio/u8-vasprintf-tests: Likewise.
28874         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28875         * modules/unistdio/u8-vsprintf-tests: Likewise.
28876         * modules/unistdio/u16-asnprintf-tests: Likewise.
28877         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28878         * modules/unistdio/u16-vasprintf-tests: Likewise.
28879         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28880         * modules/unistdio/u16-vsprintf-tests: Likewise.
28881         * modules/unistdio/u32-asnprintf-tests: Likewise.
28882         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28883         * modules/unistdio/u32-vasprintf-tests: Likewise.
28884         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28885         * modules/unistdio/u32-vsprintf-tests: Likewise.
28886         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28887         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28888         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28889         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28890         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28891         * modules/unistr/u8-check-tests: Likewise.
28892         * modules/unistr/u8-chr-tests: Likewise.
28893         * modules/unistr/u8-cmp-tests: Likewise.
28894         * modules/unistr/u8-cmp2-tests: Likewise.
28895         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28896         * modules/unistr/u8-cpy-tests: Likewise.
28897         * modules/unistr/u8-mblen-tests: Likewise.
28898         * modules/unistr/u8-mbsnlen-tests: Likewise.
28899         * modules/unistr/u8-mbtouc-tests: Likewise.
28900         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28901         * modules/unistr/u8-mbtoucr-tests: Likewise.
28902         * modules/unistr/u8-move-tests: Likewise.
28903         * modules/unistr/u8-next-tests: Likewise.
28904         * modules/unistr/u8-prev-tests: Likewise.
28905         * modules/unistr/u8-set-tests: Likewise.
28906         * modules/unistr/u8-stpcpy-tests: Likewise.
28907         * modules/unistr/u8-stpncpy-tests: Likewise.
28908         * modules/unistr/u8-strcat-tests: Likewise.
28909         * modules/unistr/u8-strcmp-tests: Likewise.
28910         * modules/unistr/u8-strcoll-tests: Likewise.
28911         * modules/unistr/u8-strcpy-tests: Likewise.
28912         * modules/unistr/u8-strdup-tests: Likewise.
28913         * modules/unistr/u8-strlen-tests: Likewise.
28914         * modules/unistr/u8-strmblen-tests: Likewise.
28915         * modules/unistr/u8-strmbtouc-tests: Likewise.
28916         * modules/unistr/u8-strncat-tests: Likewise.
28917         * modules/unistr/u8-strncmp-tests: Likewise.
28918         * modules/unistr/u8-strncpy-tests: Likewise.
28919         * modules/unistr/u8-strnlen-tests: Likewise.
28920         * modules/unistr/u8-to-u16-tests: Likewise.
28921         * modules/unistr/u8-to-u32-tests: Likewise.
28922         * modules/unistr/u8-uctomb-tests: Likewise.
28923         * modules/unistr/u16-check-tests: Likewise.
28924         * modules/unistr/u16-chr-tests: Likewise.
28925         * modules/unistr/u16-cmp-tests: Likewise.
28926         * modules/unistr/u16-cmp2-tests: Likewise.
28927         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28928         * modules/unistr/u16-cpy-tests: Likewise.
28929         * modules/unistr/u16-mblen-tests: Likewise.
28930         * modules/unistr/u16-mbsnlen-tests: Likewise.
28931         * modules/unistr/u16-mbtouc-tests: Likewise.
28932         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28933         * modules/unistr/u16-mbtoucr-tests: Likewise.
28934         * modules/unistr/u16-move-tests: Likewise.
28935         * modules/unistr/u16-next-tests: Likewise.
28936         * modules/unistr/u16-prev-tests: Likewise.
28937         * modules/unistr/u16-set-tests: Likewise.
28938         * modules/unistr/u16-stpcpy-tests: Likewise.
28939         * modules/unistr/u16-stpncpy-tests: Likewise.
28940         * modules/unistr/u16-strcat-tests: Likewise.
28941         * modules/unistr/u16-strcmp-tests: Likewise.
28942         * modules/unistr/u16-strcoll-tests: Likewise.
28943         * modules/unistr/u16-strcpy-tests: Likewise.
28944         * modules/unistr/u16-strdup-tests: Likewise.
28945         * modules/unistr/u16-strlen-tests: Likewise.
28946         * modules/unistr/u16-strmblen-tests: Likewise.
28947         * modules/unistr/u16-strmbtouc-tests: Likewise.
28948         * modules/unistr/u16-strncat-tests: Likewise.
28949         * modules/unistr/u16-strncmp-tests: Likewise.
28950         * modules/unistr/u16-strncpy-tests: Likewise.
28951         * modules/unistr/u16-strnlen-tests: Likewise.
28952         * modules/unistr/u16-to-u32-tests: Likewise.
28953         * modules/unistr/u16-to-u8-tests: Likewise.
28954         * modules/unistr/u16-uctomb-tests: Likewise.
28955         * modules/unistr/u32-check-tests: Likewise.
28956         * modules/unistr/u32-chr-tests: Likewise.
28957         * modules/unistr/u32-cmp-tests: Likewise.
28958         * modules/unistr/u32-cmp2-tests: Likewise.
28959         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28960         * modules/unistr/u32-cpy-tests: Likewise.
28961         * modules/unistr/u32-mblen-tests: Likewise.
28962         * modules/unistr/u32-mbsnlen-tests: Likewise.
28963         * modules/unistr/u32-mbtouc-tests: Likewise.
28964         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28965         * modules/unistr/u32-mbtoucr-tests: Likewise.
28966         * modules/unistr/u32-move-tests: Likewise.
28967         * modules/unistr/u32-next-tests: Likewise.
28968         * modules/unistr/u32-prev-tests: Likewise.
28969         * modules/unistr/u32-set-tests: Likewise.
28970         * modules/unistr/u32-stpcpy-tests: Likewise.
28971         * modules/unistr/u32-stpncpy-tests: Likewise.
28972         * modules/unistr/u32-strcat-tests: Likewise.
28973         * modules/unistr/u32-strcmp-tests: Likewise.
28974         * modules/unistr/u32-strcoll-tests: Likewise.
28975         * modules/unistr/u32-strcpy-tests: Likewise.
28976         * modules/unistr/u32-strdup-tests: Likewise.
28977         * modules/unistr/u32-strlen-tests: Likewise.
28978         * modules/unistr/u32-strmblen-tests: Likewise.
28979         * modules/unistr/u32-strmbtouc-tests: Likewise.
28980         * modules/unistr/u32-strncat-tests: Likewise.
28981         * modules/unistr/u32-strncmp-tests: Likewise.
28982         * modules/unistr/u32-strncpy-tests: Likewise.
28983         * modules/unistr/u32-strnlen-tests: Likewise.
28984         * modules/unistr/u32-to-u16-tests: Likewise.
28985         * modules/unistr/u32-to-u8-tests: Likewise.
28986         * modules/unistr/u32-uctomb-tests: Likewise.
28987         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28988         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28989         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28990         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28991         * modules/uniwidth/u8-strwidth-tests: Likewise.
28992         * modules/uniwidth/u8-width-tests: Likewise.
28993         * modules/uniwidth/u16-strwidth-tests: Likewise.
28994         * modules/uniwidth/u16-width-tests: Likewise.
28995         * modules/uniwidth/u32-strwidth-tests: Likewise.
28996         * modules/uniwidth/u32-width-tests: Likewise.
28997         * modules/uniwidth/width-tests: Likewise.
28998
28999 2010-05-18  Richard Jones  <rjones@redhat.com>
29000
29001         doc: users.txt: list hivex
29002         * users.txt: Add hivex.
29003
29004 2010-05-18  Richard Jones  <rjones@redhat.com>
29005
29006         doc: users.txt: list febootstrap
29007         * users.txt: Add febootstrap.
29008
29009 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29010
29011         bootstrap: fix an error when gnulib is not used as a git submodule
29012         * build-aux/bootstrap (gnulib_path): If its length is zero then
29013         assign "gnulib" to it.
29014         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29015
29016 2010-05-16  Bruno Haible  <bruno@clisp.org>
29017
29018         Avoid autoconf warnings about AM_ICONV.
29019         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29020         2.64.
29021
29022 2010-05-16  Bruno Haible  <bruno@clisp.org>
29023
29024         absolute-header: Make the macro usable in more situations.
29025         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29026         from gl_ABSOLUTE_HEADER.
29027         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29028
29029 2010-05-16  James Youngman  <jay@gnu.org>
29030
29031         doc: update users.txt
29032         * users.txt: Add CSSC.
29033
29034 2010-05-16  Jim Meyering  <meyering@redhat.com>
29035
29036         init.sh: fix an error in the previous change; add more comments
29037         * tests/init.sh: Compare exit code in loop against 9, not 2.
29038         Patch by Bruno Haible.
29039         Make the two tests more similar by adding an empty "then" clause.
29040         Add comments.
29041
29042         init.sh: avoid unnecessary shell re-exec
29043         * tests/init.sh: Improve the re-exec-required check to first test the
29044         current shell.  If it passes the test, do not search for a shell that
29045         does pass, and do not re-exec.  This test is particularly contorted to
29046         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29047         of $(...) evokes a syntax error and causes immediate shell exit with
29048         status 2.  Bruno Haible reported that the re-exec made it impossible
29049         to single-step through any init.sh-using script.
29050
29051 2010-05-16  Bruno Haible  <bruno@clisp.org>
29052
29053         Fix collision between gnulib's and libintl's printf replacements.
29054         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29055         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29056         (printf): When using GNU C, map the __printf__ function to rpl_printf
29057         via __asm__. When not using GNU C, define rpl_printf instead of
29058         __printf__.
29059         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29060         commit.
29061         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29062         commit.
29063         * m4/asm-underscore.m4: New file.
29064         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29065         * modules/stdio (Files): Add m4/asm-underscore.m4.
29066         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29067         Reported by Ben Pfaff.
29068
29069 2010-05-16  Bruno Haible  <bruno@clisp.org>
29070
29071         verify: Avoid skipping the test on openSUSE 11.0.
29072         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29073
29074 2010-05-13  Bruno Haible  <bruno@clisp.org>
29075
29076         Avoid useless warnings from G++.
29077         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29078         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29079         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29080
29081 2010-05-11  Jim Meyering  <meyering@redhat.com>
29082
29083         maint.mk: tweak preceding change
29084         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29085         regexps tighter by anchoring at EOL, and make the new group "shy"
29086         for slightly decreased overhead.
29087
29088 2010-05-11  Eric Blake  <eblake@redhat.com>
29089
29090         maint.mk: gnulib doesn't guarantee NSIG
29091         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29092
29093 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29094
29095         test-pwrite.c: Remove unused variable declaration.
29096         * tests/test-pwrite.c (main): Remove read_buf declaration.
29097
29098         Remove useless test-pwrite.sh file.
29099         * tests/test-pwrite.sh: Delete file.
29100         * modules/pwrite-tests: Remove references.
29101         Reported by Bruno Haible.
29102
29103 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29104
29105         init.sh: fix a typo
29106         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29107
29108 2010-05-10  Jim Meyering  <meyering@redhat.com>
29109
29110         maint.mk: avoid using a temporary file in the always-defined-macros check
29111         * top/maint.mk (.re-defmac): Remove rule.
29112         (gl_trap_): Remove definition.
29113         (sc_prohibit_always-defined_macros): Rewrite not to create and
29114         depend on a temporary file.  Instead, depend on GNU grep's ability
29115         to read a list of regular expressions from stdin when given "-f -".
29116
29117 2010-05-09  Bruno Haible  <bruno@clisp.org>
29118
29119         Update to GNU gettext 0.18, part 1.
29120         * m4/gettext.m4: Update to GNU gettext 0.18.
29121         * m4/intl.m4: Likewise.
29122         * m4/po.m4: Likewise.
29123         * modules/gettext (Files): Add m4/fcntl-o.m4.
29124         (configure.ac): Require gettext infrastructure from version 0.18.
29125
29126 2010-05-09  Jim Meyering  <meyering@redhat.com>
29127
29128         init.sh: enable MALLOC_PERTURB_
29129         * tests/init.sh: Enable glibc's malloc-perturbing option.
29130
29131         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29132         With my recent change in init.sh from the two-line form:
29133             -#   : ${srcdir=.}
29134             -#   . "$srcdir/init.sh"; path_prepend_ .
29135             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29136         I noticed that using the one-line form would cause this test
29137         to fail with a false-positive, or to stop working altogether,
29138         depending on whether help-version changed or all the tests did.
29139         * top/maint.mk (_hv_regex): Remove this definition.
29140         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29141         (_hv_regex_strong): Use a stronger regex to check for conformance.
29142         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29143         Give a separate diagnostic for lack of conforming use.
29144
29145         maint.mk: prohibit definition of symbols defined by gnulib
29146         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29147         definition of symbols defined by gnulib.
29148
29149 2010-05-09  Bruno Haible  <bruno@clisp.org>
29150
29151         acl: Avoid test failure on Cygwin-hosted mingw.
29152         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29153
29154 2010-05-09  Bruno Haible  <bruno@clisp.org>
29155
29156         error: Use system's fcntl function.
29157         * lib/error.c (fcntl): Undefine.
29158
29159 2010-05-09  Jim Meyering  <meyering@redhat.com>
29160
29161         verify: adjust formatting to be more consistent
29162         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29163         argument-list '('s, and after one comma.
29164
29165 2010-05-09  Bruno Haible  <bruno@clisp.org>
29166
29167         error: More reliable output on mingw.
29168         * lib/error.c: Include <windows.h>.
29169         (is_open): New function.
29170         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29171         defined.
29172
29173 2010-05-09  Bruno Haible  <bruno@clisp.org>
29174
29175         vasnprintf: Fix syntax errors in libintl build on mingw.
29176         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29177         pad_ourselves and prec_ourselves after use.
29178
29179 2010-05-08  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/config.charset: Update comments for Cygwin 1.7.
29182         * lib/localcharset.c: Likewise.
29183
29184 2010-05-07  Jim Meyering  <meyering@redhat.com>
29185
29186         init.sh: improve comments
29187         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29188         . "${srcdir=.}/init.sh"; path_prepend_ .
29189         Add a note about path_prepend_ and the alternative of using
29190         TESTS_ENVIRONMENT.
29191
29192 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29193
29194         exclude: Unescape hashed patterns in wildcard mode.
29195         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29196         to the hash list.
29197         * tests/test-exclude8.sh: New test case.
29198         * modules/exclude-tests: Add new test.
29199
29200 2010-05-05  Eric Blake  <eblake@redhat.com>
29201
29202         verify: automate tests
29203         * modules/verify-tests: New module.
29204         * tests/test-verify.sh: New file.
29205         * tests/test-verify.c: Guard each negative test with a unique id.
29206         Also avoid warning about unused left hand of comma expressions.
29207
29208 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29209
29210         Further improvements to verify.h, suggested by Eric Blake.
29211         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29212         the GL_* versions, to avoid collision with OpenGL.
29213         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29214         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29215         than testing merely whether it's defined.
29216
29217         Modify verify.h to pacify gcc -Wredundant_decls.
29218         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29219         These use the prefix "GL_" since they're likely to be useful elsewhere.
29220         We may need to break them out into a different .h file.
29221         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29222         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29223         of verify_function__.
29224
29225 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29226
29227         Tests for module pwrite.
29228         * modules/pwrite-tests: New file.
29229         * tests/test-pwrite.sh: New file.
29230         * tests/test-pwrite.c: New file.
29231
29232         New module pwrite.
29233         * lib/unistd.in.h (pwrite): New declaration.
29234         * lib/pwrite.c: New file, from glibc with modifications.
29235         * m4/pwrite.m4: New file.
29236         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29237         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29238         REPLACE_PWRITE.
29239         * modules/pwrite: New file.
29240         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29241         REPLACE_PWRITE.
29242         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29243         * doc/posix-functions/pwrite.texi: Mention the new module.
29244
29245 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29246
29247         pread: Update documentation.
29248         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29249
29250 2010-05-04  Eric Blake  <eblake@redhat.com>
29251
29252         docs: update cygwin progress
29253         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29254         this bug.
29255         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29256         Added in cygwin 1.7.2.
29257         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29258         Likewise.
29259         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29260         Likewise.
29261         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29262         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29263         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29264         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29265         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29266         Mention nproc module.
29267         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29268         bug in cygwin 1.7.5 addition.
29269         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29270         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29271         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29272         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29273         1.7.5.
29274         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29275         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29276         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29277         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29278         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29279         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29280         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29281         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29282         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29283         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29284         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29285         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29286         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29287         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29288         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29289         Likewise.
29290         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29291         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29292         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29293         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29294         Likewise.
29295         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29296         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29297         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29298         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29299         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29300         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29301         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29302         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29303         Likewise.
29304         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29305         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29306         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29307         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29308         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29309         Likewise.
29310         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29311         Likewise.
29312         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29313         Likewise.
29314         * doc/glibc-functions/xdrrec_endofrecord.texi
29315         (xdrrec_endofrecord): Likewise.
29316         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29317         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29318         Likewise.
29319         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29320         Likewise.
29321
29322 2010-05-04  Jim Meyering  <meyering@redhat.com>
29323
29324         gendocs.sh: make its "-s FILE" option more useful
29325         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29326         $PACKAGE to reflect the probably-different basename of "FILE".
29327
29328 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29329
29330         bootstrap: don't ignore download_po_files failure
29331         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29332         failure.
29333
29334 2010-05-03  Jim Meyering  <meyering@redhat.com>
29335
29336         maint.mk: allow to pass options to gendocs.sh
29337         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29338         (gendocs_options_): New overridable variable.
29339
29340         gnu-web-doc-update: don't ignore configure or build failure
29341         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29342
29343         announce-gen: backslash-escape '@'s in --help output
29344         * build-aux/announce-gen: Fix syntax errors.
29345
29346         maint.mk, announce-gen: allow project-specific announcement mail headers
29347         * top/maint.mk (translation_project_): Define default.
29348         (announcement_Cc_, announcement_mail_headers_): Likewise.
29349         (announcement): Invoke announce-gen with new --mail-headers option.
29350         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29351
29352         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29353         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29354         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29355         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29356         line in the "err2" output file when running "make check" in verbose
29357         mode (i.e., with set -x enabled).
29358
29359 2010-05-03  Bruno Haible  <bruno@clisp.org>
29360
29361         wctob: Fix for weird platforms.
29362         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29363         argument value.
29364
29365 2010-05-03  Jim Meyering  <meyering@redhat.com>
29366
29367         maint.mk: prohibit unwarranted use of <strings.h>
29368         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29369         strings.h in a file that does not also use strcasecmp, strncasecmp,
29370         ffs or ffsll.
29371
29372         maint.mk: remove obsolete comments
29373         * top/maint.mk: Remove stale, commented-out rules.
29374
29375 2010-05-02  Bruno Haible  <bruno@clisp.org>
29376
29377         wcwidth: Declare also when it's aliased.
29378         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29379         macro.
29380
29381 2010-05-02  Bruno Haible  <bruno@clisp.org>
29382
29383         Fix regression from 2010-04-25.
29384         * gnulib-tool (func_modules_transitive_closure): Check the status of
29385         all modules, not only of the tests that are of the form foo-tests where
29386         foo is a module.
29387
29388 2010-05-02  Bruno Haible  <bruno@clisp.org>
29389
29390         wctob: Work around nasty Cygwin 1.7.2 bug.
29391         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29392         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29393
29394 2010-05-01  Bruno Haible  <bruno@clisp.org>
29395
29396         fpurge: Sharper test.
29397         * tests/test-fpurge.c (main): Add one more ftell check.
29398         * modules/fpurge-tests (Depends-on): Add ftell.
29399         Suggested by Eric Blake.
29400
29401 2010-05-01  Bruno Haible  <bruno@clisp.org>
29402
29403         ftello: Another test.
29404         * tests/test-ftello3.c: New file.
29405         * modules/ftello-tests (Files): Add it.
29406         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29407         MOSTLYCLEANFILES.
29408
29409         ftell: Another test.
29410         * tests/test-ftell3.c: New file.
29411         * modules/ftell-tests (Files): Add it.
29412         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29413         MOSTLYCLEANFILES.
29414
29415 2010-05-01  Bruno Haible  <bruno@clisp.org>
29416
29417         ftell, ftello: Work around Solaris bug.
29418         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29419         * lib/ftello.c: Include stdio-impl.h.
29420         (ftello): On Solaris, when _IOWRT is set, compute the result without
29421         looking at _IOREAD.
29422         * modules/ftello (Files): Add lib/stdio-impl.h.
29423         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29424         * doc/posix-functions/ftello.texi: Likewise.
29425         Reported by Eric Blake.
29426
29427 2010-05-01  Bruno Haible  <bruno@clisp.org>
29428
29429         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29430         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29431         the _IOWRT flag is also set.
29432
29433 2010-05-01  Bruno Haible  <bruno@clisp.org>
29434
29435         Fix doc about a HP-UX stdio bug.
29436         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29437         * doc/posix-functions/ftello.texi: Likewise.
29438
29439 2010-05-01  Bruno Haible  <bruno@clisp.org>
29440
29441         lseek test: Fix failure on Solaris.
29442         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29443         output.
29444
29445 2010-04-30  Jim Meyering  <meyering@redhat.com>
29446
29447         bootstrap: don't ignore failure to generate po*/Makevars
29448         * build-aux/bootstrap (with_gettext): Don't ignore failure
29449         to create po/Makevars or runtime-po/Makevars.
29450
29451 2010-04-29  Eric Blake  <eblake@redhat.com>
29452
29453         headers: relax license to LGPLv2+
29454         * modules/fcntl-h (License): Relax license.
29455         * modules/getopt-posix (License): Likewise.
29456         * modules/locale (License): Likewise.
29457         * modules/math (License): Likewise.
29458         * modules/pty (License): Likewise.
29459         * modules/sched (License): Likewise.
29460         * modules/search (License): Likewise.
29461         * modules/spawn (License): Likewise.
29462         * modules/stdarg (License): Likewise.
29463         * modules/sysexits (License): Likewise.
29464
29465 2010-04-29  Jim Meyering  <meyering@redhat.com>
29466
29467         inttypes: relax license to LGPLv2+
29468         * modules/inttypes (License): Relax license.
29469
29470 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29471
29472         * top/maint.mk (indent): Run twice to produce idempotent results.
29473
29474 2010-04-28  Bruno Haible  <bruno@clisp.org>
29475
29476         getdate: Generate getdate.c in the source directory.
29477         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29478         MOSTLYCLEANFILES.
29479         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29480
29481 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29482
29483         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29484         is not declared as a const *; avoid warnings in that case.
29485
29486 2010-04-28  Eric Blake  <eblake@redhat.com>
29487
29488         canonicalize-lgpl: avoid compiler warning
29489         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29490         declaration' / 'extraneous semicolon' warning with some compilers.
29491         Reported by Andreas Gruenbacher.
29492
29493 2010-04-28  Jim Meyering  <meyering@redhat.com>
29494
29495         init.sh: ensure a more reliable exit status when exiting via trap
29496         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29497         Inspired by patches from Dmitry V. Levin.
29498         Also trap on signal 3 (SIGQUIT).
29499
29500 2010-04-27  Bruno Haible  <bruno@clisp.org>
29501
29502         Update doc about utimes().
29503         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29504         'utimens' module.
29505         Reported by Andreas Gruenbacher <agruen@suse.de>.
29506
29507 2010-04-27  Eric Blake  <eblake@redhat.com>
29508
29509         full-read, full-write: relax license
29510         * modules/full-read (License): Drop to LGPLv2+.
29511         * modules/full-write (License): Likewise.
29512         * modules/safe-read (License): Likewise.
29513         * modules/safe-write (License): Likewise.
29514
29515         pthread: mention library for linking
29516         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29517
29518 2010-04-27  Jim Meyering  <meyering@redhat.com>
29519
29520         maint.mk: fix a bug introduced in last change
29521         * top/maint.mk (gl_assured_headers_): Now that all names are on
29522         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29523         is not anchored to end of word, it should be adequate.
29524
29525         maint.mk: avoid side-effect in latest syntax-check
29526         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29527         to run commands via $(shell...), and hence to incur cost only when
29528         the new rule is actually run.
29529
29530         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29531         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29532         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29533         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29534         (gl_assured_headers_, az_, AZ_): Define.
29535         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29536
29537 2010-04-26  Jim Meyering  <jim@meyering.net>
29538             Bruno Haible  <bruno@clisp.org>
29539
29540         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29541         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29542         Prompted by an exchange with Gilles Espinasse.
29543
29544 2010-04-26  Jim Meyering  <meyering@redhat.com>
29545
29546         git-version-gen: aesthetic tweak
29547         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29548         so that the command remains on a single line.
29549
29550 2010-04-26  Eric Blake  <eblake@redhat.com>
29551
29552         git-version-gen: allow use on EBCDIC hosts
29553         * build-aux/git-version-gen (dirty): Use literal rather than tying
29554         ourselves to ascii.
29555         Reported by Steve Goetze.
29556
29557 2010-04-25  Bruno Haible  <bruno@clisp.org>
29558
29559         netdb: Add support for GNULIB_POSIXCHECK.
29560         * lib/netdb.in.h: Include warn-on-use.h.
29561         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29562         functions are used when GNULIB_POSIXCHECK is defined and the
29563         getaddrinfo module is not in use.
29564         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29565         freeaddrinfo, gai_strerror, getnameinfo are declared.
29566         * modules/netdb (Depends-on): Add warn-on-use.
29567         (Makefile.am): Include warn-on-use.h in netdb.h.
29568
29569 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29570
29571         build: avoid "make check" failure without .git/ directory
29572         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29573         there is no .git/ directory.
29574
29575 2010-04-25  Bruno Haible  <bruno@clisp.org>
29576
29577         ptsname: Fix misuse of ttyname_r.
29578         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29579         of errno.
29580
29581 2010-04-25  Bruno Haible  <bruno@clisp.org>
29582
29583         ttyname_r: Make it work on Solaris 10.
29584         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29585         if the system function has the POSIX declaration. Test whether the
29586         function fails if the buffer is less than 128 bytes large.
29587         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29588         system's ttyname_r function. Provide a reasonably large buffer.
29589         * modules/ttyname_r (Depends-on): Add extensions.
29590         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29591
29592 2010-04-25  Bruno Haible  <bruno@clisp.org>
29593
29594         Use the 'extensions' module for some more functions on Solaris.
29595         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29596         module.
29597         * doc/posix-functions/ctime_r.texi: Likewise.
29598         * doc/posix-functions/getgrgid_r.texi: Likewise.
29599         * doc/posix-functions/getgrnam_r.texi: Likewise.
29600         * doc/posix-functions/getpwnam_r.texi: Likewise.
29601         * doc/posix-functions/getpwuid_r.texi: Likewise.
29602         * doc/posix-functions/readdir_r.texi: Likewise.
29603         * doc/posix-functions/sigwait.texi: Likewise.
29604         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29605         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29606
29607 2010-04-25  Bruno Haible  <bruno@clisp.org>
29608
29609         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29610         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29611         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29612         * lib/ttyname_r.c: Include <limits.h>.
29613         (ttyname_r): Define using the system's ttyname_r function, if it exists
29614         and not on Solaris.
29615         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29616         set.
29617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29618         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29619         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29620         Reported by Simon Josefsson.
29621
29622 2010-04-25  Bruno Haible  <bruno@clisp.org>
29623
29624         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29625         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29626         * doc/posix-functions/ctime_r.texi: Likewise.
29627         * doc/posix-functions/getgrgid_r.texi: Likewise.
29628         * doc/posix-functions/getgrnam_r.texi: Likewise.
29629         * doc/posix-functions/getlogin_r.texi: Likewise.
29630         * doc/posix-functions/getpwnam_r.texi: Likewise.
29631         * doc/posix-functions/getpwuid_r.texi: Likewise.
29632         * doc/posix-functions/readdir_r.texi: Likewise.
29633         * doc/posix-functions/sigwait.texi: Likewise.
29634         * doc/posix-functions/ttyname_r.texi: Likewise.
29635         Reported by Simon Josefsson.
29636
29637 2010-04-25  Bruno Haible  <bruno@clisp.org>
29638
29639         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29640         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29641         also to --create-testdir.
29642         (func_acceptable): Don't consider the status of *-tests modules here.
29643         (func_modules_transitive_closure): Consider it here, before including a
29644         test module.
29645         (func_import, func_create_testdir): Set inc_all_direct_tests,
29646         inc_all_indirect_tests.
29647         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29648         --create-testdir and --create-megatestdir.
29649
29650 2010-04-25  Bruno Haible  <bruno@clisp.org>
29651
29652         gnulib-tool: Add --without-*-tests options.
29653         * gnulib-tool (func_usage): Document the --without-*-tests options.
29654         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29655         excl_unportable_tests): New variables.
29656         Fail if they are specified with --import or --update.
29657         (func_acceptable): Respect the excl_*_tests variables.
29658         (func_import): Set the excl_*_tests variables to empty.
29659
29660 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29661             Bruno Haible  <bruno@clisp.org>
29662
29663         Work around a MacOS X 10.4 bug with openpty.
29664         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29665         * tests/test-openpty.c (main): Close the master side explicitly.
29666
29667 2010-04-25  Bruno Haible  <bruno@clisp.org>
29668
29669         strnlen: Fix a C++ test error on MacOS X and Solaris.
29670         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29671         the function is not declared.
29672         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29673         Simon Josefsson.
29674
29675 2010-04-24  Bruno Haible  <bruno@clisp.org>
29676
29677         Avoid a gcc warning.
29678         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29679         of correct type for %08lx directive.
29680         Reported by Eric Blake.
29681
29682 2010-04-24  Bruno Haible  <bruno@clisp.org>
29683
29684         vasnprintf: Correct errno value in case of out-of-memory.
29685         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29686         or sprintf. Use the errno value from SNPRINTF or sprintf.
29687         Reported by Ian Beckwith <ianb@erislabs.net>.
29688
29689 2010-04-24  Bruno Haible  <bruno@clisp.org>
29690
29691         ansi-c++-opt: Find correct compiler when cross-compiling.
29692         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29693         AC_CHECK_PROGS.
29694         Reported by Simon Josefsson.
29695
29696 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29697
29698         vc-list-files: Add support for subversion
29699         * build-aux/vc-list-files: Use "svn list" to generate the list of
29700         files controlled by subversion.
29701
29702 2010-04-23  Jim Meyering  <meyering@redhat.com>
29703
29704         vc-list-files tests: convert to use init.sh
29705         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29706         path_prepend_.
29707         Use Exit, not exit.
29708         Use skip_ rather than open coding it.
29709         Remove trap set-up and compare definitions.
29710         * tests/test-vc-list-files-git.sh: Likewise.
29711         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29712
29713 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29714
29715         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29716         backup files.
29717
29718 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29719
29720         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29721
29722 2010-04-20  Eric Blake  <eblake@redhat.com>
29723
29724         tests: be robust to ignored SIGPIPE
29725         * tests/test-select-in.sh: Consume all output.
29726         * tests/test-lseek.sh: Check correct exit status, while avoiding
29727         EPIPE.
29728
29729 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29730             Bruno Haible  <bruno@clisp.org>
29731
29732         visibility: Don't use -fvisibility if it leads to a warning.
29733         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29734         yes, don't pretend that visibility works if it leads to a warning.
29735         Reported by Mike Gran <spk121@yahoo.com>.
29736
29737 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29738
29739         * build-aux/bootstrap: Use "git -h" for testing for supported options
29740         instead of "git --help".  The short-form option only shows a summary,
29741         and doesn't layout the full man page.  Grep for the full option name
29742         in the summary, too.
29743
29744 2010-04-19  Bruno Haible  <bruno@clisp.org>
29745
29746         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29747         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29748         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29749         mention of RELOCATABLE_STRIP.
29750         Reported by Sylvain Beucler <beuc@beuc.net>.
29751
29752 2010-04-19  Bruno Haible  <bruno@clisp.org>
29753
29754         * lib/diffseq.h: Fix typo in comment.
29755         Reported by Eric Blake.
29756
29757 2010-04-19  Bruno Haible  <bruno@clisp.org>
29758
29759         ioctl: Move autoconf macro to a .m4 file.
29760         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29761         * modules/ioctl (Files): Add it.
29762         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29763         Reported by Ian Beckwith <ianb@erislabs.net>.
29764
29765 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29766             Bruno Haible  <bruno@clisp.org>
29767
29768         diffseq: Accommodate use-case with abstract arrays.
29769         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29770         is not defined.
29771         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29772         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29773
29774 2010-04-18  Bruno Haible  <bruno@clisp.org>
29775
29776         * doc/posix-headers/stdbool.texi: More precise wording.
29777
29778 2010-04-17  Jim Meyering  <meyering@redhat.com>
29779
29780         maint.mk: use gnu-style indentation in an embedded perl script
29781         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29782         Rename variable: s/two/last_two_bytes/
29783
29784 2010-04-16  Eric Blake  <eblake@redhat.com>
29785
29786         test-stdbool: skip test that fails with Solaris CC
29787         * tests/test-stdbool.c (f): Skip test that causes compilation
29788         error under buggy C++ compiler.
29789         * lib/stdbool.in.h: Document the limitation.
29790         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29791
29792         setenv: allow compilation with C++
29793         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29794         register keyword.
29795
29796         stdint: allow test to pass with C++
29797         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29798
29799         getopt: allow compilation with C++
29800         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29801         struct.
29802         * lib/getopt.c (_getopt_internal_r): Use correct type.
29803         Reported by Dagobert Michelson, via Joel E. Denny.
29804
29805 2010-04-16  Bruno Haible  <bruno@clisp.org>
29806
29807         Override netdb.h always.
29808         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29809         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29810         Reported by Ludovic Courtès <ludo@gnu.org>.
29811
29812 2010-04-15  Bruno Haible  <bruno@clisp.org>
29813
29814         openpty: Fix mistake from 2010-03-21.
29815         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29816         Reported by Simon Josefsson.
29817
29818 2010-04-15  Eric Blake  <eblake@redhat.com>
29819
29820         test-forkpty: fix expected signature
29821         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29822         Reported by Simon Josefsson.
29823
29824 2010-04-15  Jim Meyering  <meyering@redhat.com>
29825
29826         maint.mk: texinfo_suffix_re_: correct the default regexp
29827         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29828
29829         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29830         make it configurable via texinfo_suffix_re_.
29831
29832 2010-04-14  Eric Blake  <eblake@redhat.com>
29833
29834         strtok_r: relax license to LGPLv2+
29835         * modules/strtok_r (License): Relax license.
29836         Reported by Matthias Bolte.
29837
29838 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29839
29840         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29841         version 1.4.4 by default instead of requiring the libgcrypt
29842         version used during build.  This makes it possible to use the
29843         application with older but still binary compatible libgcrypt
29844         versions.
29845
29846 2010-04-13  Eric Blake  <eblake@redhat.com>
29847
29848         getopt-gnu: match recent glibc fixes and posix ruling
29849         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29850         '+' handling, when requesting extensions.
29851         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29852         'W;' handling.
29853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29854         * doc/posix-functions/getopt.texi (getopt): Document this.
29855         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29856         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29857         Likewise.
29858
29859         getopt: merge bug fixes from glibc
29860         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29861         diagnostics.  Honor '+:' correctly.  Reject ';'.
29862
29863         getopt-posix: detect MacOS bug
29864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29865         optind when missing a required argument.
29866         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29867         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29868         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29869         Likewise.
29870
29871         getopt-posix: avoid spurious failure on Solaris
29872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29873         an indicator that setting optind=1 is sufficient for reset.
29874
29875         getopt-posix: avoid spurious failure on FreeBSD
29876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29877         in POSIX mode, since the m4 test uses it.
29878
29879         gnulib-tool: silence warning on BSD sh
29880         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29881
29882 2010-04-13  Jim Meyering  <meyering@redhat.com>
29883
29884         doc: users.txt: GNU patch now uses gnulib
29885         * users.txt: Add patch.
29886
29887 2010-04-12  Jim Meyering  <meyering@redhat.com>
29888
29889         maint.mk: generate more concise timing data for syntax-check rules
29890         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29891         " done" from each line that reports a syntax-check test duration.
29892
29893 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29894
29895         git-version-gen: use "git update-index..." rather than "git status"
29896         * build-aux/git-version-gen: Use git update-index --refresh, not
29897         "git status".  With some versions of git, "git status" would fail
29898         to update the index and result in an unwarranted "-dirty" suffix.
29899
29900 2010-04-11  Jim Meyering  <meyering@redhat.com>
29901
29902         openat: correct formatting (no semantic change)
29903         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29904         Suggested by Bruno Haible.
29905
29906 2010-04-11  Bruno Haible  <bruno@clisp.org>
29907
29908         Stricter declaration checking in testdirs.
29909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29910         If for_tests is true, augment AM_CPPFLAGS to define
29911         GNULIB_STRICT_CHECKING.
29912         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29913         GNULIB_STRICT_CHECKING is defined, verify that the function is
29914         declared.
29915
29916 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29917             Bruno Haible  <bruno@clisp.org>
29918
29919         libunistring: Improve configure output.
29920         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29921         Don't say "consider installing GNU libunistring" when checking again
29922         with libiconv.
29923
29924 2010-04-11  Bruno Haible  <bruno@clisp.org>
29925
29926         libunistring: Correct value of $LTLIBUNISTRING.
29927         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29928         correct the value of $LTLIBUNISTRING.
29929
29930 2010-04-11  Bruno Haible  <bruno@clisp.org>
29931
29932         havelib: Add static libraries to LIBS in the right order.
29933         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29934         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29935
29936 2010-04-11  Bruno Haible  <bruno@clisp.org>
29937
29938         libunistring: Detect libunistring also when it depends on libiconv.
29939         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29940         the second AC_LIB_HAVE_LINKFLAGS invocation.
29941
29942 2010-04-11  James Youngman  <jay@gnu.org>
29943
29944         close-stream: declare local scalars to be "const"
29945         * lib/close-stream.c (close_stream): Make boolean variables const
29946         to document the fact that we set but do not change them.
29947
29948 2010-04-11  Bruno Haible  <bruno@clisp.org>
29949
29950         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29951
29952 2010-04-11  Jim Meyering  <meyering@redhat.com>
29953
29954         maint.mk: don't include dist-check.mk
29955         * top/maint.mk: Remove bogus include directive.
29956
29957         maint.mk: improve empty-line-at-EOF check
29958         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29959         solution, rather than tail+Perl-based one.  The latter would read
29960         a few kilobytes from the end of each file, and did not handle empty
29961         files properly.
29962
29963         maint.mk: print the elapsed time for each syntax-check rule
29964         * top/maint.mk (sc_m_rules_): Save start time in a file.
29965         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29966         (local-check): Interpose the .z rules
29967
29968 2010-04-11  Jim Meyering  <meyering@redhat.com>
29969
29970         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29971         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29972         empty file with one that ends in an empty line.
29973
29974 2010-04-10  Bruno Haible  <bruno@clisp.org>
29975
29976         mkdir: Make it work on mingw64.
29977         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29978         * lib/mkdir.c: Update comment.
29979         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29980
29981 2010-04-10  Bruno Haible  <bruno@clisp.org>
29982
29983         Don't override improved macro from newer autoconf.
29984         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29985         autoconf >= 2.62.
29986         Reported by Joel E. Denny <jdenny@clemson.edu>.
29987
29988 2010-04-10  Jim Meyering  <meyering@redhat.com>
29989
29990         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29991         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29992
29993         maint.mk: correct a diagnostic
29994         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29995         in diagnostic; now use $prohibit.
29996
29997 2010-04-10  Bruno Haible  <address@hidden>
29998
29999         fchownat: Fix a C++ test error on Solaris 8.
30000         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30001         the function does not exist.
30002
30003 2010-04-10  Bruno Haible  <bruno@clisp.org>
30004
30005         vasnprintf: Add more tests.
30006         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30007         (test_function): Test converting an invalid wide string.
30008
30009         vasnprintf: Correct handling of unconvertible wide string arguments.
30010         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30011         VASNPRINTF.
30012         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30013         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30014         smaller than the expected maximum need for the directive. Set errno to
30015         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30016         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30018         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30019         * modules/vasnprintf (Files): Add m4/printf.m4.
30020         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30021
30022 2010-04-10  Bruno Haible  <bruno@clisp.org>
30023
30024         vasnprintf: Fix crash in %ls directive.
30025         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30026         string is passed as argument to %ls, with no precision and no width.
30027         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30028
30029 2010-04-10  Bruno Haible  <bruno@clisp.org>
30030
30031         vasnprintf: Fix multiple test failures on mingw.
30032         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30033         _snprintf, or snwprintf, not _snwprintf.
30034
30035 2010-04-10  Bruno Haible  <bruno@clisp.org>
30036
30037         write: Fix a C++ test error on mingw.
30038         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30039
30040 2010-04-10  Bruno Haible  <bruno@clisp.org>
30041
30042         vasnprintf test: Reduce code duplication.
30043         * tests/test-vasnprintf.c (test_function): New function, extracted from
30044         test_vasnprintf.
30045         (test_vasnprintf, test_asnprintf): Invoke it.
30046
30047 2010-04-10  Bruno Haible  <bruno@clisp.org>
30048
30049         strnlen: Fix warning in C++ mode on MacOS X.
30050         * lib/string.in.h (strnlen): Use the modern idiom.
30051         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30052         defining strnlen as a macro already in <config.h>.
30053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30054         REPLACE_STRNLEN.
30055         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30056         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30057
30058 2010-04-08  James Youngman  <jay@gnu.org>
30059
30060         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30061         the example.
30062
30063 2010-04-09  Jim Meyering  <meyering@redhat.com>
30064
30065         maint.mk: print better diagnostic when there is no $(_hv_file)
30066         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30067         announce that when $(_hv_file) (aka help-version) does not exist.
30068
30069         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30070         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30071         not try to interpret its random input bytes.  Jarno Rajahalme reported
30072         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30073         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30074         (mktempd_): Likewise, just in case.
30075
30076         ftruncate: add two years to projected module removal date: 2012
30077         * m4/ftruncate.m4: Adjust comments.
30078
30079         ftruncate: mark module as obsolete; even MinGW provides it, now
30080         * modules/ftruncate (Status): Obsolete.
30081         (Notice): Say that.
30082         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30083         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30084
30085 2010-04-08  Bruno Haible  <bruno@clisp.org>
30086
30087         Fix side effects from tests-related modules.
30088         * modules/dprintf-posix (Comment): New section.
30089         * modules/fprintf-posix (Comment): Likewise.
30090         * modules/obstack-printf-posix (Comment): Likewise.
30091         * modules/printf-posix (Comment): Likewise.
30092         * modules/snprintf-posix (Comment): Likewise.
30093         * modules/sprintf-posix (Comment): Likewise.
30094         * modules/vasnprintf-posix (Comment): Likewise.
30095         * modules/vasprintf-posix (Comment): Likewise.
30096         * modules/vdprintf-posix (Comment): Likewise.
30097         * modules/vfprintf-posix (Comment): Likewise.
30098         * modules/vprintf-posix (Comment): Likewise.
30099         * modules/vsnprintf-posix (Comment): Likewise.
30100         * modules/vsprintf-posix (Comment): Likewise.
30101         * modules/xprintf-posix (Comment): Likewise.
30102         * modules/xvasprintf-posix (Comment): Likewise.
30103         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30104         * modules/floorf-tests (Depends-on): Likewise.
30105         * modules/round-tests (Depends-on): Likewise.
30106         * modules/roundf-tests (Depends-on): Likewise.
30107         * modules/trunc-tests (Depends-on): Likewise.
30108         * modules/truncf-tests (Depends-on): Likewise.
30109         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30110         'fprintf-posix' module is not present.
30111         * tests/test-floorf2.c (check): Likewise.
30112         * tests/test-trunc2.c (check): Likewise.
30113         * tests/test-truncf2.c (check): Likewise.
30114         * tests/test-round2.c (equal): Likewise.
30115         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30116
30117 2010-04-07  Karl Berry  <karl@gnu.org>
30118
30119         * config/srclist.txt,
30120         * config/srclistvars.sh,
30121         * config/srclist-update: doc fixes.
30122
30123 2010-04-07  Jim Meyering  <meyering@redhat.com>
30124
30125         maint.mk: add a PATH crosschecking syntax-check rule
30126         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30127         Useful if you use a test like the one in help-version (coreutils,
30128         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30129         printed by prog --version.
30130
30131 2010-04-06  Bruno Haible  <bruno@clisp.org>
30132
30133         Fix link error on mingw.
30134         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30135         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30136
30137 2010-04-06  Bruno Haible  <bruno@clisp.org>
30138
30139         Assume rmdir exists.
30140         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30141
30142 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30143
30144         doc: update users.txt
30145         * users.txt: Add gcal.
30146
30147 2010-04-06  Jim Meyering  <meyering@redhat.com>
30148
30149         init.sh: simply unset TMPDIR rather than risking env -i
30150         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30151         although it probably works fine on all Unix-based systems, some
30152         systems (Cygwin?) cannot tolerate a totally cleared environment.
30153         Suggestion from Eric Blake.
30154
30155 2010-04-06  Jim Meyering  <meyering@redhat.com>
30156
30157         init.sh: portability fix: use env's POSIX-specified -i option not -u
30158         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30159         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30160
30161 2010-04-05  Bruno Haible  <bruno@clisp.org>
30162
30163         btowc: Work around Cygwin 1.7.2 bug.
30164         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30165         does not map NUL to 0.
30166         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30167
30168 2010-04-05  Bruno Haible  <bruno@clisp.org>
30169
30170         Make the multithread modules work on Cygwin 1.7.2.
30171         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30172         imported symbols can be declared weak, so that it returns "no" on
30173         Cygwin 1.7.2.
30174
30175 2010-04-05  Bruno Haible  <bruno@clisp.org>
30176
30177         Use the module 'strncat'.
30178         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30179
30180         Tests for module 'strncat'.
30181         * modules/strncat-tests: New file.
30182         * tests/test-strncat.c: New file.
30183
30184         New module 'strncat'.
30185         * lib/string.in.h (strncat): New declaration.
30186         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30187         * m4/strncat.m4: New file, based on m4/memchr.m4.
30188         * modules/strncat: New file.
30189         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30190         is declared.
30191         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30192         REPLACE_STRNCAT.
30193         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30194         REPLACE_STRNCAT.
30195         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30196         module.
30197         * tests/test-string-c++.cc: Check signature of strncat.
30198
30199 2010-04-05  Jim Meyering  <meyering@redhat.com>
30200
30201         xstrtoumax-tests: convert to use init.sh
30202         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30203         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30204         Use Exit, not exit.
30205         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30206
30207         xstrtoimax-tests: convert to use init.sh
30208         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30209         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30210         Use Exit, not exit.
30211         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30212
30213 2010-04-05  Bruno Haible  <bruno@clisp.org>
30214
30215         sys_socket: Avoid #define replacements in C++ mode.
30216         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30217         warning to the function if possible, rather than #defining the symbol
30218         to a dysfunctional alias.
30219
30220 2010-04-05  Bruno Haible  <bruno@clisp.org>
30221
30222         fseeko: Fix C++ test error on mingw.
30223         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30224         gl_FUNC_FSEEKO.
30225         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30226         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30227         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30228         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30229
30230 2010-04-05  Bruno Haible  <bruno@clisp.org>
30231
30232         duplocale: Improve test output.
30233         * tests/test-duplocale.c (main): Print reason for skipped test.
30234
30235 2010-04-05  Bruno Haible  <bruno@clisp.org>
30236
30237         Assume rmdir exists.
30238         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30239         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30240
30241 2010-04-05  Bruno Haible  <bruno@clisp.org>
30242
30243         Fix link error on Solaris 8 with cc.
30244         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30245
30246 2010-04-05  Bruno Haible  <bruno@clisp.org>
30247
30248         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30249         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30250
30251 2010-04-05  Bruno Haible  <bruno@clisp.org>
30252
30253         vasprintf: Update documentation.
30254         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30255
30256 2010-04-05  Bruno Haible  <bruno@clisp.org>
30257
30258         ptsname: Improve test.
30259         * tests/test-ptsname.c (main): Also try the various master names of BSD
30260         systems.
30261
30262 2010-04-05  Bruno Haible  <bruno@clisp.org>
30263
30264         memchr: Avoid a possible C++ test error.
30265         * lib/string.in.h (memchr): Provide declaration if function is missing.
30266         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30267         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30269         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30270
30271 2010-04-05  Bruno Haible  <bruno@clisp.org>
30272
30273         strtok_r: Improve idiom.
30274         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30275         AC_LIBOBJ is used.
30276
30277 2010-04-05  Bruno Haible  <bruno@clisp.org>
30278
30279         strdup: Improve idiom.
30280         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30281         AC_LIBOBJ is used.
30282         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30283         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30284         when AC_LIBOBJ is used.
30285
30286 2010-04-05  Bruno Haible  <bruno@clisp.org>
30287
30288         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30289         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30290         don't set REPLACE_MBSINIT to 1.
30291         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30292         don't set REPLACE_MBRTOWC to 1.
30293         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30294         exist, don't set REPLACE_MBSRTOWCS to 1.
30295         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30296         exist, don't set REPLACE_MBSNRTOWCS to 1.
30297         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30298         don't set REPLACE_WCRTOMB to 1.
30299         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30300         exist, don't set REPLACE_WCSRTOMBS to 1.
30301         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30302         exist, don't set REPLACE_WCSNRTOMBS to 1.
30303
30304 2010-04-05  Bruno Haible  <bruno@clisp.org>
30305
30306         ldexpl: Improve idiom.
30307         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30308         make sure to set HAVE_DECL_LDEXPL to 0.
30309
30310 2010-04-05  Jim Meyering  <meyering@redhat.com>
30311
30312         xstrtol-tests: convert to use init.sh
30313         * modules/xstrtol-tests (Files): Add tests/init.sh.
30314         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30315         Use Exit, not exit.
30316         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30317
30318         atexit-tests: convert to use init.sh
30319         * modules/atexit-tests (Files): Add tests/init.sh.
30320         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30321         Use Exit, not exit.
30322         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30323
30324         init.sh: fix typo
30325         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30326
30327         init.sh: make it easier for a test script to write to the tty, ...
30328         when using automake's parallel-tests mode.
30329         * tests/init.sh (stderr_fileno_): Define overridable variable.
30330         (warn_): New function, to use it.
30331         (fail_, skip_, framework_failure_): Use warn_.
30332
30333 2010-04-04  Bruno Haible  <bruno@clisp.org>
30334
30335         btowc: Avoid warning.
30336         * lib/btowc.c: Include <stdlib.h>.
30337         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30338
30339 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30340             Bruno Haible  <bruno@clisp.org>
30341
30342         wchar: Port to NetBSD 1.5.
30343         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30344         * lib/wctype.in.h (WEOF): Likewise.
30345
30346 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30347             Bruno Haible  <bruno@clisp.org>
30348
30349         Port extended stdio to NetBSD 1.5.
30350         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30351         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30352         older.
30353
30354 2010-04-04  Bruno Haible  <bruno@clisp.org>
30355
30356         string: Remove unused substitution.
30357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30358         HAVE_DECL_STRERROR.
30359         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30360
30361 2010-04-04  Bruno Haible  <bruno@clisp.org>
30362
30363         strtod: Avoid a possible C++ test error.
30364         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30365         set REPLACE_STRTOD.
30366
30367 2010-04-04  Bruno Haible  <bruno@clisp.org>
30368
30369         strerror: Update documentation.
30370         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30371
30372 2010-04-04  Bruno Haible  <bruno@clisp.org>
30373
30374         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30375         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30376         _GL_CXXALIAS_SYS_CAST.
30377
30378 2010-04-04  Bruno Haible  <bruno@clisp.org>
30379
30380         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30381         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30382         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30383         REPLACE_FREXPL to 1.
30384         * doc/posix-functions/frexpl.texi: Update documentation.
30385
30386 2010-04-04  Bruno Haible  <bruno@clisp.org>
30387
30388         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30389         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30390
30391 2010-04-04  Bruno Haible  <bruno@clisp.org>
30392
30393         Implement nanosleep for native Windows.
30394         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30395
30396 2010-04-04  Bruno Haible  <bruno@clisp.org>
30397
30398         math: Fix some C++ test errors on Solaris 8.
30399         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30400
30401 2010-04-04  Bruno Haible  <bruno@clisp.org>
30402
30403         math: Fix some C++ test errors on Cygwin.
30404         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30405         truncl): Provide declaration if the system does not have it.
30406         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30407         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30408         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30409         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30410         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30411         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30412         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30413         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30414         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30415         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30416         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30417         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30418         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30419         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30420         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30421         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30423         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30424         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30425         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30426         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30427         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30428
30429 2010-04-04  Bruno Haible  <bruno@clisp.org>
30430
30431         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30432         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30433         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30434         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30435         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30436         * m4/isinf.m4 (gl_ISINF): Likewise.
30437         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30438
30439 2010-04-04  Bruno Haible  <bruno@clisp.org>
30440
30441         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30442         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30443
30444 2010-04-04  Bruno Haible  <bruno@clisp.org>
30445
30446         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30447         * modules/tmpfile (configure.ac): Update.
30448
30449         tmpfile: Fix C++ test error on mingw.
30450         * lib/stdio.in.h (tmpfile): New declaration.
30451         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30452         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30453         * modules/tmpfile (Depends-on): Add stdio.
30454         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30455         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30456         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30457         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30458         REPLACE_TMPFILE.
30459         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30460
30461 2010-04-04  Bruno Haible  <bruno@clisp.org>
30462
30463         ioctl: Fix C++ test error on mingw.
30464         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30465         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30466         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30467
30468 2010-04-03  Bruno Haible  <bruno@clisp.org>
30469
30470         wcwidth: Fix C++ test error on mingw.
30471         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30473         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30474
30475 2010-04-03  Bruno Haible  <bruno@clisp.org>
30476
30477         nanosleep: Fix C++ test error on mingw.
30478         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30479         * lib/time.in.h (nanosleep): Use modern idiom.
30480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30481         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30482         REPLACE_NANOSLEEP to 1.
30483         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30484         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30485
30486 2010-04-03  Bruno Haible  <bruno@clisp.org>
30487
30488         strptime: Fix C++ test error on mingw.
30489         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30490         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30491         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30492         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30493         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30494         not REPLACE_STRPTIME.
30495         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30496         REPLACE_STRPTIME.
30497
30498 2010-04-03  Bruno Haible  <bruno@clisp.org>
30499
30500         timegm: Fix C++ test error on mingw.
30501         * lib/time.in.h (timegm): Use modern idiom.
30502         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30503         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30504         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30505         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30506
30507 2010-04-03  Bruno Haible  <bruno@clisp.org>
30508
30509         timegm: Assume declaration if function exists.
30510         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30511         if it exists. Don't clobber ac_cv_func_timegm.
30512
30513 2010-04-03  Bruno Haible  <bruno@clisp.org>
30514
30515         time_r: Fix C++ test error on mingw.
30516         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30517         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30518         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30519         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30520         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30521
30522 2010-04-03  Bruno Haible  <bruno@clisp.org>
30523
30524         time_r: Minor updates.
30525         * modules/time_r (Description): Mention the provided functions.
30526         * lib/time_r.c: Don't include <string.h>.
30527         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30528         * doc/posix-functions/localtime_r.texi: Likewise.
30529
30530 2010-04-03  Bruno Haible  <bruno@clisp.org>
30531
30532         time: Fix regression introduced on 2010-03-08.
30533         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30534         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30535
30536 2010-04-03  Jim Meyering  <meyering@redhat.com>
30537
30538         maint.mk: don't silently disable project-specific syntax-check rules
30539         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30540         that they need to convert their project-specific syntax-check rules
30541         to use the new _sc_search_regexp.
30542
30543 2010-04-03  Bruno Haible  <bruno@clisp.org>
30544
30545         fchdir: Fix regression introduced on 2010-03-08.
30546         * lib/unistd.in.h (fchdir): Fix declaration.
30547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30549         REPLACE_FCHDIR.
30550         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30551         REPLACE_FCHDIR.
30552
30553 2010-04-03  Bruno Haible  <bruno@clisp.org>
30554
30555         getpagesize: Fix C++ test error on mingw.
30556         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30557         system does not declare the function.
30558         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30559         declared.
30560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30561         HAVE_DECL_GETPAGESIZE.
30562         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30563
30564 2010-04-03  Bruno Haible  <bruno@clisp.org>
30565
30566         stdio: Make C++ tests work on mingw.
30567         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30568         does not declare the function.
30569
30570 2010-04-03  Bruno Haible  <bruno@clisp.org>
30571
30572         ftello: Fix C++ test error on mingw.
30573         * lib/stdio.in.h (ftello): Use modern idiom.
30574         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30575         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30576         is missing and that it needs to be replaced.
30577         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30579         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30580
30581 2010-04-03  Bruno Haible  <bruno@clisp.org>
30582
30583         fseeko: Fix C++ test error on mingw.
30584         * lib/stdio.in.h (fseeko): Use modern idiom.
30585         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30586         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30587         is missing and that it needs to be replaced.
30588         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30590         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30591
30592 2010-04-03  Bruno Haible  <bruno@clisp.org>
30593
30594         mkstemp: Fix C++ test error on mingw.
30595         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30597         function is missing and that it needs to be replaced.
30598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30599         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30600
30601 2010-04-03  Bruno Haible  <bruno@clisp.org>
30602
30603         stpncpy: Fix C++ test error on mingw.
30604         * lib/string.in.h (stpncpy): Use modern idiom.
30605         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30606         function is missing and that it needs to be replaced.
30607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30608         REPLACE_STPNCPY.
30609         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30610
30611 2010-04-03  Bruno Haible  <bruno@clisp.org>
30612
30613         sys_stat: Fix C++ test error on mingw.
30614         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30615         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30616
30617 2010-04-03  Bruno Haible  <bruno@clisp.org>
30618
30619         pty: Update doc.
30620         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30621
30622 2010-04-03  Bruno Haible  <bruno@clisp.org>
30623
30624         unistd: Fix C++ test error on mingw.
30625         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30626
30627 2010-04-03  Bruno Haible  <bruno@clisp.org>
30628
30629         Update doc regarding mingw.
30630         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30631         * doc/glibc-functions/login_tty.texi: Likewise.
30632         * doc/glibc-functions/forkpty.texi: Likewise.
30633
30634 2010-04-03  Bruno Haible  <bruno@clisp.org>
30635
30636         stdlib: Avoid compilation failure of c-strtold on mingw.
30637         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30638
30639 2010-04-03  Bruno Haible  <bruno@clisp.org>
30640
30641         locale: Make C++ tests work on Cygwin and mingw.
30642         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30643         cannot provide the function.
30644         Reported by Simon Josefsson.
30645
30646 2010-04-03  Bruno Haible  <bruno@clisp.org>
30647
30648         localename: Port to MacOS X 10.6.
30649         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30650         memory layout of the locales in MacOS X 10.6 as well.
30651         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30652
30653 2010-04-02  Bruno Haible  <bruno@clisp.org>
30654
30655         gnulib-tool: Ensure that long-running tests are executed last.
30656         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30657         running tests after the one for the other tests.
30658
30659 2010-04-02  Bruno Haible  <bruno@clisp.org>
30660
30661         gnulib-tool: Ensure the tests in the main directory are executed first.
30662         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30663         start with the current directory.
30664
30665 2010-04-02  Bruno Haible  <bruno@clisp.org>
30666
30667         Tests for module 'havelib', moved here from GNU gettext.
30668         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30669         modifications.
30670         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30671         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30672         with modifications.
30673         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30674         modifications.
30675         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30676         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30677         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30678         with modifications.
30679         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30680         with modifications.
30681         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30682         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30683         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30684         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30685         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30686         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30687         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30688         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30689         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30690         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30691         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30692         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30693         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30694         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30695         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30696         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30697         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30698         with modifications.
30699         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30700         with modifications.
30701         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30702         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30703         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30704         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30705         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30706         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30707         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30708         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30709         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30710         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30711         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30712         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30713         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30714         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30715         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30716         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30717         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30718         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30719         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30720         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30721         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30722         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30723         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30724         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30725         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30726         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30727         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30728         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30729         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30730         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30731         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30732         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30733         * tests/havelib/rpathx/rpathx.c: New file, from
30734         gettext/autoconf-lib-link.
30735         * tests/havelib/rpathx/Makefile.am: New file, from
30736         gettext/autoconf-lib-link.
30737         * tests/havelib/rpathx/configure.ac: New file, from
30738         gettext/autoconf-lib-link with modifications.
30739         * tests/havelib/rpathy/rpathy.c: New file, from
30740         gettext/autoconf-lib-link.
30741         * tests/havelib/rpathy/Makefile.am: New file, from
30742         gettext/autoconf-lib-link.
30743         * tests/havelib/rpathy/configure.ac: New file, from
30744         gettext/autoconf-lib-link with modifications.
30745         * tests/havelib/rpathz/rpathz.c: New file, from
30746         gettext/autoconf-lib-link.
30747         * tests/havelib/rpathz/Makefile.am: New file, from
30748         gettext/autoconf-lib-link.
30749         * tests/havelib/rpathz/configure.ac: New file, from
30750         gettext/autoconf-lib-link with modifications.
30751         * tests/havelib/rpathlx/usex.c: New file, from
30752         gettext/autoconf-lib-link.
30753         * tests/havelib/rpathlx/Makefile.am: New file, from
30754         gettext/autoconf-lib-link.
30755         * tests/havelib/rpathlx/configure.ac: New file, from
30756         gettext/autoconf-lib-link with modifications.
30757         * tests/havelib/rpathly/usey.c: New file, from
30758         gettext/autoconf-lib-link.
30759         * tests/havelib/rpathly/Makefile.am: New file, from
30760         gettext/autoconf-lib-link.
30761         * tests/havelib/rpathly/configure.ac: New file, from
30762         gettext/autoconf-lib-link with modifications.
30763         * tests/havelib/rpathlz/usez.c: New file, from
30764         gettext/autoconf-lib-link.
30765         * tests/havelib/rpathlz/Makefile.am: New file, from
30766         gettext/autoconf-lib-link.
30767         * tests/havelib/rpathlz/configure.ac: New file, from
30768         gettext/autoconf-lib-link with modifications.
30769         * tests/havelib/rpathlyx/usey.c: New file, from
30770         gettext/autoconf-lib-link.
30771         * tests/havelib/rpathlyx/Makefile.am: New file, from
30772         gettext/autoconf-lib-link.
30773         * tests/havelib/rpathlyx/configure.ac: New file, from
30774         gettext/autoconf-lib-link with modifications.
30775         * tests/havelib/rpathlzyx/usez.c: New file, from
30776         gettext/autoconf-lib-link.
30777         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30778         gettext/autoconf-lib-link.
30779         * tests/havelib/rpathlzyx/configure.ac: New file, from
30780         gettext/autoconf-lib-link with modifications.
30781         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30782         with modifications.
30783
30784 2010-04-02  Bruno Haible  <bruno@clisp.org>
30785
30786         gnulib-tool: Create distributed built sources also for the tests.
30787         * gnulib-tool (func_create_testdir): Also generate distributed built
30788         sources in the tests directory.
30789
30790 2010-04-02  Bruno Haible  <bruno@clisp.org>
30791
30792         gnulib-tool: Obey user's environment variables.
30793         * gnulib-tool (func_create_testdir): When creating built sources,
30794         respect the environment variables for autoconf, automake, etc. given by
30795         the user.
30796
30797 2010-04-02  Bruno Haible  <bruno@clisp.org>
30798
30799         gnulib-tool: Provide the value of --m4-base to modules.
30800         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30801         of gl_m4_base.
30802
30803 2010-04-02  Eric Blake  <eblake@redhat.com>
30804
30805         maint.mk: fix some fallout
30806         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30807         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30808
30809 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30810
30811         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30812         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30813         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30814         (sc_cast_of_x_alloc_return_value): Likewise.
30815         (sc_cast_of_alloca_return_value): Likewise.
30816         (sc_space_tab): Likewise.
30817         (sc_prohibit_atoi_atof): Likewise.
30818         (sc_prohibit_magic_number_exit): Likewise.
30819         (sc_error_exit_success): Likewise.
30820         (sc_file_system): Likewise.
30821         (sc_prohibit_have_config_h): Likewise.
30822         (sc_require_config_h): Likewise.
30823         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30824         (sc_obsolete_symbols): Likewise.
30825         (sc_changelog): Likewise.
30826         (sc_program_name): Likewise.
30827         (sc_the_the): Likewise.
30828         (sc_trailing_blank): Likewise.
30829         (sc_two_space_separator_in_usage): Likewise.
30830         (sc_useless_cpp_parens): Likewise.
30831         (sc_GPL_version): Likewise.
30832         (sc_GFDL_version): Likewise.
30833         (sc_texinfo_acronym): Likewise.
30834         (sc_prohibit_cvs_keyword): Likewise.
30835         (sc_prohibit_stat_st_blocks): Likewise.
30836         (sc_prohibit_S_IS_definition): Likewise.
30837         (sc_redundant_const): Likewise.
30838         (sc_makefile_TAB_only_indentation): Likewise.
30839         (sc_m4_quote_check): Likewise.
30840         (sc_makefile_path_separator_check): Likewise.
30841         (sc_copyright_check): Likewise.
30842         (sc_Wundef_boolean): Likewise.
30843         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30844
30845         maint.mk: match 0 or more whitespace-before-function-call '('
30846         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30847         that have zero or two-and-more spaces between the function name
30848         and the open parenthesis.
30849         (sc_error_message_warn_fatal): Likewise.
30850         (sc_error_message_uppercase): Likewise.
30851         (sc_error_message_period): Likewise.
30852
30853 2010-03-31  Eric Blake  <eblake@redhat.com>
30854
30855         maint.mk: check for [ as well as test
30856         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30857         Based on a libvirt report by Matthias Bolte.
30858
30859         gnumakefile: don't squelch _version output
30860         * top/GNUmakefile (_version): Create one-shot dependency rather
30861         than using $(shell) when version must be regenerated.
30862         (_autoreconf): Run verbosely, by default.
30863
30864         sys_time: avoid compiler warnings
30865         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30866         unconditional, fixing regression from 2010-03-29.
30867         Reported by Simon Josefsson.
30868
30869 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30870
30871         maint.mk: s/_header_without_use/_sc_header_without_use/
30872         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30873         (sc_prohibit_assert_without_use): Use the new name.
30874         (sc_prohibit_close_stream_without_use): Likewise.
30875         (sc_prohibit_getopt_without_use): Likewise.
30876         (sc_prohibit_quotearg_without_use): Likewise.
30877         (sc_prohibit_quote_without_use): Likewise.
30878         (sc_prohibit_long_options_without_use): Likewise.
30879         (sc_prohibit_inttostr_without_use): Likewise.
30880         (sc_prohibit_ignore_value_without_use): Likewise.
30881         (sc_prohibit_error_without_use): Likewise.
30882         (sc_prohibit_xalloc_without_use): Likewise.
30883         (sc_prohibit_hash_without_use): Likewise.
30884         (sc_prohibit_hash_pjw_without_use): Likewise.
30885         (sc_prohibit_safe_read_without_use): Likewise.
30886         (sc_prohibit_argmatch_without_use): Likewise.
30887         (sc_prohibit_canonicalize_without_use): Likewise.
30888         (sc_prohibit_root_dev_ino_without_use): Likewise.
30889         (sc_prohibit_openat_without_use): Likewise.
30890         (sc_prohibit_c_ctype_without_use): Likewise.
30891         (sc_prohibit_signal_without_use): Likewise.
30892         (sc_prohibit_intprops_without_use): Likewise.
30893
30894 2010-03-30  Eric Blake  <eblake@redhat.com>
30895
30896         maint: improve module indicators
30897         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30898         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30899         columns, and avoid extra macro expansion.
30900
30901         fdopendir: work around FreeBSD bug
30902         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30903         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30904         * modules/dirent (Makefile.am): Substitute it.
30905         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30906         declaration.
30907         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30908         fix.
30909         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30910
30911 2010-03-29  Bruno Haible  <bruno@clisp.org>
30912
30913         Emit #pragma system_header after the inclusion guard, not before.
30914         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30915         guard that spans the entire file, not before. This enables an
30916         optimization in GCC's preprocessor.
30917         * lib/ctype.in.h: Likewise.
30918         * lib/dirent.in.h: Likewise.
30919         * lib/errno.in.h: Likewise.
30920         * lib/float.in.h: Likewise.
30921         * lib/getopt.in.h: Likewise.
30922         * lib/iconv.in.h: Likewise.
30923         * lib/langinfo.in.h: Likewise.
30924         * lib/locale.in.h: Likewise.
30925         * lib/math.in.h: Likewise.
30926         * lib/netdb.in.h: Likewise.
30927         * lib/netinet_in.in.h: Likewise.
30928         * lib/pty.in.h: Likewise.
30929         * lib/sched.in.h: Likewise.
30930         * lib/se-selinux.in.h: Likewise.
30931         * lib/search.in.h: Likewise.
30932         * lib/spawn.in.h: Likewise.
30933         * lib/stdarg.in.h: Likewise.
30934         * lib/stdint.in.h: Likewise.
30935         * lib/string.in.h: Likewise.
30936         * lib/strings.in.h: Likewise.
30937         * lib/sys_file.in.h: Likewise.
30938         * lib/sys_ioctl.in.h: Likewise.
30939         * lib/sys_time.in.h: Likewise.
30940         * lib/sys_times.in.h: Likewise.
30941         * lib/sys_utsname.in.h: Likewise.
30942         * lib/sys_wait.in.h: Likewise.
30943         * lib/sysexits.in.h: Likewise.
30944         * lib/wctype.in.h: Likewise.
30945
30946 2010-03-28  James Youngman  <jay@gnu.org>
30947
30948         save-cwd: don't leak a file descriptor when the caller execs.
30949         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30950         saved file descriptor.
30951         * modules/save-cwd (Depends-on): Depend on cloexec.
30952
30953 2010-03-29  Bruno Haible  <bruno@clisp.org>
30954
30955         Remove vestiges of fts-lgpl module.
30956         * lib/fts_.h: Assume GNULIB_FTS is 1.
30957         * lib/fts.c: Likewise.
30958         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30959
30960 2010-03-28  Bruno Haible  <bruno@clisp.org>
30961
30962         Fix definition of tests witness macro.
30963         * gnulib-tool (func_import): Fix definition of witness macro.
30964
30965 2010-03-28  Bruno Haible  <bruno@clisp.org>
30966
30967         Fix ioctl's protoype on glibc systems.
30968         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30969         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30970         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30971         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30972         signature. If not, arrange to replace the ioctl function.
30973         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30974         REPLACE_IOCTL.
30975         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30976         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30977         Reported by Ludovic Courtès <ludo@gnu.org>.
30978
30979 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30980
30981         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30982         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30983         made it so grep -r --include=GLOB* ... did not work.
30984
30985 2010-03-26  Jim Meyering  <meyering@redhat.com>
30986             Eric Blake  <eblake@redhat.com>
30987
30988         maint.mk: prohibit use of test's -o and -a operators
30989         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30990
30991 2010-03-28  Bruno Haible  <bruno@clisp.org>
30992
30993         Remove unused GNULIB_XYZ macro definitions.
30994         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30995         invocation.
30996
30997 2010-03-28  Bruno Haible  <bruno@clisp.org>
30998
30999         Mark privileged tests modules.
31000         * modules/idpriv-drop-tests (Status): New section.
31001         * modules/idpriv-droptemp-tests (Status): New section.
31002
31003 2010-03-28  Bruno Haible  <bruno@clisp.org>
31004
31005         Split C++ tests into separate tests modules.
31006         * modules/dirent-c++-tests: New file, extracted from
31007         modules/dirent-tests.
31008         * modules/dirent-tests: Depend on it.
31009         * modules/fcntl-h-c++-tests: New file, extracted from
31010         modules/fcntl-h-tests.
31011         * modules/fcntl-h-tests: Depend on it.
31012         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31013         * modules/glob-tests: Depend on it.
31014         * modules/iconv-h-c++-tests: New file, extracted from
31015         modules/iconv-h-tests.
31016         * modules/iconv-h-tests: Depend on it.
31017         * modules/langinfo-c++-tests: New file, extracted from
31018         modules/langinfo-tests.
31019         * modules/langinfo-tests: Depend on it.
31020         * modules/locale-c++-tests: New file, extracted from
31021         modules/locale-tests.
31022         * modules/locale-tests: Depend on it.
31023         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31024         * modules/math-tests: Depend on it.
31025         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31026         * modules/pty-tests: Depend on it.
31027         * modules/search-c++-tests: New file, extracted from
31028         modules/search-tests.
31029         * modules/search-tests: Depend on it.
31030         * modules/signal-c++-tests: New file, extracted from
31031         modules/signal-tests.
31032         * modules/signal-tests: Depend on it.
31033         * modules/spawn-c++-tests: New file, extracted from
31034         modules/spawn-tests.
31035         * modules/spawn-tests: Depend on it.
31036         * modules/stdio-c++-tests: New file, extracted from
31037         modules/stdio-tests.
31038         * modules/stdio-tests: Depend on it.
31039         * modules/stdlib-c++-tests: New file, extracted from
31040         modules/stdlib-tests.
31041         * modules/stdlib-tests: Depend on it.
31042         * modules/string-c++-tests: New file, extracted from
31043         modules/string-tests.
31044         * modules/string-tests: Depend on it.
31045         * modules/sys_ioctl-c++-tests: New file, extracted from
31046         modules/sys_ioctl-tests.
31047         * modules/sys_ioctl-tests: Depend on it.
31048         * modules/sys_select-c++-tests: New file, extracted from
31049         modules/sys_select-tests.
31050         * modules/sys_select-tests: Depend on it.
31051         * modules/sys_socket-c++-tests: New file, extracted from
31052         modules/sys_socket-tests.
31053         * modules/sys_socket-tests: Depend on it.
31054         * modules/sys_stat-c++-tests: New file, extracted from
31055         modules/sys_stat-tests.
31056         * modules/sys_stat-tests: Depend on it.
31057         * modules/sys_time-c++-tests: New file, extracted from
31058         modules/sys_time-tests.
31059         * modules/sys_time-tests: Depend on it.
31060         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31061         * modules/time-tests: Depend on it.
31062         * modules/unistd-c++-tests: New file, extracted from
31063         modules/unistd-tests.
31064         * modules/unistd-tests: Depend on it.
31065         * modules/wchar-c++-tests: New file, extracted from
31066         modules/wchar-tests.
31067         * modules/wchar-tests: Depend on it.
31068         * modules/wctype-c++-tests: New file, extracted from
31069         modules/wctype-tests.
31070         * modules/wctype-tests: Depend on it.
31071         Reported by Simon Josefsson.
31072
31073 2010-03-28  Bruno Haible  <bruno@clisp.org>
31074
31075         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31076         * gnulib-tool (func_exists_module): New function, extracted from
31077         func_verify_module.
31078         (func_verify_module): Use it.
31079         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31080         'foo' only if 'foo' exists.
31081         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31082         module.
31083
31084 2010-03-28  Bruno Haible  <bruno@clisp.org>
31085
31086         gnulib-tool: Add support for special categories of tests.
31087         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31088         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31089         (func_usage): Document them.
31090         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31091         inc_unportable_tests, inc_all_tests): New variables.
31092         (func_acceptable): Consider these variables.
31093         (func_modules_transitive_closure): Make it work when the 'Status' field
31094         consists of multiple words.
31095         (func_import): Store and restore the values of inc_cxx_tests,
31096         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31097         inc_all_tests in gnulib-comp.m4.
31098         (func_create_testdir): Set inc_all_tests to true.
31099         * doc/gnulib.texi (Extra tests modules): New section.
31100         Suggested by Jim Meyering.
31101
31102 2010-03-28  Bruno Haible  <bruno@clisp.org>
31103
31104         ansi-c++-opt: Allow turning off the C++ build by default.
31105         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31106         gl_CXX_CHOICE_DEFAULT_NO is defined.
31107         Requested by Eric Blake.
31108
31109 2010-03-28  Bruno Haible  <bruno@clisp.org>
31110
31111         unistd: Avoid #define replacements in C++ mode.
31112         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31113         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31114         setsockopt, shutdown, select): In C++, attach a warning to the function
31115         if possible, rather than #defining the symbol to a dysfunctional alias.
31116         Reported by John W. Eaton <jwe@gnu.org>.
31117
31118 2010-03-28  Bruno Haible  <bruno@clisp.org>
31119
31120         Fix link errors on mingw.
31121         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31122         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31123         $(LIBSOCKET).
31124         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31125         $(LIBSOCKET).
31126
31127 2010-03-28  Bruno Haible  <bruno@clisp.org>
31128             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31129
31130         lib-ignore: Determine different options for different compilers.
31131         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31132         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31133         Add comments.
31134         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31135         * NEWS: Mention the change.
31136
31137 2010-03-27  Bruno Haible  <bruno@clisp.org>
31138
31139         Remove unused GNULIB_XYZ macro definitions.
31140         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31141         * modules/fseek (configure.ac): Likewise.
31142         * modules/ioctl (configure.ac): Likewise.
31143         * modules/open (configure.ac): Likewise.
31144         * modules/stdlib-safer (configure.ac): Likewise.
31145
31146 2010-03-27  Bruno Haible  <bruno@clisp.org>
31147
31148         Add a remark about certain modules.
31149         * modules/malloc (Comment): New section.
31150         * modules/realloc (Comment): Likewise.
31151         * modules/sigpipe (Comment): Likewise.
31152
31153 2010-03-27  Bruno Haible  <bruno@clisp.org>
31154
31155         Resolve conflict between the two kinds of module indicators.
31156         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31157         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31158         * modules/canonicalize (configure.ac): Invoke
31159         gl_MODULE_INDICATOR_FOR_TESTS.
31160         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31161         GNULIB_XYZ.
31162         * tests/test-dirent-c++.cc: Likewise.
31163         * tests/test-dirent-safer.c: Likewise.
31164         * tests/test-dup2.c: Likewise.
31165         * tests/test-fchdir.c: Likewise.
31166         * tests/test-fcntl-h-c++.cc: Likewise.
31167         * tests/test-getopt.c: Likewise.
31168         * tests/test-getopt.h: Likewise.
31169         * tests/test-langinfo-c++.cc: Likewise.
31170         * tests/test-locale-c++.cc: Likewise.
31171         * tests/test-math-c++.cc: Likewise.
31172         * tests/test-pty-c++.cc: Likewise.
31173         * tests/test-search-c++.cc: Likewise.
31174         * tests/test-signal-c++.cc: Likewise.
31175         * tests/test-spawn-c++.cc: Likewise.
31176         * tests/test-stdio-c++.cc: Likewise.
31177         * tests/test-stdlib-c++.cc: Likewise.
31178         * tests/test-string-c++.cc: Likewise.
31179         * tests/test-sys_ioctl-c++.cc: Likewise.
31180         * tests/test-sys_select-c++.cc: Likewise.
31181         * tests/test-sys_socket-c++.cc: Likewise.
31182         * tests/test-sys_stat-c++.cc: Likewise.
31183         * tests/test-sys_time-c++.cc: Likewise.
31184         * tests/test-time-c++.cc: Likewise.
31185         * tests/test-unistd-c++.cc: Likewise.
31186         * tests/test-wchar-c++.cc: Likewise.
31187         * tests/uninorm/test-u8-nfc.c: Likewise.
31188         * tests/uninorm/test-u8-nfd.c: Likewise.
31189         * tests/uninorm/test-u8-nfkc.c: Likewise.
31190         * tests/uninorm/test-u8-nfkd.c: Likewise.
31191         * tests/uninorm/test-u16-nfc.c: Likewise.
31192         * tests/uninorm/test-u16-nfd.c: Likewise.
31193         * tests/uninorm/test-u16-nfkc.c: Likewise.
31194         * tests/uninorm/test-u16-nfkd.c: Likewise.
31195         * tests/uninorm/test-u32-nfc.c: Likewise.
31196         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31197         * tests/uninorm/test-u32-nfd.c: Likewise.
31198         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31199         * tests/uninorm/test-u32-nfkc.c: Likewise.
31200         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31201         * tests/uninorm/test-u32-nfkd.c: Likewise.
31202         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31203         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31204
31205 2010-03-27  Bruno Haible  <bruno@clisp.org>
31206
31207         Distinguish two kinds of module indicators.
31208         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31209         gl_MODULE_INDICATOR.
31210         (gl_MODULE_INDICATOR): New macro.
31211         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31212         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31213         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31214         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31215         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31216         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31217         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31218         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31219         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31220         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31221         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31222         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31225         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31226         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31227         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31228         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31229         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31230         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31231         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31232         * modules/cloexec (configure.ac): Likewise.
31233         * modules/getopt-gnu (configure.ac): Likewise.
31234         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31235         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31236         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31237         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31238
31239 2010-03-27  Bruno Haible  <bruno@clisp.org>
31240
31241         New module description field 'Comment'.
31242         * gnulib-tool: New option --extract-comment.
31243         (func_usage): Document it.
31244         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31245         (func_get_comment): New function.
31246         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31247
31248 2010-03-27  Bruno Haible  <bruno@clisp.org>
31249
31250         Addendum to 2010-02-07 commit.
31251         * gnulib-tool (func_usage): Document --extract-applicability option.
31252
31253 2010-03-27  Bruno Haible  <bruno@clisp.org>
31254
31255         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31256         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31257         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31258         rather than link errors.
31259
31260 2010-03-27  Bruno Haible  <bruno@clisp.org>
31261
31262         Avoid side effects from tests-related modules on the compilation of lib.
31263         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31264         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31265         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31266         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31267         macro.
31268         (func_import): Define a witness macro. Assign it a value that depends
31269         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31270         tests-related modules.
31271         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31272         Reported by Jim Meyering.
31273
31274 2010-03-27  Bruno Haible  <bruno@clisp.org>
31275
31276         Factorize common .m4 code.
31277         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31278         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31279         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31280         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31281         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31282         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31283         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31284         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31285         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31286         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31287         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31288         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31289         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31290         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31291         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31292         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31293         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31294         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31296         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31297         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31298         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31299         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31300         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31301         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31302         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31303         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31304         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31305         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31306         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31307         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31308         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31309
31310 2010-03-27  Bruno Haible  <bruno@clisp.org>
31311
31312         Fix a compilation error on Cygwin with g++ >= 4.3.
31313         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31314         if it is undefined or if we alias it to chmod.
31315         (lstat): Don't warn about the use of this function if it is undefined
31316         or if we alias it to stat.
31317         Reported by Simon Josefsson.
31318
31319 2010-03-27  Bruno Haible  <bruno@clisp.org>
31320
31321         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31322         * modules/getlogin (configure.ac): Update.
31323
31324         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31325         * modules/getlogin_r (configure.ac): Update.
31326
31327         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31328         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31329         * modules/inet_ntop (configure.ac): Update.
31330
31331         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31332         * modules/inet_pton (configure.ac): Update.
31333
31334         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31335         * modules/mbslen (configure.ac): Update.
31336
31337         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31338         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31339         * modules/forkpty (configure.ac): Update.
31340         * modules/openpty (configure.ac): Update.
31341
31342 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31343
31344         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31345         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31346
31347 2010-03-25  Eric Blake  <eblake@redhat.com>
31348
31349         maint: use pragma consistently across replacement headers
31350         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31351         * lib/dirent.in.h (system_header): Likewise.
31352         * lib/errno.in.h (system_header): Likewise.
31353         * lib/float.in.h (system_header): Likewise.
31354         * lib/getopt.in.h (system_header): Likewise.
31355         * lib/iconv.in.h (system_header): Likewise.
31356         * lib/inttypes.in.h (system_header): Likewise.
31357         * lib/langinfo.in.h (system_header): Likewise.
31358         * lib/locale.in.h (system_header): Likewise.
31359         * lib/math.in.h (system_header): Likewise.
31360         * lib/netdb.in.h (system_header): Likewise.
31361         * lib/netinet_in.in.h (system_header): Likewise.
31362         * lib/pty.in.h (system_header): Likewise.
31363         * lib/sched.in.h (system_header): Likewise.
31364         * lib/se-selinux.in.h (system_header): Likewise.
31365         * lib/search.in.h (system_header): Likewise.
31366         * lib/spawn.in.h (system_header): Likewise.
31367         * lib/stdarg.in.h (system_header): Likewise.
31368         * lib/stdint.in.h (system_header): Likewise.
31369         * lib/string.in.h (system_header): Likewise.
31370         * lib/strings.in.h (system_header): Likewise.
31371         * lib/sys_file.in.h (system_header): Likewise.
31372         * lib/sys_ioctl.in.h (system_header): Likewise.
31373         * lib/sys_socket.in.h (system_header): Likewise.
31374         * lib/sys_times.in.h (system_header): Likewise.
31375         * lib/sys_utsname.in.h (system_header): Likewise.
31376         * lib/sys_wait.in.h (system_header): Likewise.
31377         * lib/sysexits.in.h (system_header): Likewise.
31378         * lib/unistd.in.h (system_header): Likewise.
31379         * lib/wctype.in.h (system_header): Likewise.
31380
31381         arpa/inet: fix mingw compilation warning
31382         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31383         Reported by Matthew Bolte.
31384
31385 2010-03-25  Bruno Haible  <bruno@clisp.org>
31386
31387         Avoid collision between gnulib wrapper and libintl wrapper.
31388         * lib/printf.c (printf): Don't define if a printf wrapper is already
31389         defined in intl/printf.c.
31390         Reported by Michel Boaventura <michel@michelboaventura.com>.
31391
31392 2010-03-25  Bruno Haible  <bruno@clisp.org>
31393
31394         Use ANSI C.
31395         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31396
31397 2010-03-25  Bruno Haible  <bruno@clisp.org>
31398
31399         Minor formatting changes.
31400         * lib/acosl.c: Insert space before function argument list.
31401         * lib/argz.c: Likewise.
31402         * lib/asinl.c: Likewise.
31403         * lib/expl.c: Likewise.
31404         * lib/gen-uni-tables.c: Likewise.
31405         * lib/gettext.h: Likewise.
31406         * lib/glthread/lock.h: Likewise.
31407         * lib/tanl.c: Likewise.
31408         * lib/uniname/uniname.c: Likewise.
31409         * tests/test-idpriv-drop.c: Likewise.
31410         * tests/test-idpriv-droptemp.c: Likewise.
31411         * tests/test-lock.c: Likewise.
31412         * tests/test-tls.c: Likewise.
31413         * lib/argp-help.c: Insert space before function-like macro argument
31414         list.
31415         * lib/memcmp.c: Likewise.
31416         * tests/test-base64.c: Likewise.
31417         * lib/localename.c: Insert space before sizeof's argument list.
31418         * lib/safe-alloc.h: Likewise.
31419         * lib/file-set.h: Insert space before macro argument list.
31420         * tests/test-argp.c: Likewise.
31421         * lib/argp-namefrob.h: Insert space before function parameter list.
31422         * lib/getaddrinfo.c: Likewise.
31423         * lib/netdb.in.h: Likewise.
31424         * lib/parse-duration.h: Likewise.
31425         * lib/parse-duration.c: Likewise.
31426         * lib/poll.c: Likewise.
31427         * lib/select.c: Likewise.
31428         * lib/trim.h: Likewise.
31429         * tests/test-usleep.c: Likewise.
31430         * lib/ldexpl.c: Insert space before function parameter list and before
31431         function argument list.
31432         * lib/logl.c: Likewise.
31433         * lib/sqrtl.c: Likewise.
31434         * lib/trim.c: Likewise.
31435         * lib/cosl.c: Use GNU style indentation. Insert space before function
31436         argument list.
31437         * lib/sinl.c: Likewise.
31438         * lib/tsearch.c: Insert space after 'for'.
31439         Reported by Jim Meyering.
31440
31441 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31442
31443         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31444         config header before grepping, as it's not present before
31445         autoreconf/configure are run.  Reported by Simon Josefsson.
31446
31447 2010-03-23  Bruno Haible  <bruno@clisp.org>
31448
31449         pt_chown: Make it work with automake < 1.11.
31450         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31451         Reported by Simon Josefsson.
31452
31453 2010-03-23  Bruno Haible  <bruno@clisp.org>
31454
31455         pt_chown: Don't depend on GPLed modules.
31456         * lib/pt_chown.c: Don't include idpriv.h.
31457         (main): Don't drop privileges.
31458         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31459         Reported by Simon Josefsson.
31460
31461 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31462
31463         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31464         suggestions from karl@freefriends.org (Karl Berry).
31465
31466 2010-03-22  Eric Blake  <eblake@redhat.com>
31467
31468         gethostname: further tweaks
31469         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31470         are overriding gethostname.
31471         Suggested by Bruno Haible.
31472
31473 2010-03-21  Bruno Haible  <bruno@clisp.org>
31474
31475         Fix comments.
31476         * lib/forkpty.c (rpl_forkpty): Fix comment.
31477         * lib/openpty.c (rpl_openpty): Likewise.
31478         Reported by Eric Blake.
31479
31480 2010-03-22  Eric Blake  <eblake@redhat.com>
31481
31482         gethostname: fix build on mingw
31483         * lib/unistd.in.h (includes): Work around fact that mingw
31484         <winsock2.h> re-includes <unistd.h>, by avoiding any
31485         redeclarations if we are being included by <winsock2.h>.
31486         Reported by Matthias Bolte.
31487
31488 2010-03-21  Bruno Haible  <bruno@clisp.org>
31489
31490         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31491         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31492         modifications.
31493         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31494         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31495         provide the replacement.
31496         * modules/forkpty (Depends-on): Add openpty, login_tty.
31497         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31498         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31499         * doc/glibc-functions/forkpty.texi: More supported platforms.
31500         * config/srclist.txt: Add forkpty.c (commented).
31501
31502 2010-03-21  Bruno Haible  <bruno@clisp.org>
31503
31504         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31505         (Makefile.am): Verify that PTY_LIB is defined.
31506
31507         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31508
31509 2010-03-21  Bruno Haible  <bruno@clisp.org>
31510
31511         Tests for module 'login_tty'.
31512         * modules/login_tty-tests: New file.
31513         * tests/test-login_tty.c: New file.
31514
31515         New module 'login_tty'.
31516         * lib/login_tty.c: New file.
31517         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31518         * modules/login_tty: New file.
31519         * doc/glibc-functions/login_tty.texi: Mention the new module.
31520
31521 2010-03-21  Bruno Haible  <bruno@clisp.org>
31522
31523         login_tty: Documentation.
31524         * doc/glibc-functions/login_tty.texi: New file.
31525         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31526
31527 2010-03-21  Bruno Haible  <bruno@clisp.org>
31528
31529         pty: Consistent macro naming.
31530         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31531         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31532         * modules/pty (configure.ac): Update.
31533
31534 2010-03-21  Bruno Haible  <bruno@clisp.org>
31535
31536         Tests for openpty: Make stricter.
31537         * tests/test-openpty.c (main): Add test of canonical processing and
31538         erase.
31539         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31540
31541         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31542         * lib/openpty.c (openpty): New replacement function.
31543         * lib/pty.in.h: Include <termios.h>.
31544         (openpty): Update declaration. Add comments.
31545         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31546         is not declared, arrange to provide the replacement. Check for _getpty
31547         and posix_openpt.
31548         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31549         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31550         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31551         * modules/pty-tests (test_pty_c___LDADD): New variable.
31552         * doc/glibc-functions/openpty.texi: More supported platforms.
31553
31554 2010-03-21  Bruno Haible  <bruno@clisp.org>
31555
31556         setenv: Tweaks.
31557         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31558         the test program.
31559         * doc/posix-functions/setenv.texi: Update platforms list.
31560
31561 2010-03-21  Bruno Haible  <bruno@clisp.org>
31562
31563         New module 'unlockpt'.
31564         * lib/unlockpt.c: New file, from glibc with modifications.
31565         * m4/unlockpt.m4: New file.
31566         * modules/unlockpt: New file.
31567         * lib/stdlib.in.h (unlockpt): New declaration.
31568         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31569         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31570         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31571         HAVE_UNLOCKPT.
31572         * doc/posix-functions/unlockpt.texi: Mention the new module.
31573         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31574         * config/srclist.txt: Add unlockpt.c (commented).
31575
31576 2010-03-21  Jim Meyering  <meyering@redhat.com>
31577
31578         maint.mk: prohibit inclusion of "intprops.h" without use
31579         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31580
31581 2010-03-21  Bruno Haible  <bruno@clisp.org>
31582
31583         New module 'grantpt'.
31584         * lib/grantpt.c: New file, from glibc with modifications.
31585         * m4/grantpt.m4: New file.
31586         * modules/grantpt: New file.
31587         * lib/stdlib.in.h (grantpt): New declaration.
31588         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31589         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31590         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31591         HAVE_GRANTPT.
31592         * doc/posix-functions/grantpt.texi: Mention the new module.
31593         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31594         * config/srclist.txt: Add grantpt.c (commented).
31595
31596 2010-03-21  Bruno Haible  <bruno@clisp.org>
31597
31598         New module 'pt_chown'.
31599         * lib/pt_chown.c: New file, from glibc with modifications.
31600         * lib/pty-private.h: New file, from glibc with modifications.
31601         * modules/pt_chown: New file.
31602         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31603
31604 2010-03-21  Bruno Haible  <bruno@clisp.org>
31605
31606         Tests for module 'ptsname'.
31607         * modules/ptsname-tests: New file.
31608         * tests/test-ptsname.c: New file.
31609
31610         New module 'ptsname'.
31611         * lib/ptsname.c: New file, from glibc with modifications.
31612         * m4/ptsname.m4: New file.
31613         * modules/ptsname: New file.
31614         * lib/stdlib.in.h (ptsname): New declaration.
31615         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31616         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31617         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31618         HAVE_PTSNAME.
31619         * doc/posix-functions/ptsname.texi: Mention the new module.
31620         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31621         * config/srclist.txt: Add ptsname.c (commented).
31622
31623 2010-03-21  Bruno Haible  <bruno@clisp.org>
31624
31625         Tests for module 'ttyname_r'.
31626         * modules/ttyname_r-tests: New file.
31627         * tests/test-ttyname_r.c: New file.
31628
31629         New module 'ttyname_r'.
31630         * lib/ttyname_r.c: New file.
31631         * m4/ttyname_r.m4: New file.
31632         * modules/ttyname_r: New file.
31633         * lib/unistd.in.h (ttyname_r): New declaration.
31634         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31635         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31636         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31637         HAVE_TTYNAME_R.
31638         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31639         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31640
31641 2010-03-20  Bruno Haible  <bruno@clisp.org>
31642
31643         signal: Undefine macro definitions in C++ mode.
31644         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31645         sigfillset): Undefine macro definitions from the system header in C++
31646         mode.
31647         Reported by John W. Eaton <jwe@gnu.org>.
31648
31649 2010-03-20  Bruno Haible  <bruno@clisp.org>
31650
31651         Ensure no #include statements inside extern "C" { ... }.
31652         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31653         contain #include statements.
31654         * lib/time.in.h: Likewise.
31655
31656 2010-03-20  Bruno Haible  <bruno@clisp.org>
31657
31658         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31659         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31660         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31661         Reported by John W. Eaton <jwe@gnu.org>.
31662
31663 2010-03-20  Bruno Haible  <bruno@clisp.org>
31664
31665         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31666         Reported by Jim Meyering.
31667
31668 2010-03-20  Bruno Haible  <bruno@clisp.org>
31669
31670         pipe: Set errno upon failure.
31671         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31672         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31673         errno value in error message.
31674
31675 2010-03-20  Bruno Haible  <bruno@clisp.org>
31676             Jim Meyering  <meyering@redhat.com>
31677
31678         lchown: Avoid "unused variable" warning.
31679         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31680
31681 2010-03-20  Bruno Haible  <bruno@clisp.org>
31682
31683         Work around unlink() bug on MacOS X 10.5.6.
31684         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31685         attempting to unlink a parent directory.
31686         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31687         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31688         activate for the replacement function.
31689         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31690
31691 2010-03-20  Bruno Haible  <bruno@clisp.org>
31692
31693         Fix link errors on Solaris 8.
31694         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31695         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31696
31697 2010-03-19  Jim Meyering  <meyering@redhat.com>
31698
31699         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31700         The _LIBC implementation of build_range_exp correctly honors the
31701         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31702         However, the non-_LIBC implementation would ignore that syntax-bit
31703         flag and return REG_ERANGE unconditionally.
31704         This change makes it honor that flag.
31705         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31706         Make two pointer parameters "const".
31707         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31708         (parse_bracket_exp): Update caller.
31709
31710         regex.m4: correct the reversed range endpoint ([b-a]) test
31711         * m4/regex.m4: When requiring that [b-a] evoke failure,
31712         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31713         test pass once again for x86-based systems.
31714
31715 2010-03-19  Bruno Haible  <bruno@clisp.org>
31716
31717         scandir: Fix link error on Solaris 8.
31718         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31719         macros.
31720
31721 2010-03-19  Bruno Haible  <bruno@clisp.org>
31722
31723         getusershell: Fix documentation.
31724         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31725         module.
31726         * doc/glibc-functions/setusershell.texi: Likewise.
31727
31728         getusershell: Provide declaration, missing on Solaris 9.
31729         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31730         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31731         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31732         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31734         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31735         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31736         HAVE_GETUSERSHELL.
31737         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31738
31739 2010-03-19  Bruno Haible  <bruno@clisp.org>
31740
31741         wctype: Provide iswblank function.
31742         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31743         exists and is fine.
31744         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31745         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31746         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31747         * doc/posix-functions/iswblank.texi: Update.
31748
31749 2010-03-19  Bruno Haible  <bruno@clisp.org>
31750
31751         Tests of module 'pty' in C++ mode.
31752         * modules/pty-tests: New file.
31753         * tests/test-pty-c++.cc: New file.
31754         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31755
31756 2010-03-19  Eric Blake  <eblake@redhat.com>
31757
31758         logb: fix documentation
31759         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31760         1.5 declaration bug.
31761
31762         forkpty, openpty: prefer glibc's const-safe prototype
31763         * lib/forkpty.c (rpl_forkpty): New file.
31764         * lib/openpty.c (rpl_openpty): Likewise.
31765         * modules/forkpty (Files): Distribute it.
31766         * modules/openpty (Files): Likewise.
31767         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31768         check...
31769         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31770         replacement for for non-const BSD signature.
31771         * modules/pty (Makefile.am): Substitute witnesses.
31772         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31773         * tests/test-forkpty.c: Update signature check.
31774         * tests/test-openpty.c: Likewise.
31775         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31776         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31777
31778         forkpty, openpty: split functions into new modules
31779         * modules/pty (Makefile.am): Substitute new witnesses.
31780         (Libraries): Move library detection...
31781         * modules/forkpty: ...into new module.
31782         * modules/openpty: Another new module.
31783         * modules/pty-tests: Rename and split...
31784         * modules/forkpty-tests: ...to this...
31785         * modules/openpty-tests: ...and this.
31786         * tests/test-pty.c: Rename and split...
31787         * tests/test-forkpty.c: ...to this...
31788         * tests/test-openpty.c: ...and this.
31789         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31790         (gl_PTY): Split library searching...
31791         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31792         (gl_FORKPTY, gl_OPENPTY): New macros.
31793         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31794         * NEWS: Mention the split.
31795         * MODULES.html.sh (Misc): Document the modules.
31796         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31797         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31798
31799         pty: improve replacement header
31800         * lib/pty.in.h: New file.
31801         * modules/pty (Files): Ship it.
31802         (Makefile.am): Always build replacement.
31803         * m4/pty.m4: Rename...
31804         * m4/pty_h.m4: ...to this.
31805         (gl_PTY): Modernize setting of witness macros; update check of
31806         forkpty to take proper advantage of cache.
31807         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31808
31809         getopt: avoid compiler warning
31810         * lib/getopt.c (attribute_hidden): Remove unused macro.
31811
31812 2010-03-18  Bruno Haible  <bruno@clisp.org>
31813
31814         Fix link errors on Solaris 8.
31815         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31816         * modules/search-tests (test_search_c___LDADD): Likewise.
31817         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31818         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31819         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31820         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31821         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31822         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31823         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31824
31825 2010-03-18  Bruno Haible  <bruno@clisp.org>
31826
31827         Fix bug introduced on 2010-03-14.
31828         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31829         (gl_SPAWN_H): Require it.
31830         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31831         Reported by Simon Josefsson.
31832
31833 2010-03-18  Bruno Haible  <bruno@clisp.org>
31834
31835         Fix typo introduced on 2009-12-31.
31836         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31837         posix_spawn_file_actions_adddup2.
31838
31839 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31840         and Eric Blake  <eblake@redhat.com>
31841
31842         test-vc-list-files-git: make more robust
31843         * tests/test-vc-list-files-git.sh: Unset problematic environment
31844         variables.  Chain commands together.
31845
31846 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31847
31848         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31849         `AC_CHECK_DECL' invocation.
31850
31851 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31852
31853         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31854         appears before executable statements. Suggested by Petr Sumbera
31855         <Petr.Sumbera@Sun.COM>.
31856
31857 2010-03-14  Bruno Haible  <bruno@clisp.org>
31858
31859         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31860         portability problems. Instead use a simpler test.
31861         (main): Check that invalid arguments are rejected only on Linux.
31862
31863 2010-03-14  Bruno Haible  <bruno@clisp.org>
31864
31865         Fix bug introduced on 2009-12-31.
31866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31867         gl_PREREQ_SYS_H_WINSOCK2 always.
31868         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31869         SYS_SOCKET_H variable.
31870         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31871         Update comments.
31872         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31873         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31874         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31876         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31877
31878 2010-03-14  Bruno Haible  <bruno@clisp.org>
31879
31880         Fix values returned by sinl, cosl.
31881         * lib/trigl.h: Add specification comments.
31882         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31883         that combines the values from the precomputed table with the values of
31884         the Chebyshev polynomials.
31885
31886 2010-03-14  Bruno Haible  <bruno@clisp.org>
31887
31888         Fix compilation error when modules 'posix_spawn[p]' are not used.
31889         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31890         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31891
31892 2010-03-14  Bruno Haible  <bruno@clisp.org>
31893
31894         Fix compilation error on mingw when module 'time_r' is not used.
31895         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31896         is 1.
31897         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31898         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31899         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31901
31902 2010-03-14  Bruno Haible  <bruno@clisp.org>
31903
31904         Fix compilation error with Sun C.
31905         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31906         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31907         instead of GCC specific ULONG_LONG_MAX.
31908         * lib/xstrtoll.c: Likewise.
31909         * lib/xstrtoull.c: Likewise.
31910
31911 2010-03-13  Bruno Haible  <bruno@clisp.org>
31912
31913         Allow the user to disable C++ code and tests.
31914         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31915         (gl_PROG_ANSI_CXX): Require it.
31916
31917 2010-03-13  Bruno Haible  <bruno@clisp.org>
31918
31919         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31920         cases.
31921
31922 2010-03-13  Bruno Haible  <bruno@clisp.org>
31923
31924         Test that gnulib does not break the standard C++ headers.
31925         * tests/test-locale-c++2.cc: New file.
31926         * modules/locale-tests (Files): Add it.
31927         (Makefile.am): Compile it for test-locale-c++.
31928         * tests/test-math-c++2.cc: New file.
31929         * modules/math-tests (Files): Add it.
31930         (Makefile.am): Compile it for test-math-c++.
31931         * tests/test-signal-c++2.cc: New file.
31932         * modules/signal-tests (Files): Add it.
31933         (Makefile.am): Compile it for test-signal-c++.
31934         * tests/test-stdio-c++2.cc: New file.
31935         * modules/stdio-tests (Files): Add it.
31936         (Makefile.am): Compile it for test-stdio-c++.
31937         * tests/test-stdlib-c++2.cc: New file.
31938         * modules/stdlib-tests (Files): Add it.
31939         (Makefile.am): Compile it for test-stdlib-c++.
31940         * tests/test-string-c++2.cc: New file.
31941         * modules/string-tests (Files): Add it.
31942         (Makefile.am): Compile it for test-string-c++.
31943         * tests/test-time-c++2.cc: New file.
31944         * modules/time-tests (Files): Add it.
31945         (Makefile.am): Compile it for test-time-c++.
31946         Reported by John W. Eaton <jwe@gnu.org>.
31947
31948 2010-03-13  Bruno Haible  <bruno@clisp.org>
31949
31950         * gnulib-tool (func_usage): Clarify which options are available for
31951         --create-testdir and --create-megatestdir.
31952
31953 2010-03-13  Bruno Haible  <bruno@clisp.org>
31954
31955         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31956         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31957         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31958         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31959         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31960         when appropriate.
31961         Reported by Jim Meyering.
31962
31963 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31964
31965         * gnulib-tool (func_import): Explain origin of code.
31966
31967 2010-03-12  Bruno Haible  <bruno@clisp.org>
31968
31969         Fix problem with automake's definition of CXXLINK.
31970         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31971         Reported by Simon Josefsson and Ludovic Courtès.
31972
31973 2010-03-12  Bruno Haible  <bruno@clisp.org>
31974
31975         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31976         stable releases.
31977
31978 2010-03-11  Bruno Haible  <bruno@clisp.org>
31979
31980         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31981         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31982         whether the system provides one variant or multiple variants of the
31983         function.
31984         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31985         C++ compilers.
31986         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31987         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31988         Reported by Jim Meyering.
31989
31990 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31991
31992         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31993
31994 2010-03-08  Bruno Haible  <bruno@clisp.org>
31995
31996         gnulib-tool: Add support for --libtool in --create-testdir.
31997         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31998         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31999
32000 2010-03-08  Eric Blake  <eblake@redhat.com>
32001
32002         gnulib-tool.texi: mention possibility of git submodule
32003         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32004         submodules.
32005         * doc/.gitignore: Ignore another generated file.
32006
32007 2010-03-08  Karl Berry  <karl@gnu.org>
32008
32009         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32010         of committing gnulib files while skipping others.
32011
32012 2010-03-07  Bruno Haible  <bruno@clisp.org>
32013
32014         Tests of module 'wctype' in C++ mode.
32015         * tests/test-wctype-c++.cc: New file.
32016         * modules/wctype-tests (Files): Add it and tests/signature.h.
32017         (Depends-on): Add ansi-c++-opt.
32018         (Makefile.am): Arrange to compile and run test-wctype-c++.
32019
32020         Tests of module 'wchar' in C++ mode.
32021         * tests/test-wchar-c++.cc: New file.
32022         * modules/wchar-tests (Files): Add it and tests/signature.h.
32023         (Depends-on): Add ansi-c++-opt.
32024         (Makefile.am): Arrange to compile and run test-wchar-c++.
32025         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32026         gl_MODULE_INDICATOR.
32027
32028         Tests of module 'unistd' in C++ mode.
32029         * tests/test-unistd-c++.cc: New file.
32030         * modules/unistd-tests (Files): Add it and tests/signature.h.
32031         (Depends-on): Add ansi-c++-opt.
32032         (Makefile.am): Arrange to compile and run test-unistd-c++.
32033         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32034         gl_MODULE_INDICATOR.
32035
32036         Tests of module 'time' in C++ mode.
32037         * tests/test-time-c++.cc: New file.
32038         * modules/time-tests (Files): Add it and tests/signature.h.
32039         (Depends-on): Add ansi-c++-opt.
32040         (Makefile.am): Arrange to compile and run test-time-c++.
32041         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32042
32043         Tests of module 'sys_time' in C++ mode.
32044         * tests/test-sys_time-c++.cc: New file.
32045         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32046         (Depends-on): Add ansi-c++-opt.
32047         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32048         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32049         gl_MODULE_INDICATOR.
32050
32051         Tests of module 'sys_stat' in C++ mode.
32052         * tests/test-sys_stat-c++.cc: New file.
32053         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32054         (Depends-on): Add ansi-c++-opt.
32055         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32056         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32057         gl_MODULE_INDICATOR.
32058
32059         Tests of module 'sys_socket' in C++ mode.
32060         * tests/test-sys_socket-c++.cc: New file.
32061         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32062         (Depends-on): Add ansi-c++-opt.
32063         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32064         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32065         gl_MODULE_INDICATOR.
32066
32067         Tests of module 'sys_select' in C++ mode.
32068         * tests/test-sys_select-c++.cc: New file.
32069         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32070         (Depends-on): Add ansi-c++-opt.
32071         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32072         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32073         gl_MODULE_INDICATOR.
32074
32075         Tests of module 'sys_ioctl' in C++ mode.
32076         * tests/test-sys_ioctl-c++.cc: New file.
32077         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32078         (Depends-on): Add ansi-c++-opt.
32079         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32080         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32081         gl_MODULE_INDICATOR.
32082
32083         Tests of module 'string' in C++ mode.
32084         * tests/test-string-c++.cc: New file.
32085         * modules/string-tests (Files): Add it and tests/signature.h.
32086         (Depends-on): Add ansi-c++-opt.
32087         (Makefile.am): Arrange to compile and run test-string-c++.
32088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32089         gl_MODULE_INDICATOR.
32090
32091         Tests of module 'stdlib' in C++ mode.
32092         * tests/test-stdlib-c++.cc: New file.
32093         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32094         (Depends-on): Add ansi-c++-opt.
32095         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32096         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32097         gl_MODULE_INDICATOR.
32098
32099         Tests of module 'stdio' in C++ mode.
32100         * tests/test-stdio-c++.cc: New file.
32101         * modules/stdio-tests (Files): Add it and tests/signature.h.
32102         (Depends-on): Add ansi-c++-opt.
32103         (Makefile.am): Arrange to compile and run test-stdio-c++.
32104         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32105         gl_MODULE_INDICATOR.
32106
32107         Tests of module 'spawn' in C++ mode.
32108         * tests/test-spawn-c++.cc: New file.
32109         * modules/spawn-tests (Files): Add it and tests/signature.h.
32110         (Depends-on): Add ansi-c++-opt.
32111         (Makefile.am): Arrange to compile and run test-spawn-c++.
32112         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32113         gl_MODULE_INDICATOR.
32114
32115         Tests of module 'signal' in C++ mode.
32116         * tests/test-signal-c++.cc: New file.
32117         * modules/signal-tests (Files): Add it and tests/signature.h.
32118         (Depends-on): Add ansi-c++-opt.
32119         (Makefile.am): Arrange to compile and run test-signal-c++.
32120         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32121         gl_MODULE_INDICATOR.
32122
32123         Tests of module 'search' in C++ mode.
32124         * tests/test-search-c++.cc: New file.
32125         * modules/search-tests (Files): Add it and tests/signature.h.
32126         (Depends-on): Add ansi-c++-opt.
32127         (Makefile.am): Arrange to compile and run test-search-c++.
32128         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32129         gl_MODULE_INDICATOR.
32130
32131         Tests of module 'math' in C++ mode.
32132         * tests/test-math-c++.cc: New file.
32133         * modules/math-tests (Files): Add it and tests/signature.h.
32134         (Depends-on): Add ansi-c++-opt.
32135         (Makefile.am): Arrange to compile and run test-math-c++.
32136         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32137
32138         Tests of module 'locale' in C++ mode.
32139         * tests/test-locale-c++.cc: New file.
32140         * modules/locale-tests (Files): Add it and tests/signature.h.
32141         (Depends-on): Add ansi-c++-opt.
32142         (Makefile.am): Arrange to compile and run test-locale-c++.
32143         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32144         gl_MODULE_INDICATOR.
32145
32146         Tests of module 'langinfo' in C++ mode.
32147         * tests/test-langinfo-c++.cc: New file.
32148         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32149         (Depends-on): Add ansi-c++-opt.
32150         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32151         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32152         gl_MODULE_INDICATOR.
32153
32154         Tests of module 'iconv-h' in C++ mode.
32155         * tests/test-iconv-h-c++.cc: New file.
32156         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32157         (Depends-on): Add ansi-c++-opt.
32158         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32159
32160         Tests of module 'glob' in C++ mode.
32161         * tests/test-glob-c++.cc: New file.
32162         * modules/glob-tests (Files): Add it.
32163         (Depends-on): Add ansi-c++-opt.
32164         (Makefile.am): Arrange to compile and run test-glob-c++.
32165
32166         Tests of module 'fcntl-h' in C++ mode.
32167         * tests/test-fcntl-h-c++.cc: New file.
32168         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32169         (Depends-on): Add ansi-c++-opt.
32170         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32171         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32172         gl_MODULE_INDICATOR.
32173
32174         Tests of module 'dirent' in C++ mode.
32175         * tests/test-dirent-c++.cc: New file.
32176         * modules/dirent-tests (Files): Add it and tests/signature.h.
32177         (Depends-on): Add ansi-c++-opt.
32178         (Makefile.am): Arrange to compile and run test-dirent-c++.
32179         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32180         gl_MODULE_INDICATOR.
32181
32182         New module 'ansi-c++-opt'.
32183         * modules/ansi-c++-opt: New file.
32184         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32185
32186         Document C++ namespace mode.
32187         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32188
32189         wctype: Avoid #define replacements in C++ mode.
32190         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32191         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32192         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32193         In C++, define a namespaced alias symbol.
32194         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32195         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32196         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32197         rule.
32198
32199         wchar: Avoid #define replacements in C++ mode.
32200         * lib/wchar.in.h: Include c++defs.h.
32201         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32202         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32203         symbol.
32204         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32205         * modules/wchar (Depends-on): Add c++defs.
32206         (Makefile.am): Update wchar.h rule.
32207
32208         unistd: Avoid #define replacements in C++ mode.
32209         * lib/unistd.in.h: Include c++defs.h.
32210         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32211         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32212         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32213         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32214         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32215         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32216         symbol.
32217         (environ): Update.
32218         * modules/unistd (Depends-on): Add c++defs.
32219         (Makefile.am): Update unistd.h rule.
32220
32221         time: Avoid #define replacements in C++ mode.
32222         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32223         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32224         define a namespaced alias symbol.
32225         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32226         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32227         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32228         * modules/time (Depends-on): Add c++defs, warn-on-use.
32229         (Makefile.am): Update time.h rule.
32230         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32231         * modules/nanosleep (configure.ac): Likewise.
32232         * modules/strptime (configure.ac): Likewise.
32233         * modules/timegm (configure.ac): Likewise.
32234
32235         sys_time: Avoid #define replacements in C++ mode.
32236         * lib/sys_time.in.h: Include c++defs.h.
32237         (gettimeofday): In C++, define a namespaced alias symbol.
32238         * modules/sys_time (Depends-on): Add c++defs.
32239         (Makefile.am): Update sys/time.h rule.
32240
32241         sys_stat: Avoid #define replacements in C++ mode.
32242         * lib/sys_stat.in.h: Include c++defs.h.
32243         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32244         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32245         namespaced alias symbol.
32246         In C++, define a namespaced alias symbol.
32247         * modules/sys_stat (Depends-on): Add c++defs.
32248         (Makefile.am): Update sys/stat.h rule.
32249
32250         sys_socket: Avoid #define replacements in C++ mode.
32251         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32252         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32253         definitions also when the system has a <sys/socket.h>.
32254         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32255         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32256         In C++, define a namespaced alias symbol.
32257         * modules/sys_socket (Depends-on): Add c++defs.
32258         (Makefile.am): Update sys/socket.h rule.
32259
32260         sys_select: Avoid #define replacements in C++ mode.
32261         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32262         definitions also when the system has a <sys/select.h>.
32263         (select): In C++, define a namespaced alias symbol.
32264         * modules/sys_select (Depends-on): Add c++defs.
32265         (Makefile.am): Update sys/select.h rule.
32266
32267         sys_ioctl: Avoid #define replacements in C++ mode.
32268         * lib/sys_ioctl.in.h: Include c++defs.h.
32269         (ioctl): In C++, define a namespaced alias symbol.
32270         * modules/sys_ioctl (Depends-on): Add c++defs.
32271         (Makefile.am): Update sys/ioctl.h rule.
32272
32273         string: Avoid #define replacements in C++ mode.
32274         * lib/string.in.h: Include c++defs.h.
32275         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32276         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32277         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32278         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32279         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32280         * modules/string (Depends-on): Add c++defs.
32281         (Makefile.am): Update string.h rule.
32282
32283         stdlib: Avoid #define replacements in C++ mode.
32284         * lib/stdlib.in.h: Include c++defs.h.
32285         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32286         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32287         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32288         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32289         symbol.
32290         * modules/stdlib (Depends-on): Add c++defs.
32291         (Makefile.am): Update stdlib.h rule.
32292
32293         stdio: Avoid #define replacements in C++ mode.
32294         * lib/stdio.in.h: Include c++defs.h.
32295         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32296         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32297         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32298         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32299         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32300         namespaced alias symbol.
32301         * modules/stdio (Depends-on): Add c++defs.
32302         (Makefile.am): Update stdio.h rule.
32303
32304         spawn: Avoid #define replacements in C++ mode.
32305         * lib/spawn.in.h: Include c++defs.h.
32306         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32307         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32308         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32309         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32310         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32311         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32312         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32313         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32314         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32315         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32316         In C++, define a namespaced alias symbol.
32317         * modules/spawn (Depends-on): Add c++defs.
32318         (Makefile.am): Update spawn.h rule.
32319
32320         signal: Avoid #define replacements in C++ mode.
32321         * lib/signal.in.h: Include c++defs.h.
32322         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32323         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32324         namespaced alias symbol.
32325         * modules/signal (Depends-on): Add c++defs.
32326         (Makefile.am): Update signal.h rule.
32327
32328         search: Avoid #define replacements in C++ mode.
32329         * lib/search.in.h: Include c++defs.h.
32330         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32331         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32332         symbol.
32333         * modules/search (Depends-on): Add c++defs.
32334         (Makefile.am): Update search.h rule.
32335
32336         math: Avoid #define replacements in C++ mode.
32337         * lib/math.in.h: Include c++defs.h.
32338         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32339         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32340         trunc, truncl): In C++, define a namespaced alias symbol.
32341         * modules/math (Depends-on): Add c++defs.
32342         (Makefile.am): Update math.h rule.
32343
32344         locale: Avoid #define replacements in C++ mode.
32345         * lib/locale.in.h: Include c++defs.h.
32346         (duplocale): In C++, define a namespaced alias symbol.
32347         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32348         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32349         * modules/locale (Depends-on): Add c++defs.
32350         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32351
32352         langinfo: Avoid #define replacements in C++ mode.
32353         * lib/langinfo.in.h: Include c++defs.h.
32354         (nl_langinfo): In C++, define a namespaced alias symbol.
32355         * modules/langinfo (Depends-on): Add c++defs.
32356         (Makefile.am): Update langinfo.h rule.
32357
32358         iconv-h: Avoid #define replacements in C++ mode.
32359         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32360         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32361         symbol.
32362         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32363         whenever iconv is present.
32364         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32365         (Makefile.am): Update iconv.h rule.
32366
32367         glob: Avoid #define replacements in C++ mode.
32368         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32369         (_gl_glob_errfunc_fn): New type.
32370         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32371         symbol.
32372         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32373         (Makefile.am): Update glob.h rule.
32374
32375         fcntl-h: Avoid #define replacements in C++ mode.
32376         * lib/fcntl.in.h: Include c++defs.h.
32377         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32378         * modules/fcntl-h (Depends-on): Add c++defs.
32379         (Makefile.am): Update fcntl.h rule.
32380
32381         dirent: Avoid #define replacements in C++ mode.
32382         * lib/dirent.in.h: Include c++defs.h.
32383         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32384         namespaced alias symbol.
32385         (dirfd): Update declaration.
32386         * modules/dirent (Depends-on): Add c++defs.
32387         (Makefile.am): Update dirent.h rule.
32388
32389         ctype: Make it usable in C++ code.
32390         * lib/ctype.in.h: Include c++defs.h.
32391         (isblank): Declare as extern "C".
32392         * modules/ctype (Depends-on): Add c++defs.
32393         (Makefile.am): Update ctype.h rule.
32394
32395         New module 'c++defs'.
32396         * modules/c++defs: New file.
32397         * build-aux/c++defs.h: New file.
32398         Reported by John W. Eaton <jwe@gnu.org>.
32399
32400 2010-03-07  Bruno Haible  <bruno@clisp.org>
32401
32402         logb: Provide missing declaration for Cygwin.
32403         * lib/math.in.h (logb): New declaration.
32404         * m4/logb.m4: New file.
32405         * modules/logb (Files): Add m4/logb.m4.
32406         (Depends-on): Add math.
32407         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32408         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32410         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32411         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32412
32413 2010-03-07  Bruno Haible  <bruno@clisp.org>
32414
32415         Fix test-cond link error.
32416         * tests/test-cond.c: Include <stdio.h>.
32417
32418 2010-03-07  Bruno Haible  <bruno@clisp.org>
32419
32420         Fix test-dirent-safer link error.
32421         * modules/dirent-safer-tests (Makefile.am): Define
32422         test_dirent_safer_LDADD.
32423
32424 2010-03-07  Bruno Haible  <bruno@clisp.org>
32425
32426         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32427         among default module list.
32428
32429 2010-03-07  Bruno Haible  <bruno@clisp.org>
32430
32431         Fix link error on platforms with GNU libiconv.
32432         * modules/unistr/u8-strcoll-tests (Makefile): Define
32433         test_u8_strcoll_LDADD.
32434         * modules/unistr/u16-strcoll-tests (Makefile): Define
32435         test_u16_strcoll_LDADD.
32436         * modules/unistr/u32-strcoll-tests (Makefile): Define
32437         test_u32_strcoll_LDADD.
32438
32439 2010-03-07  Bruno Haible  <bruno@clisp.org>
32440
32441         Use POSIX declarations for socket functions.
32442         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32443         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32444         rpl_sendto): Change declaration to match POSIX.
32445         * lib/connect.c (rpl_connect): Likewise.
32446         * lib/accept.c (rpl_accept): Likewise.
32447         * lib/bind.c (rpl_bind): Likewise.
32448         * lib/getpeername.c (rpl_getpeername): Likewise.
32449         * lib/getsockname.c (rpl_getsockname): Likewise.
32450         * lib/recv.c (rpl_recv): Likewise.
32451         * lib/send.c (rpl_send): Likewise.
32452         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32453         * lib/sendto.c (rpl_sendto): Likewise.
32454
32455 2010-03-06  Bruno Haible  <bruno@clisp.org>
32456
32457         Clarify access, euidaccess, faccessat.
32458         * doc/posix-functions/faccessat.texi: Mention security problem under
32459         "Other problems", not "Portability problems".
32460         * doc/posix-functions/access.texi: Likewise. Mention a related security
32461         problem.
32462         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32463         * lib/euidaccess.c: Add comments about platforms.
32464         * lib/unistd.in.h (access, euidaccess): Add warnings.
32465
32466 2010-03-07  Bruno Haible  <bruno@clisp.org>
32467
32468         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32469         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32470         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32471         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32472         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32473         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32474         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32475         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32476         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32477         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32478         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32479         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32480         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32481         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32482         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32483         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32484         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32485         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32486         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32487         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32488         Likewise.
32489         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32490         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32491         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32492         Likewise.
32493         * tests/test-spawn.c (main): Make it work when
32494         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32495
32496 2010-03-07  Bruno Haible  <bruno@clisp.org>
32497
32498         Fix incorrect Makefile.am generation in German locale.
32499         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32500         Execute sed command with character range in C locale.
32501
32502 2010-03-06  Bruno Haible  <bruno@clisp.org>
32503
32504         Tests for module 'iconv-h'.
32505         * modules/iconv-h-tests: New file.
32506         * tests/test-iconv-h.c: New file.
32507
32508         New module 'iconv-h'.
32509         * modules/iconv-h: New file.
32510         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32511         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32512         (configure.ac): Remove gl_ICONV_H.
32513         (Makefile.am): Remove rule for iconv.h.
32514
32515 2010-03-06  Bruno Haible  <bruno@clisp.org>
32516
32517         More consistent naming of *.m4 files.
32518         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32519         * modules/wctype (Files): Update.
32520
32521         More consistent naming of *.m4 files.
32522         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32523         * modules/wchar (Files): Update.
32524
32525 2010-03-06  Jim Meyering  <meyering@redhat.com>
32526
32527         euidaccess: relax license to LGPLv2+
32528         * modules/euidaccess (License): Relax to LGPLv2+.
32529
32530 2010-03-06  Bruno Haible  <bruno@clisp.org>
32531
32532         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32533         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32534         (Makefile.am): Augment lib_SOURCES instead.
32535
32536 2010-03-04  Jim Meyering  <meyering@redhat.com>
32537
32538         utime: remove obsolete module
32539         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32540         unnecessary for years, and has been marked as obsolete for 10 months.
32541         * modules/utime: Remove file.
32542         * lib/utime.c: Remove file.
32543         * m4/utime.m4: Remove file.
32544         * m4/utimes-null.m4: Remove file.
32545         * doc/posix-functions/utime.texi (utime): Remove reference to
32546         the module.  Move the sole "fixed by gnulib" item into the
32547         "problems not fixed by Gnulib" list.
32548         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32549
32550 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32551
32552         * modules/exit (License): Relax license to LGPLv2+.
32553         (Status): Mark as obsolete.
32554         * NEWS: Mention deprecated 'exit' module.
32555         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32556         of now obsolete 'exit'.
32557
32558 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32559
32560         fts-lgpl: remove unused module
32561         * modules/fts-lgpl: Remove.
32562         * MODULES.html.sh (func_all_modules): Adjust.
32563         * check-module (find_included_lib_files): Adjust.
32564         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32565
32566 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32567
32568         copy-acl: enhance Solaris ACL error handling
32569         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32570         * lib/set-mode-acl.c (qset_acl): Likewise.
32571
32572 2010-03-02  Bruno Haible  <bruno@clisp.org>
32573
32574         spawn: Don't override the system defined values on FreeBSD 8.
32575         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32576         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32577         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32578         if HAVE_POSIX_SPAWN is 1.
32579         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32580
32581 2010-03-01  Bruno Haible  <bruno@clisp.org>
32582
32583         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32584         regarding Automake.
32585
32586 2010-02-25  Bruno Haible  <bruno@clisp.org>
32587
32588         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32589         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32590         setting, not afterwards.
32591         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32592
32593 2010-02-24  Eric Blake  <eblake@redhat.com>
32594
32595         bootstrap, git-version-gen: use timestamp
32596         * build-aux/git-version-gen (scriptversion): Force UTC.
32597         * build-aux/bootstrap (scriptversion): New variable.
32598
32599         bootstrap: allow older git
32600         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32601         older than 1.6.4.  Requested by the libvirt project.
32602
32603 2010-02-23  Eric Blake  <eblake@redhat.com>
32604
32605         warn-on-use: work with old autoconf
32606         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32607         AS_VAR semantics of autoconf 2.60.
32608         Reported by Bruno Haible.
32609
32610         bootstrap: improve some comments
32611         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32612         clarification comments.
32613
32614         gettimeofday: provide correct function
32615         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32616         when replacement is declared, otherwise provide gettimeofday.
32617         Reported by Michael Goffioul.
32618
32619 2010-02-23  Jim Meyering  <meyering@redhat.com>
32620
32621         lib-ignore: relax license to "unlimited", not LGPLv2+
32622         * modules/lib-ignore (License): Relax to "unlimited".
32623
32624 2010-02-23  Jim Meyering  <meyering@redhat.com>
32625
32626         lib-ignore: relax license to LGPLv2+
32627         * modules/lib-ignore (License): Relax to LGPLv2+.
32628
32629 2010-02-22  Eric Blake  <eblake@redhat.com>
32630
32631         lseek: avoid bash 3.2 broken pipe bug
32632         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32633         warning from bash 3.2.
32634         Reported by Ben Pfaff, with analysis from Bruno Haible.
32635
32636         bootstrap: support non-FSF copyright holder
32637         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32638         bootstrap.conf override of COPYRIGHT_HOLDER.
32639         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32640
32641         bootstrap: interoperate with gettext 0.14.1
32642         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32643
32644         bootstrap: allow for alternate submodule location
32645         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32646         hardcoding submodule location.
32647         (gnulib_mk): Allow direct use of Makefile.am.
32648
32649         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32650         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32651         rather than reconfiguring where the submodule points.
32652
32653         gettimeofday: restore support for platforms that lack function
32654         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32655         replacement if function is missing.
32656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32657         * modules/sys_time (Makefile.am): Substitute it.
32658         * lib/sys_time.in.h (gettimeofday): Check it.
32659         Reported by Michael Goffioul.
32660
32661 2010-02-21  Bruno Haible  <bruno@clisp.org>
32662
32663         * lib/stdio.in.h (obstack_printf): Fix typo.
32664
32665 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32666
32667         vc-list-files: use bzr ls's -R option
32668         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32669         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32670
32671 2010-02-21  Jim Meyering  <meyering@redhat.com>
32672
32673         init.sh: fix EXEEXT shims to work also for names like test-prog
32674         * tests/init.sh: Re-exec a better shell, when needed.
32675         If the current shell lacks support for posix $(...), an init.sh-using
32676         test will now try to find a shell that supports that.  If EXEEXT is
32677         nonempty, we also require support for hyphen-in-alias-name and shell
32678         substitutions like ${var#glob}.  Failure to find such a shell results
32679         in a skipped test.
32680
32681 2010-02-21  Bruno Haible  <bruno@clisp.org>
32682
32683         Really work around around "broken pipe" error message from bash 3.2.
32684         * gnulib-tool (func_reset_sigpipe): Remove function.
32685         (echo): In bash 3.2, define to a function that uses printf.
32686         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32687
32688 2010-02-20  Bruno Haible  <bruno@clisp.org>
32689
32690         Restore support for automake 1.9.6 with autoconf 2.61.
32691         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32692         Reported by James Youngman <jay@gnu.org>.
32693
32694 2010-02-20  Bruno Haible  <bruno@clisp.org>
32695
32696         Improve *printf warning condition.
32697         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32698         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32699         and the function is overridden due to SIGPIPE emulation.
32700
32701 2010-02-20  Bruno Haible  <bruno@clisp.org>
32702
32703         * lib/stdio.in.h: Tweak comments.
32704
32705 2010-02-19  Bruno Haible  <bruno@clisp.org>
32706
32707         Make it easier to find modules. New gnulib-tool option '--find'.
32708         * gnulib-tool: New option --find.
32709         (func_usage): Document it.
32710         (func_sanitize_modulelist): New function, extracted from
32711         func_all_modules.
32712         (func_all_modules): Invoke it.
32713         * doc/gnulib-tool.texi (Which modules?): New node.
32714
32715 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32716
32717         * lib/sys_select.in.h: Provide select replacement even if
32718         sys/select.h exists on a system, for Interix.
32719
32720 2010-02-18  Jim Meyering  <meyering@redhat.com>
32721
32722         init.sh: don't use $(...) just yet
32723         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32724         to accommodate e.g., Solaris' /bin/sh.
32725
32726 2010-02-17  Bruno Haible  <bruno@clisp.org>
32727
32728         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32729         Reported by Ludovic Courtès <ludo@gnu.org>.
32730
32731 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32732
32733         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32734         linking with -lintl.
32735
32736 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32737
32738         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32739         if not provided by the system's netdb.h.  Reported by
32740         ludo@gnu.org (Ludovic Courtès).
32741
32742 2010-02-15  Jim Meyering  <meyering@redhat.com>
32743
32744         init.sh: improve portability and efficiency
32745         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32746         "dummy" in a for loop.
32747         Use '!', not '^' to select the complement of a character set used
32748         in a "case" statement.
32749         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32750         Suggestions from Eric Blake.
32751
32752         init.sh: automatically accommodate programs with the .exe suffix
32753         Automatically arrange for an invocation of "prog" to execute the
32754         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32755         may use the simpler "prog", yet still work when built on a system
32756         that requires specifying the added suffix.
32757         Do this by constructing a function named "prog" that invokes
32758         "prog.exe" for each .exe file in selected directories.
32759         * tests/init.sh (find_exe_basenames_): New function.
32760         (create_exe_shim_functions_): New function.
32761         (path_prepend_): Use it.
32762
32763         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32764         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32765         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32766
32767 2010-02-14  Jim Meyering  <meyering@redhat.com>
32768
32769         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32770         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32771         (sc_prohibit_hash_pjw_without_use): New rule.
32772
32773         maint.mk: allow the default upload destination dir to be overridden
32774         * top/maint.mk (upload_dest_dir_): Define with a default that
32775         preserves the status quo.
32776         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32777         Reported by Peter Simons.
32778
32779         maint.mk: prohibit inclusion of "hash.h" without_use
32780         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32781
32782 2010-02-10  Jim Meyering  <meyering@redhat.com>
32783
32784         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32785         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32786
32787 2010-02-09  Eric Blake  <ebb9@byu.net>
32788         and Bruno Haible  <bruno@clisp.org>
32789
32790         obstack-printf-posix: ensure declaration
32791         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32792         extracted from gl_FUNC_OBSTACK_PRINTF.
32793         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32794         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32795         Likewise.
32796         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32797         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32798         0.
32799
32800 2010-02-08  Bruno Haible  <bruno@clisp.org>
32801
32802         gnulib-tool: Fix typo in 2010-02-07 commit.
32803         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32804         Reported by Eric Blake.
32805
32806 2010-02-07  Bruno Haible  <bruno@clisp.org>
32807
32808         gnulib-tool: Fix up caching patches.
32809         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32810         option --no-cache. Use associative arrays when supported by the shell.
32811         (sed_comments): New variable.
32812         (modcache): Renamed from do_cache.
32813         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32814         abbreviate unnecessarily.
32815         (have_associative): New variable.
32816         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32817         way also for ksh and zsh.
32818         (func_init_sed_convert_to_cache_statements): New function, extracted
32819         from func_cache_lookup_module. Add support for associative arrays.
32820         Don't set the c_MODULE_cached variable here. Ignore all lines before
32821         the first field header. Remove only the final newline, not all trailing
32822         newlines. Support empty fields correctly. Limit the use of 'eval' to
32823         assignments.
32824         (func_get_description, func_get_status, func_get_notice,
32825         func_get_applicability, func_get_filelist, func_get_dependencies,
32826         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32827         func_get_automake_snippet, func_get_include_directive,
32828         func_get_link_directive, func_get_license, func_get_maintainer):
32829         Update documentation. List the unoptimized code first. Add support for
32830         associative arrays. Limit the use of 'eval' to assignments.
32831         (func_get_applicability): Undo stylistic pessimisations.
32832         (func_get_automake_snippet, func_get_include_directive): Reduce code
32833         duplication.
32834         (func_modules_transitive_closure, func_modules_add_dummy,
32835         func_modules_notice, func_modules_to_filelist, func_add_file,
32836         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32837         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32838         func_create_testdir, func_create_megatestdir): Update documentation.
32839
32840 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32841
32842         * gnulib-tool (func_cache_lookup_module): Store the module name
32843         belonging to the cache variable; error out if two different
32844         module names map to the same cache variable name.
32845
32846 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32847
32848         gnulib-tool: Make caching optional.
32849         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32850         Update matching short versions of --no-changelog.
32851         (func_usage): Update.
32852         (sed_extract_cache_prog): Renamed from ...
32853         (sed_extract_prog): ... this; revert to old extraction script.
32854         (func_get_description, func_get_status)
32855         (func_get_notice, func_get_applicability, func_get_filelist)
32856         (func_get_dependencies, func_get_autoconf_early_snippet)
32857         (func_get_autoconf_snippet, func_get_automake_snippet)
32858         (func_get_include_directive, func_get_link_directive)
32859         (func_get_license, func_get_maintainer): If $do_cache is false,
32860         use old, non-caching extraction scripts.
32861         Suggestion by Bruno Haible.
32862
32863 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32864
32865         gnulib-tool: cache module metainformation.
32866         * gnulib-tool (sed_extract_prog): Match newline before each
32867         header, and rewrite header to a shell variable suffix.
32868         (func_cache_var, func_cache_lookup_module): New functions,
32869         to turn a module name into a cache variable prefix, and to
32870         look up and cache module metainformation.
32871         (func_get_description, func_get_status)
32872         (func_get_notice, func_get_applicability, func_get_filelist)
32873         (func_get_dependencies, func_get_autoconf_early_snippet)
32874         (func_get_autoconf_snippet, func_get_automake_snippet)
32875         (func_get_include_directive, func_get_link_directive)
32876         (func_get_license, func_get_maintainer): Use
32877         func_cache_lookup_module.
32878
32879 2010-02-07  Bruno Haible  <bruno@clisp.org>
32880
32881         fnctl: Fix missing dependency.
32882         * modules/fcntl (Depends-on): Add getdtablesize.
32883         Reported by John W. Eaton <jwe@gnu.org>.
32884
32885 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32886
32887         Argp: fix recognition of short alias options.
32888
32889         * lib/argp-parse.c (convert_options): Fix improper use of
32890         `|' between character values.
32891         * tests/test-argp.c (group1_option): New alias option
32892         --read (-r).
32893         (group1_parser): Special handling for 'r'.
32894         (test15): New test case.
32895         (test_fun): Add test15.
32896         * tests/test-argp-2.sh: Update expected --help and --usage
32897         outputs.
32898
32899 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32900
32901         * tests/test-argp.c: Fix indentation.
32902
32903 2010-02-04  Eric Blake  <ebb9@byu.net>
32904
32905         gettimeofday: expose type of second argument
32906         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32907         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32908         * tests/test-gettimeofday.c: Use it to silence warning.
32909         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32910         the issue.
32911
32912 2010-02-03  Jim Meyering  <meyering@redhat.com>
32913
32914         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32915         * lib/regcomp.c (TYPE_SIGNED): Define.
32916         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32917
32918         regcomp.c: avoid a new -Wshadow warning
32919         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32920
32921 2010-02-01  Jim Meyering  <meyering@redhat.com>
32922
32923         removing useless parentheses in cpp #define directives
32924         For motivation, see commit c0221df4, "define STREQ(a,b)
32925         consistently, removing useless parentheses"
32926         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32927         * lib/mountlist.c (MNT_IGNORE): Likewise.
32928         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32929
32930 2010-02-01  Eric Blake  <ebb9@byu.net>
32931
32932         sys_time: use link-warning
32933         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32934         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32935         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32936         * modules/sys_time (Depends-on): Add warn-on-use.
32937         (Makefile.am): Always build replacement.
32938         (configure.ac): Update substitutions.
32939         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32940         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32941         bother with SYS_TIME_H.
32942         * modules/gettimeofday (configure.ac): Declare indicator.
32943         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32944         in use.
32945
32946         closein-tests: silence compiler warning
32947         * tests/test-closein.c (main): Ignore fread result.
32948         * modules/closein-tests (Depends-on): Add ignore-value.
32949
32950         tests: silence warning about system return
32951         * tests/test-areadlink-with-size.c (main): Ignore system result.
32952         * tests/test-areadlink.c (main): Likewise.
32953         * tests/test-areadlinkat-with-size.c (main): Likewise.
32954         * tests/test-areadlinkat.c (main): Likewise.
32955         * tests/test-canonicalize-lgpl.c (main): Likewise.
32956         * tests/test-canonicalize.c (main): Likewise.
32957         * tests/test-chown.c (main): Likewise.
32958         * tests/test-fchownat.c (main): Likewise.
32959         * tests/test-fdutimensat.c (main): Likewise.
32960         * tests/test-fstatat.c (main): Likewise.
32961         * tests/test-futimens.c (main): Likewise.
32962         * tests/test-lchown.c (main): Likewise.
32963         * tests/test-link.c (main): Likewise.
32964         * tests/test-linkat.c (main): Likewise.
32965         * tests/test-lstat.c (main): Likewise.
32966         * tests/test-mkdir.c (main): Likewise.
32967         * tests/test-mkdirat.c (main): Likewise.
32968         * tests/test-mkfifo.c (main): Likewise.
32969         * tests/test-mkfifoat.c (main): Likewise.
32970         * tests/test-mknod.c (main): Likewise.
32971         * tests/test-readlink.c (main): Likewise.
32972         * tests/test-remove.c (main): Likewise.
32973         * tests/test-rename.c (main): Likewise.
32974         * tests/test-renameat.c (main): Likewise.
32975         * tests/test-rmdir.c (main): Likewise.
32976         * tests/test-symlink.c (main): Likewise.
32977         * tests/test-symlinkat.c (main): Likewise.
32978         * tests/test-unlink.c (main): Likewise.
32979         * tests/test-unlinkat.c (main): Likewise.
32980         * tests/test-utimens.c (main): Likewise.
32981         * tests/test-utimensat.c (main): Likewise.
32982         * modules/areadlink-tests (Depends-on): Add ignore-value.
32983         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32984         * modules/areadlinkat-tests (Depends-on): Likewise.
32985         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32986         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32987         * modules/canonicalize-tests (Depends-on): Likewise.
32988         * modules/chown-tests (Depends-on): Likewise.
32989         * modules/fdutimensat-tests (Depends-on): Likewise.
32990         * modules/futimens-tests (Depends-on): Likewise.
32991         * modules/lchown-tests (Depends-on): Likewise.
32992         * modules/link-tests (Depends-on): Likewise.
32993         * modules/linkat-tests (Depends-on): Likewise.
32994         * modules/lstat-tests (Depends-on): Likewise.
32995         * modules/mkdir-tests (Depends-on): Likewise.
32996         * modules/mkfifo-tests (Depends-on): Likewise.
32997         * modules/mkfifoat-tests (Depends-on): Likewise.
32998         * modules/mknod-tests (Depends-on): Likewise.
32999         * modules/openat-tests (Depends-on): Likewise.
33000         * modules/readlink-tests (Depends-on): Likewise.
33001         * modules/remove-tests (Depends-on): Likewise.
33002         * modules/rename-tests (Depends-on): Likewise.
33003         * modules/renameat-tests (Depends-on): Likewise.
33004         * modules/rmdir-tests (Depends-on): Likewise.
33005         * modules/symlink-tests (Depends-on): Likewise.
33006         * modules/symlinkat-tests (Depends-on): Likewise.
33007         * modules/unlink-tests (Depends-on): Likewise.
33008         * modules/utimens-tests (Depends-on): Likewise.
33009         * modules/utimensat-tests (Depends-on): Likewise.
33010
33011 2010-01-31  Bruno Haible  <bruno@clisp.org>
33012
33013         Perform the same test for many <math.h> functions.
33014         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33015         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33016         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33017         of gl_MATHFUNC.
33018         * modules/acos (configure.ac): Likewise.
33019         * modules/asin (configure.ac): Likewise.
33020         * modules/atan (configure.ac): Likewise.
33021         * modules/atan2 (configure.ac): Likewise.
33022         * modules/cbrt (configure.ac): Likewise.
33023         * modules/copysign (configure.ac): Likewise.
33024         * modules/cos (configure.ac): Likewise.
33025         * modules/cosh (configure.ac): Likewise.
33026         * modules/erf (configure.ac): Likewise.
33027         * modules/erfc (configure.ac): Likewise.
33028         * modules/exp (configure.ac): Likewise.
33029         * modules/fmod (configure.ac): Likewise.
33030         * modules/hypot (configure.ac): Likewise.
33031         * modules/j0 (configure.ac): Likewise.
33032         * modules/j1 (configure.ac): Likewise.
33033         * modules/jn (configure.ac): Likewise.
33034         * modules/lgamma (configure.ac): Likewise.
33035         * modules/log (configure.ac): Likewise.
33036         * modules/log10 (configure.ac): Likewise.
33037         * modules/log1p (configure.ac): Likewise.
33038         * modules/pow (configure.ac): Likewise.
33039         * modules/remainder (configure.ac): Likewise.
33040         * modules/sin (configure.ac): Likewise.
33041         * modules/sinh (configure.ac): Likewise.
33042         * modules/tan (configure.ac): Likewise.
33043         * modules/tanh (configure.ac): Likewise.
33044         * modules/y0 (configure.ac): Likewise.
33045         * modules/y1 (configure.ac): Likewise.
33046         * modules/yn (configure.ac): Likewise.
33047         Suggested by Paolo Bonzini.
33048
33049 2010-01-31  Bruno Haible  <bruno@clisp.org>
33050
33051         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33052
33053 2010-01-31  Bruno Haible  <bruno@clisp.org>
33054
33055         Work around getdelim() bug on FreeBSD 8.0.
33056         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33057         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33058         not work.
33059         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33060         is 1.
33061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33062         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33063         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33064         a non-zero size.
33065         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33066
33067 2010-01-31  Bruno Haible  <bruno@clisp.org>
33068
33069         Work around getline() bug on FreeBSD 8.0.
33070         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33071         and a non-zero size.
33072         * tests/test-getline.c (main): Likewise.
33073         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33074         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33075
33076 2010-01-28  Eric Blake  <ebb9@byu.net>
33077
33078         regex: fix build failure
33079         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33080         platforms.
33081
33082 2010-01-28  Jim Meyering  <meyering@redhat.com>
33083
33084         regex: do not ignore memory allocation failure
33085         * lib/regex_internal.c (create_cd_newstate): Detect
33086         re_node_set_init_copy failure.   Extracted from glibc commit
33087         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33088
33089         regex: sync more white-space changes from libc
33090         * lib/regex_internal.c: White-space only changes.
33091         * lib/regexec.c: Likewise.
33092
33093         regex: add many uses of __attribute_warn_unused_result__
33094         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33095         * lib/regexec.c: Likewise.
33096         Extracted from a messy glibc commit.
33097
33098         regcomp.c: spelling and merge-artifact from glibc
33099         * lib/regcomp.c: Merge remainder of glibc's
33100         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33101
33102         regcomp.c: sync white-space changes from glibc
33103         * lib/regcomp.c: Merge to accommodate white space
33104         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33105
33106         regcomp.c: do not ignore internal return values
33107         * lib/regcomp.c: Do not ignore internal return values.
33108         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33109         but without its white-space changes and spelling fixes.
33110
33111         regex_internal.h: define __attribute_warn_unused_result__
33112         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33113
33114         maint: add a syntax-check rule to check for vulnerable Makefile.in
33115         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33116
33117 2010-01-27  Jim Meyering  <meyering@redhat.com>
33118
33119         ncftpput-ftp: clean up spaces
33120         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33121         Remove trailing blanks.
33122
33123 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33124
33125         * build-aux/git-version-gen: Fix copyright statement.
33126         * build-aux/gnupload: Likewise.
33127         * tests/test-arcfour.c: Likewise.
33128         * tests/test-arctwo.c: Likewise.
33129         * tests/test-count-one-bits.c: Likewise.
33130         * tests/test-crc.c: Likewise.
33131         * tests/test-des.c: Likewise.
33132         * tests/test-gc-arcfour.c: Likewise.
33133         * tests/test-gc-arctwo.c: Likewise.
33134         * tests/test-gc-des.c: Likewise.
33135         * tests/test-gc-hmac-md5.c: Likewise.
33136         * tests/test-gc-hmac-sha1.c: Likewise.
33137         * tests/test-gc-md2.c: Likewise.
33138         * tests/test-gc-md4.c: Likewise.
33139         * tests/test-gc-md5.c: Likewise.
33140         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33141         * tests/test-gc-rijndael.c: Likewise.
33142         * tests/test-gc-sha1.c: Likewise.
33143         * tests/test-gc.c: Likewise.
33144         * tests/test-gethostname.c: Likewise.
33145         * tests/test-gettimeofday.c: Likewise.
33146         * tests/test-hash.c: Likewise.
33147         * tests/test-hmac-md5.c: Likewise.
33148         * tests/test-hmac-sha1.c: Likewise.
33149         * tests/test-md2.c: Likewise.
33150         * tests/test-md4.c: Likewise.
33151         * tests/test-md5.c: Likewise.
33152         * tests/test-memchr.c: Likewise.
33153         * tests/test-memchr2.c: Likewise.
33154         * tests/test-memcmp.c: Likewise.
33155         * tests/test-memmem.c: Likewise.
33156         * tests/test-memrchr.c: Likewise.
33157         * tests/test-rawmemchr.c: Likewise.
33158         * tests/test-read-file.c: Likewise.
33159         * tests/test-rijndael.c: Likewise.
33160         * tests/test-sockets.c: Likewise.
33161         * tests/test-strchrnul.c: Likewise.
33162         * tests/test-strstr.c: Likewise.
33163         * tests/test-strtod.c: Likewise.
33164         * build-aux/ncftpput-ftp: Likewise.
33165
33166 2010-01-26  Eric Blake  <ebb9@byu.net>
33167
33168         ignore-value: update recommended header name
33169         * modules/ignore-value (Include): Only use <> for headers that
33170         exist in glibc.
33171
33172 2010-01-26  Jim Meyering  <meyering@redhat.com>
33173
33174         test-userspec.c: avoid compiler warnings
33175         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33176         and "initialization discards qualifiers..." warnings.
33177         Put the first "uid" in its own scope, and make char* members "const".
33178
33179 2010-01-25  Bruno Haible  <bruno@clisp.org>
33180
33181         gnulib-tool: Make warning diagnostics consistent.
33182         * gnulib-tool (func_warning): New function.
33183         Use it everywhere where gnulib-tool produces output to stderr and it is
33184         not a fatal error.
33185
33186 2010-01-25  Bruno Haible  <bruno@clisp.org>
33187
33188         Fix test dependencies.
33189         * modules/xstrtol-tests (Depends-on): Add inttypes.
33190         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33191
33192 2010-01-25 Pádraig Brady <P@draigBrady.com>
33193
33194         syntax-check: detect incorrect boolean macro values in config.h
33195         * modules/maintainer-makefile (configure.ac): Parameterize the location
33196         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33197         The logic is from Eric Blake and the location indicated by Jim Meyering.
33198         Note the more natural CONFIG_HEADER name is prohibited by automake
33199         for backwards compatibility reasons.
33200         * top/maint.mk (sc_Wundef_boolean): New rule.
33201
33202 2010-01-25  Jim Meyering  <meyering@redhat.com>
33203
33204         bootstrap: detect MacOS 10.6's shasum, too
33205         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33206         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33207
33208 2010-01-23  Jim Meyering  <meyering@redhat.com>
33209
33210         xstrtoll: new module
33211         * modules/xstrtoll: New file.
33212         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33213         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33214         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33215         ./configure fails if you use this module and lack "long long".
33216         * modules/xstrtoll-tests: New module.
33217         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33218         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33219         new init.sh-based test framework.
33220
33221 2010-01-24  Bruno Haible  <bruno@clisp.org>
33222
33223         Tests for module 'yn'.
33224         * modules/yn-tests: New file.
33225         * tests/test-yn.c: New file.
33226
33227         Tests for module 'y1'.
33228         * modules/y1-tests: New file.
33229         * tests/test-y1.c: New file.
33230
33231         Tests for module 'y0'.
33232         * modules/y0-tests: New file.
33233         * tests/test-y0.c: New file.
33234
33235         Tests for module 'tanh'.
33236         * modules/tanh-tests: New file.
33237         * tests/test-tanh.c: New file.
33238
33239         Tests for module 'tan'.
33240         * modules/tan-tests: New file.
33241         * tests/test-tan.c: New file.
33242
33243         Tests for module 'sqrt'.
33244         * modules/sqrt-tests: New file.
33245         * tests/test-sqrt.c: New file.
33246
33247         Tests for module 'sinh'.
33248         * modules/sinh-tests: New file.
33249         * tests/test-sinh.c: New file.
33250
33251         Tests for module 'sin'.
33252         * modules/sin-tests: New file.
33253         * tests/test-sin.c: New file.
33254
33255         Tests for module 'rint'.
33256         * modules/rint-tests: New file.
33257         * tests/test-rint.c: New file.
33258
33259         Tests for module 'remainder'.
33260         * modules/remainder-tests: New file.
33261         * tests/test-remainder.c: New file.
33262
33263         Tests for module 'pow'.
33264         * modules/pow-tests: New file.
33265         * tests/test-pow.c: New file.
33266
33267         Tests for module 'nextafter'.
33268         * modules/nextafter-tests: New file.
33269         * tests/test-nextafter.c: New file.
33270
33271         Tests for module 'modf'.
33272         * modules/modf-tests: New file.
33273         * tests/test-modf.c: New file.
33274
33275         Tests for module 'logb'.
33276         * modules/logb-tests: New file.
33277         * tests/test-logb.c: New file.
33278
33279         Tests for module 'log1p'.
33280         * modules/log1p-tests: New file.
33281         * tests/test-log1p.c: New file.
33282
33283         Tests for module 'log10'.
33284         * modules/log10-tests: New file.
33285         * tests/test-log10.c: New file.
33286
33287         Tests for module 'log'.
33288         * modules/log-tests: New file.
33289         * tests/test-log.c: New file.
33290
33291         Tests for module 'lgamma'.
33292         * modules/lgamma-tests: New file.
33293         * tests/test-lgamma.c: New file.
33294
33295         Tests for module 'ldexp'.
33296         * modules/ldexp-tests: New file.
33297         * tests/test-ldexp.c: New file.
33298
33299         Tests for module 'jn'.
33300         * modules/jn-tests: New file.
33301         * tests/test-jn.c: New file.
33302
33303         Tests for module 'j1'.
33304         * modules/j1-tests: New file.
33305         * tests/test-j1.c: New file.
33306
33307         Tests for module 'j0'.
33308         * modules/j0-tests: New file.
33309         * tests/test-j0.c: New file.
33310
33311         Tests for module 'hypot'.
33312         * modules/hypot-tests: New file.
33313         * tests/test-hypot.c: New file.
33314
33315         Tests for module 'fmod'.
33316         * modules/fmod-tests: New file.
33317         * tests/test-fmod.c: New file.
33318
33319         Tests for module 'fabs'.
33320         * modules/fabs-tests: New file.
33321         * tests/test-fabs.c: New file.
33322
33323         Tests for module 'exp'.
33324         * modules/exp-tests: New file.
33325         * tests/test-exp.c: New file.
33326
33327         Tests for module 'erfc'.
33328         * modules/erfc-tests: New file.
33329         * tests/test-erfc.c: New file.
33330
33331         Tests for module 'erf'.
33332         * modules/erf-tests: New file.
33333         * tests/test-erf.c: New file.
33334
33335         Tests for module 'cosh'.
33336         * modules/cosh-tests: New file.
33337         * tests/test-cosh.c: New file.
33338
33339         Tests for module 'cos'.
33340         * modules/cos-tests: New file.
33341         * tests/test-cos.c: New file.
33342
33343         Tests for module 'copysign'.
33344         * modules/copysign-tests: New file.
33345         * tests/test-copysign.c: New file.
33346
33347         Tests for module 'cbrt'.
33348         * modules/cbrt-tests: New file.
33349         * tests/test-cbrt.c: New file.
33350
33351         Tests for module 'atan2'.
33352         * modules/atan2-tests: New file.
33353         * tests/test-atan2.c: New file.
33354
33355         Tests for module 'atan'.
33356         * modules/atan-tests: New file.
33357         * tests/test-atan.c: New file.
33358
33359         Tests for module 'asin'.
33360         * modules/asin-tests: New file.
33361         * tests/test-asin.c: New file.
33362
33363         Tests for module 'acos'.
33364         * modules/acos-tests: New file.
33365         * tests/test-acos.c: New file.
33366
33367 2010-01-24  Bruno Haible  <bruno@clisp.org>
33368
33369         Fix tests for common <math.h> functions.
33370         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33371         code snippet that references the function pointer, rather than merely
33372         calling the function. Substitute the FUNC_LIBM variable.
33373         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33374         * modules/acos (configure.ac): Likewise.
33375         * modules/asin (configure.ac): Likewise.
33376         * modules/atan (configure.ac): Likewise.
33377         * modules/atan2 (configure.ac): Likewise.
33378         * modules/cbrt (configure.ac): Likewise.
33379         * modules/copysign (configure.ac): Likewise.
33380         * modules/cos (configure.ac): Likewise.
33381         * modules/cosh (configure.ac): Likewise.
33382         * modules/erf (configure.ac): Likewise.
33383         * modules/erfc (configure.ac): Likewise.
33384         * modules/exp (configure.ac): Likewise.
33385         * modules/fabs (configure.ac): Likewise.
33386         * modules/fmod (configure.ac): Likewise.
33387         * modules/hypot (configure.ac): Likewise.
33388         * modules/j0 (configure.ac): Likewise.
33389         * modules/j1 (configure.ac): Likewise.
33390         * modules/jn (configure.ac): Likewise.
33391         * modules/ldexp (configure.ac): Likewise.
33392         * modules/lgamma (configure.ac): Likewise.
33393         * modules/log (configure.ac): Likewise.
33394         * modules/log10 (configure.ac): Likewise.
33395         * modules/log1p (configure.ac): Likewise.
33396         * modules/logb (configure.ac): Likewise.
33397         * modules/modf (configure.ac): Likewise.
33398         * modules/nextafter (configure.ac): Likewise.
33399         * modules/pow (configure.ac): Likewise.
33400         * modules/remainder (configure.ac): Likewise.
33401         * modules/rint (configure.ac): Likewise.
33402         * modules/sin (configure.ac): Likewise.
33403         * modules/sinh (configure.ac): Likewise.
33404         * modules/tan (configure.ac): Likewise.
33405         * modules/tanh (configure.ac): Likewise.
33406         * modules/y0 (configure.ac): Likewise.
33407         * modules/y1 (configure.ac): Likewise.
33408         * modules/yn (configure.ac): Likewise.
33409
33410 2010-01-24  Bruno Haible  <bruno@clisp.org>
33411
33412         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33413         * tests/test-acosl.c (x): New variable.
33414         (main): Store argument in x and fetch it from x.
33415         * tests/test-asinl.c (x): New variable.
33416         (main): Store argument in x and fetch it from x.
33417         * tests/test-atanl.c (x): New variable.
33418         (main): Store argument in x and fetch it from x.
33419         * tests/test-cosl.c (x): New variable.
33420         (main): Store argument in x and fetch it from x.
33421         * tests/test-expl.c (x): New variable.
33422         (main): Store argument in x and fetch it from x.
33423         * tests/test-logl.c (x): New variable.
33424         (main): Store argument in x and fetch it from x.
33425         * tests/test-sinl.c (x): New variable.
33426         (main): Store argument in x and fetch it from x.
33427         * tests/test-sqrtl.c (x): New variable.
33428         (main): Store argument in x and fetch it from x.
33429         * tests/test-tanl.c (x): New variable.
33430         (main): Store argument in x and fetch it from x.
33431
33432 2010-01-24  Bruno Haible  <bruno@clisp.org>
33433
33434         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33435         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33436         assignments to the initial TESTS_ENVIRONMENT.
33437         * doc/gnulib.texi (Unit test modules): Document it.
33438         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33439         TESTS_ENVIRONMENT.
33440         * modules/btowc-tests (Makefile.am): Likewise.
33441         * modules/c-stack-tests (Makefile.am): Likewise.
33442         * modules/c-strcase-tests (Makefile.am): Likewise.
33443         * modules/copy-file-tests (Makefile.am): Likewise.
33444         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33445         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33446         * modules/mbrtowc-tests (Makefile.am): Likewise.
33447         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33448         * modules/mbscasestr-tests (Makefile.am): Likewise.
33449         * modules/mbschr-tests (Makefile.am): Likewise.
33450         * modules/mbscspn-tests (Makefile.am): Likewise.
33451         * modules/mbsinit-tests (Makefile.am): Likewise.
33452         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33453         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33454         * modules/mbspbrk-tests (Makefile.am): Likewise.
33455         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33456         * modules/mbsrchr-tests (Makefile.am): Likewise.
33457         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33458         * modules/mbsspn-tests (Makefile.am): Likewise.
33459         * modules/mbsstr-tests (Makefile.am): Likewise.
33460         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33461         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33462         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33463         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33464         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33465         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33466         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33467         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33468         * modules/wcrtomb-tests (Makefile.am): Likewise.
33469         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33470         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33471         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33472         assignments from TESTS_ENVIRONMENT.
33473         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33474         augmentation.
33475         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33476         * modules/atexit-tests (Makefile.am): Likewise.
33477         * modules/binary-io-tests (Makefile.am): Likewise.
33478         * modules/closein-tests (Makefile.am): Likewise.
33479         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33480         * modules/exclude-tests (Makefile.am): Likewise.
33481         * modules/fflush-tests (Makefile.am): Likewise.
33482         * modules/fpending-tests (Makefile.am): Likewise.
33483         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33484         * modules/freadahead-tests (Makefile.am): Likewise.
33485         * modules/freadptr-tests (Makefile.am): Likewise.
33486         * modules/freadseek-tests (Makefile.am): Likewise.
33487         * modules/fseek-tests (Makefile.am): Likewise.
33488         * modules/fseeko-tests (Makefile.am): Likewise.
33489         * modules/ftell-tests (Makefile.am): Likewise.
33490         * modules/ftello-tests (Makefile.am): Likewise.
33491         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33492         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33493         * modules/lseek-tests (Makefile.am): Likewise.
33494         * modules/parse-duration-tests (Makefile.am): Likewise.
33495         * modules/perror-tests (Makefile.am): Likewise.
33496         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33497         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33498         * modules/pipe-tests (Makefile.am): Likewise.
33499         * modules/pread-tests (Makefile.am): Likewise.
33500         * modules/printf-posix-tests (Makefile.am): Likewise.
33501         * modules/select-tests (Makefile.am): Likewise.
33502         * modules/sigpipe-tests (Makefile.am): Likewise.
33503         * modules/tsearch-tests (Makefile.am): Likewise.
33504         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33505         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33506         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33507         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33508         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33509         * modules/version-etc-tests (Makefile.am): Likewise.
33510         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33511         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33512         * modules/xalloc-die-tests (Makefile.am): Likewise.
33513         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33514         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33515         * modules/xstrtol-tests (Makefile.am): Likewise.
33516         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33517         * modules/yesno-tests (Makefile.am): Likewise.
33518         Suggested by Jim Meyering.
33519
33520 2010-01-24  Bruno Haible  <bruno@clisp.org>
33521
33522         More documentation.
33523         * doc/gnulib.texi (Writing modules): New chapter.
33524         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33525         the new chapter.
33526
33527 2010-01-24  Jim Meyering  <meyering@redhat.com>
33528
33529         maint.mk: do not prepend "./" after filtering
33530         * top/maint.mk (_prepend_srcdir_prefix): New variable
33531         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33532         "./" when $(srcdir) is ".".
33533
33534         define STREQ(a,b) consistently, removing useless parentheses
33535         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33536         since the only risk is that "a" or "b" contains an unparenthesized
33537         comma, but if either did that, STREQ would have 3 or more arguments.
33538         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33539         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33540         * lib/hash-triple.c (STREQ): Likewise.
33541         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33542         * lib/getugroups.c (STREQ): Likewise.
33543
33544 2010-01-23  Jim Meyering  <meyering@redhat.com>
33545
33546         maint.mk: fix syntax-check in a non-srcdir build directory
33547         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33548         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33549
33550 2010-01-22  Jim Meyering  <meyering@redhat.com>
33551
33552         userspec: add unit tests
33553         * tests/test-userspec.c: New file.
33554         * modules/userspec-tests: Likewise.
33555
33556 2010-01-21  Jim Meyering  <meyering@redhat.com>
33557
33558         maint.mk: handle source file names containing "." robustly
33559         * top/maint.mk (_dot_escaped_srcdir): Define.
33560         (VC_LIST): Use it in LHS of sed substitution.
33561
33562 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33563
33564         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33565         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33566         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33567         from a non-srcdir build.
33568
33569 2010-01-20  Eric Blake  <ebb9@byu.net>
33570
33571         warn-on-use: use instead of link-warning
33572         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33573         * modules/unistd (Depends-on, Makefile.am): Likewise.
33574         * modules/arpa_inet (Depends-on): Replace link-warning with
33575         warn-on-use.
33576         (Makefile.am): Update rules accordingly.
33577         * modules/ctype (Depends-on, Makefile.am): Likewise.
33578         * modules/dirent (Depends-on, Makefile.am): Likewise.
33579         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33580         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33581         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33582         * modules/locale (Depends-on, Makefile.am): Likewise.
33583         * modules/math (Depends-on, Makefile.am): Likewise.
33584         * modules/search (Depends-on, Makefile.am): Likewise.
33585         * modules/signal (Depends-on, Makefile.am): Likewise.
33586         * modules/spawn (Depends-on, Makefile.am): Likewise.
33587         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33588         * modules/string (Depends-on, Makefile.am): Likewise.
33589         * modules/strings (Depends-on, Makefile.am): Likewise.
33590         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33591         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33592         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33593         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33594         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33595         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33596         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33597         * modules/wchar (Depends-on, Makefile.am): Likewise.
33598         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33599         should be poisoned.
33600         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33601         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33602         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33603         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33604         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33605         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33606         * m4/math_h.m4 (gl_MATH_H): Likewise.
33607         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33608         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33609         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33610         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33611         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33612         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33613         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33614         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33617         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33618         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33619         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33620         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33621         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33622         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33623         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33624         GL_LINK_WARNING.
33625         * lib/ctype.in.h: Likewise.
33626         * lib/dirent.in.h: Likewise.
33627         * lib/fcntl.in.h: Likewise.
33628         * lib/inttypes.in.h: Likewise.
33629         * lib/langinfo.in.h: Likewise.
33630         * lib/locale.in.h: Likewise.
33631         * lib/math.in.h: Likewise.
33632         * lib/search.in.h: Likewise.
33633         * lib/signal.in.h: Likewise.
33634         * lib/spawn.in.h: Likewise.
33635         * lib/stdio.in.h: Likewise.
33636         * lib/stdlib.in.h: Likewise.
33637         * lib/string.in.h: Likewise.
33638         * lib/strings.in.h: Likewise.
33639         * lib/sys_file.in.h: Likewise.
33640         * lib/sys_ioctl.in.h: Likewise.
33641         * lib/sys_select.in.h: Likewise.
33642         * lib/sys_socket.in.h: Likewise.
33643         * lib/sys_stat.in.h: Likewise.
33644         * lib/sys_times.in.h: Likewise.
33645         * lib/sys_utsname.in.h: Likewise.
33646         * lib/unistd.in.h: Likewise.
33647         * lib/wchar.in.h: Likewise.
33648
33649 2010-01-20  Bruno Haible  <bruno@clisp.org>
33650
33651         Avoid duplicate -lm.
33652         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33653         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33654         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33655         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33656         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33657         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33658         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33659         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33660         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33661         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33662         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33663         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33664         Reported by Paolo Bonzini.
33665
33666 2010-01-19  Bruno Haible  <bruno@clisp.org>
33667
33668         langinfo, nl_langinfo: Relicense under LGPLv2+.
33669         * modules/langinfo (License): Change to LGPLv2+.
33670         * modules/nl_langinfo (License): Likewise.
33671         Patch by David Lutterkort <lutter@redhat.com>.
33672
33673 2010-01-19  Bruno Haible  <bruno@clisp.org>
33674
33675         Avoid compilation error with cc on OSF/1 5.1.
33676         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33677         statement, not before.
33678         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33679
33680 2010-01-18  Bruno Haible  <bruno@clisp.org>
33681
33682         Avoid a link error due to the __printf__ symbol.
33683         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33684         and 2.6.x.
33685         (__format__, __printf__): Remove definitions.
33686         * lib/argp-fmtstream.h: Likewise.
33687         * lib/argp.h: Likewise.
33688         * lib/error.h: Likewise.
33689         * lib/vasnprintf.h: Likewise.
33690         * lib/xprintf.h: Likewise.
33691         * lib/xvasprintf.h: Likewise.
33692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33693
33694 2010-01-18  Bruno Haible  <bruno@clisp.org>
33695
33696         Tests for module 'tanl'.
33697         * modules/tanl-tests: New file.
33698         * tests/test-tanl.c: New file.
33699
33700         Tests for module 'sqrtl'.
33701         * modules/sqrtl-tests: New file.
33702         * tests/test-sqrtl.c: New file.
33703
33704         Tests for module 'sinl'.
33705         * modules/sinl-tests: New file.
33706         * tests/test-sinl.c: New file.
33707
33708         Tests for module 'logl'.
33709         * modules/logl-tests: New file.
33710         * tests/test-logl.c: New file.
33711
33712         Tests for module 'expl'.
33713         * modules/expl-tests: New file.
33714         * tests/test-expl.c: New file.
33715
33716         Tests for module 'cosl'.
33717         * modules/cosl-tests: New file.
33718         * tests/test-cosl.c: New file.
33719
33720         Tests for module 'atanl'.
33721         * modules/atanl-tests: New file.
33722         * tests/test-atanl.c: New file.
33723
33724         Tests for module 'asinl'.
33725         * modules/asinl-tests: New file.
33726         * tests/test-asinl.c: New file.
33727
33728         Tests for module 'acosl'.
33729         * modules/acosl-tests: New file.
33730         * tests/test-acosl.c: New file.
33731
33732         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33733         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33734         tanl): Use the standard gnulib idiom.
33735         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33736         * lib/sinl.c: Likewise.
33737         * lib/tanl.c: Don't include trigl.c.
33738         (kernel_tanl): Make static.
33739         * lib/sincosl.c: Include trigl.h first.
33740         * lib/trigl.c: Likewise.
33741         * m4/acosl.m4: New file.
33742         * m4/asinl.m4: New file.
33743         * m4/atanl.m4: New file.
33744         * m4/cosl.m4: New file.
33745         * m4/expl.m4: New file.
33746         * m4/logl.m4: New file.
33747         * m4/sinl.m4: New file.
33748         * m4/sqrtl.m4: New file.
33749         * m4/tanl.m4: New file.
33750         * m4/mathl.m4: Remove file.
33751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33752         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33753         Don't initialize GNULIB_MATHL.
33754         * modules/acosl: New file.
33755         * modules/asinl: New file.
33756         * modules/atanl: New file.
33757         * modules/cosl: New file.
33758         * modules/expl: New file.
33759         * modules/logl: New file.
33760         * modules/sinl: New file.
33761         * modules/sqrtl: New file.
33762         * modules/tanl: New file.
33763         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33764         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33765         substitute GNULIB_MATHL.
33766         * modules/mathl: Rewritten.
33767         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33768         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33769         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33770         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33771         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33772         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33773         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33774         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33775         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33776
33777 2010-01-18  Bruno Haible  <bruno@clisp.org>
33778
33779         sqrt: Make gl_FUNC_SQRT requirable.
33780         * m4/sqrt.m4: New file.
33781         * modules/sqrt (Files): Add it.
33782         (configure.ac): Invoke gl_FUNC_SQRT.
33783
33784 2010-01-18  Bruno Haible  <bruno@clisp.org>
33785
33786         New modules for common <math.h> functions.
33787         * m4/mathfunc.m4: New file.
33788         * modules/acos: New file.
33789         * modules/asin: New file.
33790         * modules/atan: New file.
33791         * modules/atan2: New file.
33792         * modules/cbrt: New file.
33793         * modules/copysign: New file.
33794         * modules/cos: New file.
33795         * modules/cosh: New file.
33796         * modules/erf: New file.
33797         * modules/erfc: New file.
33798         * modules/exp: New file.
33799         * modules/fabs: New file.
33800         * modules/fmod: New file.
33801         * modules/hypot: New file.
33802         * modules/j0: New file.
33803         * modules/j1: New file.
33804         * modules/jn: New file.
33805         * modules/ldexp: New file.
33806         * modules/lgamma: New file.
33807         * modules/log: New file.
33808         * modules/log10: New file.
33809         * modules/log1p: New file.
33810         * modules/logb: New file.
33811         * modules/modf: New file.
33812         * modules/nextafter: New file.
33813         * modules/pow: New file.
33814         * modules/remainder: New file.
33815         * modules/rint: New file.
33816         * modules/sin: New file.
33817         * modules/sinh: New file.
33818         * modules/sqrt: New file.
33819         * modules/tan: New file.
33820         * modules/tanh: New file.
33821         * modules/y0: New file.
33822         * modules/y1: New file.
33823         * modules/yn: New file.
33824         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33825         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33826         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33827         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33828         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33829         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33830         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33831         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33832         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33833         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33834         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33835         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33836         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33837         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33838         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33839         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33840         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33841         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33842         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33843         * doc/posix-functions/log.texi: Mention the 'log' module.
33844         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33845         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33846         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33847         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33848         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33849         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33850         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33851         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33852         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33853         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33854         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33855         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33856         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33857         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33858         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33859         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33860
33861 2010-01-18  Jim Meyering  <meyering@redhat.com>
33862
33863         ignore-value: relax license to LGPLv2+
33864         * modules/ignore-value (License): Relax to LGPLv2+.
33865
33866         getdate: don't leak when TZ contains two or more '"'s
33867         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33868         double quote in TZ after the first one.
33869
33870         readtokens: do not leak internal token_lengths buffer
33871         * lib/readtokens.c (readtokens): Free the local, lengths,
33872         when the supplied "token_lengths" parameter is NULL.
33873
33874 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33875
33876         Fix a couple of missing LIBTHREAD link failures on AIX.
33877         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33878         $(LIBTHREAD).
33879         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33880
33881         Link test-poll against INET_PTON_LIB.
33882         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33883         for inet_pton on Solaris 10.
33884
33885 2010-01-17  Bruno Haible  <bruno@clisp.org>
33886
33887         unistdio/*-sprintf: Fix typo in module description.
33888         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33889         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33890         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33891         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33892         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33893         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33894         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33896
33897 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33898
33899         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33900         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33901         variables in shell case patterns, for AIX and HP-UX ksh.
33902
33903         Split large sed scripts, for HP-UX sed.
33904         * modules/stdio: Split sed scripts around 50 sed commands,
33905         to avoid HP-UX limit of 99 commands, in the near future.
33906         * modules/string: Likewise.
33907         * modules/unistd: Likewise.
33908
33909         gnulib-tool: avoid writing in the current directory.
33910         * gnulib-tool (func_emit_lib_Makefile_am)
33911         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33912         not in the current directory, so concurrent gnulib-tool
33913         instances do not interfere.
33914
33915 2010-01-16  Jim Meyering  <meyering@redhat.com>
33916
33917         doc: update users.txt
33918         * users.txt: Add grep.
33919         (diffutils, gzip): Update URLs.
33920
33921 2010-01-12  Bruno Haible  <bruno@clisp.org>
33922
33923         posix_spawn: Avoid test failure on Cygwin.
33924         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33925         characters.
33926         Reported by Simon Josefsson.
33927
33928 2010-01-12  Bruno Haible  <bruno@clisp.org>
33929
33930         * tests/test-cond.c (main): When skipping the test, show the reason.
33931
33932 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33933
33934         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33935
33936 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33937
33938         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33939         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33940
33941 2010-01-12  Eric Blake  <ebb9@byu.net>
33942
33943         build: guarantee AS_VAR_IF
33944         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33945         (gl_AS_VAR_IF): Move...
33946         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33947         Reported by Simon Josefsson.
33948
33949 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33950
33951         * lib/stdio.in.h: Fix typo.
33952
33953 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33954
33955         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33956         libgpg-error.
33957
33958 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33959
33960         * tests/test-xalloc-die.sh: Use $EXEEXT.
33961
33962 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33963             Bruno Haible  <bruno@clisp.org>
33964
33965         getlogin, getlogin_r: Avoid test failure.
33966         * tests/test-getlogin.c: Include <stdio.h>.
33967         (main): Skip the test when the function fails because stdin is not a
33968         tty.
33969         * tests/test-getlogin_r.c: Include <stdio.h>.
33970         (main): Skip the test when the function fails because stdin is not a
33971         tty.
33972
33973 2010-01-11  Eric Blake  <ebb9@byu.net>
33974
33975         tests: avoid more large file warnings
33976         * tests/test-fflush.c: Avoid warning about ftell use.
33977         * tests/test-fseek.c: Avoid warning about fseek use.
33978
33979 2010-01-10  Bruno Haible  <bruno@clisp.org>
33980
33981         nproc: Work better on Linux when /proc and /sys are not mounted.
33982         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33983         as lower bound when, on glibc/Linux systems,
33984         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33985         Suggested by Pádraig Brady <P@draigbrady.com>.
33986         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33987
33988         nproc: Refactor.
33989         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33990         extracted from num_processors.
33991         (num_processors): Call it.
33992
33993 2010-01-11  Jim Meyering  <meyering@redhat.com>
33994
33995         utimecmp: avoid new warning from upcoming gcc-4.5.0
33996         * lib/utimecmp.c (BILLION): Define using #define rather than an
33997         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33998
33999 2010-01-11  Eric Blake  <ebb9@byu.net>
34000
34001         math: add portability warnings for classification macros
34002         * modules/math (Depends-on): Add warn-on-use.
34003         (Makefile.am): Provide new substitutions.
34004         * m4/math_h.m4 (gl_MATH_H): Require inline.
34005         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34006         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34007         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34008         implement warnings.
34009
34010         unistd: warn on use of environ without module
34011         * modules/unistd (Depends-on): Add warn-on-use.
34012         (Makefile.am): Provide new substitutions.
34013         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34014         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34015
34016         stdio: warn on suspicious uses
34017         * modules/stdio (Depends-on): Add warn-on-use.
34018         (Makefile.am): Provide new substitutions.
34019         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34020         fseeko.
34021         * lib/stdio.in.h (gets): Always warn on use.
34022         (fseek, ftell): Adjust when warnings are issued, and honor
34023         _GL_NO_LARGE_FILES as a way to silence the warning.
34024         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34025         any warning about large file offsets.
34026         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34027         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34028         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34029         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34030         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34031         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34032         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34033         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34034
34035         warn-on-use: new module
34036         * modules/warn-on-use: New file.
34037         * build-aux/warn-on-use.h: Likewise.
34038         * m4/warn-on-use.m4: Likewise.
34039         * MODULES.html.sh (Support for building): Mention it.
34040
34041 2010-01-10  Bruno Haible  <bruno@clisp.org>
34042
34043         Tests for module 'unistr/u32-strdup'.
34044         * modules/unistr/u32-strdup-tests: New file.
34045         * tests/unistr/test-u32-strdup.c: New file.
34046
34047         Tests for module 'unistr/u16-strdup'.
34048         * modules/unistr/u16-strdup-tests: New file.
34049         * tests/unistr/test-u16-strdup.c: New file.
34050
34051         Tests for module 'unistr/u8-strdup'.
34052         * modules/unistr/u8-strdup-tests: New file.
34053         * tests/unistr/test-u8-strdup.c: New file.
34054         * tests/unistr/test-strdup.h: New file.
34055
34056         Tests for module 'unistr/u32-strncmp'.
34057         * modules/unistr/u32-strncmp-tests: New file.
34058         * tests/unistr/test-u32-strncmp.c: New file.
34059
34060         Tests for module 'unistr/u16-strncmp'.
34061         * modules/unistr/u16-strncmp-tests: New file.
34062         * tests/unistr/test-u16-strncmp.c: New file.
34063
34064         Tests for module 'unistr/u8-strncmp'.
34065         * modules/unistr/u8-strncmp-tests: New file.
34066         * tests/unistr/test-u8-strncmp.c: New file.
34067         * tests/unistr/test-strncmp.h: New file.
34068
34069         Tests for module 'unistr/u32-strcoll'.
34070         * modules/unistr/u32-strcoll-tests: New file.
34071         * tests/unistr/test-u32-strcoll.c: New file.
34072
34073         Tests for module 'unistr/u16-strcoll'.
34074         * modules/unistr/u16-strcoll-tests: New file.
34075         * tests/unistr/test-u16-strcoll.c: New file.
34076
34077         Tests for module 'unistr/u8-strcoll'.
34078         * modules/unistr/u8-strcoll-tests: New file.
34079         * tests/unistr/test-u8-strcoll.c: New file.
34080
34081         Tests for module 'unistr/u32-strcmp'.
34082         * modules/unistr/u32-strcmp-tests: New file.
34083         * tests/unistr/test-u32-strcmp.c: New file.
34084         * tests/unistr/test-u32-strcmp.h: New file.
34085
34086         Tests for module 'unistr/u16-strcmp'.
34087         * modules/unistr/u16-strcmp-tests: New file.
34088         * tests/unistr/test-u16-strcmp.c: New file.
34089         * tests/unistr/test-u16-strcmp.h: New file.
34090
34091         Tests for module 'unistr/u8-strcmp'.
34092         * modules/unistr/u8-strcmp-tests: New file.
34093         * tests/unistr/test-u8-strcmp.c: New file.
34094         * tests/unistr/test-u8-strcmp.h: New file.
34095         * tests/unistr/test-strcmp.h: New file.
34096
34097         Tests for module 'unistr/u32-strncat'.
34098         * modules/unistr/u32-strncat-tests: New file.
34099         * tests/unistr/test-u32-strncat.c: New file.
34100
34101         Tests for module 'unistr/u16-strncat'.
34102         * modules/unistr/u16-strncat-tests: New file.
34103         * tests/unistr/test-u16-strncat.c: New file.
34104
34105         Tests for module 'unistr/u8-strncat'.
34106         * modules/unistr/u8-strncat-tests: New file.
34107         * tests/unistr/test-u8-strncat.c: New file.
34108         * tests/unistr/test-strncat.h: New file.
34109
34110         Tests for module 'unistr/u32-strcat'.
34111         * modules/unistr/u32-strcat-tests: New file.
34112         * tests/unistr/test-u32-strcat.c: New file.
34113
34114         Tests for module 'unistr/u16-strcat'.
34115         * modules/unistr/u16-strcat-tests: New file.
34116         * tests/unistr/test-u16-strcat.c: New file.
34117
34118         Tests for module 'unistr/u8-strcat'.
34119         * modules/unistr/u8-strcat-tests: New file.
34120         * tests/unistr/test-u8-strcat.c: New file.
34121         * tests/unistr/test-strcat.h: New file.
34122
34123         Tests for module 'unistr/u32-stpncpy'.
34124         * modules/unistr/u32-stpncpy-tests: New file.
34125         * tests/unistr/test-u32-stpncpy.c: New file.
34126
34127         Tests for module 'unistr/u16-stpncpy'.
34128         * modules/unistr/u16-stpncpy-tests: New file.
34129         * tests/unistr/test-u16-stpncpy.c: New file.
34130
34131         Tests for module 'unistr/u8-stpncpy'.
34132         * modules/unistr/u8-stpncpy-tests: New file.
34133         * tests/unistr/test-u8-stpncpy.c: New file.
34134         * tests/unistr/test-stpncpy.h: New file.
34135
34136         Tests for module 'unistr/u32-strncpy'.
34137         * modules/unistr/u32-strncpy-tests: New file.
34138         * tests/unistr/test-u32-strncpy.c: New file.
34139
34140         Tests for module 'unistr/u16-strncpy'.
34141         * modules/unistr/u16-strncpy-tests: New file.
34142         * tests/unistr/test-u16-strncpy.c: New file.
34143
34144         Tests for module 'unistr/u8-strncpy'.
34145         * modules/unistr/u8-strncpy-tests: New file.
34146         * tests/unistr/test-u8-strncpy.c: New file.
34147         * tests/unistr/test-strncpy.h: New file.
34148
34149         Tests for module 'unistr/u32-stpcpy'.
34150         * modules/unistr/u32-stpcpy-tests: New file.
34151         * tests/unistr/test-u32-stpcpy.c: New file.
34152
34153         Tests for module 'unistr/u16-stpcpy'.
34154         * modules/unistr/u16-stpcpy-tests: New file.
34155         * tests/unistr/test-u16-stpcpy.c: New file.
34156
34157         Tests for module 'unistr/u8-stpcpy'.
34158         * modules/unistr/u8-stpcpy-tests: New file.
34159         * tests/unistr/test-u8-stpcpy.c: New file.
34160         * tests/unistr/test-stpcpy.h: New file.
34161
34162         Tests for module 'unistr/u32-strcpy'.
34163         * modules/unistr/u32-strcpy-tests: New file.
34164         * tests/unistr/test-u32-strcpy.c: New file.
34165
34166         Tests for module 'unistr/u16-strcpy'.
34167         * modules/unistr/u16-strcpy-tests: New file.
34168         * tests/unistr/test-u16-strcpy.c: New file.
34169
34170         Tests for module 'unistr/u8-strcpy'.
34171         * modules/unistr/u8-strcpy-tests: New file.
34172         * tests/unistr/test-u8-strcpy.c: New file.
34173         * tests/unistr/test-strcpy.h: New file.
34174
34175         Tests for module 'unistr/u32-strnlen'.
34176         * modules/unistr/u32-strnlen-tests: New file.
34177         * tests/unistr/test-u32-strnlen.c: New file.
34178
34179         Tests for module 'unistr/u16-strnlen'.
34180         * modules/unistr/u16-strnlen-tests: New file.
34181         * tests/unistr/test-u16-strnlen.c: New file.
34182
34183         Tests for module 'unistr/u8-strnlen'.
34184         * modules/unistr/u8-strnlen-tests: New file.
34185         * tests/unistr/test-u8-strnlen.c: New file.
34186         * tests/unistr/test-strnlen.h: New file.
34187
34188         Tests for module 'unistr/u32-strlen'.
34189         * modules/unistr/u32-strlen-tests: New file.
34190         * tests/unistr/test-u32-strlen.c: New file.
34191
34192         Tests for module 'unistr/u16-strlen'.
34193         * modules/unistr/u16-strlen-tests: New file.
34194         * tests/unistr/test-u16-strlen.c: New file.
34195
34196         Tests for module 'unistr/u8-strlen'.
34197         * modules/unistr/u8-strlen-tests: New file.
34198         * tests/unistr/test-u8-strlen.c: New file.
34199
34200         Tests for module 'unistr/u32-prev'.
34201         * modules/unistr/u32-prev-tests: New file.
34202         * tests/unistr/test-u32-prev.c: New file.
34203
34204         Tests for module 'unistr/u16-prev'.
34205         * modules/unistr/u16-prev-tests: New file.
34206         * tests/unistr/test-u16-prev.c: New file.
34207
34208         Tests for module 'unistr/u8-prev'.
34209         * modules/unistr/u8-prev-tests: New file.
34210         * tests/unistr/test-u8-prev.c: New file.
34211
34212         Tests for module 'unistr/u32-next'.
34213         * modules/unistr/u32-next-tests: New file.
34214         * tests/unistr/test-u32-next.c: New file.
34215
34216         Tests for module 'unistr/u16-next'.
34217         * modules/unistr/u16-next-tests: New file.
34218         * tests/unistr/test-u16-next.c: New file.
34219
34220         Tests for module 'unistr/u8-next'.
34221         * modules/unistr/u8-next-tests: New file.
34222         * tests/unistr/test-u8-next.c: New file.
34223
34224         Tests for module 'unistr/u32-strmbtouc'.
34225         * modules/unistr/u32-strmbtouc-tests: New file.
34226         * tests/unistr/test-u32-strmbtouc.c: New file.
34227
34228         Tests for module 'unistr/u16-strmbtouc'.
34229         * modules/unistr/u16-strmbtouc-tests: New file.
34230         * tests/unistr/test-u16-strmbtouc.c: New file.
34231
34232         Tests for module 'unistr/u8-strmbtouc'.
34233         * modules/unistr/u8-strmbtouc-tests: New file.
34234         * tests/unistr/test-u8-strmbtouc.c: New file.
34235
34236         Tests for module 'unistr/u32-strmblen'.
34237         * modules/unistr/u32-strmblen-tests: New file.
34238         * tests/unistr/test-u32-strmblen.c: New file.
34239
34240         Tests for module 'unistr/u16-strmblen'.
34241         * modules/unistr/u16-strmblen-tests: New file.
34242         * tests/unistr/test-u16-strmblen.c: New file.
34243
34244         Tests for module 'unistr/u8-strmblen'.
34245         * modules/unistr/u8-strmblen-tests: New file.
34246         * tests/unistr/test-u8-strmblen.c: New file.
34247
34248         Tests for module 'unistr/u32-cpy-alloc'.
34249         * modules/unistr/u32-cpy-alloc-tests: New file.
34250         * tests/unistr/test-u32-cpy-alloc.c: New file.
34251
34252         Tests for module 'unistr/u16-cpy-alloc'.
34253         * modules/unistr/u16-cpy-alloc-tests: New file.
34254         * tests/unistr/test-u16-cpy-alloc.c: New file.
34255
34256         Tests for module 'unistr/u8-cpy-alloc'.
34257         * modules/unistr/u8-cpy-alloc-tests: New file.
34258         * tests/unistr/test-u8-cpy-alloc.c: New file.
34259         * tests/unistr/test-cpy-alloc.h: New file.
34260
34261         Tests for module 'unistr/u32-mbsnlen'.
34262         * modules/unistr/u32-mbsnlen-tests: New file.
34263         * tests/unistr/test-u32-mbsnlen.c: New file.
34264
34265         Tests for module 'unistr/u16-mbsnlen'.
34266         * modules/unistr/u16-mbsnlen-tests: New file.
34267         * tests/unistr/test-u16-mbsnlen.c: New file.
34268
34269         Tests for module 'unistr/u8-mbsnlen'.
34270         * modules/unistr/u8-mbsnlen-tests: New file.
34271         * tests/unistr/test-u8-mbsnlen.c: New file.
34272
34273         Tests for module 'unistr/u32-chr'.
34274         * modules/unistr/u32-chr-tests: New file.
34275         * tests/unistr/test-u32-chr.c: New file.
34276
34277         Tests for module 'unistr/u16-chr'.
34278         * modules/unistr/u16-chr-tests: New file.
34279         * tests/unistr/test-u16-chr.c: New file.
34280
34281         Tests for module 'unistr/u8-chr'.
34282         * modules/unistr/u8-chr-tests: New file.
34283         * tests/unistr/test-u8-chr.c: New file.
34284         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34285
34286         Tests for module 'unistr/u32-cmp2'.
34287         * modules/unistr/u32-cmp2-tests: New file.
34288         * tests/unistr/test-u32-cmp2.c: New file.
34289
34290         Tests for module 'unistr/u16-cmp2'.
34291         * modules/unistr/u16-cmp2-tests: New file.
34292         * tests/unistr/test-u16-cmp2.c: New file.
34293
34294         Tests for module 'unistr/u8-cmp2'.
34295         * modules/unistr/u8-cmp2-tests: New file.
34296         * tests/unistr/test-u8-cmp2.c: New file.
34297         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34298
34299         Tests for module 'unistr/u32-cmp'.
34300         * modules/unistr/u32-cmp-tests: New file.
34301         * tests/unistr/test-u32-cmp.c: New file.
34302
34303         Tests for module 'unistr/u16-cmp'.
34304         * modules/unistr/u16-cmp-tests: New file.
34305         * tests/unistr/test-u16-cmp.c: New file.
34306
34307         Tests for module 'unistr/u8-cmp'.
34308         * modules/unistr/u8-cmp-tests: New file.
34309         * tests/unistr/test-u8-cmp.c: New file.
34310         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34311
34312         Tests for module 'unistr/u32-set'.
34313         * modules/unistr/u32-set-tests: New file.
34314         * tests/unistr/test-u32-set.c: New file.
34315
34316         Tests for module 'unistr/u16-set'.
34317         * modules/unistr/u16-set-tests: New file.
34318         * tests/unistr/test-u16-set.c: New file.
34319
34320         Tests for module 'unistr/u8-set'.
34321         * modules/unistr/u8-set-tests: New file.
34322         * tests/unistr/test-u8-set.c: New file.
34323         * tests/unistr/test-set.h: New file.
34324
34325         Tests for module 'unistr/u32-move'.
34326         * modules/unistr/u32-move-tests: New file.
34327         * tests/unistr/test-u32-move.c: New file.
34328
34329         Tests for module 'unistr/u16-move'.
34330         * modules/unistr/u16-move-tests: New file.
34331         * tests/unistr/test-u16-move.c: New file.
34332
34333         Tests for module 'unistr/u8-move'.
34334         * modules/unistr/u8-move-tests: New file.
34335         * tests/unistr/test-u8-move.c: New file.
34336         * tests/unistr/test-move.h: New file.
34337
34338         Tests for module 'unistr/u32-cpy'.
34339         * modules/unistr/u32-cpy-tests: New file.
34340         * tests/unistr/test-u32-cpy.c: New file.
34341
34342         Tests for module 'unistr/u16-cpy'.
34343         * modules/unistr/u16-cpy-tests: New file.
34344         * tests/unistr/test-u16-cpy.c: New file.
34345
34346         Tests for module 'unistr/u8-cpy'.
34347         * modules/unistr/u8-cpy-tests: New file.
34348         * tests/unistr/test-u8-cpy.c: New file.
34349         * tests/unistr/test-cpy.h: New file.
34350
34351 2010-01-09  Bruno Haible  <bruno@clisp.org>
34352
34353         Tests for module 'unistr/u32-uctomb'.
34354         * modules/unistr/u32-uctomb-tests: New file.
34355         * tests/unistr/test-u32-uctomb.c: New file.
34356
34357         Tests for module 'unistr/u16-uctomb'.
34358         * modules/unistr/u16-uctomb-tests: New file.
34359         * tests/unistr/test-u16-uctomb.c: New file.
34360
34361         Tests for module 'unistr/u8-uctomb'.
34362         * modules/unistr/u8-uctomb-tests: New file.
34363         * tests/unistr/test-u8-uctomb.c: New file.
34364
34365         Tests for module 'unistr/u32-mbtoucr'.
34366         * modules/unistr/u32-mbtoucr-tests: New file.
34367         * tests/unistr/test-u32-mbtoucr.c: New file.
34368
34369         Tests for module 'unistr/u16-mbtoucr'.
34370         * modules/unistr/u16-mbtoucr-tests: New file.
34371         * tests/unistr/test-u16-mbtoucr.c: New file.
34372
34373         Tests for module 'unistr/u8-mbtoucr'.
34374         * modules/unistr/u8-mbtoucr-tests: New file.
34375         * tests/unistr/test-u8-mbtoucr.c: New file.
34376
34377         Tests for module 'unistr/u32-mbtouc'.
34378         * modules/unistr/u32-mbtouc-tests: New file.
34379         * tests/unistr/test-u32-mbtouc.c: New file.
34380
34381         Tests for module 'unistr/u16-mbtouc'.
34382         * modules/unistr/u16-mbtouc-tests: New file.
34383         * tests/unistr/test-u16-mbtouc.c: New file.
34384
34385         Tests for module 'unistr/u8-mbtouc'.
34386         * modules/unistr/u8-mbtouc-tests: New file.
34387         * tests/unistr/test-u8-mbtouc.c: New file.
34388
34389         Tests for module 'unistr/u32-mbtouc-unsafe'.
34390         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34391         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34392         * tests/unistr/test-u32-mbtouc.h: New file.
34393
34394         Tests for module 'unistr/u16-mbtouc-unsafe'.
34395         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34396         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34397         * tests/unistr/test-u16-mbtouc.h: New file.
34398
34399         Tests for module 'unistr/u8-mbtouc-unsafe'.
34400         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34401         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34402         * tests/unistr/test-u8-mbtouc.h: New file.
34403
34404         Tests for module 'unistr/u32-mblen'.
34405         * modules/unistr/u32-mblen-tests: New file.
34406         * tests/unistr/test-u32-mblen.c: New file.
34407
34408         Tests for module 'unistr/u16-mblen'.
34409         * modules/unistr/u16-mblen-tests: New file.
34410         * tests/unistr/test-u16-mblen.c: New file.
34411
34412         Tests for module 'unistr/u8-mblen'.
34413         * modules/unistr/u8-mblen-tests: New file.
34414         * tests/unistr/test-u8-mblen.c: New file.
34415
34416         Tests for module 'unistr/u32-to-u16'.
34417         * modules/unistr/u32-to-u16-tests: New file.
34418         * tests/unistr/test-u32-to-u16.c: New file.
34419
34420         Tests for module 'unistr/u32-to-u8'.
34421         * modules/unistr/u32-to-u8-tests: New file.
34422         * tests/unistr/test-u32-to-u8.c: New file.
34423
34424         Tests for module 'unistr/u16-to-u32'.
34425         * modules/unistr/u16-to-u32-tests: New file.
34426         * tests/unistr/test-u16-to-u32.c: New file.
34427
34428         Tests for module 'unistr/u16-to-u8'.
34429         * modules/unistr/u16-to-u8-tests: New file.
34430         * tests/unistr/test-u16-to-u8.c: New file.
34431
34432         Tests for module 'unistr/u8-to-u32'.
34433         * modules/unistr/u8-to-u32-tests: New file.
34434         * tests/unistr/test-u8-to-u32.c: New file.
34435
34436         Tests for module 'unistr/u8-to-u16'.
34437         * modules/unistr/u8-to-u16-tests: New file.
34438         * tests/unistr/test-u8-to-u16.c: New file.
34439
34440         Tests for module 'unistr/u32-check'.
34441         * modules/unistr/u32-check-tests: New file.
34442         * tests/unistr/test-u32-check.c: New file.
34443
34444         Tests for module 'unistr/u16-check'.
34445         * modules/unistr/u16-check-tests: New file.
34446         * tests/unistr/test-u16-check.c: New file.
34447
34448         Tests for module 'unistr/u8-check'.
34449         * modules/unistr/u8-check-tests: New file.
34450         * tests/unistr/test-u8-check.c: New file.
34451
34452         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34453         (category_equals): New function.
34454         (main): Add more tests.
34455         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34456
34457         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34458
34459 2010-01-10  Bruno Haible  <bruno@clisp.org>
34460
34461         unistr/u*-strcoll: Try harder to distinguish different strings.
34462         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34463         compare s1 and s2 to see if they are different.
34464
34465 2010-01-10  Bruno Haible  <bruno@clisp.org>
34466
34467         unistr/u*-stpncpy: Fix the return value.
34468         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34469         description of the return value consistent with stpncpy in glibc.
34470         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34471         written non-NUL unit.
34472
34473 2010-01-10  Bruno Haible  <bruno@clisp.org>
34474
34475         unistr/u*-next: Add missing dependencies.
34476         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34477         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34478         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34479
34480 2010-01-10  Bruno Haible  <bruno@clisp.org>
34481
34482         unistr/u8-mbsnlen: Fix return value for incomplete character.
34483         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34484         u8_mblen.
34485         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34486         Remove unistr/u8-mblen.
34487         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34488         u16_mblen.
34489         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34490         Remove unistr/u16-mblen.
34491
34492 2010-01-10  Bruno Haible  <bruno@clisp.org>
34493
34494         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34495         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34496         Reported by Brian Gough <bjg@gnu.org> and
34497         Chris Clayton <chris2553@googlemail.com> via
34498         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34499
34500 2010-01-09  Bruno Haible  <bruno@clisp.org>
34501
34502         unistr/u16-to-u32: Reject invalid input.
34503         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34504         u16_mbtouc.
34505         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34506         Remove unistr/u16-mbtouc.
34507
34508         unistr/u16-to-u8: Reject invalid input.
34509         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34510         u16_mbtouc.
34511         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34512         Remove unistr/u16-mbtouc.
34513
34514         unistr/u8-to-u32: Reject invalid input.
34515         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34516         u8_mbtouc.
34517         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34518         Remove unistr/u8-mbtouc.
34519
34520         unistr/u8-to-u16: Reject invalid input.
34521         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34522         u8_mbtouc.
34523         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34524         Remove unistr/u8-mbtouc.
34525
34526 2010-01-09  Bruno Haible  <bruno@clisp.org>
34527
34528         Tests for module 'getlogin'.
34529         * modules/getlogin-tests: New file.
34530         * tests/test-getlogin.c: New file.
34531
34532         New module 'getlogin'.
34533         * lib/unistd.in.h (getlogin): New declaration.
34534         * lib/getlogin.c: New file.
34535         * m4/getlogin.m4: New file.
34536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34537         HAVE_GETLOGIN.
34538         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34539         HAVE_GETLOGIN.
34540         * modules/getlogin: New file.
34541         * doc/posix-functions/getlogin.texi: Mention the new module.
34542         Reported by John W. Eaton <jwe@gnu.org>.
34543
34544 2010-01-09  Bruno Haible  <bruno@clisp.org>
34545
34546         getlogin_r: Support for native Windows.
34547         * lib/getlogin_r.c: Include <windows.h>
34548         (getlogin_r): Implement for native Windows.
34549         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34550         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34551         via John W. Eaton <jwe@gnu.org>.
34552
34553 2010-01-09  Bruno Haible  <bruno@clisp.org>
34554
34555         getlogin_r: Small fixes.
34556         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34557         succeeds.
34558         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34559         before testing whether getlogin_r is declared. No need to set
34560         HAVE_DECL_GETLOGIN_R to 1.
34561         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34562
34563 2010-01-09  Bruno Haible  <bruno@clisp.org>
34564
34565         * lib/unistd.in.h (getlogin_r): Add comment.
34566
34567 2010-01-09  Bruno Haible  <bruno@clisp.org>
34568
34569         Tests for module 'getlogin_r'.
34570         * modules/getlogin_r-tests: New file.
34571         * tests/test-getlogin_r.c: New file.
34572
34573 2010-01-09  Jim Meyering  <meyering@redhat.com>
34574
34575         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34576         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34577         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34578
34579 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34580
34581         * lib/dup2.c (rpl_dup2): Improve comment.
34582
34583 2010-01-08  Eric Blake  <ebb9@byu.net>
34584
34585         maint.mk: allow packages to add makefile @@ exceptions
34586         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34587         (sc_makefile_check): Rename...
34588         (sc_makefile_at_at_check): ...to this, and use hook.
34589
34590         dup2: work around mingw bug
34591         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34592         Reported by Simon Josefsson.
34593
34594 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34595
34596         glob: Fix C++ compilation.
34597         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34598         C++.
34599
34600 2010-01-07  Bruno Haible  <bruno@clisp.org>
34601
34602         Fix indentation of wctype.in.h, broken since 2007-01-06.
34603         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34604
34605 2010-01-07  Bruno Haible  <bruno@clisp.org>
34606
34607         mbslen: Avoid collision with system function.
34608         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34609         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34610         * m4/mbslen.m4: New file.
34611         * modules/mbslen (Files): Add it.
34612         (configure.ac): Invoke gl_MBSLEN.
34613         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34614         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34615         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34616         via Ian Beckwith <ianb@erislabs.net>.
34617
34618 2010-01-07  Bruno Haible  <bruno@clisp.org>
34619
34620         dirent: Document the last fix.
34621         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34622
34623 2010-01-07  Bruno Haible  <bruno@clisp.org>
34624
34625         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34626         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34627         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34628         va_list are defined.
34629         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34630         Reported by Eric Blake.
34631
34632 2010-01-07  Bruno Haible  <bruno@clisp.org>
34633
34634         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34635         * modules/xlist (Depends-on): Add 'list',
34636         * modules/xoset (Depends-on): Add 'oset'.
34637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34638
34639 2010-01-07  Bruno Haible  <bruno@clisp.org>
34640
34641         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34642         * doc/posix-functions/strncasecmp.texi: Likewise.
34643
34644 2010-01-07  Bruno Haible  <bruno@clisp.org>
34645
34646         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34647
34648 2010-01-07  John W. Eaton  <jwe@octave.org>
34649
34650         wctype: allow C++ use
34651         * lib/wctype.in.h: Add extern "C" block for C++.
34652
34653 2010-01-06  Eric Blake  <ebb9@byu.net>
34654
34655         maint.mk: detect incorrect GFDL usage
34656         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34657
34658 2010-01-06  Jim Meyering  <meyering@redhat.com>
34659         and Eric Blake  <ebb9@byu.net>
34660
34661         maint.mk: ignore multi-line copyright in NEWS
34662         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34663
34664 2010-01-06  Eric Blake  <ebb9@byu.net>
34665
34666         select: add missing dependency
34667         * modules/select-tests (Depends-on): Move sockets dependency...
34668         * modules/select (Depends-on): ...here.
34669         Reported by Ian Beckwith.
34670
34671         doc: regenerate INSTALL
34672         * doc/INSTALL: Reflect recent autoconf update.
34673         * doc/INSTALL.ISO: Likewise.
34674         * doc/INSTALL.UTF-8: Likewise.
34675
34676         pread: fix compilation on glibc
34677         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34678         Reported by Ralf Wildenhues.
34679
34680         dirent: fix test failure
34681         * lib/dirent.in.h (includes): Guarantee ino_t.
34682         Reported by Ralf Wildenhues.
34683
34684 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34685
34686         linkat, renameat: avoid bad free
34687         * lib/at-func2.c (at_func2): Fix typo.
34688         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34689
34690 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34691
34692         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34693         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34694         to avoid failure of symlink test later.
34695
34696 2010-01-06  Eric Blake  <ebb9@byu.net>
34697
34698         stdio, unistd: guarantee ssize_t
34699         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34700         2008 are exposed when needed.
34701         * lib/stdio.in.h (includes): Likewise.
34702         Reported by Ralf Wildenhues.
34703
34704 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34705
34706         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34707         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34708         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34709
34710 2010-01-06  Jim Meyering  <meyering@redhat.com>
34711
34712         readtokens: this module *does* require xalloc.h
34713         It uses only functions that were omitted by the old syntax-check rule.
34714         * lib/readtokens.c: Include "xalloc.h" once again.
34715         * modules/readtokens (Depends-on): Add xalloc.
34716         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34717
34718 2010-01-05  Eric Blake  <ebb9@byu.net>
34719
34720         maint: support 'make announcement' from a VPATH build
34721         * top/maint.mk (announcement): Look for correct NEWS file.
34722
34723 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34724
34725         utimens (fdutimens): ignore a negative FD, per contract
34726         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34727         when we have a valid file descriptor.  Otherwise, using a brand
34728         new glibc (with just-patched futimens that now fails with EBADF)
34729         would cause this function to fail with ENOSYS.
34730         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34731         See also http://bugzilla.redhat.com/552320.
34732
34733 2010-01-05  Eric Blake  <ebb9@byu.net>
34734
34735         strcase: document what it provides
34736         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34737         gnulib module.
34738         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34739         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34740
34741 2010-01-05  Jim Meyering  <meyering@redhat.com>
34742
34743         maint: remove useless inclusions of "xalloc.h"
34744         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34745         * lib/readtokens.c: Likewise.
34746         * lib/same.c: Likewise.
34747         * modules/getloadavg (Depends-on): Remove xalloc.
34748         * modules/readtokens: Likewise.
34749         * modules/same: Likewise.
34750
34751         maint.mk: include 4 more function names in alloca.h-checking regexp
34752         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34753         regexp.  Before, we would give a false-positive (saying alloca.h
34754         is included unnecessarily) when the only uses involved omitted symbols.
34755
34756         xalloc.h: use consistent formatting
34757         * lib/xalloc.h: Move declarations to start in the first column.
34758
34759 2010-01-05  Eric Blake  <ebb9@byu.net>
34760
34761         mkdir: avoid xalloc
34762         * lib/mkdir.c (includes): Drop unused header.
34763         Reported by John W. Eaton.
34764
34765 2010-01-04  Jim Meyering  <meyering@redhat.com>
34766
34767         nl_langinfo: avoid configure-time syntax error
34768         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34769         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34770         the empty string.  Don't let that provoke a shell syntax error.
34771
34772         regcomp, regexec, fnmatch: avoid array bounds read error
34773         * lib/regcomp.c (build_equiv_class): From glibc:
34774         Use only the low 24 bits of a findidx return value as an index
34775         into the weights array.  Patch by Ulrich Drepper:
34776         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34777         * lib/regexec.c (check_node_accept_bytes): Likewise.
34778         * lib/fnmatch_loop.c (FCT): Likewise.
34779
34780         regcomp: skip collseq lookup when there are no rules
34781         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34782         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34783
34784         regcomp: recognize ill-formed { } expressions
34785         * lib/regcomp.c (parse_dup_op): From glibc:
34786         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34787
34788         regcomp: fix typo in comment
34789         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34790         s/satisfy/satisfies/.
34791
34792         regcomp: sync from glibc: remove dead store
34793         * lib/regcomp.c (duplicate_node_closure): Remove useless
34794         search_duplicated_node call and dead store.
34795
34796         regcomp: sync from glibc; always use nl_langinfo
34797         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34798         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34799         * modules/regex (Depends-on): Add nl_langinfo.
34800
34801 2010-01-04  Eric Blake  <ebb9@byu.net>
34802
34803         fdopendir: fix configure test
34804         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34805
34806 2010-01-01  Bruno Haible  <bruno@clisp.org>
34807
34808         wchar: Remove unused configure check.
34809         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34810
34811 2010-01-01  Eric Blake  <ebb9@byu.net>
34812
34813         headers: make check of system header explicit
34814         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34815         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34816         ourselves.
34817         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34819         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34820         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34821         internals.
34822         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34823         missing.
34824         Suggested by Bruno Haible.
34825
34826 2010-01-01  Jim Meyering  <meyering@redhat.com>
34827
34828         ChangeLog: tweak to eliminate unnecessary copyright line
34829         * ChangeLog: Remove a copyright line that was mistakenly updated
34830         by today's update-copyright run.  Reported by Eric Blake.
34831
34832         test-update-copyright: don't let envvar setting cause test failure
34833         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34834
34835 2010-01-01  Bruno Haible  <bruno@clisp.org>
34836
34837         localename: Avoid gcc warning.
34838         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34839         function if it is not used.
34840
34841 2010-01-01  Jim Meyering  <meyering@redhat.com>
34842
34843         update nearly all FSF copyright year lists to include 2010
34844         Use the same procedure as for 2009, outlined in
34845         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34846
34847         version-etc: set COPYRIGHT_YEAR to 2010
34848         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34849
34850 2009-12-31  Eric Blake  <ebb9@byu.net>
34851
34852         doc: correct availability of cygwin 1.5.x getopt
34853         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34854         variables.
34855         * doc/posix-functions/opterr.texi (opterr): Likewise.
34856         * doc/posix-functions/optind.texi (optind): Likewise.
34857         * doc/posix-functions/optopt.texi (optopt): Likewise.
34858         * doc/posix-functions/tzname.texi (tzname): Likewise.
34859
34860         openat: update maintainer
34861         * modules/openat (Maintainer): Add myself.
34862
34863         utimens: avoid shadowing warning
34864         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34865         buffers into one, to avoid shadowing, as well as avoiding a
34866         redundant stat.
34867         Reported by Jim Meyering.
34868
34869         test-dup2: avoid compiler warning
34870         * tests/test-dup2.c (is_inheritable): Only define if used.
34871
34872 2010-01-01  Bruno Haible  <bruno@clisp.org>
34873
34874         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34875         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34876         defined, use wctomb instead of wcrtomb.
34877
34878 2010-01-01  Bruno Haible  <bruno@clisp.org>
34879
34880         iconv: Reject native Solaris iconv.
34881         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34882         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34883
34884 2009-12-31  Bruno Haible  <bruno@clisp.org>
34885
34886         * tests/test-signal.c (main): Remove test of 'SIG'.
34887
34888 2009-12-31  Bruno Haible  <bruno@clisp.org>
34889
34890         spawn: Fix incomplete fix.
34891         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34892         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34893         warnings for GNULIB_POSIXCHECK again.
34894         Reported by Eric Blake.
34895
34896 2009-12-31  Bruno Haible  <bruno@clisp.org>
34897
34898         Avoid namespace pollution on glibc systems.
34899         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34900         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34901         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34902         glibc systems.
34903
34904 2009-12-31  Bruno Haible  <bruno@clisp.org>
34905
34906         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34907         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34908         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34909         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34910         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34911         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34912         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34913
34914 2009-12-31  Bruno Haible  <bruno@clisp.org>
34915
34916         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34917         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34918         afterwards.
34919
34920 2009-12-31  Bruno Haible  <bruno@clisp.org>
34921
34922         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34923         SYS_UTSNAME_H.
34924
34925 2009-12-31  Bruno Haible  <bruno@clisp.org>
34926
34927         spawn: Fix misapplied patch.
34928         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34929         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34930         warnings for GNULIB_POSIXCHECK.
34931
34932 2009-12-31  Bruno Haible  <bruno@clisp.org>
34933
34934         times: Update after sys_times changed.
34935         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34936         * modules/times (Files): Add it.
34937         (configure.ac): Invoke gl_FUNC_TIMES.
34938
34939 2009-12-31  Bruno Haible  <bruno@clisp.org>
34940
34941         Use AC_C_INLINE where necessary.
34942         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34943         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34945         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34946         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34947         * m4/mbiter.m4 (gl_MBITER): Likewise.
34948         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34949         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34950         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34951         * modules/u64 (configure.ac): Likewise.
34952
34953 2009-12-31  Bruno Haible  <bruno@clisp.org>
34954
34955         Use AC_C_INLINE instead of module 'inline' where possible.
34956         * modules/inline (Description): Clarify purpose.
34957         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34958         * modules/count-one-bits (Depends-on): Remove inline.
34959         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34960         * modules/openat (Depends-on): Remove inline.
34961         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34962         instead of depending on module 'inline'.
34963         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34964         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34965         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34966         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34967         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34968         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34969         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34970         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34971         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34972         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34973         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34974         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34975         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34976         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34977         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34978         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34979         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34980         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34981         Likewise.
34982         * modules/unictype/property-ascii-hex-digit (Depends-on,
34983         configure.ac): Likewise.
34984         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34985         configure.ac): Likewise.
34986         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34987         configure.ac): Likewise.
34988         * modules/unictype/property-bidi-block-separator (Depends-on,
34989         configure.ac): Likewise.
34990         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34991         configure.ac): Likewise.
34992         * modules/unictype/property-bidi-common-separator (Depends-on,
34993         configure.ac): Likewise.
34994         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34995         Likewise.
34996         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34997         configure.ac): Likewise.
34998         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34999         configure.ac): Likewise.
35000         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35001         configure.ac): Likewise.
35002         * modules/unictype/property-bidi-european-digit (Depends-on,
35003         configure.ac): Likewise.
35004         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35005         configure.ac): Likewise.
35006         * modules/unictype/property-bidi-left-to-right (Depends-on,
35007         configure.ac): Likewise.
35008         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35009         configure.ac): Likewise.
35010         * modules/unictype/property-bidi-other-neutral (Depends-on,
35011         configure.ac): Likewise.
35012         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35013         Likewise.
35014         * modules/unictype/property-bidi-segment-separator (Depends-on,
35015         configure.ac): Likewise.
35016         * modules/unictype/property-bidi-whitespace (Depends-on,
35017         configure.ac): Likewise.
35018         * modules/unictype/property-combining (Depends-on, configure.ac):
35019         Likewise.
35020         * modules/unictype/property-composite (Depends-on, configure.ac):
35021         Likewise.
35022         * modules/unictype/property-currency-symbol (Depends-on,
35023         configure.ac): Likewise.
35024         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35025         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35026         Likewise.
35027         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35028         configure.ac): Likewise.
35029         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35030         Likewise.
35031         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35032         Likewise.
35033         * modules/unictype/property-extender (Depends-on, configure.ac):
35034         Likewise.
35035         * modules/unictype/property-format-control (Depends-on, configure.ac):
35036         Likewise.
35037         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35038         Likewise.
35039         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35040         Likewise.
35041         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35042         Likewise.
35043         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35044         Likewise.
35045         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35046         Likewise.
35047         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35048         Likewise.
35049         * modules/unictype/property-id-start (Depends-on, configure.ac):
35050         Likewise.
35051         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35052         Likewise.
35053         * modules/unictype/property-ids-binary-operator (Depends-on,
35054         configure.ac): Likewise.
35055         * modules/unictype/property-ids-trinary-operator (Depends-on,
35056         configure.ac): Likewise.
35057         * modules/unictype/property-ignorable-control (Depends-on,
35058         configure.ac): Likewise.
35059         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35060         Likewise.
35061         * modules/unictype/property-join-control (Depends-on, configure.ac):
35062         Likewise.
35063         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35064         Likewise.
35065         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35066         Likewise.
35067         * modules/unictype/property-logical-order-exception (Depends-on,
35068         configure.ac): Likewise.
35069         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35070         Likewise.
35071         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35072         * modules/unictype/property-non-break (Depends-on, configure.ac):
35073         Likewise.
35074         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35075         Likewise.
35076         * modules/unictype/property-numeric (Depends-on, configure.ac):
35077         Likewise.
35078         * modules/unictype/property-other-alphabetic (Depends-on,
35079         configure.ac): Likewise.
35080         * modules/unictype/property-other-default-ignorable-code-point
35081         (Depends-on, configure.ac): Likewise.
35082         * modules/unictype/property-other-grapheme-extend (Depends-on,
35083         configure.ac): Likewise.
35084         * modules/unictype/property-other-id-continue (Depends-on,
35085         configure.ac): Likewise.
35086         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35087         Likewise.
35088         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35089         Likewise.
35090         * modules/unictype/property-other-math (Depends-on, configure.ac):
35091         Likewise.
35092         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35093         Likewise.
35094         * modules/unictype/property-paired-punctuation (Depends-on,
35095         configure.ac): Likewise.
35096         * modules/unictype/property-paragraph-separator (Depends-on,
35097         configure.ac): Likewise.
35098         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35099         Likewise.
35100         * modules/unictype/property-pattern-white-space (Depends-on,
35101         configure.ac): Likewise.
35102         * modules/unictype/property-private-use (Depends-on, configure.ac):
35103         Likewise.
35104         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35105         Likewise.
35106         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35107         Likewise.
35108         * modules/unictype/property-radical (Depends-on, configure.ac):
35109         Likewise.
35110         * modules/unictype/property-sentence-terminal (Depends-on,
35111         configure.ac): Likewise.
35112         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35113         Likewise.
35114         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35115         * modules/unictype/property-terminal-punctuation (Depends-on,
35116         configure.ac): Likewise.
35117         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35118         Likewise.
35119         * modules/unictype/property-unassigned-code-value (Depends-on,
35120         configure.ac): Likewise.
35121         * modules/unictype/property-unified-ideograph (Depends-on,
35122         configure.ac): Likewise.
35123         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35124         Likewise.
35125         * modules/unictype/property-variation-selector (Depends-on,
35126         configure.ac): Likewise.
35127         * modules/unictype/property-white-space (Depends-on, configure.ac):
35128         Likewise.
35129         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35130         Likewise.
35131         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35132         Likewise.
35133         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35134         Likewise.
35135         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35136         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35137         Likewise.
35138
35139 2009-12-31  Bruno Haible  <bruno@clisp.org>
35140
35141         Remove unnecessary AC_C_INLINE invocation.
35142         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35143         since 2009-08-21.
35144
35145 2009-12-31  Jim Meyering  <meyering@redhat.com>
35146
35147         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35148         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35149         With this change, we can all remove the gpg_key_ID = ... definition
35150         from our respective cfg.mk files.
35151
35152         maint.mk: create announcement template in ~/, not in /tmp
35153         * top/maint.mk (emit_upload_commands): Adjust.
35154         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35155         Remove temporary file, .ci-msg.
35156
35157 2009-12-31  Eric Blake  <ebb9@byu.net>
35158
35159         link-warning: always build headers with link warnings
35160         * modules/arpa_inet (Makefile.am): Always build replacement
35161         header.
35162         * modules/ctype (Makefile.am): Likewise.
35163         * modules/dirent (Makefile.am): Likewise.
35164         * modules/inttypes (Makefile.am): Likewise.
35165         * modules/langinfo (Makefile.am): Likewise.
35166         * modules/locale (Makefile.am): Likewise.
35167         * modules/spawn (Makefile.am): Likewise.
35168         * modules/sys_file (Makefile.am): Likewise.
35169         * modules/sys_ioctl (Makefile.am): Likewise.
35170         * modules/sys_select (Makefile.am): Likewise.
35171         * modules/sys_socket (Makefile.am): Likewise.
35172         * modules/sys_times (Makefile.am): Likewise.
35173         * modules/sys_utsname (Makefile.am): Likewise.
35174         * modules/sys_wait (Makefile.am): Likewise.
35175         * modules/wchar (Makefile.am): Likewise.
35176         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35177         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35178         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35179         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35180         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35181         Likewise.
35182         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35183         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35184         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35185         Likewise.
35186         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35187         Likewise.
35188         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35189         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35190         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35191         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35192         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35193         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35194         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35195         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35196         (gl_WCHAR_H_DEFAULTS): Likewise.
35197
35198 2009-12-31  Eric Blake  <ebb9@byu.net>
35199
35200         signal, spawn: use link warnings
35201         * lib/signal.in.h (sigset_t): Make unconditional.
35202         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35203         (sigpending, sigprocmask, sigaction): Add link warnings.
35204         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35205         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35206         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35207         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35208         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35209         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35210         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35211         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35212         (posix_spawn_file_actions_destroy)
35213         (posix_spawn_file_actions_addopen)
35214         (posix_spawn_file_actions_addclose)
35215         (posix_spawn_file_actions_adddup2): Likewise.
35216         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35217         * tests/test-signal.c (main): Enhance test.
35218
35219         spawn: improve wrapper support
35220         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35221         (gl_SPAWN_H_DEFAULTS): New defaults.
35222         * modules/spawn (Makefile.am): Substitute them.
35223         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35224         Only declare if missing or broken.
35225
35226         sys_times, sys_utsname: use include_next
35227         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35228         header.
35229         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35230         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35231         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35232         * modules/sys_times (Depends-on): Add include_next.
35233         (Makefile.am): Substitute additional values.
35234         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35235         * lib/sys_times.in.h (includes): Include native header, if
35236         available.
35237         * lib/sys_utsname.in.h (includes): Likewise.
35238         * tests/test-sys_times.c (main): Enhance test.
35239
35240         fdutimensat: revert prior patch
35241         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35242         utimens.h.
35243         Reported by Bruno Haible.
35244
35245 2009-12-30  Eric Blake  <ebb9@byu.net>
35246
35247         sys_wait: drop link-warning dependency
35248         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35249         link-warning efforts.
35250         * lib/sys_wait.in.h: Likewise.
35251
35252         fdutimensat: remove bogus dependency
35253         * modules/fdutimensat (Depends-on): Drop inline.
35254
35255         unistd: fix typo
35256         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35257
35258 2009-12-30  Bruno Haible  <bruno@clisp.org>
35259
35260         Fix compilation error with Solaris cc.
35261         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35262         * lib/unicase/u16-is-invariant.c: Likewise.
35263         * lib/unicase/u32-is-invariant.c: Likewise.
35264         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35265
35266 2009-12-30  Bruno Haible  <bruno@clisp.org>
35267
35268         Fix test crash.
35269         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35270         locales.
35271         Reported by Simon Josefsson <simon@josefsson.org>.
35272
35273 2009-12-30  Bruno Haible  <bruno@clisp.org>
35274
35275         Fix compilation error on most platforms.
35276         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35277         Reported by Simon Josefsson <simon@josefsson.org>
35278         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35279
35280 2009-12-30  Eric Blake  <ebb9@byu.net>
35281
35282         futimens, utimensat: work around ntfs-3g bug
35283         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35284         a ctime bug is present, and expand workaround to cover ntfs-3g.
35285         * lib/utimens.c (fdutimens, lutimens): Likewise.
35286         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35287         (validate_timespec): Adjust return value.
35288         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35289         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35290         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35291
35292 2009-12-29  Eric Blake  <ebb9@byu.net>
35293
35294         link-warning: make usage consistent
35295         * modules/ctype (Depends-on): Add link-warning.
35296         (Makefile.am): Update rules accordingly.
35297         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35298         * modules/locale (Depends-on, Makefile.am): Likewise.
35299         * modules/sys_file (Makefile.am): Likewise.
35300         * modules/getopt-posix (Makefile.am): Delete unused link warning
35301         efforts.
35302         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35303         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35304         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35305         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35306
35307         stdio: remove unused variables
35308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35309         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35310         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35311
35312         tests: test more substitute headers
35313         * modules/ctype-tests: New file.
35314         * modules/dirent-tests: Likewise.
35315         * modules/spawn-tests: Likewise.
35316         * modules/sys_file-tests: Likewise.
35317         * modules/sys_ioctl-tests: Likewise.
35318         * modules/sys_wait-tests: Likewise.
35319         * tests/test-ctype.c: Likewise.
35320         * tests/test-dirent.c: Likewise.
35321         * tests/test-spawn.c: Likewise.
35322         * tests/test-sys_file.c: Likewise.
35323         * tests/test-sys_ioctl.c: Likewise.
35324         * tests/test-sys_wait.c: Likewise.
35325         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35326         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35327         whether or not flock is in use.
35328
35329         tests: remove License section from module
35330         * modules/arpa_inet-tests: Remove unneeded section.
35331         * modules/byteswap-tests: Likewise.
35332         * modules/ceilf-tests: Likewise.
35333         * modules/ceill-tests: Likewise.
35334         * modules/crypto/des-tests: Likewise.
35335         * modules/crypto/gc-arcfour-tests: Likewise.
35336         * modules/crypto/gc-arctwo-tests: Likewise.
35337         * modules/crypto/gc-des-tests: Likewise.
35338         * modules/crypto/gc-hmac-md5-tests: Likewise.
35339         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35340         * modules/crypto/gc-md2-tests: Likewise.
35341         * modules/crypto/gc-md4-tests: Likewise.
35342         * modules/crypto/gc-md5-tests: Likewise.
35343         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35344         * modules/crypto/gc-rijndael-tests: Likewise.
35345         * modules/crypto/gc-sha1-tests: Likewise.
35346         * modules/crypto/gc-tests: Likewise.
35347         * modules/crypto/md2-tests: Likewise.
35348         * modules/crypto/md4-tests: Likewise.
35349         * modules/fcntl-h-tests: Likewise.
35350         * modules/floorf-tests: Likewise.
35351         * modules/floorl-tests: Likewise.
35352         * modules/frexp-nolibm-tests: Likewise.
35353         * modules/frexp-tests: Likewise.
35354         * modules/frexpl-nolibm-tests: Likewise.
35355         * modules/frexpl-tests: Likewise.
35356         * modules/getaddrinfo-tests: Likewise.
35357         * modules/inttypes-tests: Likewise.
35358         * modules/isfinite-tests: Likewise.
35359         * modules/isinf-tests: Likewise.
35360         * modules/ldexpl-tests: Likewise.
35361         * modules/locale-tests: Likewise.
35362         * modules/math-tests: Likewise.
35363         * modules/netdb-tests: Likewise.
35364         * modules/netinet_in-tests: Likewise.
35365         * modules/printf-frexp-tests: Likewise.
35366         * modules/printf-frexpl-tests: Likewise.
35367         * modules/priv-set-tests: Likewise.
35368         * modules/random_r-tests: Likewise.
35369         * modules/round-tests: Likewise.
35370         * modules/roundf-tests: Likewise.
35371         * modules/roundl-tests: Likewise.
35372         * modules/search-tests: Likewise.
35373         * modules/select-tests: Likewise.
35374         * modules/signal-tests: Likewise.
35375         * modules/stdbool-tests: Likewise.
35376         * modules/stddef-tests: Likewise.
35377         * modules/stdint-tests: Likewise.
35378         * modules/stdio-tests: Likewise.
35379         * modules/stdlib-tests: Likewise.
35380         * modules/string-tests: Likewise.
35381         * modules/strings-tests: Likewise.
35382         * modules/sys_select-tests: Likewise.
35383         * modules/sys_socket-tests: Likewise.
35384         * modules/sys_stat-tests: Likewise.
35385         * modules/sys_time-tests: Likewise.
35386         * modules/sys_utsname-tests: Likewise.
35387         * modules/sysexits-tests: Likewise.
35388         * modules/time-tests: Likewise.
35389         * modules/trunc-tests: Likewise.
35390         * modules/truncf-tests: Likewise.
35391         * modules/truncl-tests: Likewise.
35392         * modules/tsearch-tests: Likewise.
35393         * modules/unistd-tests: Likewise.
35394         * modules/wchar-tests: Likewise.
35395         * modules/wctype-tests: Likewise.
35396
35397         tests: fix license on several tests
35398         * tests/test-des.c: Update to GPLv3+.
35399         * tests/test-flock.c: Likewise.
35400         * tests/test-fsync.c: Likewise.
35401         * tests/test-futimens.h: Likewise.
35402         * tests/test-gc-arcfour.c: Likewise.
35403         * tests/test-gc-arctwo.c: Likewise.
35404         * tests/test-gc-des.c: Likewise.
35405         * tests/test-gc-hmac-md5.c: Likewise.
35406         * tests/test-gc-hmac-sha1.c: Likewise.
35407         * tests/test-gc-md2.c: Likewise.
35408         * tests/test-gc-md4.c: Likewise.
35409         * tests/test-gc-md5.c: Likewise.
35410         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35411         * tests/test-gc-rijndael.c: Likewise.
35412         * tests/test-gc-sha1.c: Likewise.
35413         * tests/test-gc.c: Likewise.
35414         * tests/test-getcwd.c: Likewise.
35415         * tests/test-link.c: Likewise.
35416         * tests/test-link.h: Likewise.
35417         * tests/test-lutimens.h: Likewise.
35418         * tests/test-md2.c: Likewise.
35419         * tests/test-md4.c: Likewise.
35420         * tests/test-mkdir.h: Likewise.
35421         * tests/test-rename.c: Likewise.
35422         * tests/test-rename.h: Likewise.
35423         * tests/test-safe-alloc.c: Likewise.
35424         * tests/test-utimens-common.h: Likewise.
35425         * tests/test-utimens.h: Likewise.
35426
35427         maint: sync license texts
35428         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35429         * doc/gpl-3.0.texi: Revert copyright year update.
35430         * doc/lgpl-3.0.texi: Likewise.
35431
35432 2009-12-29  Jim Meyering  <meyering@redhat.com>
35433
35434         update nearly all FSF copyright year lists to include 2009
35435         The files named by the following are exempted:
35436             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35437               test -f "$dst" && { echo "$dst"; continue; }
35438               test -d "$dst" || continue
35439               echo "$dst"/$(basename "$src")
35440             done > exempt
35441             git ls-files tests/unictype >> exempt
35442         In the remaining files, convert to all-interval notation if
35443         - there is already at least one year interval like 2000-2003
35444         - the file is maintained by me
35445         - the file is in lib/uni*/, where that style already prevails
35446         Otherwise, use update-copyright's default.
35447
35448 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35449         and Eric Blake  <ebb9@byu.net>
35450
35451         tests: don't require debug system() to pass
35452         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35453         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35454         * tests/test-unlink.h (test_unlink_func): Likewise.
35455         * tests/test-fstatat.c (main): ...into callers.
35456         * tests/test-lstat.c (main): Likewise.
35457         * tests/test-rmdir.c (main): Likewise.
35458         * tests/test-unlink.c (main): Likewise.
35459         * tests/test-unlinkat.c (main): Likewise.
35460         * tests/test-areadlink-with-size.c (main): Don't require a
35461         debug-only system call to pass, aiding cross-testing to mingw.
35462         * tests/test-areadlink.c (main): Likewise.
35463         * tests/test-areadlinkat-with-size.c (main): Likewise.
35464         * tests/test-areadlinkat.c (main): Likewise.
35465         * tests/test-canonicalize-lgpl.c (main): Likewise.
35466         * tests/test-canonicalize.c (main): Likewise.
35467         * tests/test-chown.c (main): Likewise.
35468         * tests/test-fchownat.c (main): Likewise.
35469         * tests/test-lchown.c (main): Likewise.
35470         * tests/test-fdutimensat.c (main): Likewise.
35471         * tests/test-futimens.c (main): Likewise.
35472         * tests/test-link.c (main): Likewise.
35473         * tests/test-linkat.c (main): Likewise.
35474         * tests/test-mkdir.c (main): Likewise.
35475         * tests/test-mkdirat.c (main): Likewise.
35476         * tests/test-mkfifo.c (main): Likewise.
35477         * tests/test-mkfifoat.c (main): Likewise.
35478         * tests/test-mknod.c (main): Likewise.
35479         * tests/test-readlink.c (main): Likewise.
35480         * tests/test-remove.c (main): Likewise.
35481         * tests/test-rename.c (main): Likewise.
35482         * tests/test-renameat.c (main): Likewise.
35483         * tests/test-symlink.c (main): Likewise.
35484         * tests/test-symlinkat.c (main): Likewise.
35485         * tests/test-utimens.c (main): Likewise.
35486         * tests/test-utimensat.c (main): Likewise.
35487
35488 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35489
35490         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35491         on $(UNUSED_PARAMETER_H) to avoid build failure.
35492
35493 2009-12-28  Jim Meyering  <meyering@redhat.com>
35494
35495         update-copyright: you may specify a max. line length other than 72
35496         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35497
35498         maint: use consistent FSF copyright line syntax
35499         * lib/posixtm.c: Add missing comma in FSF copyright line.
35500         * lib/posixtm.h: Likewise.
35501         * lib/getugroups.c: Add missing ", Inc.".
35502
35503         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35504         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35505         FSF copyright line.  Remove trailing blanks.
35506
35507 2009-12-28  Eric Blake  <ebb9@byu.net>
35508
35509         test-dup2: reduce dependencies
35510         * modules/cloexec (Configure.ac): Set witness.
35511         * modules/dup2-tests (Depends-on): Drop cloexec.
35512         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35513         not present.
35514         Suggested by Bruno Haible.
35515
35516 2009-12-26  Bruno Haible  <bruno@clisp.org>
35517
35518         Remove an unneeded dependency.
35519         * modules/fseterr (Depends-on): Remove dup2.
35520
35521 2009-12-26  Eric Blake  <ebb9@byu.net>
35522
35523         tests: use macros.h in more places
35524         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35525         (ASSERT_STREAM): Provide default of stderr.
35526         * tests/test-dirent-safer.c: Include macros.h, using alternate
35527         stream for assertions.
35528         * tests/test-dup-safer.c: Likewise.
35529         * tests/test-freopen-safer.c: Likewise.
35530         * tests/test-getopt.c: Likewise.
35531         * tests/test-openat-safer.c: Likewise.
35532         * tests/test-pipe.c: Likewise.
35533         * tests/test-popen-safer.c: Likewise.
35534         * modules/dirent-safer-tests (Files): Include macros.h.
35535         * modules/unistd-safer-tests (Files): Likewise.
35536         * modules/freopen-safer-tests (Files): Likewise.
35537         * modules/getopt-posix-tests (Files): Likewise.
35538         * modules/openat-safer-tests (Files): Likewise.
35539         * modules/pipe-tests (Files): Likewise.
35540
35541 2009-12-26  Bruno Haible  <bruno@clisp.org>
35542
35543         javacomp: Portability fix.
35544         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35545         that it also works on Solaris.
35546
35547 2009-12-26  Bruno Haible  <bruno@clisp.org>
35548
35549         localename: Fix storage allocation of gl_locale_name_thread's result.
35550         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35551         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35552         all platforms that have 'uselocale'.
35553         (gl_locale_name_thread_unsafe): New function, extracted from
35554         gl_locale_name_thread.
35555         (gl_locale_name_thread): Call struniq on all platforms that have
35556         'uselocale'.
35557         * tests/test-localename.c (test_locale_name_thread): Check that the
35558         resulting strings are permanently allocated.
35559         * modules/localename-tests (Depends-on): Add strdup.
35560
35561 2009-12-26  Bruno Haible  <bruno@clisp.org>
35562
35563         * tests/test-localename.c (categories): Fill in the strings.
35564
35565 2009-12-26  Jim Meyering  <meyering@redhat.com>
35566
35567         isdir: complete the removal of m4/isdir.m4
35568         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35569
35570         isdir: clean up, since at least grep still uses it
35571         * lib/isdir.c: Include "isdir.h".
35572         (S_ISDIR): Remove now-unneeded definition.
35573         * modules/isdir (Files): Add lib/isdir.h.
35574         * lib/isdir.h: New file, with declaration.
35575         * m4/isdir.m4: Remove file -- unneeded.
35576
35577 2009-12-25  Bruno Haible  <bruno@clisp.org>
35578
35579         selinux-h: Make generated .h files standalone.
35580         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35581         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35582         * lib/se-selinux.in.h: Likewise.
35583         * modules/selinux-h (Depends-on): Add unused-parameter.
35584         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35585         selinux/selinux.h and selinux/context.h.
35586         Suggested by Eric Blake.
35587
35588 2009-12-25  Bruno Haible  <bruno@clisp.org>
35589
35590         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35591         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35592         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35593         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35594         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35595
35596 2009-12-24  Bruno Haible  <bruno@clisp.org>
35597
35598         openat: Fix warning.
35599         * lib/openat-proc.c: Include <unistd.h>.
35600
35601 2009-12-24  Bruno Haible  <bruno@clisp.org>
35602
35603         New module 'unused-parameter'.
35604         * build-aux/unused-parameter.h: New file, extracted from earlier
35605         gnulib-common.m4.
35606         * modules/unused-parameter: New file.
35607         * lib/unistr.h: Include unused-parameter.h.
35608         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35609         _GL_UNUSED.
35610         * modules/unistr/base (Depends-on): Add unused-parameter.
35611
35612 2009-12-24  Bruno Haible  <bruno@clisp.org>
35613
35614         Add missing dependencies to 'extensions' module.
35615         * m4/extensions.m4: Add comment.
35616         * modules/accept4 (Depends-on): Add extensions.
35617         * modules/dup3 (Depends-on): Likewise.
35618         * modules/fcntl (Depends-on): Likewise.
35619         * modules/futimens (Depends-on): Likewise.
35620         * modules/mknod (Depends-on): Likewise.
35621         * modules/pipe2 (Depends-on): Likewise.
35622         * modules/stat-time (Depends-on): Likewise.
35623         * modules/strcasestr-simple (Depends-on): Likewise.
35624         * modules/strsignal (Depends-on): Likewise.
35625         * modules/utimensat (Depends-on): Likewise.
35626         * modules/localcharset (Depends-on): Likewise. Needed because of
35627         gl_FCNTL_O_FLAGS.
35628         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35629         AC_TYPE_MBSTATE_T.
35630         * modules/wcsnrtombs (Depends-on): Likewise.
35631         * modules/wcsrtombs (Depends-on): Likewise.
35632
35633 2009-12-24  Bruno Haible  <bruno@clisp.org>
35634
35635         binary-io: Avoid gcc warning due to SET_BINARY.
35636         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35637         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35638
35639 2009-12-24  Bruno Haible  <bruno@clisp.org>
35640
35641         Avoid future namespace pollution on glibc systems.
35642         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35643         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35644         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35645         glibc systems.
35646
35647 2009-12-24  Bruno Haible  <bruno@clisp.org>
35648
35649         Refactor common macros used in tests.
35650         * tests/macros.h: New file.
35651         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35652         and/or <stdlib.h>, if appropriate.
35653         (ASSERT, SIZEOF): Remove macros.
35654         * tests/test-areadlink-with-size.c: Likewise.
35655         * tests/test-areadlinkat.c: Likewise.
35656         * tests/test-areadlinkat-with-size.c: Likewise.
35657         * tests/test-argmatch.c: Likewise.
35658         * tests/test-argv-iter.c: Likewise.
35659         * tests/test-array-mergesort.c: Likewise.
35660         * tests/test-array_list.c: Likewise.
35661         * tests/test-array_oset.c: Likewise.
35662         * tests/test-avltree_list.c: Likewise.
35663         * tests/test-avltree_oset.c: Likewise.
35664         * tests/test-avltreehash_list.c: Likewise.
35665         * tests/test-base64.c: Likewise.
35666         * tests/test-binary-io.c: Likewise.
35667         * tests/test-bitrotate.c: Likewise.
35668         * tests/test-btowc.c: Likewise.
35669         * tests/test-byteswap.c: Likewise.
35670         * tests/test-c-ctype.c: Likewise.
35671         * tests/test-c-stack.c: Likewise.
35672         * tests/test-c-strcasecmp.c: Likewise.
35673         * tests/test-c-strcasestr.c: Likewise.
35674         * tests/test-c-strncasecmp.c: Likewise.
35675         * tests/test-c-strstr.c: Likewise.
35676         * tests/test-canonicalize-lgpl.c: Likewise.
35677         * tests/test-canonicalize.c: Likewise.
35678         * tests/test-carray_list.c: Likewise.
35679         * tests/test-ceilf1.c: Likewise.
35680         * tests/test-ceilf2.c: Likewise.
35681         * tests/test-ceill.c: Likewise.
35682         * tests/test-chown.c: Likewise.
35683         * tests/test-cloexec.c: Likewise.
35684         * tests/test-copy-acl.c: Likewise.
35685         * tests/test-copy-file.c: Likewise.
35686         * tests/test-count-one-bits.c: Likewise.
35687         * tests/test-dprintf-posix.c: Likewise.
35688         * tests/test-dup2.c: Likewise.
35689         * tests/test-dup3.c: Likewise.
35690         * tests/test-duplocale.c: Likewise.
35691         * tests/test-fbufmode.c: Likewise.
35692         * tests/test-fchdir.c: Likewise.
35693         * tests/test-fchownat.c: Likewise.
35694         * tests/test-fcntl-safer.c: Likewise.
35695         * tests/test-fcntl.c: Likewise.
35696         * tests/test-fdopendir.c: Likewise.
35697         * tests/test-fdutimensat.c: Likewise.
35698         * tests/test-fflush2.c: Likewise.
35699         * tests/test-file-has-acl.c: Likewise.
35700         * tests/test-filevercmp.c: Likewise.
35701         * tests/test-flock.c: Likewise.
35702         * tests/test-floorf1.c: Likewise.
35703         * tests/test-floorf2.c: Likewise.
35704         * tests/test-floorl.c: Likewise.
35705         * tests/test-fnmatch.c: Likewise.
35706         * tests/test-fopen.h: Likewise.
35707         * tests/test-fpending.c: Likewise.
35708         * tests/test-fprintf-posix.c: Likewise.
35709         * tests/test-fpurge.c: Likewise.
35710         * tests/test-freadable.c: Likewise.
35711         * tests/test-freadahead.c: Likewise.
35712         * tests/test-freading.c: Likewise.
35713         * tests/test-freadptr.c: Likewise.
35714         * tests/test-freadptr2.c: Likewise.
35715         * tests/test-freadseek.c: Likewise.
35716         * tests/test-freopen.c: Likewise.
35717         * tests/test-frexp.c: Likewise.
35718         * tests/test-frexpl.c: Likewise.
35719         * tests/test-fseek.c: Likewise.
35720         * tests/test-fseeko.c: Likewise.
35721         * tests/test-fstatat.c: Likewise.
35722         * tests/test-fstrcmp.c: Likewise.
35723         * tests/test-fsync.c: Likewise.
35724         * tests/test-ftell.c: Likewise.
35725         * tests/test-ftello.c: Likewise.
35726         * tests/test-func.c: Likewise.
35727         * tests/test-futimens.c: Likewise.
35728         * tests/test-fwritable.c: Likewise.
35729         * tests/test-fwriting.c: Likewise.
35730         * tests/test-getcwd.c: Likewise.
35731         * tests/test-getdate.c: Likewise.
35732         * tests/test-getdelim.c: Likewise.
35733         * tests/test-getdtablesize.c: Likewise.
35734         * tests/test-getgroups.c: Likewise.
35735         * tests/test-getline.c: Likewise.
35736         * tests/test-getndelim2.c: Likewise.
35737         * tests/test-glob.c: Likewise.
35738         * tests/test-hash.c: Likewise.
35739         * tests/test-i-ring.c: Likewise.
35740         * tests/test-iconv-utf.c: Likewise.
35741         * tests/test-iconv.c: Likewise.
35742         * tests/test-idpriv-drop.c: Likewise.
35743         * tests/test-idpriv-droptemp.c: Likewise.
35744         * tests/test-inet_ntop.c: Likewise.
35745         * tests/test-inet_pton.c: Likewise.
35746         * tests/test-isblank.c: Likewise.
35747         * tests/test-isfinite.c: Likewise.
35748         * tests/test-isinf.c: Likewise.
35749         * tests/test-isnan.c: Likewise.
35750         * tests/test-isnand.h: Likewise.
35751         * tests/test-isnanf.h: Likewise.
35752         * tests/test-isnanl.h: Likewise.
35753         * tests/test-lchown.c: Likewise.
35754         * tests/test-ldexpl.c: Likewise.
35755         * tests/test-link.c: Likewise.
35756         * tests/test-linkat.c: Likewise.
35757         * tests/test-linked_list.c: Likewise.
35758         * tests/test-linkedhash_list.c: Likewise.
35759         * tests/test-localename.c: Likewise.
35760         * tests/test-lseek.c: Likewise.
35761         * tests/test-lstat.c: Likewise.
35762         * tests/test-mbmemcasecmp.c: Likewise.
35763         * tests/test-mbmemcasecoll.c: Likewise.
35764         * tests/test-mbrtowc.c: Likewise.
35765         * tests/test-mbscasecmp.c: Likewise.
35766         * tests/test-mbscasestr1.c: Likewise.
35767         * tests/test-mbscasestr2.c: Likewise.
35768         * tests/test-mbscasestr3.c: Likewise.
35769         * tests/test-mbscasestr4.c: Likewise.
35770         * tests/test-mbschr.c: Likewise.
35771         * tests/test-mbscspn.c: Likewise.
35772         * tests/test-mbsinit.c: Likewise.
35773         * tests/test-mbsncasecmp.c: Likewise.
35774         * tests/test-mbsnrtowcs.c: Likewise.
35775         * tests/test-mbspbrk.c: Likewise.
35776         * tests/test-mbspcasecmp.c: Likewise.
35777         * tests/test-mbsrchr.c: Likewise.
35778         * tests/test-mbsrtowcs.c: Likewise.
35779         * tests/test-mbsspn.c: Likewise.
35780         * tests/test-mbsstr1.c: Likewise.
35781         * tests/test-mbsstr2.c: Likewise.
35782         * tests/test-mbsstr3.c: Likewise.
35783         * tests/test-memchr.c: Likewise.
35784         * tests/test-memchr2.c: Likewise.
35785         * tests/test-memcmp.c: Likewise.
35786         * tests/test-memmem.c: Likewise.
35787         * tests/test-memrchr.c: Likewise.
35788         * tests/test-mkdir.c: Likewise.
35789         * tests/test-mkdirat.c: Likewise.
35790         * tests/test-mkfifo.c: Likewise.
35791         * tests/test-mkfifoat.c: Likewise.
35792         * tests/test-mknod.c: Likewise.
35793         * tests/test-nanosleep.c: Likewise.
35794         * tests/test-nl_langinfo.c: Likewise.
35795         * tests/test-obstack-printf.c: Likewise.
35796         * tests/test-open.c: Likewise.
35797         * tests/test-openat.c: Likewise.
35798         * tests/test-pipe-filter-gi1.c: Likewise.
35799         * tests/test-pipe-filter-gi2-main.c: Likewise.
35800         * tests/test-pipe-filter-ii1.c: Likewise.
35801         * tests/test-pipe-filter-ii2-main.c: Likewise.
35802         * tests/test-pipe2.c: Likewise.
35803         * tests/test-popen.h: Likewise.
35804         * tests/test-posixtm.c: Likewise.
35805         * tests/test-pread.c: Likewise.
35806         * tests/test-printf-frexp.c: Likewise.
35807         * tests/test-printf-frexpl.c: Likewise.
35808         * tests/test-printf-posix.c: Likewise.
35809         * tests/test-priv-set.c: Likewise.
35810         * tests/test-quotearg.c: Likewise.
35811         * tests/test-random_r.c: Likewise.
35812         * tests/test-rawmemchr.c: Likewise.
35813         * tests/test-rbtree_list.c: Likewise.
35814         * tests/test-rbtree_oset.c: Likewise.
35815         * tests/test-rbtreehash_list.c: Likewise.
35816         * tests/test-readlink.c: Likewise.
35817         * tests/test-remove.c: Likewise.
35818         * tests/test-rename.c: Likewise.
35819         * tests/test-renameat.c: Likewise.
35820         * tests/test-rmdir.c: Likewise.
35821         * tests/test-round1.c: Likewise.
35822         * tests/test-roundf1.c: Likewise.
35823         * tests/test-roundl.c: Likewise.
35824         * tests/test-safe-alloc.c: Likewise.
35825         * tests/test-sameacls.c: Likewise.
35826         * tests/test-set-mode-acl.c: Likewise.
35827         * tests/test-setenv.c: Likewise.
35828         * tests/test-sigaction.c: Likewise.
35829         * tests/test-signbit.c: Likewise.
35830         * tests/test-sleep.c: Likewise.
35831         * tests/test-snprintf-posix.c: Likewise.
35832         * tests/test-snprintf.c: Likewise.
35833         * tests/test-sprintf-posix.c: Likewise.
35834         * tests/test-stat-time.c: Likewise.
35835         * tests/test-stat.c: Likewise.
35836         * tests/test-strcasestr.c: Likewise.
35837         * tests/test-strchrnul.c: Likewise.
35838         * tests/test-strerror.c: Likewise.
35839         * tests/test-striconv.c: Likewise.
35840         * tests/test-striconveh.c: Likewise.
35841         * tests/test-striconveha.c: Likewise.
35842         * tests/test-strsignal.c: Likewise.
35843         * tests/test-strstr.c: Likewise.
35844         * tests/test-strtod.c: Likewise.
35845         * tests/test-strverscmp.c: Likewise.
35846         * tests/test-symlink.c: Likewise.
35847         * tests/test-symlinkat.c: Likewise.
35848         * tests/test-trunc1.c: Likewise.
35849         * tests/test-trunc2.c: Likewise.
35850         * tests/test-truncf1.c: Likewise.
35851         * tests/test-truncf2.c: Likewise.
35852         * tests/test-truncl.c: Likewise.
35853         * tests/test-uname.c: Likewise.
35854         * tests/test-unlink.c: Likewise.
35855         * tests/test-unlinkat.c: Likewise.
35856         * tests/test-unsetenv.c: Likewise.
35857         * tests/test-usleep.c: Likewise.
35858         * tests/test-utimens.c: Likewise.
35859         * tests/test-utimensat.c: Likewise.
35860         * tests/test-vasnprintf-posix.c: Likewise.
35861         * tests/test-vasnprintf-posix2.c: Likewise.
35862         * tests/test-vasnprintf.c: Likewise.
35863         * tests/test-vasprintf-posix.c: Likewise.
35864         * tests/test-vasprintf.c: Likewise.
35865         * tests/test-vdprintf-posix.c: Likewise.
35866         * tests/test-vfprintf-posix.c: Likewise.
35867         * tests/test-vprintf-posix.c: Likewise.
35868         * tests/test-vsnprintf-posix.c: Likewise.
35869         * tests/test-vsnprintf.c: Likewise.
35870         * tests/test-vsprintf-posix.c: Likewise.
35871         * tests/test-wcrtomb.c: Likewise.
35872         * tests/test-wcsnrtombs.c: Likewise.
35873         * tests/test-wcsrtombs.c: Likewise.
35874         * tests/test-wctype.c: Likewise.
35875         * tests/test-wcwidth.c: Likewise.
35876         * tests/test-xfprintf-posix.c: Likewise.
35877         * tests/test-xmemdup0.c: Likewise.
35878         * tests/test-xprintf-posix.c: Likewise.
35879         * tests/test-xvasprintf.c: Likewise.
35880         * tests/unicase/test-locale-language.c: Likewise.
35881         * tests/unicase/test-mapping-part1.h: Likewise.
35882         * tests/unicase/test-predicate-part1.h: Likewise.
35883         * tests/unicase/test-u8-casecmp.c: Likewise.
35884         * tests/unicase/test-u8-casecoll.c: Likewise.
35885         * tests/unicase/test-u8-casefold.c: Likewise.
35886         * tests/unicase/test-u8-is-cased.c: Likewise.
35887         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35888         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35889         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35890         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35891         * tests/unicase/test-u8-tolower.c: Likewise.
35892         * tests/unicase/test-u8-totitle.c: Likewise.
35893         * tests/unicase/test-u8-toupper.c: Likewise.
35894         * tests/unicase/test-u16-casecmp.c: Likewise.
35895         * tests/unicase/test-u16-casecoll.c: Likewise.
35896         * tests/unicase/test-u16-casefold.c: Likewise.
35897         * tests/unicase/test-u16-is-cased.c: Likewise.
35898         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35899         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35900         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35901         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35902         * tests/unicase/test-u16-tolower.c: Likewise.
35903         * tests/unicase/test-u16-totitle.c: Likewise.
35904         * tests/unicase/test-u16-toupper.c: Likewise.
35905         * tests/unicase/test-u32-casecmp.c: Likewise.
35906         * tests/unicase/test-u32-casecoll.c: Likewise.
35907         * tests/unicase/test-u32-casefold.c: Likewise.
35908         * tests/unicase/test-u32-is-cased.c: Likewise.
35909         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35910         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35911         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35912         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35913         * tests/unicase/test-u32-tolower.c: Likewise.
35914         * tests/unicase/test-u32-totitle.c: Likewise.
35915         * tests/unicase/test-u32-toupper.c: Likewise.
35916         * tests/unicase/test-ulc-casecmp.c: Likewise.
35917         * tests/unicase/test-ulc-casecoll.c: Likewise.
35918         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35919         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35920         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35921         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35922         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35923         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35924         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35925         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35926         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35927         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35928         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35929         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35930         * tests/unictype/test-bidi_byname.c: Likewise.
35931         * tests/unictype/test-bidi_name.c: Likewise.
35932         * tests/unictype/test-bidi_of.c: Likewise.
35933         * tests/unictype/test-bidi_test.c: Likewise.
35934         * tests/unictype/test-block_list.c: Likewise.
35935         * tests/unictype/test-block_of.c: Likewise.
35936         * tests/unictype/test-block_test.c: Likewise.
35937         * tests/unictype/test-categ_and.c: Likewise.
35938         * tests/unictype/test-categ_and_not.c: Likewise.
35939         * tests/unictype/test-categ_byname.c: Likewise.
35940         * tests/unictype/test-categ_name.c: Likewise.
35941         * tests/unictype/test-categ_none.c: Likewise.
35942         * tests/unictype/test-categ_of.c: Likewise.
35943         * tests/unictype/test-categ_or.c: Likewise.
35944         * tests/unictype/test-categ_test_withtable.c: Likewise.
35945         * tests/unictype/test-combining.c: Likewise.
35946         * tests/unictype/test-decdigit.c: Likewise.
35947         * tests/unictype/test-digit.c: Likewise.
35948         * tests/unictype/test-mirror.c: Likewise.
35949         * tests/unictype/test-numeric.c: Likewise.
35950         * tests/unictype/test-pr_byname.c: Likewise.
35951         * tests/unictype/test-pr_test.c: Likewise.
35952         * tests/unictype/test-predicate-part1.h: Likewise.
35953         * tests/unictype/test-scripts.c: Likewise.
35954         * tests/unictype/test-sy_c_ident.c: Likewise.
35955         * tests/unictype/test-sy_java_ident.c: Likewise.
35956         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35957         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35958         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35959         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35960         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35961         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35962         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35963         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35964         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35965         * tests/uninorm/test-compat-decomposition.c: Likewise.
35966         * tests/uninorm/test-composition.c: Likewise.
35967         * tests/uninorm/test-decomposing-form.c: Likewise.
35968         * tests/uninorm/test-decomposition.c: Likewise.
35969         * tests/uninorm/test-u8-nfc.c: Likewise.
35970         * tests/uninorm/test-u8-nfd.c: Likewise.
35971         * tests/uninorm/test-u8-nfkc.c: Likewise.
35972         * tests/uninorm/test-u8-nfkd.c: Likewise.
35973         * tests/uninorm/test-u8-normcmp.c: Likewise.
35974         * tests/uninorm/test-u8-normcoll.c: Likewise.
35975         * tests/uninorm/test-u16-nfc.c: Likewise.
35976         * tests/uninorm/test-u16-nfd.c: Likewise.
35977         * tests/uninorm/test-u16-nfkc.c: Likewise.
35978         * tests/uninorm/test-u16-nfkd.c: Likewise.
35979         * tests/uninorm/test-u16-normcmp.c: Likewise.
35980         * tests/uninorm/test-u16-normcoll.c: Likewise.
35981         * tests/uninorm/test-u32-nfc.c: Likewise.
35982         * tests/uninorm/test-u32-nfd.c: Likewise.
35983         * tests/uninorm/test-u32-nfkc.c: Likewise.
35984         * tests/uninorm/test-u32-nfkd.c: Likewise.
35985         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35986         * tests/uninorm/test-u32-normcmp.c: Likewise.
35987         * tests/uninorm/test-u32-normcoll.c: Likewise.
35988         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35989         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35990         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35991         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35992         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35993         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35994         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35995         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35996         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35997         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35998         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35999         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36000         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36001         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36002         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36003         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36004         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36005         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36006         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36007         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36008         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36009         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36010         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36011         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36012         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36013         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36014         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36015         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36016         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36017         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36018         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36019         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36020         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36021         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36022         * tests/uniwidth/test-u8-width.c: Likewise.
36023         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36024         * tests/uniwidth/test-u16-width.c: Likewise.
36025         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36026         * tests/uniwidth/test-u32-width.c: Likewise.
36027         * tests/uniwidth/test-uc_width.c: Likewise.
36028         * tests/uniwidth/test-uc_width2.c: Likewise.
36029         * modules/acl-tests (Files): Add tests/macros.h.
36030         * modules/areadlink-tests (Files): Likewise.
36031         * modules/areadlink-with-size-tests (Files): Likewise.
36032         * modules/areadlinkat-tests (Files): Likewise.
36033         * modules/areadlinkat-with-size-tests (Files): Likewise.
36034         * modules/argmatch-tests (Files): Likewise.
36035         * modules/argv-iter-tests (Files): Likewise.
36036         * modules/array-list-tests (Files): Likewise.
36037         * modules/array-mergesort-tests (Files): Likewise.
36038         * modules/array-oset-tests (Files): Likewise.
36039         * modules/avltree-list-tests (Files): Likewise.
36040         * modules/avltree-oset-tests (Files): Likewise.
36041         * modules/avltreehash-list-tests (Files): Likewise.
36042         * modules/base64-tests (Files): Likewise.
36043         * modules/binary-io-tests (Files): Likewise.
36044         * modules/bitrotate-tests (Files): Likewise.
36045         * modules/btowc-tests (Files): Likewise.
36046         * modules/byteswap-tests (Files): Likewise.
36047         * modules/c-ctype-tests (Files): Likewise.
36048         * modules/c-stack-tests (Files): Likewise.
36049         * modules/c-strcase-tests (Files): Likewise.
36050         * modules/c-strcasestr-tests (Files): Likewise.
36051         * modules/c-strstr-tests (Files): Likewise.
36052         * modules/canonicalize-lgpl-tests (Files): Likewise.
36053         * modules/canonicalize-tests (Files): Likewise.
36054         * modules/carray-list-tests (Files): Likewise.
36055         * modules/ceilf-tests (Files): Likewise.
36056         * modules/ceill-tests (Files): Likewise.
36057         * modules/chown-tests (Files): Likewise.
36058         * modules/cloexec-tests (Files): Likewise.
36059         * modules/copy-file-tests (Files): Likewise.
36060         * modules/count-one-bits-tests (Files): Likewise.
36061         * modules/dprintf-posix-tests (Files): Likewise.
36062         * modules/dup2-tests (Files): Likewise.
36063         * modules/dup3-tests (Files): Likewise.
36064         * modules/duplocale-tests (Files): Likewise.
36065         * modules/fbufmode-tests (Files): Likewise.
36066         * modules/fchdir-tests (Files): Likewise.
36067         * modules/fcntl-safer-tests (Files): Likewise.
36068         * modules/fcntl-tests (Files): Likewise.
36069         * modules/fdopendir-tests (Files): Likewise.
36070         * modules/fdutimensat-tests (Files): Likewise.
36071         * modules/fflush-tests (Files): Likewise.
36072         * modules/filevercmp-tests (Files): Likewise.
36073         * modules/flock-tests (Files): Likewise.
36074         * modules/floorf-tests (Files): Likewise.
36075         * modules/floorl-tests (Files): Likewise.
36076         * modules/fnmatch-tests (Files): Likewise.
36077         * modules/fopen-safer-tests (Files): Likewise.
36078         * modules/fopen-tests (Files): Likewise.
36079         * modules/fpending-tests (Files): Likewise.
36080         * modules/fprintf-posix-tests (Files): Likewise.
36081         * modules/fpurge-tests (Files): Likewise.
36082         * modules/freadable-tests (Files): Likewise.
36083         * modules/freadahead-tests (Files): Likewise.
36084         * modules/freading-tests (Files): Likewise.
36085         * modules/freadptr-tests (Files): Likewise.
36086         * modules/freadseek-tests (Files): Likewise.
36087         * modules/freopen-tests (Files): Likewise.
36088         * modules/frexp-nolibm-tests (Files): Likewise.
36089         * modules/frexp-tests (Files): Likewise.
36090         * modules/frexpl-nolibm-tests (Files): Likewise.
36091         * modules/frexpl-tests (Files): Likewise.
36092         * modules/fseek-tests (Files): Likewise.
36093         * modules/fseeko-tests (Files): Likewise.
36094         * modules/fstrcmp-tests (Files): Likewise.
36095         * modules/fsync-tests (Files): Likewise.
36096         * modules/ftell-tests (Files): Likewise.
36097         * modules/ftello-tests (Files): Likewise.
36098         * modules/func-tests (Files): Likewise.
36099         * modules/futimens-tests (Files): Likewise.
36100         * modules/fwritable-tests (Files): Likewise.
36101         * modules/fwriting-tests (Files): Likewise.
36102         * modules/getcwd-tests (Files): Likewise.
36103         * modules/getdate-tests (Files): Likewise.
36104         * modules/getdelim-tests (Files): Likewise.
36105         * modules/getdtablesize-tests (Files): Likewise.
36106         * modules/getgroups-tests (Files): Likewise.
36107         * modules/getline-tests (Files): Likewise.
36108         * modules/getndelim2-tests (Files): Likewise.
36109         * modules/glob-tests (Files): Likewise.
36110         * modules/hash-tests (Files): Likewise.
36111         * modules/i-ring-tests (Files): Likewise.
36112         * modules/iconv-tests (Files): Likewise.
36113         * modules/iconv_open-utf-tests (Files): Likewise.
36114         * modules/idpriv-drop-tests (Files): Likewise.
36115         * modules/idpriv-droptemp-tests (Files): Likewise.
36116         * modules/inet_ntop-tests (Files): Likewise.
36117         * modules/inet_pton-tests (Files): Likewise.
36118         * modules/isblank-tests (Files): Likewise.
36119         * modules/isfinite-tests (Files): Likewise.
36120         * modules/isinf-tests (Files): Likewise.
36121         * modules/isnan-tests (Files): Likewise.
36122         * modules/isnand-nolibm-tests (Files): Likewise.
36123         * modules/isnand-tests (Files): Likewise.
36124         * modules/isnanf-nolibm-tests (Files): Likewise.
36125         * modules/isnanf-tests (Files): Likewise.
36126         * modules/isnanl-nolibm-tests (Files): Likewise.
36127         * modules/isnanl-tests (Files): Likewise.
36128         * modules/lchown-tests (Files): Likewise.
36129         * modules/ldexpl-tests (Files): Likewise.
36130         * modules/link-tests (Files): Likewise.
36131         * modules/linkat-tests (Files): Likewise.
36132         * modules/linked-list-tests (Files): Likewise.
36133         * modules/linkedhash-list-tests (Files): Likewise.
36134         * modules/localename-tests (Files): Likewise.
36135         * modules/lseek-tests (Files): Likewise.
36136         * modules/lstat-tests (Files): Likewise.
36137         * modules/mbmemcasecmp-tests (Files): Likewise.
36138         * modules/mbmemcasecoll-tests (Files): Likewise.
36139         * modules/mbrtowc-tests (Files): Likewise.
36140         * modules/mbscasecmp-tests (Files): Likewise.
36141         * modules/mbscasestr-tests (Files): Likewise.
36142         * modules/mbschr-tests (Files): Likewise.
36143         * modules/mbscspn-tests (Files): Likewise.
36144         * modules/mbsinit-tests (Files): Likewise.
36145         * modules/mbsncasecmp-tests (Files): Likewise.
36146         * modules/mbsnrtowcs-tests (Files): Likewise.
36147         * modules/mbspbrk-tests (Files): Likewise.
36148         * modules/mbspcasecmp-tests (Files): Likewise.
36149         * modules/mbsrchr-tests (Files): Likewise.
36150         * modules/mbsrtowcs-tests (Files): Likewise.
36151         * modules/mbsspn-tests (Files): Likewise.
36152         * modules/mbsstr-tests (Files): Likewise.
36153         * modules/memchr-tests (Files): Likewise.
36154         * modules/memchr2-tests (Files): Likewise.
36155         * modules/memcmp-tests (Files): Likewise.
36156         * modules/memmem-tests (Files): Likewise.
36157         * modules/memrchr-tests (Files): Likewise.
36158         * modules/mkdir-tests (Files): Likewise.
36159         * modules/mkfifo-tests (Files): Likewise.
36160         * modules/mkfifoat-tests (Files): Likewise.
36161         * modules/mknod-tests (Files): Likewise.
36162         * modules/nanosleep-tests (Files): Likewise.
36163         * modules/nl_langinfo-tests (Files): Likewise.
36164         * modules/obstack-printf-tests (Files): Likewise.
36165         * modules/open-tests (Files): Likewise.
36166         * modules/openat-tests (Files): Likewise.
36167         * modules/pipe-filter-gi-tests (Files): Likewise.
36168         * modules/pipe-filter-ii-tests (Files): Likewise.
36169         * modules/pipe2-tests (Files): Likewise.
36170         * modules/popen-safer-tests (Files): Likewise.
36171         * modules/popen-tests (Files): Likewise.
36172         * modules/posixtm-tests (Files): Likewise.
36173         * modules/pread-tests (Files): Likewise.
36174         * modules/printf-frexp-tests (Files): Likewise.
36175         * modules/printf-frexpl-tests (Files): Likewise.
36176         * modules/printf-posix-tests (Files): Likewise.
36177         * modules/priv-set-tests (Files): Likewise.
36178         * modules/quotearg-tests (Files): Likewise.
36179         * modules/random_r-tests (Files): Likewise.
36180         * modules/rawmemchr-tests (Files): Likewise.
36181         * modules/rbtree-list-tests (Files): Likewise.
36182         * modules/rbtree-oset-tests (Files): Likewise.
36183         * modules/rbtreehash-list-tests (Files): Likewise.
36184         * modules/readlink-tests (Files): Likewise.
36185         * modules/remove-tests (Files): Likewise.
36186         * modules/rename-tests (Files): Likewise.
36187         * modules/renameat-tests (Files): Likewise.
36188         * modules/rmdir-tests (Files): Likewise.
36189         * modules/round-tests (Files): Likewise.
36190         * modules/roundf-tests (Files): Likewise.
36191         * modules/roundl-tests (Files): Likewise.
36192         * modules/safe-alloc-tests (Files): Likewise.
36193         * modules/setenv-tests (Files): Likewise.
36194         * modules/sigaction-tests (Files): Likewise.
36195         * modules/signbit-tests (Files): Likewise.
36196         * modules/sleep-tests (Files): Likewise.
36197         * modules/snprintf-posix-tests (Files): Likewise.
36198         * modules/snprintf-tests (Files): Likewise.
36199         * modules/sprintf-posix-tests (Files): Likewise.
36200         * modules/stat-tests (Files): Likewise.
36201         * modules/stat-time-tests (Files): Likewise.
36202         * modules/strcasestr-tests (Files): Likewise.
36203         * modules/strchrnul-tests (Files): Likewise.
36204         * modules/strerror-tests (Files): Likewise.
36205         * modules/striconv-tests (Files): Likewise.
36206         * modules/striconveh-tests (Files): Likewise.
36207         * modules/striconveha-tests (Files): Likewise.
36208         * modules/strsignal-tests (Files): Likewise.
36209         * modules/strstr-tests (Files): Likewise.
36210         * modules/strtod-tests (Files): Likewise.
36211         * modules/strverscmp-tests (Files): Likewise.
36212         * modules/symlink-tests (Files): Likewise.
36213         * modules/symlinkat-tests (Files): Likewise.
36214         * modules/trunc-tests (Files): Likewise.
36215         * modules/truncf-tests (Files): Likewise.
36216         * modules/truncl-tests (Files): Likewise.
36217         * modules/uname-tests (Files): Likewise.
36218         * modules/unicase/cased-tests (Files): Likewise.
36219         * modules/unicase/ignorable-tests (Files): Likewise.
36220         * modules/unicase/locale-language-tests (Files): Likewise.
36221         * modules/unicase/tolower-tests (Files): Likewise.
36222         * modules/unicase/totitle-tests (Files): Likewise.
36223         * modules/unicase/toupper-tests (Files): Likewise.
36224         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36225         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36226         * modules/unicase/u8-casefold-tests (Files): Likewise.
36227         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36228         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36229         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36230         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36231         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36232         * modules/unicase/u8-tolower-tests (Files): Likewise.
36233         * modules/unicase/u8-totitle-tests (Files): Likewise.
36234         * modules/unicase/u8-toupper-tests (Files): Likewise.
36235         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36236         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36237         * modules/unicase/u16-casefold-tests (Files): Likewise.
36238         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36239         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36240         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36241         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36242         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36243         * modules/unicase/u16-tolower-tests (Files): Likewise.
36244         * modules/unicase/u16-totitle-tests (Files): Likewise.
36245         * modules/unicase/u16-toupper-tests (Files): Likewise.
36246         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36247         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36248         * modules/unicase/u32-casefold-tests (Files): Likewise.
36249         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36250         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36251         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36252         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36253         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36254         * modules/unicase/u32-tolower-tests (Files): Likewise.
36255         * modules/unicase/u32-totitle-tests (Files): Likewise.
36256         * modules/unicase/u32-toupper-tests (Files): Likewise.
36257         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36258         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36259         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36260         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36261         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36262         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36263         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36264         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36265         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36266         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36267         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36268         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36269         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36270         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36271         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36272         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36273         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36274         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36275         * modules/unictype/block-list-tests (Files): Likewise.
36276         * modules/unictype/block-of-tests (Files): Likewise.
36277         * modules/unictype/block-test-tests (Files): Likewise.
36278         * modules/unictype/category-C-tests (Files): Likewise.
36279         * modules/unictype/category-Cc-tests (Files): Likewise.
36280         * modules/unictype/category-Cf-tests (Files): Likewise.
36281         * modules/unictype/category-Cn-tests (Files): Likewise.
36282         * modules/unictype/category-Co-tests (Files): Likewise.
36283         * modules/unictype/category-Cs-tests (Files): Likewise.
36284         * modules/unictype/category-L-tests (Files): Likewise.
36285         * modules/unictype/category-Ll-tests (Files): Likewise.
36286         * modules/unictype/category-Lm-tests (Files): Likewise.
36287         * modules/unictype/category-Lo-tests (Files): Likewise.
36288         * modules/unictype/category-Lt-tests (Files): Likewise.
36289         * modules/unictype/category-Lu-tests (Files): Likewise.
36290         * modules/unictype/category-M-tests (Files): Likewise.
36291         * modules/unictype/category-Mc-tests (Files): Likewise.
36292         * modules/unictype/category-Me-tests (Files): Likewise.
36293         * modules/unictype/category-Mn-tests (Files): Likewise.
36294         * modules/unictype/category-N-tests (Files): Likewise.
36295         * modules/unictype/category-Nd-tests (Files): Likewise.
36296         * modules/unictype/category-Nl-tests (Files): Likewise.
36297         * modules/unictype/category-No-tests (Files): Likewise.
36298         * modules/unictype/category-P-tests (Files): Likewise.
36299         * modules/unictype/category-Pc-tests (Files): Likewise.
36300         * modules/unictype/category-Pd-tests (Files): Likewise.
36301         * modules/unictype/category-Pe-tests (Files): Likewise.
36302         * modules/unictype/category-Pf-tests (Files): Likewise.
36303         * modules/unictype/category-Pi-tests (Files): Likewise.
36304         * modules/unictype/category-Po-tests (Files): Likewise.
36305         * modules/unictype/category-Ps-tests (Files): Likewise.
36306         * modules/unictype/category-S-tests (Files): Likewise.
36307         * modules/unictype/category-Sc-tests (Files): Likewise.
36308         * modules/unictype/category-Sk-tests (Files): Likewise.
36309         * modules/unictype/category-Sm-tests (Files): Likewise.
36310         * modules/unictype/category-So-tests (Files): Likewise.
36311         * modules/unictype/category-Z-tests (Files): Likewise.
36312         * modules/unictype/category-Zl-tests (Files): Likewise.
36313         * modules/unictype/category-Zp-tests (Files): Likewise.
36314         * modules/unictype/category-Zs-tests (Files): Likewise.
36315         * modules/unictype/category-and-not-tests (Files): Likewise.
36316         * modules/unictype/category-and-tests (Files): Likewise.
36317         * modules/unictype/category-byname-tests (Files): Likewise.
36318         * modules/unictype/category-name-tests (Files): Likewise.
36319         * modules/unictype/category-none-tests (Files): Likewise.
36320         * modules/unictype/category-of-tests (Files): Likewise.
36321         * modules/unictype/category-or-tests (Files): Likewise.
36322         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36323         * modules/unictype/combining-class-tests (Files): Likewise.
36324         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36325         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36326         * modules/unictype/ctype-blank-tests (Files): Likewise.
36327         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36328         * modules/unictype/ctype-digit-tests (Files): Likewise.
36329         * modules/unictype/ctype-graph-tests (Files): Likewise.
36330         * modules/unictype/ctype-lower-tests (Files): Likewise.
36331         * modules/unictype/ctype-print-tests (Files): Likewise.
36332         * modules/unictype/ctype-punct-tests (Files): Likewise.
36333         * modules/unictype/ctype-space-tests (Files): Likewise.
36334         * modules/unictype/ctype-upper-tests (Files): Likewise.
36335         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36336         * modules/unictype/decimal-digit-tests (Files): Likewise.
36337         * modules/unictype/digit-tests (Files): Likewise.
36338         * modules/unictype/mirror-tests (Files): Likewise.
36339         * modules/unictype/numeric-tests (Files): Likewise.
36340         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36341         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36342         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36343         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36344         Likewise.
36345         * modules/unictype/property-bidi-block-separator-tests (Files):
36346         Likewise.
36347         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36348         Likewise.
36349         * modules/unictype/property-bidi-common-separator-tests (Files):
36350         Likewise.
36351         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36352         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36353         Likewise.
36354         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36355         Likewise.
36356         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36357         Likewise.
36358         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36359         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36360         Likewise.
36361         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36362         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36363         Likewise.
36364         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36365         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36366         * modules/unictype/property-bidi-segment-separator-tests (Files):
36367         Likewise.
36368         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36369         * modules/unictype/property-byname-tests (Files): Likewise.
36370         * modules/unictype/property-combining-tests (Files): Likewise.
36371         * modules/unictype/property-composite-tests (Files): Likewise.
36372         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36373         * modules/unictype/property-dash-tests (Files): Likewise.
36374         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36375         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36376         Likewise.
36377         * modules/unictype/property-deprecated-tests (Files): Likewise.
36378         * modules/unictype/property-diacritic-tests (Files): Likewise.
36379         * modules/unictype/property-extender-tests (Files): Likewise.
36380         * modules/unictype/property-format-control-tests (Files): Likewise.
36381         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36382         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36383         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36384         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36385         * modules/unictype/property-hyphen-tests (Files): Likewise.
36386         * modules/unictype/property-id-continue-tests (Files): Likewise.
36387         * modules/unictype/property-id-start-tests (Files): Likewise.
36388         * modules/unictype/property-ideographic-tests (Files): Likewise.
36389         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36390         * modules/unictype/property-ids-trinary-operator-tests (Files):
36391         Likewise.
36392         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36393         * modules/unictype/property-iso-control-tests (Files): Likewise.
36394         * modules/unictype/property-join-control-tests (Files): Likewise.
36395         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36396         * modules/unictype/property-line-separator-tests (Files): Likewise.
36397         * modules/unictype/property-logical-order-exception-tests (Files):
36398         Likewise.
36399         * modules/unictype/property-lowercase-tests (Files): Likewise.
36400         * modules/unictype/property-math-tests (Files): Likewise.
36401         * modules/unictype/property-non-break-tests (Files): Likewise.
36402         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36403         * modules/unictype/property-numeric-tests (Files): Likewise.
36404         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36405         * modules/unictype/property-other-default-ignorable-code-point-tests
36406         (Files): Likewise.
36407         * modules/unictype/property-other-grapheme-extend-tests (Files):
36408         Likewise.
36409         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36410         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36411         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36412         * modules/unictype/property-other-math-tests (Files): Likewise.
36413         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36414         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36415         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36416         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36417         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36418         * modules/unictype/property-private-use-tests (Files): Likewise.
36419         * modules/unictype/property-punctuation-tests (Files): Likewise.
36420         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36421         * modules/unictype/property-radical-tests (Files): Likewise.
36422         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36423         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36424         * modules/unictype/property-space-tests (Files): Likewise.
36425         * modules/unictype/property-terminal-punctuation-tests (Files):
36426         Likewise.
36427         * modules/unictype/property-test-tests (Files): Likewise.
36428         * modules/unictype/property-titlecase-tests (Files): Likewise.
36429         * modules/unictype/property-unassigned-code-value-tests (Files):
36430         Likewise.
36431         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36432         * modules/unictype/property-uppercase-tests (Files): Likewise.
36433         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36434         * modules/unictype/property-white-space-tests (Files): Likewise.
36435         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36436         * modules/unictype/property-xid-start-tests (Files): Likewise.
36437         * modules/unictype/property-zero-width-tests (Files): Likewise.
36438         * modules/unictype/scripts-tests (Files): Likewise.
36439         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36440         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36441         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36442         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36443         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36444         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36445         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36446         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36447         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36448         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36449         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36450         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36451         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36452         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36453         * modules/uninorm/composition-tests (Files): Likewise.
36454         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36455         * modules/uninorm/decomposition-tests (Files): Likewise.
36456         * modules/uninorm/filter-tests (Files): Likewise.
36457         * modules/uninorm/nfc-tests (Files): Likewise.
36458         * modules/uninorm/nfd-tests (Files): Likewise.
36459         * modules/uninorm/nfkc-tests (Files): Likewise.
36460         * modules/uninorm/nfkd-tests (Files): Likewise.
36461         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36462         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36463         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36464         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36465         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36466         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36467         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36468         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36469         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36470         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36471         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36472         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36473         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36474         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36475         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36476         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36477         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36478         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36479         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36480         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36481         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36482         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36483         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36484         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36485         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36486         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36487         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36488         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36489         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36490         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36491         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36492         * modules/uniwidth/u8-width-tests (Files): Likewise.
36493         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36494         * modules/uniwidth/u16-width-tests (Files): Likewise.
36495         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36496         * modules/uniwidth/u32-width-tests (Files): Likewise.
36497         * modules/uniwidth/width-tests (Files): Likewise.
36498         * modules/unlink-tests (Files): Likewise.
36499         * modules/unsetenv-tests (Files): Likewise.
36500         * modules/usleep-tests (Files): Likewise.
36501         * modules/utimens-tests (Files): Likewise.
36502         * modules/utimensat-tests (Files): Likewise.
36503         * modules/vasnprintf-posix-tests (Files): Likewise.
36504         * modules/vasnprintf-tests (Files): Likewise.
36505         * modules/vasprintf-posix-tests (Files): Likewise.
36506         * modules/vasprintf-tests (Files): Likewise.
36507         * modules/vdprintf-posix-tests (Files): Likewise.
36508         * modules/vfprintf-posix-tests (Files): Likewise.
36509         * modules/vprintf-posix-tests (Files): Likewise.
36510         * modules/vsnprintf-posix-tests (Files): Likewise.
36511         * modules/vsnprintf-tests (Files): Likewise.
36512         * modules/vsprintf-posix-tests (Files): Likewise.
36513         * modules/wcrtomb-tests (Files): Likewise.
36514         * modules/wcsnrtombs-tests (Files): Likewise.
36515         * modules/wcsrtombs-tests (Files): Likewise.
36516         * modules/wctype-tests (Files): Likewise.
36517         * modules/wcwidth-tests (Files): Likewise.
36518         * modules/xmemdup0-tests (Files): Likewise.
36519         * modules/xprintf-posix-tests (Files): Likewise.
36520         * modules/xvasprintf-tests (Files): Likewise.
36521
36522 2009-12-24  Eric Blake  <ebb9@byu.net>
36523
36524         test-nanosleep: fix typo
36525         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36526         patch.
36527         Reported by Bruno Haible.
36528
36529 2009-12-24  Bruno Haible  <bruno@clisp.org>
36530
36531         Reduce namespace pollution on glibc systems.
36532         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36533         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36534         systems.
36535         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36536         <getopt.h> on glibc systems.
36537         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36538         systems.
36539         * lib/fcntl.c: Include <unistd.h> here instead.
36540
36541 2009-12-24  Bruno Haible  <bruno@clisp.org>
36542
36543         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36544
36545 2009-12-24  Eric Blake  <ebb9@byu.net>
36546
36547         tests: add signature checks
36548         * tests/signature.h (SIGNATURE_CHECK): New file.
36549         * modules/atexit-tests (Files): Use it.
36550         * modules/btowc-tests (Files): Likewise.
36551         * modules/canonicalize-lgpl-tests (Files): Likewise.
36552         * modules/ceilf-tests (Files): Likewise.
36553         * modules/ceill-tests (Files): Likewise.
36554         * modules/chown-tests (Files): Likewise.
36555         * modules/dprintf-posix-tests (Files): Likewise.
36556         * modules/dup2-tests (Files): Likewise.
36557         * modules/dup3-tests (Files): Likewise.
36558         * modules/duplocale-tests (Files): Likewise.
36559         * modules/fchdir-tests (Files): Likewise.
36560         * modules/fcntl-tests (Files): Likewise.
36561         * modules/fdopendir-tests (Files): Likewise.
36562         * modules/fflush-tests (Files): Likewise.
36563         * modules/flock-tests (Files): Likewise.
36564         * modules/floorf-tests (Files): Likewise.
36565         * modules/floorl-tests (Files): Likewise.
36566         * modules/fnmatch-tests (Files): Likewise.
36567         * modules/fopen-tests (Files): Likewise.
36568         * modules/fprintf-posix-tests (Files): Likewise.
36569         * modules/freopen-tests (Files): Likewise.
36570         * modules/frexp-nolibm-tests (Files): Likewise.
36571         * modules/frexp-tests (Files): Likewise.
36572         * modules/frexpl-nolibm-tests (Files): Likewise.
36573         * modules/frexpl-tests (Files): Likewise.
36574         * modules/fseek-tests (Files): Likewise.
36575         * modules/fseeko-tests (Files): Likewise.
36576         * modules/fsync-tests (Files): Likewise.
36577         * modules/ftell-tests (Files): Likewise.
36578         * modules/ftello-tests (Files): Likewise.
36579         * modules/futimens-tests (Files): Likewise.
36580         * modules/getaddrinfo-tests (Files): Likewise.
36581         * modules/getcwd-tests (Files): Likewise.
36582         * modules/getdelim-tests (Files): Likewise.
36583         * modules/getdtablesize-tests (Files): Likewise.
36584         * modules/getgroups-tests (Files): Likewise.
36585         * modules/gethostname-tests (Files): Likewise.
36586         * modules/getline-tests (Files): Likewise.
36587         * modules/getopt-posix-tests (Files): Likewise.
36588         * modules/gettimeofday-tests (Files): Likewise.
36589         * modules/glob-tests (Files): Likewise.
36590         * modules/iconv-tests (Files): Likewise.
36591         * modules/inet_ntop-tests (Files): Likewise.
36592         * modules/inet_pton-tests (Files): Likewise.
36593         * modules/isblank-tests (Files): Likewise.
36594         * modules/lchown-tests (Files): Likewise.
36595         * modules/ldexpl-tests (Files): Likewise.
36596         * modules/link-tests (Files): Likewise.
36597         * modules/linkat-tests (Files): Likewise.
36598         * modules/lseek-tests (Files): Likewise.
36599         * modules/lstat-tests (Files): Likewise.
36600         * modules/mbrtowc-tests (Files): Likewise.
36601         * modules/mbsinit-tests (Files): Likewise.
36602         * modules/mbsnrtowcs-tests (Files): Likewise.
36603         * modules/mbsrtowcs-tests (Files): Likewise.
36604         * modules/memchr-tests (Files): Likewise.
36605         * modules/memcmp-tests (Files): Likewise.
36606         * modules/memmem-tests (Files): Likewise.
36607         * modules/memrchr-tests (Files): Likewise.
36608         * modules/mkdir-tests (Files): Likewise.
36609         * modules/mkfifo-tests (Files): Likewise.
36610         * modules/mkfifoat-tests (Files): Likewise.
36611         * modules/mknod-tests (Files): Likewise.
36612         * modules/nanosleep-tests (Files): Likewise.
36613         * modules/nl_langinfo-tests (Files): Likewise.
36614         * modules/obstack-printf-tests (Files): Likewise.
36615         * modules/open-tests (Files): Likewise.
36616         * modules/openat-tests (Files): Likewise.
36617         * modules/perror-tests (Files): Likewise.
36618         * modules/pipe2-tests (Files): Likewise.
36619         * modules/poll-tests (Files): Likewise.
36620         * modules/popen-tests (Files): Likewise.
36621         * modules/posix_spawn-tests (Files): Likewise.
36622         * modules/posix_spawnp-tests (Files): Likewise.
36623         * modules/pread-tests (Files): Likewise.
36624         * modules/printf-posix-tests (Files): Likewise.
36625         * modules/pty-tests (Files): Likewise.
36626         * modules/random_r-tests (Files): Likewise.
36627         * modules/rawmemchr-tests (Files): Likewise.
36628         * modules/readlink-tests (Files): Likewise.
36629         * modules/remove-tests (Files): Likewise.
36630         * modules/rename-tests (Files): Likewise.
36631         * modules/renameat-tests (Files): Likewise.
36632         * modules/rmdir-tests (Files): Likewise.
36633         * modules/round-tests (Files): Likewise.
36634         * modules/roundf-tests (Files): Likewise.
36635         * modules/roundl-tests (Files): Likewise.
36636         * modules/select-tests (Files): Likewise.
36637         * modules/setenv-tests (Files): Likewise.
36638         * modules/sigaction-tests (Files): Likewise.
36639         * modules/sleep-tests (Files): Likewise.
36640         * modules/snprintf-posix-tests (Files): Likewise.
36641         * modules/snprintf-tests (Files): Likewise.
36642         * modules/sprintf-posix-tests (Files): Likewise.
36643         * modules/stat-tests (Files): Likewise.
36644         * modules/strcasestr-tests (Files): Likewise.
36645         * modules/strchrnul-tests (Files): Likewise.
36646         * modules/strerror-tests (Files): Likewise.
36647         * modules/strsignal-tests (Files): Likewise.
36648         * modules/strstr-tests (Files): Likewise.
36649         * modules/strtod-tests (Files): Likewise.
36650         * modules/strverscmp-tests (Files): Likewise.
36651         * modules/symlink-tests (Files): Likewise.
36652         * modules/symlinkat-tests (Files): Likewise.
36653         * modules/times-tests (Files): Likewise.
36654         * modules/trunc-tests (Files): Likewise.
36655         * modules/truncf-tests (Files): Likewise.
36656         * modules/truncl-tests (Files): Likewise.
36657         * modules/tsearch-tests (Files): Likewise.
36658         * modules/uname-tests (Files): Likewise.
36659         * modules/unlink-tests (Files): Likewise.
36660         * modules/unsetenv-tests (Files): Likewise.
36661         * modules/usleep-tests (Files): Likewise.
36662         * modules/utimensat-tests (Files): Likewise.
36663         * modules/vasprintf-tests (Files): Likewise.
36664         * modules/vdprintf-posix-tests (Files): Likewise.
36665         * modules/vfprintf-posix-tests (Files): Likewise.
36666         * modules/vprintf-posix-tests (Files): Likewise.
36667         * modules/vsnprintf-posix-tests (Files): Likewise.
36668         * modules/vsnprintf-tests (Files): Likewise.
36669         * modules/vsprintf-posix-tests (Files): Likewise.
36670         * modules/wcrtomb-tests (Files): Likewise.
36671         * modules/wcsnrtombs-tests (Files): Likewise.
36672         * modules/wcsrtombs-tests (Files): Likewise.
36673         * modules/wcwidth-tests (Files): Likewise.
36674         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36675         * tests/test-isinf.c (isinf): Likewise.
36676         * tests/test-isnan.c (isnan): Likewise.
36677         * tests/test-signbit.c (signbit): Likewise.
36678         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36679         declaration, either as macro or with correct signature.
36680         (select): Ensure function under test is declared with correct
36681         signature in correct header.
36682         * tests/test-atexit.c (atexit): Likewise.
36683         * tests/test-btowc.c (btowc): Likewise.
36684         * tests/test-canonicalize-lgpl.c (realpath)
36685         (canonicalize_file_name): Likewise.
36686         * tests/test-ceilf1.c (ceilf): Likewise.
36687         * tests/test-ceill.c (ceill): Likewise.
36688         * tests/test-chown.c (chown): Likewise.
36689         * tests/test-dprintf-posix.c (dprintf): Likewise.
36690         * tests/test-dup2.c (dup2): Likewise.
36691         * tests/test-dup3.c (dup3): Likewise.
36692         * tests/test-duplocale.c (duplocale): Likewise.
36693         * tests/test-fchdir.c (fchdir): Likewise.
36694         * tests/test-fchownat.c (fchownat): Likewise.
36695         * tests/test-fcntl.c (fcntl): Likewise.
36696         * tests/test-fdopendir.c (fdopendir): Likewise.
36697         * tests/test-fflush.c (fflush): Likewise.
36698         * tests/test-flock.c (flock): Likewise.
36699         * tests/test-floorf1.c (floorf): Likewise.
36700         * tests/test-floorl.c (floorl): Likewise.
36701         * tests/test-fnmatch.c (fnmatch): Likewise.
36702         * tests/test-fopen.c (fopen): Likewise.
36703         * tests/test-fprintf-posix.c (fprintf): Likewise.
36704         * tests/test-freopen.c (freopen): Likewise.
36705         * tests/test-frexp.c (frexp): Likewise.
36706         * tests/test-frexpl.c (frexpl): Likewise.
36707         * tests/test-fseek.c (fseek): Likewise.
36708         * tests/test-fseeko.c (fseeko): Likewise.
36709         * tests/test-fstatat.c (fstatat): Likewise.
36710         * tests/test-fsync.c (fsync): Likewise.
36711         * tests/test-ftell.c (ftell): Likewise.
36712         * tests/test-ftello.c (ftello): Likewise.
36713         * tests/test-futimens.c (futimens): Likewise.
36714         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36715         (gai_strerror): Likewise.
36716         * tests/test-getcwd.c (getcwd): Likewise.
36717         * tests/test-getdelim.c (getdelim): Likewise.
36718         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36719         * tests/test-getgroups.c (getgroups): Likewise.
36720         * tests/test-gethostname.c (gethostname): Likewise.
36721         * tests/test-getline.c (getline): Likewise.
36722         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36723         Likewise.
36724         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36725         * tests/test-glob.c (glob, globfree): Likewise.
36726         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36727         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36728         * tests/test-inet_pton.c (inet_pton): Likewise.
36729         * tests/test-isblank.c (isblank): Likewise.
36730         * tests/test-lchown.c (lchown): Likewise.
36731         * tests/test-ldexpl.c (ldexpl): Likewise.
36732         * tests/test-link.c (link): Likewise.
36733         * tests/test-linkat.c (linkat): Likewise.
36734         * tests/test-lseek.c (lseek): Likewise.
36735         * tests/test-lstat.c (lstat): Likewise.
36736         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36737         * tests/test-mbsinit.c (mbsinit): Likewise.
36738         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36739         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36740         * tests/test-memchr.c (memchr): Likewise.
36741         * tests/test-memcmp.c (memcmp): Likewise.
36742         * tests/test-memmem.c (memmem): Likewise.
36743         * tests/test-memrchr.c (memrchr): Likewise.
36744         * tests/test-mkdir.c (mkdir): Likewise.
36745         * tests/test-mkdirat.c (mkdirat): Likewise.
36746         * tests/test-mkfifo.c (mkfifo): Likewise.
36747         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36748         * tests/test-mknod.c (mknod): Likewise.
36749         * tests/test-nanosleep.c (nanosleep): Likewise.
36750         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36751         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36752         Likewise.
36753         * tests/test-open.c (open): Likewise.
36754         * tests/test-openat.c (openat): Likewise.
36755         * tests/test-perror.c (perror): Likewise.
36756         * tests/test-pipe2.c (pipe2): Likewise.
36757         * tests/test-poll.c (poll): Likewise.
36758         * tests/test-popen.c (popen, pclose): Likewise.
36759         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36760         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36761         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36762         (posix_spawn_file_actions_destroy)
36763         (posix_spawn_file_actions_addclose)
36764         (posix_spawn_file_actions_addopen)
36765         (posix_spawn_file_actions_adddup2): Likewise.
36766         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36767         * tests/test-pread.c (pread): Likewise.
36768         * tests/test-printf-posix.c (printf): Likewise.
36769         * tests/test-pty.c (openpty, forkpty): Likewise.
36770         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36771         (random_r): Likewise.
36772         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36773         * tests/test-readlink.c (readlink): Likewise.
36774         * tests/test-remove.c (remove): Likewise.
36775         * tests/test-rename.c (rename): Likewise.
36776         * tests/test-renameat.c (renameat): Likewise.
36777         * tests/test-rmdir.c (rmdir): Likewise.
36778         * tests/test-round1.c (round): Likewise.
36779         * tests/test-roundf1.c (roundf): Likewise.
36780         * tests/test-roundl.c (roundl): Likewise.
36781         * tests/test-setenv.c (setenv): Likewise.
36782         * tests/test-sigaction.c (sigaction): Likewise.
36783         * tests/test-sleep.c (sleep): Likewise.
36784         * tests/test-snprintf.c (snprintf): Likewise.
36785         * tests/test-sprintf-posix.c (sprintf): Likewise.
36786         * tests/test-stat.c (stat): Likewise.
36787         * tests/test-stpncpy.c (stpncpy): Likewise.
36788         * tests/test-strcasestr.c (strcasestr): Likewise.
36789         * tests/test-strchrnul.c (strchrnul): Likewise.
36790         * tests/test-strerror.c (strerror): Likewise.
36791         * tests/test-strsignal.c (strsignal): Likewise.
36792         * tests/test-strstr.c (strstr): Likewise.
36793         * tests/test-strtod.c (strtod): Likewise.
36794         * tests/test-strverscmp.c (strverscmp): Likewise.
36795         * tests/test-symlink.c (symlink): Likewise.
36796         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36797         * tests/test-times.c (times): Likewise.
36798         * tests/test-trunc1.c (trunc): Likewise.
36799         * tests/test-truncf1.c (truncf): Likewise.
36800         * tests/test-truncl.c (truncl): Likewise.
36801         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36802         Likewise.
36803         * tests/test-uname.c (uname): Likewise.
36804         * tests/test-unlink.c (unlink): Likewise.
36805         * tests/test-unlinkat.c (unlinkat): Likewise.
36806         * tests/test-unsetenv.c (unsetenv): Likewise.
36807         * tests/test-usleep.c (usleep): Likewise.
36808         * tests/test-utimensat.c (utimensat): Likewise.
36809         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36810         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36811         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36812         * tests/test-vprintf-posix.c (vprintf): Likewise.
36813         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36814         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36815         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36816         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36817         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36818         * tests/test-wcwidth.c (wcwidth): Likewise.
36819
36820         build: pull in conditional headers during GNULIB_POSIXCHECK
36821         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36822         definitions from any conditionally-included headers.
36823         * lib/stdlib.in.h (includes): Likewise.
36824         * lib/unistd.in.h (includes): Likewise.
36825
36826 2009-12-24  Bruno Haible  <bruno@clisp.org>
36827
36828         * tests/test-argv-iter.c: Include header file being tested immediately
36829         after config.h.
36830         * tests/test-base64.c: Likewise.
36831         * tests/test-flock.c: Likewise.
36832         * tests/test-fsync.c: Likewise.
36833         * tests/test-getdate.c: Likewise.
36834         * tests/test-getndelim2.c: Likewise.
36835         * tests/test-isfinite.c: Likewise.
36836         * tests/test-isinf.c: Likewise.
36837         * tests/test-strerror.c: Likewise.
36838         * tests/test-strsignal.c: Likewise.
36839
36840 2009-12-23  Eric Blake  <ebb9@byu.net>
36841
36842         unistd: work around cygwin bug
36843         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36844         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36845         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36846
36847 2009-12-23  Bruno Haible  <bruno@clisp.org>
36848
36849         localename: More tests.
36850         * tests/test-localename.c (SIZEOF): New macro.
36851         (categories): New variable.
36852         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36853         test_locale_name_default): Add test w.r.t. thread locale.
36854         (test_locale_name_thread): New function.
36855         (main): Invoke it.
36856
36857         localename: Make aware of thread locale.
36858         * lib/localename.h (gl_locale_name_thread): New declaration.
36859         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36860         behaviour with respect to thread locale.
36861         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36862         <langinfo.h>, glthread/lock.h.
36863         (SIZE_BITS): New macro.
36864         (string_hash): New function.
36865         (struct hash_node): New type.
36866         (HASH_TABLE_SIZE): New macro.
36867         (struniq_hash_table, struniq_lock): New variables.
36868         (struniq): New function.
36869         (gl_locale_name_thread): New function.
36870         (gl_locale_name): Invoke it.
36871         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36872         * modules/localename (Depends-on): Add lock.
36873         Reported by Mike Gran <spk121@yahoo.com>.
36874
36875 2009-12-23  Eric Blake  <ebb9@byu.net>
36876
36877         va-args: new module
36878         * modules/va-args: New file.
36879         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36880         * MODULES.html.sh (Core language properties): Mention it.
36881
36882         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36883         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36884         named alias for __attribute__((__unused__)).
36885         * lib/chown.c: Update client.
36886         * lib/fchmodat.c: Likewise.
36887         * lib/fts.c: Likewise.
36888         * lib/getdate.y: Likewise.
36889         * lib/getgroups.c: Likewise.
36890         * lib/getopt.c: Likewise.
36891         * lib/getugroups.c: Likewise.
36892         * lib/mkdir.c: Likewise.
36893         * lib/mkfifo.c: Likewise.
36894         * lib/mkfifoat.c: Likewise.
36895         * lib/mknod.c: Likewise.
36896         * lib/mknodat.c: Likewise.
36897         * lib/readlink.c: Likewise.
36898         * lib/se-context.in.h: Likewise.
36899         * lib/se-selinux.in.h: Likewise.
36900         * lib/sockets.c: Likewise.
36901         * lib/symlink.c: Likewise.
36902         * lib/symlinkat.c: Likewise.
36903         * lib/unicodeio.c: Likewise.
36904         * lib/unistr.h: Likewise.
36905         * tests/test-areadlink.c: Likewise.
36906         * tests/test-areadlinkat.c: Likewise.
36907         * tests/test-filenamecat.c: Likewise.
36908         * tests/test-fseeko.c: Likewise.
36909         * tests/test-ftello.c: Likewise.
36910         * tests/test-getdate.c: Likewise.
36911         * tests/test-getgroups.c: Likewise.
36912         * tests/test-gethostname.c: Likewise.
36913         * tests/test-quotearg.c: Likewise.
36914         * tests/test-version-etc.c: Likewise.
36915         * tests/test-xalloc-die.c: Likewise.
36916         * tests/test-xfprintf-posix.c: Likewise.
36917         * tests/test-xprintf-posix.c: Likewise.
36918         * tests/test-xvasprintf.c: Likewise.
36919
36920         tests: avoid compiler warnings
36921         * tests/test-fcntl.c (main): Delete unused parameters.
36922         * tests/test-freopen-safer.c (main): Likewise.
36923         * tests/test-xalloc-die.c (main): Mark unused parameters.
36924         * tests/test-fseeko.c (main): Likewise.
36925         * tests/test-ftello.c (main): Likewise.
36926         * tests/test-nanosleep.c (main): Avoid declaration warning.
36927         * tests/test-sleep.c (main): Likewise.
36928         * tests/test-unsetenv.c (main): Silence warning about string
36929         literal.
36930         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36931
36932 2009-12-23  Bruno Haible  <bruno@clisp.org>
36933
36934         * tests/test-localename.c (test_locale_name): New function, extracted
36935         from main. Also test mixed situations.
36936         (test_locale_name_posix, test_locale_name_environ,
36937         test_locale_name_default): New functions.
36938         (main): Invoke them all.
36939         * modules/localename-tests (configure.ac): Test for newlocale.
36940
36941 2009-12-23  Bruno Haible  <bruno@clisp.org>
36942
36943         unistd: Ensure getcwd gets declared before being overridden.
36944         * lib/unistd.in.h: Conditionally include <io.h>.
36945
36946 2009-12-22  Bruno Haible  <bruno@clisp.org>
36947
36948         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36949         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36950         (gl_WCHAR_H): Invoke it.
36951         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36952         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36953         Reported by Karl Berry <karl@freefriends.org>.
36954
36955 2009-12-22  Eric Blake  <ebb9@byu.net>
36956
36957         math, unistd: avoid redundant includes
36958         * lib/math.in.h (isnan): No need to re-include <math.h>.
36959         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36960
36961         getsubopt: work around cygwin bug
36962         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36963         avoid conflicting with system getsubopt.
36964         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36965         bug.
36966
36967         getopt: synchronize from glibc
36968         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36969         parameter order.  Adjust all callers.
36970         (_getopt_internal_r, main): Adjust quoting in error messages.
36971         Drop considerations for outdated POSIX 1003.2 error message.
36972         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36973         callers.
36974         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36975
36976         test-getopt: test stderr behavior
36977         * modules/getopt-posix-tests (Depends-on): Add dup2.
36978         * tests/test-getopt.c (ASSERT): Avoid stderr.
36979         (main): Move stderr to a temporary file.
36980         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36981         Instead, add parameter to inform caller if output occurred.
36982         (test_getopt): Adjust all existing tests to expect silence, and
36983         add new tests of leading ":".
36984         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36985         glibc shortcomings with leading "-:" or "+:" in optstring.
36986         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36987         Likewise.
36988         * doc/posix-functions/getopt.texi (getopt): Likewise.
36989
36990         test-getopt: enhance test
36991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36992         supports optind=0.
36993         * tests/test-getopt.c (OPTIND_MIN): Move...
36994         * tests/test-getopt.h (OPTIND_MIN): ...here.
36995         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36996         Require that optind=0 works, since modern BSD supports it in
36997         addition to optreset, and since coreutils expects it.
36998         (test_getopt_long_only): New test.
36999         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37000         glibc shortcomings with 'W;', and enforcement of optind=0.
37001         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37002         Likewise.
37003
37004 2009-12-21  Bruno Haible  <bruno@clisp.org>
37005
37006         localename: Improvements for MacOS X and Cygwin.
37007         * lib/localename.h (gl_locale_name_environ): New declaration.
37008         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37009         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37010         (gl_locale_name_posix): Invoke it.
37011         (gl_locale_name_default): Add comments. Use Windows native API also on
37012         Cygwin.
37013
37014 2009-12-21  Bruno Haible  <bruno@clisp.org>
37015
37016         Update list of Win32 locale ids.
37017         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37018         (LANG_SAMI): Renamed from LANG_SAAMI.
37019         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37020         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37021         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37022         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37023         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37024         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37025         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37026         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37027         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37028         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37029         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37030         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37031         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37032         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37033         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37034         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37035         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37036         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37037         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37038         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37039         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37040         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37041         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37042         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37043         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37044         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37045         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37046         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37047         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37048         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37049         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37050         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37051         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37052         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37053         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37054         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37055         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37056         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37057         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37058         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37059         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37060         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37061         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37062         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37063         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37064         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37065         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37066         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37067         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37068         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37069         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37070         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37071         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37072         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37073         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37074         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37075         Add more languages and countries for Sami, Sorbian. Add more countries
37076         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37077         for Pashto. Change country for Syriac, Tswana.
37078
37079 2009-12-21  Eric Blake  <ebb9@byu.net>
37080
37081         test-utimens: avoid spurious failure
37082         * tests/test-chown.h (nap): Factor...
37083         * tests/nap.h: ...into new file.
37084         * tests/test-lchown.h (nap): Avoid duplication.
37085         * tests/test-utimens-common.h (nap): Use shared implementation,
37086         necessary on file systems with 1-second resolution.
37087         * modules/chown-tests (Files): Include new file.
37088         * modules/fdutimensat-tests (Files): Likewise.
37089         * modules/futimens-tests (Files): Likewise.
37090         * modules/lchown-tests (Files): Likewise.
37091         * modules/openat-tests (Files): Likewise.
37092         * modules/utimens-tests (Files): Likewise.
37093         * modules/utimensat-tests (Files): Likewise.
37094
37095 2009-12-19  Eric Blake  <ebb9@byu.net>
37096
37097         futimens, utimensat: work around Linux bug
37098         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37099         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37100         * lib/utimensat.c (rpl_utimensat): Work around it.
37101         * lib/futimens.c (rpl_futimens): Adjust comment.
37102
37103         utimens: work around Linux ctime bug
37104         * lib/utimens.c (detect_ctime_bug): New helper function.
37105         (update_timespec): Differentiate between workaround needed for
37106         this bug vs. what is needed for systems that lack utimensat.
37107         (fdutimens, lutimens): Work around bug.
37108
37109         utimens: check for ctime update
37110         * tests/test-utimens-common.h (check_ctime): Define.
37111         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37112         * tests/test-futimens.h (test_futimens): Likewise.
37113         * tests/test-lutimens.h (test_lutimens): Likewise.
37114         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37115         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37116
37117 2009-12-19  Bruno Haible  <bruno@clisp.org>
37118
37119         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37120         * tests/test-dprintf-posix2.sh: New file.
37121         * tests/test-dprintf-posix2.c: New file.
37122         * modules/dprintf-posix-tests (Files): Add them.
37123         (configure.ac): Check for getrlimit and setrlimit.
37124         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37125
37126 2009-12-19  Bruno Haible  <bruno@clisp.org>
37127
37128         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37129         * tests/test-fprintf-posix3.sh: New file.
37130         * tests/test-fprintf-posix3.c: New file.
37131         * modules/fprintf-posix-tests (Files): Add them.
37132         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37133
37134 2009-12-19  Eric Blake  <ebb9@byu.net>
37135
37136         dirfd: fix prototype
37137         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37138         * lib/dirfd.c (dirfd): Likewise.
37139
37140         canonicalize: reduce memory usage
37141         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37142         allocation to size.
37143         Reported by Solar Designer <solar@openwall.com>.
37144
37145 2009-12-19  Bruno Haible  <bruno@clisp.org>
37146
37147         New module attribute 'Applicability'.
37148         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37149         * gnulib-tool: New option --extract-applicability.
37150         (func_usage): Document it.
37151         (sed_extract_prog): Recognize it.
37152         (func_get_applicability): New function.
37153         (func_import): Generalize handling of 'link-warning' module.
37154         * modules/link-warning (Applicability): New section.
37155         * modules/arg-nonnull (Applicability): New section.
37156         Repoted by Simon Josefsson <simon@josefsson.org>.
37157
37158 2009-12-19  Bruno Haible  <bruno@clisp.org>
37159
37160         fflush: tweak
37161         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37162         * lib/fseeko.c (rpl_fseeko): Likewise.
37163
37164 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37165
37166         * lib/gl_list.h: Fix typo in comment.
37167
37168 2009-12-16  Eric Blake  <ebb9@byu.net>
37169
37170         fcntl: use to simplify other modules
37171         * modules/cloexec (Depends-on): Add fcntl.
37172         * modules/fchdir (Depends-on): Likewise.
37173         * modules/fd-safer-flag (Depends-on): Likewise.
37174         * modules/unistd-safer (Depends-on): Likewise.
37175         * modules/dup3 (configure.ac): Set module indicator.
37176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37177         missing.
37178         * lib/fchdir.c (_gl_register_dup): Fix comment.
37179         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37180         * lib/dup-safer.c (dup_safer): Likewise.
37181         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37182         * lib/dup3.c (dup3): Likewise.
37183         * tests/test-fchdir.c (main): Enhance test.
37184         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37185
37186         fcntl: port portions of fcntl to mingw
37187         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37188         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37189         replacement for mingw.
37190         * modules/fcntl (Description): Update.
37191         (Depends-on): Add dup2.
37192         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37193         * modules/fcntl-h (Makefile.am): Substitute it.
37194         * lib/fcntl.in.h (fcntl): Update declaration.
37195         (F_DUPFD, F_GETFD): New macros, when needed.
37196         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37197         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37198         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37199         we now guarantee.
37200
37201         fcntl: work around cygwin bug in F_DUPFD
37202         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37203         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37204         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37205         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37206         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37207
37208         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37209         * modules/fcntl (Files): List new files.
37210         (configure.ac): Run a test.
37211         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37212         * lib/fcntl.c (rpl_fcntl): Likewise.
37213         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37214         (gl_FCNTL_H): Always replace fcntl.h.
37215         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37216         * lib/fcntl.in.h (fcntl): Declare replacement.
37217         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37218         needed, plus a witness.
37219         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37220         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37221         * tests/test-fcntl.c: New file.
37222         * modules/fcntl-tests: Likewise.
37223
37224         binary-io: avoid potential compilation warning
37225         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37226         directives.
37227
37228         fflush: avoid compilation error on NetBSD
37229         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37230         between off_t and fpos_t, since the latter is sometimes a struct.
37231         * lib/fseeko.c (rpl_fseeko): Likewise.
37232         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37233
37234 2009-12-15  Eric Blake  <ebb9@byu.net>
37235
37236         fcntl-h, stdio, sys_ioctl: fix declarations
37237         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37238         function must not take arguments.
37239         * lib/sys_ioctl.in.h (ioctl): Likewise.
37240         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37241         (open): Add a link warning.
37242
37243 2009-12-15  Jim Meyering  <meyering@redhat.com>
37244
37245         areadlink, areadlink-with-size: relax license to LGPLv2+
37246         * modules/areadlink (License): Relax to LGPLv2+.
37247         * modules/areadlink-with-size (License): Likewise.
37248
37249 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37250             Bruno Haible  <bruno@clisp.org>
37251
37252         *printf: Fix memory leak.
37253         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37254         * lib/vfprintf.c (vfprintf): Likewise.
37255         * lib/dprintf.c (dprintf): Likewise.
37256         * lib/vdprintf.c (vdprintf): Likewise.
37257
37258 2009-12-14  Eric Blake  <ebb9@byu.net>
37259
37260         accept4: adjust module dependencies
37261         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37262
37263         utimens: one more try at avoiding compiler warning
37264         * lib/utimens.c (lutimens): Lower scope of result.
37265
37266 2009-12-13  Bruno Haible  <bruno@clisp.org>
37267
37268         Move the malloc checking from module 'list' to new module 'xlist'.
37269         * modules/xlist: New file.
37270         * lib/gl_xlist.h: New file.
37271         * lib/gl_xlist.c: New file.
37272         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37273         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37274         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37275         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37276         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37277         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37278         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37279         gl_sortedlist_nx_add): New declarations.
37280         (struct gl_list_implementation): Rename and change methods accordingly.
37281         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37282         (gl_list_nx_create): Renamed from gl_list_create.
37283         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37284         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37285         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37286         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37287         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37288         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37289         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37290         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37291         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37292         gl_list_create_empty.
37293         (gl_list_nx_create): Renamed from gl_list_create.
37294         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37295         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37296         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37297         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37298         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37299         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37300         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37301         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37302         * lib/gl_array_list.c: Don't include xalloc.h.
37303         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37304         NULL upon out-of-memory.
37305         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37306         out-of-memory.
37307         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37308         Change return type to 'int'.
37309         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37310         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37311         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37312         upon out-of-memory.
37313         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37314         upon out-of-memory.
37315         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37316         upon out-of-memory.
37317         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37318         upon out-of-memory.
37319         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37320         out-of-memory.
37321         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37322         Update.
37323         (gl_array_list_implementation): Update.
37324         * lib/gl_carray_list.c: Don't include xalloc.h.
37325         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37326         Return NULL upon out-of-memory.
37327         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37328         out-of-memory.
37329         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37330         Change return type to 'int'.
37331         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37332         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37333         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37334         upon out-of-memory.
37335         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37336         upon out-of-memory.
37337         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37338         out-of-memory.
37339         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37340         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37341         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37342         Update.
37343         (gl_carray_list_implementation): Update.
37344         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37345         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37346         gl_linked_create_empty. Return NULL upon out-of-memory.
37347         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37348         out-of-memory.
37349         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37350         Change return type to 'int'. Return -1 upon out-of-memory.
37351         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37352         out-of-memory.
37353         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37354         upon out-of-memory.
37355         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37356         upon out-of-memory.
37357         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37358         NULL upon out-of-memory.
37359         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37360         upon out-of-memory.
37361         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37362         out-of-memory.
37363         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37364         Update.
37365         * lib/gl_linked_list.c: Don't include xalloc.h.
37366         (gl_linked_list_implementation): Update.
37367         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37368         (add_to_bucket): Change return type to 'int'.
37369         (gl_linkedhash_list_implementation): Update.
37370         * lib/gl_anytree_list1.h (free_subtree): New function.
37371         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37372         gl_tree_create_empty. Return NULL upon out-of-memory.
37373         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37374         Change return type to 'int'. Return -1 upon out-of-memory.
37375         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37376         out-of-memory.
37377         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37378         (gl_tree_remove_node): New function, moved here from
37379         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37380         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37381         Update.
37382         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37383         malloc, not xmalloc. Return NULL upon out-of-memory.
37384         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37385         out-of-memory.
37386         (gl_tree_remove_node_from_tree): New function, extracted from
37387         gl_tree_remove_node.
37388         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37389         upon out-of-memory.
37390         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37391         out-of-memory.
37392         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37393         upon out-of-memory.
37394         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37395         upon out-of-memory.
37396         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37397         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37398         not xmalloc. Return NULL upon out-of-memory.
37399         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37400         out-of-memory.
37401         (gl_tree_remove_node_from_tree): New function, extracted from
37402         gl_tree_remove_node.
37403         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37404         upon out-of-memory.
37405         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37406         out-of-memory.
37407         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37408         upon out-of-memory.
37409         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37410         upon out-of-memory.
37411         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37412         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37413         gl_anytree_list1.h before gl_anyavltree_list2.h.
37414         (gl_avltree_list_implementation): Update.
37415         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37416         gl_anytree_list1.h before gl_anyavltree_list2.h.
37417         (gl_rbtree_list_implementation): Update.
37418         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37419         Change return type to 'int'. Return -1 upon out-of-memory. Use
37420         __builtin_expect.
37421         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37422         (gl_avltreehash_list_implementation): Update.
37423         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37424         (gl_rbtreehash_list_implementation): Update.
37425         * modules/array-list (Depends-on): Remove xalloc.
37426         * modules/carray-list (Depends-on): Likewise.
37427         * modules/linked-list (Depends-on): Likewise.
37428         * modules/linkedhash-list (Depends-on): Likewise.
37429         * modules/avltree-list (Depends-on): Likewise.
37430         * modules/rbtree-list (Depends-on): Likewise.
37431         * modules/avltreehash-list (Depends-on): Likewise.
37432         * modules/rbtreehash-list (Depends-on): Likewise.
37433
37434         * modules/xsublist: New file.
37435         * lib/gl_xsublist.h: New file.
37436         * lib/gl_xsublist.c: New file.
37437         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37438         (gl_sublist_nx_create): New declaration.
37439         * lib/gl_sublist.c: Don't include xalloc.h.
37440         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37441         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37442         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37443         Change return type to 'int'. Return -1 upon out-of-memory.
37444         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37445         upon out-of-memory.
37446         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37447         NULL upon out-of-memory.
37448         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37449         upon out-of-memory.
37450         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37451         NULL upon out-of-memory.
37452         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37453         NULL upon out-of-memory.
37454         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37455         upon out-of-memory.
37456         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37457         (gl_sublist_list_implementation): Update.
37458         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37459         upon out-of-memory.
37460         * modules/sublist (Depends-on): Remove xalloc.
37461
37462         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37463         * tests/test-carray_list.c: Likewise.
37464         * tests/test-linked_list.c: Likewise.
37465         * tests/test-linkedhash_list.c: Likewise.
37466         * tests/test-avltree_list.c: Likewise.
37467         * tests/test-rbtree_list.c: Likewise.
37468         * tests/test-avltreehash_list.c: Likewise.
37469         * tests/test-rbtreehash_list.c: Likewise.
37470         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37471         * modules/carray-list-tests (Makefile.am): Likewise.
37472         * modules/linked-list-tests (Makefile.am): Likewise.
37473         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37474         * modules/avltree-list-tests (Makefile.am): Likewise.
37475         * modules/rbtree-list-tests (Makefile.am): Likewise.
37476         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37477         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37478
37479         * NEWS: Mention the changes.
37480
37481         * lib/clean-temp.c: Include gl_xlist.h.
37482         * modules/clean-temp (Depends-on): Add xlist.
37483
37484         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37485         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37486
37487         * tests/test-array_oset.c: Include gl_xlist.h.
37488         * modules/array-oset-tests (Depends-on): Add xlist.
37489
37490         Reported by José E. Marchesi <jemarch@gnu.org>.
37491
37492 2009-12-13  Bruno Haible  <bruno@clisp.org>
37493
37494         Move the malloc checking from module 'oset' to new module 'xoset'.
37495         * modules/xoset: New file.
37496         * lib/gl_xoset.h: New file.
37497         * lib/gl_xoset.c: New file.
37498         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37499         declarations.
37500         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37501         (struct gl_oset_implementation): Rename and change methods accordingly.
37502         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37503         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37504         'int'. Mark as __warn_unused_result__.
37505         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37506         gl_oset_create_empty.
37507         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37508         'int'.
37509         * lib/gl_array_oset.c: Don't include xalloc.h.
37510         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37511         malloc, not xmalloc.
37512         (grow): Change return type to 'int'. Don't call xalloc_die.
37513         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37514         to 'int'.
37515         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37516         'int'.
37517         (gl_array_oset_implementation): Update.
37518         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37519         gl_tree_create_empty.
37520         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37521         'int'.
37522         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37523         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37524         xmalloc.
37525         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37526         not xmalloc.
37527         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37528         xmalloc.
37529         (gl_avltree_oset_implementation): Update.
37530         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37531         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37532         xmalloc.
37533         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37534         not xmalloc.
37535         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37536         xmalloc.
37537         (gl_rbtree_oset_implementation): Update.
37538         * modules/array-oset (Depends-on): Remove xalloc.
37539         * modules/avltree-oset (Depends-on): Likewise.
37540         * modules/rbtree-oset (Depends-on): Likewise.
37541         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37542         * tests/test-avltree_oset.c: Likewise.
37543         * tests/test-rbtree_oset.c: Likewise.
37544         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37545         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37546         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37547         * NEWS: Mention the change.
37548
37549 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37550
37551         maint.mk: allow a project to override release-prep commands
37552         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37553         commands into a new rule.
37554         (release-prep): New rule.
37555         (release-prep-hook): New overridable variable.
37556
37557 2009-12-13  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37560
37561 2009-12-13  Jim Meyering  <meyering@redhat.com>
37562
37563         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37564         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37565
37566 2009-12-12  Bruno Haible  <bruno@clisp.org>
37567
37568         duplocale: Tweak.
37569         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37570
37571 2009-12-12  Karl Berry  <karl@gnu.org>
37572
37573         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37574
37575 2009-12-12  Bruno Haible  <bruno@clisp.org>
37576
37577         * m4/po.m4: Undo incorrect untabification.
37578
37579 2009-12-12  Bruno Haible  <bruno@clisp.org>
37580
37581         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37582         * modules/c-strtod (Depends-on): Add locale.
37583         * modules/c-strtold (Depends-on): Likewise.
37584
37585 2009-12-12  Bruno Haible  <bruno@clisp.org>
37586
37587         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37588
37589 2009-12-11  Eric Blake  <ebb9@byu.net>
37590
37591         setenv: relax requirement in light of POSIX ruling
37592         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37593         not NULL.
37594         * tests/test-setenv.c (main): Relax test.
37595         * tests/test-unsetenv.c (main): Likewise.
37596         * doc/posix-functions/setenv.texi (setenv): Document this.
37597         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37598
37599 2009-12-11  Bruno Haible  <bruno@clisp.org>
37600
37601         New module 'fd-safer-flag'.
37602         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37603         * lib/dup-safer.c (dup_safer_flag): Remove function.
37604         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37605         * lib/fd-safer.c (fd_safer_flag): Remove function.
37606         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37607         * modules/cloexec (configure.ac): Drop indicator macro.
37608         * modules/fd-safer-flag: New file.
37609         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37610         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37611         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37612
37613 2009-12-11  Bruno Haible  <bruno@clisp.org>
37614
37615         Tests for module 'nl_langinfo'.
37616         * modules/nl_langinfo-tests: New file.
37617         * tests/test-nl_langinfo.sh: New file.
37618         * tests/test-nl_langinfo.c: New file.
37619
37620         New module 'nl_langinfo'.
37621         * lib/nl_langinfo.c: New file.
37622         * m4/nl_langinfo.m4: New file.
37623         * modules/nl_langinfo: New file.
37624         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37625
37626 2009-12-11  Bruno Haible  <bruno@clisp.org>
37627
37628         Tests for module 'langinfo'.
37629         * modules/langinfo-tests: New file.
37630         * tests/test-langinfo.c: New file.
37631
37632         New module 'langinfo'.
37633         * lib/langinfo.in.h: New file.
37634         * m4/langinfo_h.m4: New file.
37635         * modules/langinfo: New file.
37636         * doc/posix-headers/langinfo.texi: Mention the new module.
37637
37638 2009-12-11  Bruno Haible  <bruno@clisp.org>
37639
37640         * lib/config.charset: Untabify.
37641
37642 2009-12-11  Bruno Haible  <bruno@clisp.org>
37643
37644         * modules/unistd-safer (configure.ac): Drop indicator macro.
37645
37646 2009-12-11  Bruno Haible  <bruno@clisp.org>
37647
37648         Move pipe2-safer code to its own file.
37649         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37650         * lib/pipe-safer.c (pipe2_safer): Remove function.
37651         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37652         (Makefile.am): Add it to lib_SOURCES.
37653
37654 2009-12-10  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37657
37658 2009-12-10  Bruno Haible  <bruno@clisp.org>
37659
37660         Declare which arguments expect non-NULL values, for GCC and clang.
37661         * build-aux/arg-nonnull.h: New file.
37662         * modules/arg-nonnull: New file.
37663         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37664         (inet_ntop, inet_pton): Use it.
37665         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37666         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37667         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37668         (open, openat): Use it.
37669         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37670         (fnmatch): Use it.
37671         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37672         (getopt, getopt_long, getopt_long_only): Use it.
37673         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37674         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37675         Use it.
37676         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37677         (iconv_open): Use it.
37678         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37679         (strtoimax, strtoumax): Use it.
37680         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37681         (duplocale): Use it.
37682         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37683         (frexp, frexpl): Use it.
37684         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37685         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37686         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37687         (tsearch, tfind, tdelete, twalk): Use it.
37688         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37689         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37690         sigpending): Use it.
37691         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37692         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37693         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37694         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37695         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37696         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37697         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37698         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37699         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37700         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37701         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37702         Use it.
37703         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37704         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37705         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37706         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37707         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37708         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37709         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37710         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37711         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37712         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37713         strtoull, unsetenv): Use it.
37714         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37715         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37716         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37717         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37718         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37719         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37720         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37721         (strcasecmp, strncasecmp): Use it.
37722         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37723         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37724         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37725         rpl_setsockopt): Use it.
37726         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37727         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37728         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37729         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37730         (gettimeofday): Use it.
37731         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37732         (times): Use it.
37733         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37734         (uname): Use it.
37735         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37736         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37737         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37738         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37739         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37740         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37741         unlinkat, write): Use it.
37742         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37743         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37744         * lib/argv-iter.h: Include arg-nonnull.h.
37745         (_ATTRIBUTE_NONNULL_): Remove macro.
37746         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37747         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37748         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37749         optimization.
37750         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37751         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37752         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37753         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37754         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37755         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37756         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37757         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37758         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37759         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37760         * modules/dirent (Depends-on): Add arg-nonnull.
37761         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37762         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37763         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37764         * modules/fnmatch (Depends-on): Add arg-nonnull.
37765         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37766         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37767         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37768         * modules/glob (Depends-on): Add arg-nonnull.
37769         (Makefile.am): Insert arg-nonnull.h into glob.h.
37770         * modules/iconv_open (Depends-on): Add arg-nonnull.
37771         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37772         * modules/inttypes (Depends-on): Add arg-nonnull.
37773         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37774         * modules/locale (Depends-on): Add arg-nonnull.
37775         (Makefile.am): Insert arg-nonnull.h into locale.h.
37776         * modules/math (Depends-on): Add arg-nonnull.
37777         (Makefile.am): Insert arg-nonnull.h into math.h.
37778         * modules/netdb (Depends-on): Add arg-nonnull.
37779         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37780         * modules/search (Depends-on): Add arg-nonnull.
37781         (Makefile.am): Insert arg-nonnull.h into search.h.
37782         * modules/signal (Depends-on): Add arg-nonnull.
37783         (Makefile.am): Insert arg-nonnull.h into signal.h.
37784         * modules/spawn (Depends-on): Add arg-nonnull.
37785         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37786         * modules/stdio (Depends-on): Add arg-nonnull.
37787         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37788         * modules/stdlib (Depends-on): Add arg-nonnull.
37789         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37790         * modules/string (Depends-on): Add arg-nonnull.
37791         (Makefile.am): Insert arg-nonnull.h into string.h.
37792         * modules/strings (Depends-on): Add arg-nonnull.
37793         (Makefile.am): Insert arg-nonnull.h into strings.h.
37794         * modules/sys_socket (Depends-on): Add arg-nonnull.
37795         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37796         * modules/sys_stat (Depends-on): Add arg-nonnull.
37797         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37798         * modules/sys_time (Depends-on): Add arg-nonnull.
37799         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37800         * modules/sys_times (Depends-on): Add arg-nonnull.
37801         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37802         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37803         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37804         * modules/time (Depends-on): Add arg-nonnull.
37805         (Makefile.am): Insert arg-nonnull.h into time.h.
37806         * modules/unistd (Depends-on): Add arg-nonnull.
37807         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37808         * modules/wchar (Depends-on): Add arg-nonnull.
37809         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37810         * modules/argv-iter (Depends-on): Add arg-nonnull.
37811         * tests/test-canonicalize.c (null_ptr): New function.
37812         (main): Use it.
37813         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37814         (main): Use it.
37815         * tests/test-memmem.c (null_ptr): New function.
37816         (main): Use it.
37817         Reported by Jim Meyering.
37818
37819 2009-12-10  Bruno Haible  <bruno@clisp.org>
37820
37821         Use spaces for indentation, not tabs.
37822         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37823         * m4/*.m4: Untabify.
37824         * build-aux/*.h: Untabify.
37825         * tests/**/*.[hc]: Untabify.
37826         * README: New section "Indent with spaces, not TABs", based on
37827         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37828         * NEWS: Mention the change.
37829
37830 2009-12-10  Bruno Haible  <bruno@clisp.org>
37831
37832         pty test: Fix link error.
37833         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37834         test_pty_LDADD.
37835
37836 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37837
37838         * modules/pty: New file.
37839         * modules/pty-tests: New file.
37840         * m4/pty.m4: New file.
37841         * tests/test-pty.c: New file.
37842         * doc/glibc-headers/pty.texi: Modified.
37843         * doc/glibc-functions/forkpty.texi: Modified.
37844         * doc/glibc-functions/openpty.texi: Modified.
37845
37846 2009-12-10  Bruno Haible  <bruno@clisp.org>
37847
37848         Avoid syntax error in C++ mode.
37849         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37850
37851 2009-12-10  Bruno Haible  <bruno@clisp.org>
37852
37853         Use sed with option -e.
37854         * gnulib-tool (func_version, func_emit_copyright_notice,
37855         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37856         option -e to sed.
37857         * modules/link-warning (Makefile.am): Likewise.
37858
37859 2009-12-10  Jim Meyering  <meyering@redhat.com>
37860
37861         mgetgroups: do not write bytes beyond end of malloc'd buffer
37862         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37863         username, we call getgroups with a one-element-shorter buffer,
37864         but still told it the length was original, max_n_groups.
37865
37866 2009-12-09  Eric Blake  <ebb9@byu.net>
37867
37868         cloexec: relax license
37869         * modules/cloexec (Maintainer): Add myself.
37870         (License): Use LGPL, not GPL.
37871
37872         link-warning: optimize generation
37873         * modules/link-warning (Makefile.am): Reduce process usage.
37874
37875 2009-12-09  Bruno Haible  <bruno@clisp.org>
37876
37877         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37878         workaround was added on 2009-11-17.
37879
37880 2009-12-09  Jim Meyering  <meyering@redhat.com>
37881             Bruno Haible  <bruno@clisp.org>
37882
37883         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37884         * modules/link-warning (Makefile.am): Make the comment-removing sed
37885         command more robust in the face of bootstrap-prepended comment lines.
37886
37887 2009-12-09  Bruno Haible  <bruno@clisp.org>
37888
37889         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37890         most one group.
37891
37892 2009-12-09  Simon Josefsson <simon@josefsson.org>
37893             Bruno Haible  <bruno@clisp.org>
37894
37895         * build-aux/link-warning.h: Add copyright notice.
37896         * modules/link-warning (Makefile.am): Generate link-warning.h from
37897         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37898         * NEWS: Mention change in link-warning module.
37899         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37900         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37901         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37902         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37903         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37904         * modules/math (Makefile.am): Add dependency to math.h.
37905         * modules/search (Makefile.am): Add dependency to search.h.
37906         * modules/signal (Makefile.am): Add dependency to signal.h.
37907         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37908         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37909         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37910         * modules/string (Makefile.am): Add dependency to string.h.
37911         * modules/strings (Makefile.am): Add dependency to strings.h.
37912         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37913         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37914         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37915         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37916         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37917         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37918         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37919         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37920         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37921
37922 2009-12-09  Bruno Haible  <bruno@clisp.org>
37923
37924         fchdir: Optimize away rpl_fstat when possible.
37925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37926         REPLACE_OPEN_DIRECTORY.
37927         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37928
37929 2009-12-09  Bruno Haible  <bruno@clisp.org>
37930
37931         * lib/fchdir.c: Update comment.
37932
37933 2009-12-09  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37936
37937 2009-12-08  Eric Blake  <ebb9@byu.net>
37938
37939         fchdir: avoid memory leak on re-registration.
37940         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37941
37942 2009-12-08  Jim Meyering  <meyering@redhat.com>
37943
37944         init.sh: avoid Solaris 10 /bin/sh portability problem
37945         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37946         sourced script:
37947           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37948           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37949           bar
37950         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37951         and two tests used that idiom.
37952         * tests/init.sh: Update suggested usage comments.
37953         (path_prepend_): New function, to be used in place
37954         of the --src-path=DIR option.
37955         (setup_): Move PATH-prepending code into path_prepend_.
37956         * tests/test-pread.sh: Adapt to new usage.
37957         * tests/test-xalloc-die.sh: Likewise.
37958
37959 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37960
37961         * doc/gnulib.texi (Glibc pty.h): Add.
37962         * doc/glibc-functions/forkpty.texi: Add.
37963         * doc/glibc-functions/openpty.texi: Add.
37964         Suggested by Bruno Haible.
37965
37966 2009-12-08  Eric Blake  <ebb9@byu.net>
37967
37968         fchdir: fix logic bugs
37969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37970         * tests/test-fchdir.c (main): Enhance test.
37971         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37972         is in use.
37973
37974         dup2: fix logic bugs
37975         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37976         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37977         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37978         exists.
37979         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37980
37981 2009-12-07  Eric Blake  <ebb9@byu.net>
37982
37983         unlink: fix m4 detection
37984         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37985
37986         unistd-safer: add unit test
37987         * modules/unistd-safer-tests: New file.
37988         * tests/test-dup-safer.c: Likewise.
37989         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37990         * tests/test-dup2.c (setmode): Likewise.
37991         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37992
37993         cloexec: preserve text vs. binary across dup_cloexec
37994         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37995         mode.
37996         * modules/dup2-tests (Depends-on): Add binary-io.
37997         * modules/cloexec-tests (Depends-on): Likewise.
37998         * tests/test-dup2.c (setmode, is_mode): New helpers.
37999         (main): Add tests that translation mode is preserved.
38000         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38001         Reported by Bruno Haible.
38002
38003         mgetgroups: reduce duplicate listings
38004         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38005         resulting array.
38006         * tests/test-chown.h (test_chown): Simplify client.
38007         * tests/test-lchown.h (test_lchown): Likewise.
38008
38009 2009-12-06  Bruno Haible  <bruno@clisp.org>
38010
38011         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38012         value.
38013
38014 2009-12-06  Bruno Haible  <bruno@clisp.org>
38015
38016         * lib/progname.c: Include stdio.h, stdlib.h.
38017         (set_program_name): Reject a NULL argument.
38018
38019 2009-12-05  Eric Blake  <ebb9@byu.net>
38020
38021         pipe2-safer: new module
38022         * modules/pipe2-safer: New file.
38023         * lib/unistd-safer.h (pipe2_safer): New prototype.
38024         * lib/unistd--.h (pipe2): New wrapper.
38025         * lib/pipe-safer.c (pipe2_safer): New function.
38026         * modules/pipe (Depends-on): Add pipe2-safer.
38027         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38028
38029         stdlib-safer: preserve cloexec flag for mkostemp[s]
38030         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38031         fd_safer_flag.
38032
38033         unistd-safer: allow preservation of cloexec status via flag
38034         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38035         prototypes.
38036         * lib/dup-safer.c (dup_safer_flag): New function.
38037         * lib/fd-safer.c (fd_safer_flag): Likewise.
38038         * modules/cloexec (configure.ac): Set witness.
38039
38040         test-dup2: enhance test
38041         * modules/dup2-tests (Depends-on): Add cloexec.
38042         * tests/test-dup2.c (main): Enhance test.
38043
38044         cloexec: add dup_cloexec
38045         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38046         header and comments.
38047         * lib/cloexec.c (set_cloexec_flag): Add comments.
38048         (dup_cloexec): New function, with mingw implementation borrowed
38049         from...
38050         * lib/w32spawn.h (dup_noinherit): ...here.
38051         * modules/execute (Depends-on): Add cloexec.
38052         * modules/pipe (Depends-on): Likewise.
38053         * modules/cloexec (Depends-on): Add dup2.
38054         * modules/cloexec-tests (Files): New file.
38055         * tests/test-cloexec.c: Likewise.
38056
38057         test-xalloc-die: fix test for mingw
38058         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38059         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38060         directory and .exe suffix off argv[0] output.
38061
38062         test-fseeko: fix test for mingw
38063         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38064         than undefining fseek, so test will pass on mingw.
38065
38066 2009-12-05  Bruno Haible  <bruno@clisp.org>
38067
38068         * lib/progname.h (set_program_name): Clarify specification.
38069         * lib/progname.c (set_program_name): Likewise.
38070         Reported by Jim Meyering.
38071
38072 2009-12-05  Jim Meyering  <meyering@redhat.com>
38073
38074         maint.mk: backslash-escape parens in default regexp
38075         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38076         backslash-escape the literal parentheses.
38077
38078         maint.mk: news-date-check: use grep -E
38079         * top/maint.mk (today): Define a Make variable, not a...
38080         (news-date-check): ...shell variable.
38081         (news-date-regexp): Use the Make variable.
38082         Use grep's -E option.  Change the failing diagnostic to mention
38083         the variable, $(news-date-regexp).
38084
38085 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38086
38087         maintainer-makefile: allow customization of NEWS entry format
38088         * top/maint.mk (news-date-regexp): New overridable variable.
38089         (news-date-check): Use it.
38090
38091 2009-12-04  Eric Blake  <ebb9@byu.net>
38092
38093         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38094         * lib/mgetgroups.h (xgetgroups): New prototype.
38095         * lib/mgetgroups.c (xgetgroups): New wrapper.
38096         (mgetgroups): Handle ENOSYS.
38097         * modules/mgetgroups (Depends-on): Add realloc.
38098         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38099
38100         mgetgroups: avoid argument promotion issues with -1
38101         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38102         for invalid gid_t.
38103         * tests/test-chown.h (getegid, test_chown): Likewise.
38104         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38105
38106 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38107
38108         exclude: Fix header file problems.
38109         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38110
38111 2009-12-01  Jim Meyering  <meyering@redhat.com>
38112
38113         fts: fts_open: do not let an empty string cause immediate failure
38114         This is required in support of GNU rm, for which the command
38115         "rm A '' B" must process and remove both A and B, in spite of
38116         the empty string argument.
38117         * lib/fts.c (fts_open): Do not let the presence of an empty string
38118         cause fts_open to fail immediately.  Most fts-using tools must be
38119         able to process all arguments, in order, and can be expected to
38120         diagnose such arguments themselves.
38121
38122 2009-11-30  Eric Blake  <ebb9@byu.net>
38123
38124         utimens: fix compilation error
38125         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38126         Declare variable at right scope.
38127
38128 2009-11-29  Jim Meyering  <meyering@redhat.com>
38129
38130         bootstrap: handle perl-5.11's changed --version output
38131         * build-aux/bootstrap (get_version): Handle perl separately,
38132         since perl-5.11's --version output is different.
38133
38134 2009-11-28  Jim Meyering  <meyering@redhat.com>
38135
38136         userspec: depend on the inttostr module, too
38137         * modules/userspec (Depends-on): Add inttostr.
38138
38139         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38140         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38141         number of MAXUID when it evaluates to (uid_t) -1.
38142         Likewise for group ID.  Reported by Matt McCutchen in
38143         <http://savannah.gnu.org/bugs/?28113>
38144
38145         userspec: reformat to use spaces, not TABs
38146         * lib/userspec.c: Expand TABs to spaces.
38147         Add Emacs' "indent-tabs-mode: nil" hint.
38148
38149 2009-11-27  Eric Blake  <ebb9@byu.net>
38150
38151         getopt-gnu: flush out another BSD bug
38152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38153         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38154         flush out BSD bug.
38155         * tests/test-getopt.h (test_getopt): End lists with NULL.
38156         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38157         (test_getopt_long_posix): Enhance test.
38158         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38159         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38160         getopt-gnu.
38161         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38162         Likewise.
38163
38164 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38165
38166         * modules/idpriv-droptemp-tests (Notice): Fix text.
38167
38168 2009-11-27  Jim Meyering  <meyering@redhat.com>
38169
38170         test-xalloc-die: avoid spurious failure due to libtool argv difference
38171         In a libtool-enabled project, this test would fail due to a difference
38172         in the emitted program name, e.g.,
38173         -test-xalloc-die: memory exhausted
38174         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38175         Use program to avoid that.
38176         * modules/xalloc-die-tests (Depends-on): Add progname.
38177         * tests/test-xalloc-die.c: Include progname.h".
38178         (program_name): Remove decl.
38179         (main): Call set_program_name.
38180         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38181
38182 2009-11-26  Richard Jones  <rjones@redhat.com>
38183
38184         w32sock: leave win32 error in place.
38185         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38186
38187 2009-11-26  Eric Blake  <ebb9@byu.net>
38188
38189         init.sh: suggest to use skip_ and fail_ functions in comments
38190         * tests/init.sh: Add a sentence.
38191
38192 2009-11-25  Bruno Haible  <bruno@clisp.org>
38193
38194         init.sh: add documentation in comments
38195         * tests/init.sh: Add some developer and user documentation.
38196
38197 2009-11-26  Jim Meyering  <meyering@redhat.com>
38198
38199         init.sh: accommodate even those who specify bogus srcdir manually
38200         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38201         configure-time tests to be sanitized, so that there is no need to
38202         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38203         (with no double quotes) suffices.  However, since tests may be
38204         invoked manually, and since you may explicitly set srcdir to the
38205         name of a directory containing spaces, do quote its uses here.
38206         * tests/test-pread.sh: Likewise.
38207         Suggested by Bruno Haible.
38208
38209         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38210         * tests/test-pread.sh: Write no data into the pipe, because
38211         test-pread actually reads none.  This avoids a diagnostic,
38212         "bash: echo: write error: Broken pipe", that arises in the unusual
38213         event something is ignoring SIGPIPE, and might be interpreted
38214         as some sort of failure.  Reported by Bruno Haible.
38215
38216 2009-11-25  Jim Meyering  <meyering@redhat.com>
38217
38218         test-pread: cover failure with ESPIPE and EINVAL
38219         * tests/test-pread.c (main): Test for failure, too.
38220         * tests/test-pread.sh: Invoke with stdin on a pipe.
38221         Suggested by Eric Blake.
38222
38223         pread: improvement and fix
38224         * modules/pread (Depends-on): Depend on lseek, for portability to
38225         e.g., mingw.  Suggested by Eric Blake.
38226         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38227
38228         unistd.in.h: correct declaration of pread
38229         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38230         Reported by Richard W.M. Jones.
38231
38232         test-pread.sh: distribute the test script
38233         * modules/pread-tests (Files): Include test-pread.sh.
38234
38235         test-pread.sh: clean up
38236         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38237         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38238         That is unnecessary, since it's always ".".
38239         Suggestion from Eric Blake.
38240
38241         test-pread.sh: make executable
38242         * tests/test-pread.sh: Set executable bit.
38243         Reported by Eric Blake.
38244
38245         correct typo in test-pread.sh
38246         * tests/test-pread.sh: Add #! line.
38247
38248         test pread
38249         * tests/test-pread.c: New file.
38250         * tests/test-pread.sh: Likewise.
38251         * modules/pread-tests: Likewise.
38252
38253         pread: new module
38254         * modules/pread: New file.
38255         * lib/unistd.in.h (pread): Define/declare.
38256         * lib/pread.c (pread): New file.
38257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38258         * modules/unistd (Makefile.am): Substitute witnesses.
38259         * doc/posix-functions/pread.texi (pread): Update.
38260         * MODULES.html.sh: Add pread.
38261
38262 2009-11-25  Jim Meyering  <meyering@redhat.com>
38263
38264         tests/init.sh: new file to be used via most *.sh tests
38265         * tests/init.sh: New file.
38266
38267 2009-11-25  Eric Blake  <ebb9@byu.net>
38268
38269         utimens: work around older Linux failure with symlinks
38270         * lib/utimens.c (lutimensat_works_really): New variable.
38271         (fdutimens, lutimens): Use it to manage kernels that support
38272         nanosecond times on files, but not on symlinks.
38273         Reported by OndÅ™ej Vašík.
38274
38275         utimes: fix configure grammar
38276         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38277
38278 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38279
38280         regex: Fix fastmap for multibyte character ranges.
38281         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38282         characters when a multibyte character range is included.
38283
38284 2009-11-22  Andy Wingo  <wingo@pobox.com>
38285
38286         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38287         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38288
38289 2009-11-24  Bruno Haible  <bruno@clisp.org>
38290
38291         doc: Most *_l functions exist in MacOS X 10.5.
38292         * doc/posix-functions/duplocale.texi: Update platforms list.
38293         * doc/posix-functions/freelocale.texi: Likewise.
38294         * doc/posix-functions/newlocale.texi: Likewise.
38295         * doc/posix-functions/uselocale.texi: Likewise.
38296         * doc/posix-functions/isalnum_l.texi: Likewise.
38297         * doc/posix-functions/isalpha_l.texi: Likewise.
38298         * doc/posix-functions/isblank_l.texi: Likewise.
38299         * doc/posix-functions/iscntrl_l.texi: Likewise.
38300         * doc/posix-functions/isdigit_l.texi: Likewise.
38301         * doc/posix-functions/isgraph_l.texi: Likewise.
38302         * doc/posix-functions/islower_l.texi: Likewise.
38303         * doc/posix-functions/isprint_l.texi: Likewise.
38304         * doc/posix-functions/ispunct_l.texi: Likewise.
38305         * doc/posix-functions/isspace_l.texi: Likewise.
38306         * doc/posix-functions/isupper_l.texi: Likewise.
38307         * doc/posix-functions/iswalnum_l.texi: Likewise.
38308         * doc/posix-functions/iswalpha_l.texi: Likewise.
38309         * doc/posix-functions/iswblank_l.texi: Likewise.
38310         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38311         * doc/posix-functions/iswctype_l.texi: Likewise.
38312         * doc/posix-functions/iswdigit_l.texi: Likewise.
38313         * doc/posix-functions/iswgraph_l.texi: Likewise.
38314         * doc/posix-functions/iswlower_l.texi: Likewise.
38315         * doc/posix-functions/iswprint_l.texi: Likewise.
38316         * doc/posix-functions/iswpunct_l.texi: Likewise.
38317         * doc/posix-functions/iswspace_l.texi: Likewise.
38318         * doc/posix-functions/iswupper_l.texi: Likewise.
38319         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38320         * doc/posix-functions/isxdigit_l.texi: Likewise.
38321         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38322         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38323         * doc/posix-functions/strcoll_l.texi: Likewise.
38324         * doc/posix-functions/strfmon_l.texi: Likewise.
38325         * doc/posix-functions/strftime_l.texi: Likewise.
38326         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38327         * doc/posix-functions/strxfrm_l.texi: Likewise.
38328         * doc/posix-functions/tolower_l.texi: Likewise.
38329         * doc/posix-functions/toupper_l.texi: Likewise.
38330         * doc/posix-functions/towctrans_l.texi: Likewise.
38331         * doc/posix-functions/towlower_l.texi: Likewise.
38332         * doc/posix-functions/towupper_l.texi: Likewise.
38333         * doc/posix-functions/wcscoll_l.texi: Likewise.
38334         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38335         * doc/posix-functions/wctrans_l.texi: Likewise.
38336         * doc/posix-functions/wctype_l.texi: Likewise.
38337         * doc/glibc-functions/strptime_l.texi: Likewise.
38338         * doc/glibc-functions/strtod_l.texi: Likewise.
38339         * doc/glibc-functions/strtof_l.texi: Likewise.
38340         * doc/glibc-functions/strtol_l.texi: Likewise.
38341         * doc/glibc-functions/strtold_l.texi: Likewise.
38342         * doc/glibc-functions/strtoll_l.texi: Likewise.
38343         * doc/glibc-functions/strtoul_l.texi: Likewise.
38344         * doc/glibc-functions/strtoull_l.texi: Likewise.
38345         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38346         * doc/glibc-functions/wcstod_l.texi: Likewise.
38347         * doc/glibc-functions/wcstof_l.texi: Likewise.
38348         * doc/glibc-functions/wcstol_l.texi: Likewise.
38349         * doc/glibc-functions/wcstold_l.texi: Likewise.
38350         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38351         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38352         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38353
38354 2009-11-24  Bruno Haible  <bruno@clisp.org>
38355
38356         duplocale: Fix logic bug.
38357         * lib/duplocale.c: Don't include <langinfo.h>.
38358         (_NL_LOCALE_NAME): Remove macro.
38359         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38360         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38361
38362 2009-11-23  Jim Meyering  <meyering@redhat.com>
38363
38364         test-update-copyright: don't hard-code /usr/bin/perl
38365         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38366         perl to print the current year.  Gilles Espinasse reported that
38367         the replaced use of perl was hard-coded as /usr/bin/perl.
38368
38369 2009-11-23  Bruno Haible  <bruno@clisp.org>
38370
38371         duplocale: Add support for glibc 2.3.x.
38372         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38373
38374 2009-11-22  Bruno Haible  <bruno@clisp.org>
38375
38376         vasnprintf: Tiny optimization.
38377         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38378         MacOS X.
38379
38380 2009-11-22  Bruno Haible  <bruno@clisp.org>
38381
38382         Tests for module 'duplocale'.
38383         * modules/duplocale-tests: New file.
38384         * tests/test-duplocale.c: New file.
38385
38386         New module 'duplocale'.
38387         * m4/duplocale.m4: New file.
38388         * lib/locale.in.h (duplocale): New declaration.
38389         * lib/duplocale.c: New file.
38390         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38391         gl_LOCALE_H_DEFAULTS): New macros.
38392         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38393         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38394         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38395         REPLACE_DUPLOCALE.
38396         * modules/duplocale: New file.
38397         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38398
38399 2009-11-22  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/locale-tests (configure.ac): Test for newlocale function.
38402         * tests/test-locale.c: When the system has extended locale functions,
38403         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38404
38405         locale: Make locale_t available when possible.
38406         * lib/locale.in.h: Include <xlocale.h> when it exists.
38407         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38408         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38409         * modules/locale (Depends-on): Add extensions.
38410         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38411         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38412
38413 2009-11-22  Bruno Haible  <bruno@clisp.org>
38414
38415         Add comments.
38416         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38417         invocation.
38418         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38419         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38420         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38421
38422 2009-11-22  Bruno Haible  <bruno@clisp.org>
38423
38424         error: account for the possibility of freopen (stdout).
38425         * lib/error.c: Include <unistd.h>.
38426         (flush_stdout): New function, extracted from error and error_at_line.
38427         Determine stdout's fd dynamically.
38428         (error, error_at_line): Invoke flush_stdout.
38429         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38430         * modules/error (Depends-on): Add unistd.
38431
38432 2009-11-22  Bruno Haible  <bruno@clisp.org>
38433
38434         diffseq: Add comment.
38435         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38436
38437 2009-11-22  Jim Meyering  <meyering@redhat.com>
38438
38439         c-stack: avoid defining an unused static function
38440         * lib/c-stack.c (find_stack_direction): Do not define this function
38441         when it will not be used.
38442
38443         diffseq: avoid spurious gcc warnings
38444         * lib/diffseq.h (IF_LINT2): Define.
38445         (compareseq): Use it to initialize two members of "part".
38446         This avoids two used-uninitialized warnings.
38447
38448 2009-11-21  Jim Meyering  <meyering@redhat.com>
38449
38450         c-stack: avoid "ignoring return value of `write'" warning
38451         * lib/c-stack.c: Include "ignore-value.h".
38452         (die): Explicitly ignore each write return value.
38453         * modules/c-stack (Depends-on): Add ignore-value.
38454
38455 2009-11-21  Bruno Haible  <bruno@clisp.org>
38456
38457         diffseq: reduce scope of variable 'best'.
38458         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38459         variable, earlier used for two different purposes.
38460
38461 2009-11-21  Jim Meyering  <meyering@redhat.com>
38462
38463         diffseq: remove useless assignment to "best"
38464         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38465         assignment.  At that point "best" is already guaranteed to be zero.
38466
38467 2009-11-20  Eric Blake  <ebb9@byu.net>
38468
38469         build: mention ftp redirector in release announcements
38470         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38471         values that used to come from cfg.mk; mention FTP redirect URL.
38472         * build-aux/announce-gen: Mention the mirror list.
38473         Suggested by Karl Berry.
38474
38475         nanosleep: improve port to mingw
38476         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38478         LIB_NANOSLEEP, but only when needed.
38479         * modules/select (Link): Document LIBSOCKET.
38480         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38481         enough.
38482
38483         nanosleep: work around cygwin bug
38484         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38485         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38486         bug.
38487         (getnow): Delete, not needed.
38488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38489         LIB_CLOCK_GETTIME.
38490         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38491         clock-time, gettime.
38492         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38493         bug.
38494         * modules/nanosleep-tests: New test.
38495         * tests/test-nanosleep.c: New file.
38496
38497         sleep: work around cygwin bug
38498         * lib/sleep.c (rpl_sleep): Work around the bug.
38499         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38500         (gl_PREREQ_SLEEP): Delete unused macro.
38501         * modules/sleep (Depends-on): Add verify.
38502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38503         * modules/unistd (Makefile.am): Substitute witness.
38504         * lib/unistd.in.h (sleep): Update prototype.
38505         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38506         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38507         * modules/sleep-tests (Depends-on): Check for alarm.
38508
38509 2009-11-20  Jim Meyering  <meyering@redhat.com>
38510
38511         maint.mk: improve sc_prohibit_magic_number_exit
38512         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38513         so it does not match uses like System.exit(1).
38514         Add comments showing how to correct all offenders.
38515
38516 2009-11-19  Eric Blake  <ebb9@byu.net>
38517
38518         xalloc-die-tests: add missing library
38519         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38520
38521         test-xvasprintf: silence compiler warnings
38522         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38523         empty string from gcc.
38524
38525 2009-11-19  Jim Meyering  <meyering@redhat.com>
38526
38527         xfreopen: new module, from coreutils
38528         * modules/xfreopen: New module.
38529         * lib/xfreopen.c: New file.
38530         * lib/xfreopen.h: New file.
38531         * MODULES.html.sh (File stream based Input/Output"): Add it.
38532
38533 2009-11-19  Eric Blake  <ebb9@byu.net>
38534
38535         manywarnings: depend on warnings
38536         * modules/manywarnings (Depends-on): Add warnings.
38537
38538         build: avoid compiler warnings
38539         * lib/select.c (rpl_select): Delete unused variable.
38540         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38541
38542 2009-11-18  Eric Blake  <ebb9@byu.net>
38543
38544         tests: avoid false negative with --with-packager
38545         * tests/test-version-etc.sh: Discard packager information.
38546         * tests/test-argp-version-etc-1.sh: Likewise.
38547         Reported by Mike Frysinger.
38548
38549         utimens: fix regression on Solaris
38550         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38551         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38552         can only change fd timestamps via futimesat.  Instead, use an
38553         additional witness macro to avoid BSD bug.
38554         Reported by Jim Meyering.
38555
38556 2009-11-17  Eric Blake  <ebb9@byu.net>
38557
38558         usleep: use it to simplify tests
38559         * modules/stat-time-tests (Depends-on): Add usleep.
38560         (configure.ac): Drop usleep check.
38561         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38562         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38563         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38564         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38565         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38566         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38567         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38568         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38569         Likewise.
38570         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38571         * tests/test-lchown.h (nap): Likewise.
38572         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38573         * tests/test-stat-time.c (nap): Likewise.
38574         * tests/test-utimens-common.h (nap): Update comments.
38575
38576         usleep: new module
38577         * modules/usleep: New file.
38578         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38579         * lib/usleep.c (usleep): Likewise.
38580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38581         * modules/unistd (Makefile.am): Substitute witnesses.
38582         * lib/unistd.in.h (usleep): Add declaration.
38583         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38584         * MODULES.html.sh (Date and time): Likewise.
38585         * modules/usleep-tests (Depends-on): New test.
38586         * tests/test-usleep.c: New file.
38587
38588         chown: work around OpenBSD bug
38589         * lib/chown.c (rpl_chown): Work around the bug.
38590         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38591         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38592         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38593         * modules/chown (Depends-on): Add stdbool.
38594         * modules/lchown (Depends-on): Likewise.
38595         * doc/posix-functions/chown.texi (chown): Document the bug.
38596         * doc/posix-functions/lchown.texi (lchown): Likewise.
38597         * tests/test-lchown.h (test_chown): Relax test.
38598
38599         mkstemp: avoid conflict with C++ keyword template
38600         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38601         * lib/mkostemp.c (mkostemp): Likewise.
38602         * lib/mkostemps.c (mkostemps): Likewise.
38603         * lib/mkstemp.c (mkstemp): Likewise.
38604         * lib/mkstemps.c (mkstemps): Likewise.
38605
38606         xalloc-die-tests: optimize
38607         * tests/test-xalloc-die.sh: Reduce number of processes.
38608
38609 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38610
38611         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38612         patch from ludo@gnu.org (Ludovic Courtès).
38613
38614 2009-11-17  Jim Meyering  <meyering@redhat.com>
38615
38616         version-etc: use proper license string
38617         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38618         * modules/version-etc-fsf: Likewise.
38619
38620 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38621
38622         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38623         printed to stdout.  Deal with EOL differences.
38624
38625 2009-11-17  Eric Blake  <ebb9@byu.net>
38626
38627         unsetenv: work around Solaris bug
38628         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38629         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38630         Reported by Jim Meyering.
38631
38632         vasnprintf: avoid compiler warnings
38633         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38634         variables.
38635         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38636
38637 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38638
38639         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38640         settings since xalloc-die is no longer the self test,
38641         xalloc-die.sh is.
38642
38643 2009-11-17  Jim Meyering  <meyering@redhat.com>
38644
38645         test-xalloc-die.sh: make the code agree with the commit log
38646         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38647         at the end, just in case you happen to have a test-xalloc-die
38648         program in some other PATH directory.
38649
38650         test-xalloc-die.sh: fix a portability bug
38651         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38652         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38653         Otherwise, argv[0] (as often seen in diagnostics) would be too
38654         system-dependent, sometimes with, and sometimes without the leading "./".
38655
38656         version-etc-fsf: relax license to LGPLv3+
38657         * modules/version-etc-fsf (License): Relax license.
38658
38659 2009-11-16  Eric Blake  <ebb9@byu.net>
38660
38661         xalloc-die-tests: avoid printing null pointer
38662         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38663         shell script.
38664         * tests/test-xalloc-die.c (program_name): Declare.
38665         * tests/test-xalloc-die.sh (tmpfiles): New file.
38666
38667         setenv, unsetenv: work around various bugs
38668         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38669         (setenv) [HAVE_SETENV]: Work around bugs.
38670         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38671         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38672         for bugs.
38673         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38674         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38676         * modules/stdlib (Makefile.am): Update substitutions.
38677         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38678         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38679         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38680         * modules/setenv-tests: New test.
38681         * modules/unsetenv-tests: Likewise.
38682         * tests/test-setenv.c: New file.
38683         * tests/test-unsetenv.c: Likewise.
38684
38685 2009-11-16  Jim Meyering  <meyering@redhat.com>
38686
38687         version-etc: relax license to LGPLv3+
38688         * modules/version-etc (License): Relax license.
38689
38690         better AC_REQUIRE expanded-before-required-warning avoidance
38691         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38692         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38693         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38694         which is no longer needed.
38695
38696 2009-11-16  Eric Blake  <ebb9@byu.net>
38697
38698         test-freading: clean up temporary file
38699         * tests/test-freading.c (main): Remove file on success, and use
38700         ASSERT more liberally.
38701         Reported by Jim Meyering.
38702
38703 2009-11-16  Jim Meyering  <meyering@redhat.com>
38704
38705         avoid new AC_REQUIRE expanded-before-required warnings
38706         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38707         merely using it.
38708         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38709         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38710
38711 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38712
38713         * tests/test-xalloc-die.c: New file.
38714         * modules/xalloc-die-tests: New file.
38715         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38716         XFAIL_TESTS so it can be appended by modules.
38717
38718 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38719
38720         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38721         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38722
38723 2009-11-14  Eric Blake  <ebb9@byu.net>
38724
38725         fnmatch: avoid compiler warning
38726         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38727         to silence compiler warning about mismatch signedness in ?:.
38728         Reported by Robert Millan.
38729
38730         intprops: add double-inclusion guard
38731         * lib/intprops.h: Allow idempotent includes.
38732         Suggested by Bruce Korb.
38733
38734         openat: detect Solaris fchownat bug
38735         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38736         penalizing glibc chownat when only lchownat is broken.
38737         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38738         trailing slash bugs.
38739         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38740         * modules/openat-tests (Files): Include more files.
38741         (Depends-on): Add mgetgroups, sleep, stat-time.
38742         (configure.ac): Add additional checks.
38743         (Makefile.am): Build new test.
38744         * tests/test-fchownat.c: New file.
38745
38746         lchown: detect Solaris and FreeBSD bug
38747         * lib/lchown.c (rpl_lchown): Work around bug.
38748         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38750         * modules/unistd (Makefile.am): Populate it.
38751         * lib/unistd.in.h (lchown): Update declaration.
38752         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38753         * modules/lchown-tests: New file.
38754         * tests/test-lchown.h (test_lchown): Likewise.
38755         * tests/test-lchown.c (main): Likewise.
38756
38757         chown: detect Solaris and FreeBSD bug
38758         * lib/chown.c (rpl_chown): Work around bug.
38759         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38760         (gl_PREREQ_CHOWN): Delete.
38761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38762         * modules/unistd (Makefile.am): Populate it.
38763         * lib/unistd.in.h (chown): Update declaration.
38764         * lib/lchown.c (chown): Update client.
38765         * modules/lchown (Depends-on): Add lstat.
38766         * doc/posix-functions/chown.texi (chown): Document the bug.
38767         * doc/posix-functions/getgroups.texi (getgroups): Document
38768         getgroups pitfall.
38769         * modules/chown-tests: New file.
38770         * tests/test-chown.h (test_chown): Likewise.
38771         * tests/test-chown.c (main): Likewise.
38772
38773 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38774
38775         gnulib-tool: correctly detect absence of m4 directories
38776         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38777
38778 2009-11-14  Jim Meyering  <meyering@redhat.com>
38779
38780         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38781         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38782
38783 2009-11-14  John W. Eaton  <jwe@gnu.org>
38784
38785         strftime.h: wrap funtion declaration in extern "C" block
38786         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38787
38788 2009-11-13  Eric Blake  <ebb9@byu.net>
38789
38790         getgroups: avoid compiler warning
38791         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38792
38793         getgroups: work around FreeBSD bug
38794         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38795         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38796         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38797         * tests/test-getgroups.c (main): Fix buffer overrun.
38798
38799         getgroups: avoid compilation failure
38800         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38801         * modules/getgroups (Depends-on): Add stdint.
38802
38803 2009-11-13  Jim Meyering  <meyering@redhat.com>
38804
38805         test-getgroups: avoid compilation failure
38806         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38807
38808 2009-11-13  Eric Blake  <ebb9@byu.net>
38809
38810         mgetgroups: new module, taken from coreutils
38811         * modules/mgetgroups: New file.
38812         * lib/mgetgroups.h: Likewise.
38813         * lib/mgetgroups.c (mgetgroups): Likewise.
38814         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38815         * MODULES.html.sh (Users and groups): Mention it.
38816
38817         getgroups: don't expose GETGROUPS_T to user
38818         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38819         an element at a time if GETGROUPS_T is wrong size.
38820         * lib/getugroups.h (getugroups): Change signature.
38821         * lib/unistd.in.h (getgroups): Likewise.
38822         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38823         signature needs fixing.
38824         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38825         AC_TYPE_GETGROUPS.
38826         * modules/group-member (Depends-on): Add getgroups.
38827         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38828         (group_member): Rely on getgroups replacement.
38829         * lib/getugroups.c (getugroups): Use gid_t.
38830         * tests/test-getgroups.c (main): Likewise.
38831         * NEWS: Mention the signature change.
38832         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38833         problem with signature.
38834         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38835         GETGROUPS_T is still useful for setgroups.
38836
38837         getgroups, getugroups: provide stubs for mingw
38838         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38839         * lib/getugroups.c (getugroups): Likewise.
38840         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38841         function.  Modernize replacement scheme.
38842         (gl_PREREQ_GETGROUPS): Delete.
38843         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38844         * modules/getgroups (configure.ac): Declare witness.
38845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38846         * modules/unistd (Depends-on): Substitute witness.
38847         * lib/unistd.in.h (getgroups): Declare replacement.
38848
38849         getgroups: avoid calling exit
38850         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38851         drop xalloc.
38852         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38853         dependencies.
38854         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38855         exiting, in the rare case of malloc failure.
38856
38857         getgroups: fix logic error
38858         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38859         has more than 20 groups.
38860         * modules/getgroups-tests: New test.
38861         * tests/test-getgroups.c: New file.
38862
38863 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38864
38865         * tests/test-base64.c: Improve.
38866
38867 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38868
38869         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38870         Blake <ebb9@byu.net>.
38871
38872 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38873
38874         * tests/test-xvasprintf.c: Add %s%s related checks.
38875
38876 2009-11-12  Eric Blake  <ebb9@byu.net>
38877
38878         version-etc: match standards.texi style
38879         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38880         and use <> only for URLs.
38881
38882 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38883
38884         fts: do not fail on a submount during traversal
38885         * lib/fts.c (fts_build): Read the stat info again after opening
38886         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38887         Original report at http://bugzilla.redhat.com/501848.
38888
38889 2009-11-12  Jim Meyering  <meyering@redhat.com>
38890
38891         bootstrap: sync from coreutils
38892         * build-aux/bootstrap (bootstrap_epilogue): New function.
38893         Use git_modules_config in one more place.  This make bootstrap's
38894         --gnulib-srcdir option more useful for testing.
38895
38896         bootstrap: generalize autoheader check
38897         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38898         AC_CONFIG_HEADERS.
38899
38900 2009-11-11  Eric Blake  <ebb9@byu.net>
38901
38902         mkfifoat: use new modules for Solaris and BSD bugs
38903         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38904         * lib/mkfifoat.c (mknodat): Split...
38905         * lib/mknodat.c (mknodat): ...into new file.
38906         * modules/mkfifoat (Files): Ship new file.
38907         (Depends-on): Add mkfifo, mknod.
38908         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38909         (Depends-on): Add symlink.
38910         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38911         redundant with test_mkfifo.h.
38912         (do_mkfifoat, do_mknodat): New helpers.
38913
38914         mknod: new module
38915         * modules/mknod: New file.
38916         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38917         * lib/mknod.c (mknod): Likewise.
38918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38919         defaults.
38920         * modules/sys_stat (Makefile.am): Substitute them.
38921         * lib/sys_stat.in.h (mknod): Declare replacement.
38922         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38923         Document it.
38924         * doc/posix-functions/mknod.texi (mknod): Likewise.
38925         * modules/mknod-tests: New test.
38926         * tests/test-mknod.c: Likewise.
38927
38928         mkfifo: new module
38929         * modules/mkfifo: New file.
38930         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38931         * lib/mkfifo.c (mkfifo): Likewise.
38932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38933         defaults.
38934         * modules/sys_stat (Makefile.am): Substitute them.
38935         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38936         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38937         Document it.
38938         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38939         * modules/mkfifo-tests: New test.
38940         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38941         from test-mkfifoat.c.
38942         * tests/test-mkfifo.c: New file.
38943
38944         readlink: detect FreeBSD bug
38945         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38946         slash on symlink.
38947         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38948         * tests/test-readlink.h (test_readlink): Enhance test.
38949
38950         symlink: detect FreeBSD bug
38951         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38952         slash on symlink.
38953         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38954         * tests/test-symlink.h (test_symlink): Enhance test.
38955
38956 2009-11-10  Eric Blake  <ebb9@byu.net>
38957
38958         link: detect FreeBSD bug
38959         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38960         symlink.
38961         * doc/posix-functions/link.texi (link): Document the bug.
38962         * tests/test-link.h (test_link): Enhance test.
38963         * tests/test-linkat.c (main): Update caller.
38964
38965         unlink, remove: detect FreeBSD bug
38966         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38967         slash on symlink.
38968         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38969         * doc/posix-functions/remove.texi (remove): Likewise.
38970         * tests/test-unlink.h (test_unlink): Enhance test.
38971         * tests/test-remove.c (main): Likewise.
38972
38973 2009-11-09  Eric Blake  <ebb9@byu.net>
38974
38975         rename: detect FreeBSD bug
38976         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38977         slash on symlink.
38978         * modules/renameat-tests (Depends-on): Add filenamecat.
38979         * tests/test-rename.h (test_rename): Allow one more errno.
38980         * tests/test-renameat.c (main): Likewise.
38981         * doc/posix-functions/rename.texi (rename): Document the bug.
38982
38983         open: detect FreeBSD bug
38984         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38985         symlink.
38986         * doc/posix-functions/open.texi (open): Document the bug.
38987         * doc/posix-functions/utimes.texi (utimes): Likewise.
38988         * tests/test-open.h (test_open): Add parameters, and test symlink
38989         handling.
38990         * tests/test-open.c (main): Adjust caller.
38991         * tests/test-fcntl-safer.c (main): Likewise.
38992         * modules/open-tests (Depends-on): Add stdbool, symlink.
38993         * modules/fcntl-safer-tests (Depends-on): Likewise.
38994         * tests/test-openat.c (main): Add test-open tests.
38995
38996         stat: detect FreeBSD bug
38997         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38998         symlink.
38999         * doc/posix-functions/stat.texi (stat): Document the bug.
39000         * tests/test-stat.h (test_stat_func): Add argument.
39001         * tests/test-stat.c (main): Adjust caller.
39002         * tests/test-fstatat.c (main): Likewise.
39003         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39004         Reported by Jim Meyering.
39005
39006 2009-11-09  James Youngman  <jay@gnu.org>
39007
39008         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39009         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39010
39011 2009-11-08  Jim Meyering  <meyering@redhat.com>
39012
39013         utimens: remove invalid futimesat call
39014         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39015         It used the file descriptor of the target file as the DIR_FD
39016         parameter and NULL as the file name.  That caused failure with
39017         errno == EFAULT on FreeBSD-8.0-rc2
39018
39019 2009-11-07  Eric Blake  <ebb9@byu.net>
39020
39021         fflush, freadseek: use fseeko, not fseek
39022         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39023         (clear_ungetc_buffer): Avoid potential problems on large files.
39024         * lib/freadseek.c (freadseek): Likewise.
39025         * modules/freadseek (Depends-on): Add fseeko.
39026         * modules/fseek (configure.ac): Set a witness.
39027         * tests/test-fflush.c (main): Use fseeko.
39028         * tests/test-fpurge.c (fseek): Disable link warning.
39029         * tests/test-freadable.c (fseek): Likewise.
39030         * tests/test-freading.c (fseek): Likewise.
39031         * tests/test-fseeko.c (fseek): Likewise.
39032         * tests/test-ftell.c (fseek): Likewise.
39033         * tests/test-ftello.c (fseek): Likewise.
39034         * tests/test-fwritable.c (fseek): Likewise.
39035         * tests/test-fwriting.c (fseek): Likewise.
39036
39037 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39038
39039         * modules/memchr (Depends-on): Drop getpagesize dependency.
39040
39041 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39042
39043         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39044         Reported by Ludovic Courtès.
39045         * build-aux/pmccabe2html: Improve example usage.
39046         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39047
39048 2009-11-06  Jim Meyering  <meyering@redhat.com>
39049
39050         do-release-commit-and-tag: New module.
39051         Automate the release-commit and tag process.
39052         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39053         * modules/do-release-commit-and-tag: New file.
39054         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39055
39056 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39057
39058         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39059         because test-select.c uses inet_pton.
39060
39061 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39062
39063         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39064         GETADDRINFO_LIB.  Bump serial number.
39065         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39066         Suggested by Eric Blake <ebb9@byu.net>.
39067
39068 2009-11-05  Eric Blake  <ebb9@byu.net>
39069
39070         strtod: detect darwin bug
39071         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39072         Reported by Leo Davis.
39073
39074         freopen-safer: new module
39075         * modules/freopen-safer: New module.
39076         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39077         * lib/freopen-safer.c (freopen_safer): New file.
39078         * lib/stdio-safer.h (freopen_safer): New declaration.
39079         * lib/stdio--.h (freopen): New override.
39080         * MODULES.html.sh (File stream based Input/Output): Mention it.
39081         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39082         freopen-safer module.
39083         * doc/posix-functions/stderr.texi (stderr): Likewise.
39084         * doc/posix-functions/stdin.texi (stdin): Likewise.
39085         * doc/posix-functions/stdout.texi (stdout): Likewise.
39086         * modules/freopen-safer-tests: New test.
39087         * tests/test-reopen-safer.c: New file.
39088
39089 2009-11-05  Jim Meyering  <meyering@redhat.com>
39090
39091         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39092         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39093
39094 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39095
39096         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39097
39098 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39099
39100         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39101
39102 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39103
39104         Fix link error.
39105         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39106         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39107
39108 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39109
39110         * tests/test-func.c: Also test value of __func__.
39111
39112 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39113
39114         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39115         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39116
39117 2009-11-05  Bruno Haible  <bruno@clisp.org>
39118
39119         Fix link error.
39120         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39121         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39122         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39123
39124 2009-11-05  Bruno Haible  <bruno@clisp.org>
39125
39126         Tests for module 'inet_pton'.
39127         * modules/inet_pton-tests: New file.
39128         * tests/test-inet_pton.c: New file.
39129
39130 2009-11-05  Bruno Haible  <bruno@clisp.org>
39131
39132         Tests for module 'inet_ntop'.
39133         * modules/inet_ntop-tests: New file.
39134         * tests/test-inet_ntop.c: New file.
39135
39136 2009-11-04  Eric Blake  <ebb9@byu.net>
39137
39138         stdlib-safer: wrap all mkstemp variants
39139         * modules/mkostemp (configure.ac): Set witness.
39140         * modules/mkostemps (configure.ac): Likewise.
39141         * modules/mkstemps (configure.ac): Likewise.
39142         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39143         (mkstemps_safer): Wrap more functions.
39144         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39145         wrapping.
39146         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39147         (mkstemps_safer): Implement the wrappers.
39148
39149         mkstemps, mkostemps: new modules
39150         * modules/mkostemps: New module.
39151         * modules/mkstemps: Likewise.
39152         * lib/mkostemps.c (mkostemps): New file.
39153         * lib/mkstemps.c (mkstemps): Likewise.
39154         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39155         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39157         * modules/stdlib (Makefile.am): Substitute them.
39158         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39159         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39160         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39161         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39162         * MODULES.html.sh (File system functions): Mention them.
39163
39164         tempname: resync from glibc
39165         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39166         same values for __GT_FILE as glibc.  Abort even when assertions
39167         are disabled.
39168         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39169         match its value otherwise.  Allow idempotent inclusion.
39170         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39171         * lib/mkostemp.c (mkostemp): Likewise.
39172         * lib/mkstemp.c (mkstemp): Likewise.
39173         * lib/tmpfile.c (tmpfile): Likewise.
39174         * NEWS: Document this.
39175
39176         utimens: fix use of futimens on older Linux
39177         * lib/utimens.c (fdutimens): Use updated, rather than original,
39178         timespec to avoid bug in older Linux kernel.
39179         Reported by Simon Josefsson.
39180
39181 2009-11-04  Bruno Haible  <bruno@clisp.org>
39182
39183         Make num_processors more flexible and consistent.
39184         * lib/nproc.h (enum nproc_query): New type.
39185         (num_processors): Add a 'query' argument.
39186         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39187         (num_processors): Add a 'query' argument. Test the value of the
39188         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39189         mingw, count the number of CPUs available for the current process.
39190         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39191         Check for sched_getaffinity and sched_getaffinity_np.
39192         * modules/nproc (Depends-on): Add c-ctype, extensions.
39193         * NEWS: Mention the change.
39194
39195 2009-11-03  Bruno Haible  <bruno@clisp.org>
39196
39197         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39198
39199 2009-11-03  Jim Meyering  <meyering@redhat.com>
39200
39201         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39202         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39203         if it is defined.
39204
39205 2009-11-02  Eric Blake  <ebb9@byu.net>
39206
39207         mktime, timegm: share common declaration
39208         * lib/mktime-internal.h: New file.
39209         * lib/mktime.c: Use it rather than open-coding a declaration.
39210         * lib/timegm.c: Likewise.
39211         * modules/mktime (Files): Ship it.
39212         * modules/timegm (Files): Likewise.
39213         Suggested by Bruno Haible.
39214
39215         test-update-copyright: update test to match script changes
39216         * tests/test-update-copyright.sh: Avoid hard-coding perl
39217         location.  Don't update *.bak created by earlier runs.
39218
39219 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39220             Simon Josefsson  <simon@josefsson.org>
39221             Bruno Haible  <bruno@clisp.org>
39222
39223         Fix link error on Solaris 8.
39224         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39225         also in libnsl. Define also INET_PTON_LIB.
39226         * modules/inet_pton (Link): New section.
39227
39228 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39229             Bruno Haible  <bruno@clisp.org>
39230
39231         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39232         * modules/inet_ntop (Link): New section.
39233         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39234
39235 2009-11-02  Eric Blake  <ebb9@byu.net>
39236
39237         maint: avoid compiler warnings in m4 macros
39238         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39239         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39240
39241 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39242
39243         * m4/pmccabe2html.m4: Remove file.
39244         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39245         function.  Change maintainer.
39246         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39247         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39248         Courtès).
39249
39250 2009-10-31  Eric Blake  <ebb9@byu.net>
39251
39252         fseeko: fix m4 regression
39253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39254         regression from 2009-10-27.
39255         Reported by Ralf Wildenhues.
39256
39257 2009-10-31  Jim Meyering  <meyering@redhat.com>
39258
39259         inttostr: aesthetics and improved (compile-time) safety
39260         Define inttype_is_signed rather than inttype_is_unsigned,
39261         since the sole use is via "#if inttype_is_signed".
39262         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39263         inttype_is_unsigned.
39264         * lib/offtostr.c (inttype_is_signed): Likewise.
39265         * lib/uinttostr.c (inttype_is_signed): Likewise.
39266         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39267         * lib/inttostr.c (inttostr): Use verify to cross-check the
39268         inttype_is_signed value and the signedness of the actual type.
39269         * modules/inttostr (Depends-on): Add verify.
39270
39271 2009-10-30  Eric Blake  <ebb9@byu.net>
39272
39273         build: avoid compiler warnings
39274         * lib/fchmodat.c (lchmod): Mark unused variables.
39275         * lib/getopt.c (_getopt_initialize): Likewise.
39276         * lib/mktime.c (__mktime_internal): Provide prototype.
39277         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39278         older gcc that do not understand #pragma GCC diagnostic.
39279         * lib/uinttostr.c (inttype_is_unsigned): Define.
39280         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39281
39282 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39283
39284         stat: fix compilation on AIX
39285         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39286         only see struct stat64.
39287
39288 2009-10-30  Eric Blake  <ebb9@byu.net>
39289
39290         exclude: make more robust
39291         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39292         rather than masking a coding bug.
39293         Suggested by Bruno Haible.
39294
39295 2009-10-30  Jim Meyering  <meyering@redhat.com>
39296
39297         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39298         Rather than putting #!/usr/bin/perl on the first line,
39299         start with a variant of what's recommended by "man perlrun" that
39300         invokes the first "perl" program from your shell's search path.
39301         * build-aux/gitlog-to-changelog: Replace #!... as above.
39302         Add a "Local Variables" perl mode setting.
39303         Prompted by a patch from Ludovic Courtès.
39304         Improved by Eric Blake.
39305         * build-aux/useless-if-before-free: Likewise.
39306         * build-aux/announce-gen: Likewise.
39307         * build-aux/update-copyright: Likewise.
39308
39309 2009-10-29  Eric Blake  <ebb9@byu.net>
39310
39311         filenamecat-lgpl: adjust clients
39312         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39313         filenamecat.
39314         * modules/renameat (Depends-on): Likewise.
39315
39316         filenamecat: split into filenamecat-lgpl
39317         * modules/filenamecat-lgpl: New module.
39318         * modules/filenamecat (Files): Move library-safe files into
39319         filenamecat-lgpl.
39320         (Depends-on): Add filenamecat-lgpl.
39321         (configure.ac): Declare witness.
39322         * lib/filenamecat.h (file_name_concat): Only declare when using
39323         GPL module.
39324         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39325         Move...
39326         * lib/filenamecat-lgpl.c: ...into new file.
39327         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39328         (gl_FILE_NAME_CONCAT): Use it.
39329         * MODULES.html.sh (File system functions): Mention new module.
39330
39331         argp: avoid memory leak
39332         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39333         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39334         base_name, since the latter malloc()s and can call exit().
39335         Leak introduced 2006-07-03.
39336
39337         dirname-lgpl: adjust clients that don't need full dirname
39338         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39339         * modules/filenamecat (Depends-on): Likewise.
39340         * modules/linkat (Depends-on): Likewise.
39341         * modules/mkancesdirs (Depends-on): Likewise.
39342         * modules/mkdir (Depends-on): Likewise.
39343         * modules/openat (Depends-on): Likewise.
39344         * modules/savewd (Depends-on): Likewise.
39345         * modules/rename (Depends-on): Likewise.
39346         (License): Relax license.
39347         * modules/mkdir-tests (Depends-on): Drop progname.
39348         (Makefile.am): Delete unneeded LDADD.
39349         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39350
39351         dirname: split into dirname-lgpl
39352         * modules/dirname-lgpl: New module.
39353         * modules/dirname (Files): Move library-safe files into
39354         dirname-lgpl.
39355         (Depends-on): Add dirname-lgpl.
39356         (configure.ac): Declare witness.
39357         * modules/double-slash-root (License): Relax license.
39358         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39359         module.
39360         * lib/dirname.c (dir_len, mdir_name): Move...
39361         * lib/dirname-lgpl.c: ...into new file.
39362         * lib/basename.c (last_component, base_len): Move...
39363         * lib/basename-lgpl.c: ...into new file.
39364         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39365         (gl_DIRNAME): Use it.
39366         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39367         Mention new module.
39368         * modules/dirname-tests (Depends-on): Add progname.
39369         * tests/test-dirname.c (program_name): Delete.
39370
39371         mkdir: make safe for libraries
39372         * modules/mkdir (Depends-on): Drop xalloc.
39373         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39374         exit.
39375
39376         tests: avoid some compiler warnings
39377         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39378         literals.
39379         * tests/test-memchr.c (main): Avoid type mismatch.
39380         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39381         * tests/test-base64.c (main): Likewise.
39382         * tests/test-getdelim.c (main): Likewise.
39383         * tests/test-gethostname.c (main): Likewise.
39384         * tests/test-getline.c (main): Likewise.
39385         * tests/test-netinet_in.c (main): Likewise.
39386         * tests/test-select.c (open_server_socket, main): Likewise.
39387         * tests/test-select-stdin.c (main): Likewise.
39388         * tests/test-sockets.c (main): Likewise.
39389         * tests/test-strsignal.c (main): Likewise.
39390         * tests/test-sys_select.c (main): Likewise.
39391         * tests/test-sys_socket.c (main): Likewise.
39392         * tests/test-u64.c (main): Likewise.
39393         * tests/test-xfprintf-posix.c (main): Likewise.
39394         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39395
39396         sockets: avoid compiler warning
39397         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39398
39399         maint: detect usage(1) and other suspicious exits
39400         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39401
39402 2009-10-29  Jim Meyering  <meyering@redhat.com>
39403
39404         timespec: long-to-int truncation could make timespec_cmp malfunction
39405         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39406         a multiple of 2^32 nanoseconds as no difference.
39407
39408 2009-10-28  Jim Meyering  <meyering@redhat.com>
39409
39410         fprintftime: wrap macro code argument in "do {...} while(0)"
39411         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39412         cpy macro must be a statement that can be followed by a semicolon.
39413         Now that the else clause contains a comment and is hence longer
39414         than one line, I require curly braces.  That in turn requires
39415         that we wrap this code block in the standard do...while(0).
39416
39417         fprintftime: remove stray semicolon from previous change
39418         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39419
39420         fprintftime: avoid a warning about ignored fwrite return value
39421         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39422         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39423         that is unsafe.
39424         * modules/fprintftime (Depends-on): Add ignore-value.
39425
39426         exclude: avoid an unwarranted warning
39427         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39428
39429 2009-10-27  Eric Blake  <ebb9@byu.net>
39430
39431         fseek: avoid compilation failure when fflush is replaced
39432         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39433         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39434         module is in use.
39435         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39436         module is not in use; since REPLACE_FSEEK worked otherwise.
39437         (GNULIB_FTELLO): Likewise for ftell.
39438         Reported by Ian Beckwith and others.
39439
39440 2009-10-27  Bruno Haible  <bruno@clisp.org>
39441
39442         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39443         Reported by Jim Meyering.
39444
39445 2009-10-27  Jim Meyering  <jim@meyering.net>
39446             Bruno Haible  <bruno@clisp.org>
39447
39448         Avoid warning despite dropping the return value of fwrite.
39449         * lib/unicodeio.c: Include ignore-value.h.
39450         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39451         * modules/unicodeio (Depends-on): Add ignore-value.
39452
39453 2009-10-26  Eric Blake  <ebb9@byu.net>
39454
39455         areadlinkat: fix fallback path
39456         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39457         pointer and zero.
39458
39459 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39460
39461         Use a better IO block size for modern systems
39462         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39463         * lib/md2.c: Likewise.
39464         * lib/md4.c: Likewise.
39465         * lib/md5.c: Likewise.
39466         * lib/sha1.c: Likewise.
39467         * lib/sha256.c: Likewise.
39468         * lib/sha512.c: Likewise.
39469
39470 2009-10-22  Eric Blake  <ebb9@byu.net>
39471
39472         tests: avoid several compiler warnings
39473         * tests/test-getcwd.c (main): Avoid buffer underflow.
39474         * tests/test-getdate.c (main): String literals are not safe with
39475         putenv, so use setenv.  Declare unused argument.
39476         * modules/getdate-tests (Depends-on): Add setenv.
39477         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39478         problems with string literals in char *.
39479         * tests/test-hash.c (main): Avoid shadowing declaration.
39480         (insert_new): Treat string literals as char const *.
39481         * tests/test-getopt.h (test_getopt): Likewise.
39482         (getopt_loop): Alter types to minimize casting elsewhere.
39483         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39484         (test_getopt_long_posix): Likewise.
39485         (do_getopt_long): Add wrapper to minimize casting.
39486         * tests/test-atexit.c (clear_temp_file): Use void.
39487         * tests/test-areadlink-with-size.c (main): Declare unused
39488         arguments.
39489         * tests/test-areadlink.c (main): Likewise.
39490         * tests/test-areadlinkat-with-size.c (main): Likewise.
39491         * tests/test-areadlinkat.c (main): Likewise.
39492         * tests/test-canonicalize-lgpl.c (main): Likewise.
39493         * tests/test-canonicalize.c (main): Likewise.
39494         * tests/test-dirent-safer.c (main): Likewise.
39495         * tests/test-dirname.c (main): Likewise.
39496         * tests/test-dup2.c (main): Likewise.
39497         * tests/test-fchdir.c (main): Likewise.
39498         * tests/test-fcntl-h.c (main): Likewise.
39499         * tests/test-fcntl-safer.c (main): Likewise.
39500         * tests/test-fdopendir.c (main): Likewise.
39501         * tests/test-fdutimensat.c (main): Likewise.
39502         * tests/test-fflush.c (main): Likewise.
39503         * tests/test-filenamecat.c (main): Likewise.
39504         * tests/test-filevercmp.c (main): Likewise.
39505         * tests/test-fopen-safer.c (main): Likewise.
39506         * tests/test-fopen.c (main): Likewise.
39507         * tests/test-fpending.c (main): Likewise.
39508         * tests/test-fpurge.c (main): Likewise.
39509         * tests/test-freading.c (main): Likewise.
39510         * tests/test-fstatat.c (main): Likewise.
39511         * tests/test-fsync.c (main): Likewise.
39512         * tests/test-futimens.c (main): Likewise.
39513         * tests/test-getndelim2.c (main): Likewise.
39514         * tests/test-gettimeofday.c (main): Likewise.
39515         * tests/test-getopt.c (main): Likewise.
39516         * tests/test-i-ring.c (main): Likewise.
39517         * tests/test-inttypes.c (main): Likewise.
39518         * tests/test-link.c (main): Likewise.
39519         * tests/test-lstat.c (main): Likewise.
39520         * tests/test-math.c (main): Likewise.
39521         * tests/test-md5.c (main): Likewise.
39522         * tests/test-memchr2.c (main): Likewise.
39523         * tests/test-memrchr.c (main): Likewise.
39524         * tests/test-mkdir.c (main): Likewise.
39525         * tests/test-mkdirat.c (main): Likewise.
39526         * tests/test-mkfifoat.c (main): Likewise.
39527         * tests/test-open.c (main): Likewise.
39528         * tests/test-openat-safer.c (main): Likewise.
39529         * tests/test-openat.c (main): Likewise.
39530         * tests/test-quotearg.c (main): Likewise.
39531         * tests/test-rawmemchr.c (main): Likewise.
39532         * tests/test-readlink.c (main): Likewise.
39533         * tests/test-remove.c (main): Likewise.
39534         * tests/test-rename.c (main): Likewise.
39535         * tests/test-renameat.c (main): Likewise.
39536         * tests/test-rmdir.c (main): Likewise.
39537         * tests/test-sha1.c (main): Likewise.
39538         * tests/test-signal.c (main): Likewise.
39539         * tests/test-sigaction.c (main): Likewise.
39540         * tests/test-stat.c (main): Likewise.
39541         * tests/test-stat-time.c (main): Likewise.
39542         * tests/test-stddef.c (main): Likewise.
39543         * tests/test-stdint.c (main): Likewise.
39544         * tests/test-stdio.c (main): Likewise.
39545         * tests/test-stdlib.c (main): Likewise.
39546         * tests/test-strchrnul.c (main): Likewise.
39547         * tests/test-strerror.c (main): Likewise.
39548         * tests/test-string.c (main): Likewise.
39549         * tests/test-strtod.c (main): Likewise.
39550         * tests/test-strverscmp.c (main): Likewise.
39551         * tests/test-symlink.c (main): Likewise.
39552         * tests/test-symlinkat.c (main): Likewise.
39553         * tests/test-sys_stat.c (main): Likewise.
39554         * tests/test-sys_time.c (main): Likewise.
39555         * tests/test-time.c (main): Likewise.
39556         * tests/test-unistd.c (main): Likewise.
39557         * tests/test-unlink.c (main): Likewise.
39558         * tests/test-unlinkat.c (main): Likewise.
39559         * tests/test-utimens.c (main): Likewise.
39560         * tests/test-utimensat.c (main): Likewise.
39561         * tests/test-version-etc.c (main): Likewise.
39562         * tests/test-wchar.c (main): Likewise.
39563         * tests/test-wctype.c (main): Likewise.
39564         * tests/test-xprintf-posix.c (main): Likewise.
39565         * tests/test-posixtm.c (main): Likewise.
39566         (STREQ): Delete unused macro.
39567         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39568         shadowed variables.
39569         * tests/test-memchr.c (main): Likewise.
39570
39571 2009-10-21  Eric Blake  <ebb9@byu.net>
39572
39573         areadlinkat: avoid failure on older glibc
39574         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39575         rather than mis-comparing 0 against FUNC_RESULT of char*.
39576
39577 2009-10-21  Bruno Haible  <bruno@clisp.org>
39578
39579         * modules/stpncpy (License): Relicense under LGPLv2+.
39580         Reported by David Lutterkort <lutter@redhat.com>.
39581
39582 2009-10-20  Eric Blake  <ebb9@byu.net>
39583
39584         utimensat: work around Solaris 9 bug
39585         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39586         has trailing slash bugs.
39587         * tests/test-lutimens.h (test_lutimens): Enhance test.
39588         * tests/test-utimens.h (test_utimens): Likewise.
39589         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39590         * doc/posix-functions/utimes.texi (utimes): Likewise.
39591         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39592         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39593         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39594         * doc/posix-functions/futimens.texi (futimens): Likewise.
39595
39596         fdutimensat: new module
39597         * modules/fdutimensat: New file.
39598         * lib/fdutimensat.c (fdutimensat): Likewise.
39599         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39600         * MODULES.html.sh (File system functions): Mention module.
39601         * modules/fdutimensat-tests: New test.
39602         * tests/test-fdutimensat.c: Likewise.
39603
39604         doc: regenerate INSTALL
39605         * doc/INSTALL: Reflect recent autoconf update.
39606         * doc/INSTALL.ISO: Likewise.
39607         * doc/INSTALL.UTF-8: Likewise.
39608
39609 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39610
39611         acl: warn if ACL support is not detected
39612         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39613
39614 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39615
39616         * lib/nproc.h: Add extern "C" block for C++.
39617
39618 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39619             Bruno Haible  <bruno@clisp.org>
39620
39621         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39622         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39623         * doc/posix-functions/isalpha.texi: Likewise.
39624         * doc/posix-functions/isblank.texi: Likewise.
39625         * doc/posix-functions/iscntrl.texi: Likewise.
39626         * doc/posix-functions/isdigit.texi: Likewise.
39627         * doc/posix-functions/isgraph.texi: Likewise.
39628         * doc/posix-functions/islower.texi: Likewise.
39629         * doc/posix-functions/isprint.texi: Likewise.
39630         * doc/posix-functions/ispunct.texi: Likewise.
39631         * doc/posix-functions/isspace.texi: Likewise.
39632         * doc/posix-functions/isupper.texi: Likewise.
39633         * doc/posix-functions/isxdigit.texi: Likewise.
39634
39635 2009-10-18  Bruno Haible  <bruno@clisp.org>
39636
39637         Tests for module 'isblank'.
39638         * modules/isblank-tests: New file.
39639         * tests/test-isblank.c: New file.
39640
39641         New module 'isblank'.
39642         * lib/isblank.c: New file.
39643         * m4/isblank.m4: New file.
39644         * modules/isblank: New file.
39645         * doc/posix-functions/isblank.texi: Mention the new module.
39646
39647 2009-10-18  Bruno Haible  <bruno@clisp.org>
39648
39649         New module 'ctype'.
39650         * lib/ctype.in.h: New file.
39651         * m4/ctype.m4: New file.
39652         * modules/ctype: New file.
39653         * doc/posix-headers/ctype.texi: Mention the new module.
39654
39655 2009-10-18  Jim Meyering  <meyering@redhat.com>
39656
39657         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39658         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39659         right after its initialization, rather than farther down.
39660         Keeping these in close proximity makes it easier to ensure
39661         that each such variable is initialized.  E.g.,
39662
39663             LIB_CLOCK_GETTIME=
39664             AC_SUBST([LIB_CLOCK_GETTIME])
39665
39666         This change also increments these serial numbers.
39667         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39668         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39670
39671 2009-10-18  Bruno Haible  <bruno@clisp.org>
39672
39673         Don't let environment variables perturb build.
39674         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39675         (gl_PREREQ_GETHRXTIME): ... not here.
39676
39677 2009-10-18  Bruno Haible  <bruno@clisp.org>
39678
39679         Avoid symlink attack in localcharset module.
39680         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39681         (O_NOFOLLOW): Define fallback.
39682         (get_charset_aliases): Don't open the file if it is a symbolic link.
39683         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39684         gl_FCNTL_H.
39685         (gl_FCNTL_H): Require it.
39686         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39687         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39688         Reported by Fergal Glynn <fglynn@veracode.com>.
39689
39690 2009-10-18  Bruno Haible  <bruno@clisp.org>
39691
39692         Implement nproc for mingw.
39693         * lib/nproc.c: Include <windows.h>
39694         (num_processors): On native Windows platforms, try GetSystemInfo.
39695
39696 2009-10-18  Bruno Haible  <bruno@clisp.org>
39697
39698         Implement nproc for IRIX.
39699         * lib/nproc.c: Include <sys/sysmp.h>.
39700         (num_processors): On IRIX systems, try sysmp.
39701         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39702
39703 2009-10-18  Bruno Haible  <bruno@clisp.org>
39704
39705         Implement nproc for HP-UX.
39706         * lib/nproc.c: Include <sys/pstat.h>
39707         (num_processors): On HP-UX systems, try pstat_getdynamic.
39708         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39709         pstat_getdynamic.
39710
39711 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39712             Bruno Haible  <bruno@clisp.org>
39713
39714         Implement nproc for NetBSD, OpenBSD.
39715         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39716         (ARRAY_SIZE): New macro.
39717         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39718         * m4/nproc.m4: New file.
39719         * modules/nproc (Files): Add m4/nproc.m4.
39720         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39721         (Makefile.am): Instead, augment lib_SOURCES.
39722
39723 2009-10-18  Bruno Haible  <bruno@clisp.org>
39724
39725         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39726         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39727         sys/param.h.
39728
39729 2009-10-16  Eric Blake  <ebb9@byu.net>
39730
39731         utimensat: new module
39732         * modules/utimensat: New file.
39733         * lib/utimensat.c (utimensat): Likewise.
39734         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39735         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39736         so we can work around Linux bugs.
39737         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39738         * modules/sys_stat (Makefile.am): Substitute them.
39739         * lib/sys_stat.in.h (utimensat): Declare it.
39740         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39741         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39742         * modules/utimensat-tests: New test.
39743         * tests/test-utimensat.c: Likewise.
39744
39745         utimens: let lutimens work on non-symlinks
39746         * lib/utimens.c (lutimens): Fall back to utimens rather than
39747         failing with ENOSYS, when file is not a symlink.
39748         (utimens): Reduce redirection.
39749         * tests/test-lutimens.h (test_lutimens): Update test to cover
39750         non-symlinks.
39751         * tests/test-utimens.h (test_utimens): Update test to cover
39752         symlinks.
39753         * tests/test-utimens.c (main): Update caller.
39754
39755         utimens: cache whether utimensat syscall works
39756         * lib/utimens.c (utimensat_works_really): New cache variable.
39757         (fdutimens, lutimens): Use it to avoid failing syscall.
39758
39759         test-stat-time, test-utimens: improve portability
39760         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39761         ext4 on alpha, and for cygwin.
39762         * tests/test-utimens-common.h: New file.
39763         (nap): Factor delays into single function.
39764         * tests/test-lutimens.h (test_lutimens): Use new header.
39765         * tests/test-futimens.h (test_futimens): Likewise.
39766         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39767         timestamps to occur from same machine, as was done previously for
39768         test_utimens.
39769         * modules/utimens-tests (Files): Ship new file.
39770         * modules/futimens-tests (Files): Likewise.
39771         Reported in part by Jim Meyering.
39772
39773         sys_stat: sort replacement declarations
39774         * lib/sys_stat.in.h: Sort declarations.
39775         * lib/futimens.c (futimens): Fix typo.
39776
39777 2009-10-15  Jim Meyering  <meyering@redhat.com>
39778
39779         don't let environment settings perturb build
39780         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39781         could cause a configure-time and/or build-time malfunction.
39782         Typically, a configure-time function-in-library test is performed
39783         via code like this:
39784
39785           LIB_VAR=
39786           AC_SUBST([LIB_VAR])
39787           prefix_saved_LIBS=$LIBS
39788             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39789                        [test "$ac_cv_search_FUNC" = "none required" ||
39790                         LIB_VAR=$ac_cv_search_FUNC])
39791           LIBS=$prefix_saved_LIBS
39792
39793         However, in each of the files affected by this change, the LIB_VAR=
39794         initialization was omitted.  Thus, when set in the environment, its
39795         value would propagate into generated Makefiles when FUNC is not found
39796         in LIB_NAME.
39797         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39798         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39800
39801 2009-10-14  Eric Blake  <ebb9@byu.net>
39802
39803         fchdir: avoid infinite recursion in mingw
39804         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39805         recursing.
39806
39807         test-stat-time: port to mingw
39808         * tests/test-stat-time.c (force_unlink): Return a value.
39809         (test_ctime) [W32]: Fix compilation error.
39810         (nap): Don't call usleep with too large an argument.  Use
39811         force_unlink.
39812         * doc/pastposix-functions/usleep.texi (usleep): Document the
39813         portability issue.
39814
39815 2009-10-13  Jim Meyering  <meyering@redhat.com>
39816
39817         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39818         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39819         * modules/pipe-filter-ii: Likewise.
39820         * modules/sys_socket-tests: Likewise.
39821         * modules/tsearch-tests: Likewise.
39822         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39823         (check): Depend on it.
39824
39825 2009-10-12  Eric Blake  <ebb9@byu.net>
39826
39827         utimens-tests: port to NFS file systems
39828         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39829         comparisons to avoid spurious failures from timestamp drift
39830         between NFS machines.
39831
39832 2009-10-12  Eric Blake  <ebb9@byu.net>
39833
39834         stat-time-tests: minor cleanups
39835         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39836         * tests/test-stat-time.c (nap): Separate assignment from call.
39837         Suggested by Paolo Bonzini and Bruno Haible.
39838
39839         sys_stat: guarantee struct timespec
39840         * lib/sys_stat.in.h (includes): Always include <time.h>
39841         * modules/sys_stat (Depends-on): Add time.
39842         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39843         mode_t permission values.
39844         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39845         get at subsecond timestamps.
39846
39847 2009-10-10  Eric Blake  <ebb9@byu.net>
39848
39849         futimens: new module
39850         * modules/futimens: New file.
39851         * lib/futimens.c (futimens): Likewise.
39852         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39853         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39854         we can work around Linux bugs.
39855         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39856         * modules/sys_stat (Makefile.am): Substitute them.
39857         * lib/sys_stat.in.h (futimens): Declare it.
39858         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39859         * doc/posix-functions/futimens.texi (futimens): Likewise.
39860         * modules/futimens-tests: New test.
39861         * tests/test-futimens.c: Likewise.
39862
39863         utimens: introduce fdutimens
39864         * lib/utimens.h (fdutimens): New prototype.
39865         * lib/utimens.c (gl_futimens): Move guts...
39866         (fdutimens): ...to new interface.
39867         * tests/test-utimens.c (do_fdutimens): Use it.
39868
39869         utimens: add UTIME_NOW and UTIME_OMIT support
39870         * lib/utimens.c (validate_timespec, update_timespec): New helper
39871         functions.
39872         (gl_futimens, lutimens): Use them.
39873         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39874         stdbool, sys_stat.
39875         (Link): Mention resulting library dependency.
39876         * modules/utimecmp (Link): Likewise.
39877         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39878         (Makefile.am): Pick up library dependency.
39879         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39880         definition.
39881         * tests/test-sys_stat.c: Test the definitions.
39882         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39883         * NEWS: Document library dependency.
39884
39885         utimecmp: support symlink timestamps
39886         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39887         hashing when possible.  Use pathconf when available.
39888         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39889         * modules/utimecmp (Depends-on): Add lstat.
39890
39891         utimens: add lutimens interface
39892         * lib/utimens.c (lutimens): New function.
39893         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39894         * lib/utimens.h (lutimens): Declare new interface.
39895         * tests/test-utimens.c (main): Enhance test.
39896         * tests/test-lutimens.h (test_lutimens): New file.
39897         * modules/utimens-tests (Files): Distribute it.
39898         (Depends-on): Add symlink.
39899         (configure.ac): Check for usleep.
39900
39901         utimens: validate futimens usage
39902         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39903         fewer syscalls on failure later on.  Avoid compiler warning on
39904         mingw.
39905         * modules/utimens (Depends-on): Add dup2.
39906
39907         utimens: add test
39908         * modules/utimens-tests: New test.
39909         * tests/test-utimens.h: New file.
39910         * tests/test-futimens.h: Likewise.
39911         * tests/test-utimens.c: Likewise.
39912
39913         doc: mention timestamp portability issues
39914         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39915         instead.
39916         * doc/posix-functions/utime.texi (utime): Likewise.
39917         * doc/posix-functions/utimes.texi (utimes): Likewise.
39918         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39919         instead.
39920         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39921         module.
39922         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39923         Mention weakness with symlink timestamps.
39924         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39925         to utimensat/futimens instead.
39926         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39927
39928         test-dup2: enhance test
39929         * tests/test-dup2.c (main): Also check AT_FDCWD.
39930
39931         test-stat-time: avoid more spurious failures
39932         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39933         xfs; and avoid race if the two timestamps cross quantization edge.
39934
39935         relocatable: prefer 'file system' over 'filesystem'
39936         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39937         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39938         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39939         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39940         * lib/relocatable.c (compute_curr_prefix): Likewise.
39941
39942 2009-10-10  Jim Meyering  <meyering@redhat.com>
39943
39944         stat-time-tests: check for the usleep function
39945         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39946
39947 2009-10-10  Bruno Haible  <bruno@clisp.org>
39948
39949         * modules/xnanosleep: Put the Link section after the Include section.
39950
39951 2009-10-09  Eric Blake  <ebb9@byu.net>
39952
39953         dup2: work around FreeBSD 6.1 bug
39954         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39955         * doc/posix-functions/dup2.texi (dup2): Document it.
39956         Reported by Nelson H. F. Beebe and Jim Meyering.
39957
39958         test-stat-time: port to buggy NFS clients
39959         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39960         (test_ctime): Also skip test if mtime and ctime are skewed.
39961
39962         maint: prefer 'file system' over 'filesystem'
39963         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39964         * doc/posix-functions/lstat.texi (lstat): Likewise.
39965         * lib/file-has-acl.c (file_has_acl): Likewise.
39966         * lib/fwriteerror.c [TEST]: Likewise.
39967         * tests/test-areadlink.h (test_areadlink): Likewise.
39968         * tests/test-areadlinkat-with-size.c (main): Likewise.
39969         * tests/test-areadlinkat.c (main): Likewise.
39970         * tests/test-canonicalize-lgpl.c (main): Likewise.
39971         * tests/test-canonicalize.c (main): Likewise.
39972         * tests/test-fstatat.c (main): Likewise.
39973         * tests/test-linkat.c (main): Likewise.
39974         * tests/test-lstat.h (test_lstat_func): Likewise.
39975         * tests/test-mkdir.h (test_mkdir): Likewise.
39976         * tests/test-readlink.h (test_readlink): Likewise.
39977         * tests/test-remove.c (main): Likewise.
39978         * tests/test-rename.h (test_rename): Likewise.
39979         * tests/test-renameat.c (main): Likewise.
39980         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39981         * tests/test-symlink.h (test_symlink): Likewise.
39982         * tests/test-symlinkat.c (main): Likewise.
39983         * tests/test-unlink.h (test_unlink_func): Likewise.
39984         * tests/test-unlinkat.c (main): Likewise.
39985
39986         maint: make realtime library usage explicit
39987         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39988         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39989         * modules/settime (Link): Likewise.
39990         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39991
39992         test-stat-time: speed up execution
39993         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39994         warning on mingw.
39995         (nap): New helper function.
39996         (prepare_test): Use it to reduce sleep time.
39997         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39998         execution.
39999         * modules/stat-time-tests (configure.ac): Check for usleep.
40000
40001 2009-10-09  Jim Meyering  <meyering@redhat.com>
40002
40003         selinux-h: always use getfilecon wrappers
40004         * lib/getfilecon.c: New file.
40005         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40006         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40007         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40008         (fgetfilecon): Provide a stub.
40009         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40010         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40011         file unconditionally.
40012         When <selinux/selinux.h> is found, arrange to use wrappers.
40013         * modules/selinux-h (Files): Add getfilecon.c.
40014         (Makefile.am): Substitute include-next-related bits
40015         into the now-always-generated selinux/selinux.h file.
40016         * doc/glibc-functions/lgetfilecon.texi: New file.
40017         * doc/glibc-functions/fgetfilecon.texi: New file.
40018         * doc/glibc-functions/getfilecon.texi: New file.
40019         * doc/glibc-functions/getfilecon-desc.texi: New file.
40020         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40021         which to pull in the new files.
40022         * MODULES.html.sh (Misc): Add selinux-h.
40023
40024 2009-10-08  Jim Meyering  <meyering@redhat.com>
40025
40026         unistd: fix comment typo
40027         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40028
40029 2009-10-08  Eric Blake  <ebb9@byu.net>
40030
40031         areadlink: use SIZE_MAX consistently
40032         * modules/areadlink (Depends-on): Add stdint.
40033         * modules/areadlink-with-size (Depends-on): Likewise.
40034         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40035         gives NULL; drop sys/types, since unistd gives size_t; and add
40036         stdint for SIZE_MAX.
40037         (SIZE_MAX): Rely on headers.
40038         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40039         and add stdint.
40040         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40041         (SIZE_MAX): Likewise.
40042         (INITIAL_BUF_SIZE): Turn into enum.
40043         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40044
40045 2009-10-08  Jim Meyering  <meyering@redhat.com>
40046
40047         areadlinkat: avoid compilation failure
40048         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40049         Fix typo in comment.
40050
40051 2009-10-07  Eric Blake  <ebb9@byu.net>
40052
40053         areadlinkat-with-size: new module
40054         * modules/areadlinkat-with-size: New module.
40055         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40056         * lib/areadlink.h (areadlinkat): Declare it.
40057         * MODULES.html.sh (File system functions): Mention it.
40058         * modules/areadlinkat-with-size-tests: New test.
40059         * tests/test-areadlinkat-with-size.c: New file.
40060
40061         xreadlinkat: new module
40062         * modules/xreadlinkat: New module.
40063         * lib/xreadlinkat.c (xreadlinkat): New file.
40064         * lib/xreadlink.h (xreadlinkat): Declare it.
40065         * MODULES.html.sh (File system functions): Mention it.
40066
40067         areadlinkat: new module
40068         * lib/at-func.c (FUNC_FAIL): New define.
40069         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40070         * modules/areadlinkat: New module.
40071         * lib/linkat.c (areadlinkat): Move...
40072         * lib/areadlinkat.c (areadlinkat): ...to new file.
40073         * lib/areadlink.h (areadlinkat): Declare it.
40074         * modules/linkat (Depends-on): Add areadlinkat.
40075         * MODULES.html.sh (File system functions): Mention it.
40076         * modules/areadlinkat-tests: New test.
40077         * tests/test-areadlinkat.c: New file.
40078
40079         areadlink, areadlink-with-size: add tests
40080         * modules/areadlink-tests: New test.
40081         * modules/areadlink-with-size-tests: Likewise.
40082         * tests/test-areadlink.h: New file.
40083         * tests/test-areadlink.c: Likewise.
40084         * tests/test-areadlink-with-size.c: Likewise.
40085
40086         maint: minor cleanups
40087         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40088         _UNUSED_PARAMETER_ instead.
40089         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40090         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40091         * modules/linkat-tests (Files): Distribute test-link.h.
40092
40093         openat, utimens: whitespace cleanup
40094         * lib/openat.c: Prefer space throughout, rather than mix of 8
40095         spaces vs. tabs.
40096         * lib/at-func.c: Likewise.
40097         * lib/utimens.c: Likewise.
40098
40099         openat: avoid using wrong fd
40100         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40101         working directory chooses same fd.
40102         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40103
40104         mkdir, mkdirat: fix cygwin 1.5.x bug
40105         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40106         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40107         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40108         bug.
40109         (gl_PREREQ_MKDIR): Delete unused macro.
40110         * modules/mkdir (Files): Track file rename.
40111         (configure.ac): Update macro name.
40112         * modules/openat (Depends-on): Add mkdir.
40113         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40114
40115         mkdir, mkdirat: add tests
40116         * modules/mkdir-tests: New test.
40117         * tests/test-mkdir.h: New file.
40118         * tests/test-mkdir.c: Likewise.
40119         * tests/test-mkdirat.c: Likewise.
40120         * modules/openat-tests (Files): Add new files.
40121         (Makefile.am): Run new test.
40122
40123 2009-10-06  Eric Blake  <ebb9@byu.net>
40124
40125         doc: tweak *at function documentation
40126         * doc/posix-functions/faccessat.texi (faccessat): Mention
40127         known issue with replacement.
40128         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40129         * doc/posix-functions/linkat.texi (linkat): Likewise.
40130         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40131         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40132         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40133         * doc/posix-functions/renameat.texi (renameat): Likewise.
40134         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40135
40136         openat: fix GNU/Hurd bug in unlinkat
40137         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40138         broken.
40139         * doc/posix-functions/unlink.texi (unlink): Document this.
40140         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40141
40142         fdopendir: fix GNU/Hurd bug
40143         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40144         allowing non-directory fds.
40145         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40146         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40147         * modules/dirent (Makefile.am): Substitute it.
40148         * lib/dirent.in.h (fdopendir): Declare replacement.
40149         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40150         * tests/test-fdopendir.c (main): Test something other than
40151         /dev/null, since on Hurd that behaves like a directory.
40152
40153         test-symlink: port to GNU/Hurd
40154         * tests/test-symlink.h (test_symlink): Relax expected errno.
40155
40156         doc: tweak more cygwin information
40157         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40158         now compatible with glibc.
40159         * doc/posix-functions/getopt.texi (getopt): Likewise.
40160
40161         getopt-gnu: add another test
40162         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40163         guarantee behavior relied on by m4.
40164         * tests/test-getopt.c (main): Use it.
40165         * modules/getopt-posix-tests (Depends-on): Add setenv.
40166         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40167
40168         getopt: fix compilation on darwin
40169         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40170         include.
40171         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40172         Reported by Ludovic Courtès.
40173
40174 2009-10-06  Bruno Haible  <bruno@clisp.org>
40175
40176         * modules/size_max (Description): Discourage its use.
40177         Reported by Simon Josefsson.
40178
40179 2009-10-06  Jim Meyering  <meyering@redhat.com>
40180
40181         linkat: avoid compilation failure
40182         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40183
40184 2009-10-05  Eric Blake  <ebb9@byu.net>
40185
40186         linkat: support Linux 2.6.17
40187         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40188         linkat on Linux, but allow cache variable override.
40189         * lib/linkat.c (rpl_linkat): Define override.
40190         * modules/linkat (Depends-on): Add symlinkat.
40191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40192         * modules/unistd (Makefile.am): Substitute it.
40193         * lib/unistd.in.h (linkat): Declare replacement.
40194         Reported by Pádraig Brady.
40195
40196         quotearg: port test to systems with C.UTF-8 locale
40197         * tests/test-quotearg.c (struct result_strings): Add another
40198         member, differentiating between C.ASCII and C.UTF-8 handling.
40199         (compare_strings): Add parameter.
40200         (main): Adjust all callers.
40201
40202         getopt: avoid clash with FreeBSD _getopt_internal
40203         * lib/getopt.in.h (_getopt_internal): Override the name.
40204         * lib/getopt_int.h (includes): Pick up any overrides.
40205         Reported by Reuben Thomas.
40206
40207         hash: allow C89 compilation
40208         * lib/hash.c (check_tuning): Move declaration before statement.
40209         Reported by Reuben Thomas.
40210
40211 2009-10-05  Karl Berry  <karl@gnu.org>
40212
40213         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40214
40215 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40216             Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/uname.c (uname): Use a table-driven algorithm to compute
40219         Windows NT versions.
40220
40221 2009-10-04  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40224         program_invocation_short_name.
40225         * modules/progname (configure.ac): Test for presence of
40226         program_invocation_short_name.
40227         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40228
40229 2009-10-04  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/progname.c (set_program_name): Fix comment.
40232         Reported by Jim Meyering.
40233
40234 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40235             Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/uname.c: Include <string.h>.
40238         (uname): Do only one call to GetVersionEx in the common case.
40239
40240 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40241             Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40244         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40245         (uname): Add support for Windows CE and various non-x86 CPU types.
40246
40247 2009-10-03  Bruno Haible  <bruno@clisp.org>
40248
40249         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40250         invocation to tests/configure.ac.
40251         Reported by Ian Beckwith <ianb@erislabs.net>.
40252
40253 2009-10-02  Eric Blake  <ebb9@byu.net>
40254
40255         fchdir: avoid compiler warning
40256         * lib/fchdir.c (canonicalize_file_name)
40257         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40258
40259         test-open: support mingw errno values
40260         * tests/test-open.h (test_open): Relax test.
40261         * tests/test-fopen.h (test_fopen): Likewise.
40262         * tests/test-openat-safer.c (main): Likewise.
40263
40264         open: fix opening directory on mingw
40265         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40266
40267         test-open: on GNU/Hurd, /dev/null is a directory
40268         * tests/test-fopen.h (main): Rename...
40269         (test_fopen): ...to this.  Use a guaranteed non-directory when
40270         confirming open behavior on trailing slash.
40271         * tests/test-openat-safer.c (main): Likewise.
40272         * tests/test-open.h (main): Likewise....
40273         (test_open): ...to this.
40274         * tests/test-fopen.c (main): Adjust caller.
40275         * tests/test-fopen-safer.c (main): Likewise.
40276         * tests/test-open.c (main): Likewise.
40277         * tests/test-fcntl-safer.c (main): Likewise.
40278         Reported by Samuel Thibault.
40279
40280         rename, fchdir: don't ignore chdir failure
40281         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40282         * lib/rename.c (rpl_rename) [W32]: Likewise.
40283         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40284         an empty destination directory if source cannot be renamed,
40285         although there is still possibility for failure.
40286         * doc/posix-functions/rename.texi (rename): Document the race.
40287         Reported by Jim Meyering.
40288
40289         maint: cleanup whitespace in recent commits
40290         * lib/rename.c (rpl_rename): Remove tabs.
40291         * tests/test-link.h (test_link): Likewise.
40292         * lib/fchdir.c (get_name): Likewise.
40293         Reported by Jim Meyering.
40294
40295 2009-10-02  Ben Pfaff  <blp@gnu.org>
40296
40297         relocatable-prog-wrapper: Add missing dependency on
40298         double-slash-root.
40299         * modules/relocatable-prog-wrapper: Add dependency.
40300         Reported by Ian Beckwith <ianb@erislabs.net>.
40301
40302 2009-10-02  Eric Blake  <ebb9@byu.net>
40303
40304         renameat: fix Solaris bugs
40305         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40306         needed fixing.
40307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40308         * modules/stdio (Makefile.am): Substitute it.
40309         * lib/stdio.in.h (renameat): Declare replacement.
40310         * lib/renameat.c (rpl_renameat): Implement fix.
40311
40312         renameat: new module
40313         * modules/renameat: New file.
40314         * lib/renameat.c (renameat): Likewise.
40315         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40317         * modules/stdio (Makefile.am): Substitute them.
40318         * lib/stdio.in.h (renameat): Declare it.
40319         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40320         * doc/posix-functions/renameat.texi (renameat): Likewise.
40321         * modules/renameat-tests: New test.
40322         * tests/test-renameat.c: Likewise.
40323
40324         rename: fix mingw bugs
40325         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40326         directory overwrite bugs.
40327
40328         rename: fix another cygwin 1.5 bug
40329         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40330         checks.
40331         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40332         unnecessary cygwin workarounds.  Also work around bug with moving
40333         full directory onto an empty one.
40334         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40335
40336         rename-dest-slash: merge into rename module
40337         * modules/rename-dest-slash (Status): Mark obsolete.
40338         (Depends-on): Add rename.
40339         (Files): Let rename do it all.
40340         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40341         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40342         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40343         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40344         * lib/rename.c (rpl_rename): Update comments.
40345
40346         rename: fix cygwin 1.5.x bugs
40347         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40348         * lib/rename.c (rpl_rename): Work around them.
40349         * modules/rename (Depends-on): Add same-inode.
40350
40351         rename: fix Solaris 10 bug
40352         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40353         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40354         was the only bug.
40355
40356         rename: fix Solaris 9 bug
40357         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40358         on non-directory.  Avoid calling exit.
40359         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40360         strdup.
40361         * modules/rename-tests (Depends-on): Drop lstat.
40362         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40363         (gl_PREREQ_RENAME): Delete unused macro.
40364
40365         rename-dest-slash: fix NetBSD bug
40366         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40367         links.
40368         * modules/rename-dest-slash (Depends-on): Add same-inode.
40369
40370         rename-tests: new test, exposes several platform bugs
40371         * modules/rename-tests: New file.
40372         * tests/test-rename.h: Likewise.
40373         * tests/test-rename.c: Likewise.
40374         * doc/posix-functions/rename.texi (rename): Improve documentation,
40375         including bugs that will eventually be fixed in gnulib.
40376
40377 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40378
40379         * lib/uname.c: Include <stdlib.h>
40380         (uname): Assume version info is available.
40381
40382 2009-10-02  Jim Meyering  <meyering@redhat.com>
40383
40384         gnu-web-doc-update: correct --help output
40385         * build-aux/gnu-web-doc-update: Make --help output relevant.
40386
40387         gnu-web-doc-update: add standard options
40388         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40389
40390         gnu-web-doc-update: New module.
40391         Use this script to automatically update the on-line web documentation
40392         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40393         * modules/gnu-web-doc-update: New file, from coreutils.
40394         * build-aux/gnu-web-doc-update: New script.
40395
40396 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40397
40398         link: LoadLibrary is not needed.
40399         * lib/link.c: Use GetModuleHandle.
40400
40401 2009-10-01  Eric Blake  <ebb9@byu.net>
40402
40403         getopt: bump serial number
40404         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40405         change.
40406
40407         tests: tighten link, rmdir, and remove tests
40408         * tests/test-link.h (includes): No need to use <config.h> here.
40409         Clean up if directory hard link was created, otherwise test for
40410         trailing '.'.
40411         * tests/test-linkat.c (main): Simplify.
40412         * tests/test-remove.c (main): Enhance test for trailing '.'.
40413         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40414
40415 2009-10-01  Jim Meyering  <meyering@redhat.com>
40416
40417         maint.mk: requiring "make major" was annoying, for a "minor" release.
40418         What is intended is "stable", to contrast with alpha and beta,
40419         so require "make stable", not "make major".
40420         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40421         (get_tool_versions): Likewise.
40422         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40423
40424 2009-09-30  Ben Pfaff  <blp@gnu.org>
40425
40426         Fix broken build of replacement for Windows tmpfile().
40427         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40428         flags argument added along with the 'mkostemp' module.
40429
40430 2009-09-28  Bruno Haible  <bruno@clisp.org>
40431
40432         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40433         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40434         to 'remove_elt'.
40435         (gl_list_remove): Update.
40436         * lib/gl_list.c (gl_list_remove): Update.
40437         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40438         to 'remove_elt'.
40439         (gl_oset_remove): Update.
40440         * lib/gl_list.c (gl_oset_remove): Update.
40441         Reported by Eric Blake.
40442
40443 2009-09-28  Eric Blake  <ebb9@byu.net>
40444
40445         doc: mention yet more cygwin 1.7 status
40446         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40447         cygwin.
40448         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40449         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40450
40451         argp: fix test failure
40452         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40453         that are not upper-case.  Pass correct range to tolower.
40454
40455 2009-09-27  Jim Meyering  <meyering@redhat.com>
40456
40457         test-yesno: work around sparc-dash here-document infelicity
40458         Without this change, the literal \177 byte in a here document
40459         would make dash 0.5.5.1-3 access uninitialized memory.
40460         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40461         Instead, use a marker, "@", and filter through tr to create the desired
40462         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40463
40464 2009-09-27  Bruno Haible  <bruno@clisp.org>
40465
40466         Disable untested support for new flavours of ACLs on AIX.
40467         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40468         progress.
40469         * lib/set-mode-acl.c (qset_acl): Likewise.
40470
40471 2008-12-07  Bruno Haible  <bruno@clisp.org>
40472
40473         Add support for new flavours of ACLs on AIX. (Untested.)
40474         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40475         (file_has_acl): Add support for newer AIX.
40476         * lib/set-mode-acl.c (qset_acl): Likewise.
40477         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40478         Rainer Tammer <tammer@tammer.net>.
40479
40480 2009-09-26  Eric Blake  <ebb9@byu.net>
40481
40482         argp: fix compilation of getopt
40483         * lib/getopt.in.h (includes): Use different guard than glibc.
40484         Reported by Sergey Poznyakoff.
40485
40486         doc: mention more cygwin 1.7 status
40487         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40488         bug.
40489         * doc/posix-functions/execl.texi (execl): Likewise.
40490         * doc/posix-functions/execle.texi (execle): Likewise.
40491         * doc/posix-functions/execlp.texi (execlp): Likewise.
40492         * doc/posix-functions/execv.texi (execv): Likewise.
40493         * doc/posix-functions/execve.texi (execve): Likewise.
40494         * doc/posix-functions/execvp.texi (execvp): Likewise.
40495         * doc/glibc-functions/canonicalize_file_name.texi
40496         (canonicalize_file_name): Cygwin 1.7 now provides this.
40497         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40498         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40499         on AT_SYMLINK_NOFOLLOW.
40500
40501 2009-09-24  Eric Blake  <ebb9@byu.net>
40502
40503         test-linkat: make test more robust
40504         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40505
40506         getopt: fix inclusion guards for cygwin
40507         * modules/getopt-posix (Depends-on): Add include-next.
40508         (Makefile.am): Substitute more items in replacement header.
40509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40510         <getopt.h>.
40511         * lib/getopt.in.h (includes): Use split inclusion guard, and
40512         prefer <getopt.h> over include <unistd.h> when one is present.
40513         (option): Also override name of 'struct option'.
40514
40515         same-inode: revert prior change; it is not yet ready
40516         * NEWS: Undo mention of this change.
40517         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40518         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40519         * lib/cycle-check.c (cycle_check): Likewise.
40520         * lib/same.c (same_name): Likewise.
40521         * lib/at-func2.c (at_func2): Likewise.
40522
40523 2009-09-23  Eric Blake  <ebb9@byu.net>
40524
40525         linkat: new module
40526         * modules/linkat: New file.
40527         * lib/at-func2.c (at_func2): Likewise.
40528         * lib/linkat.c (linkat): Likewise.
40529         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40530         * lib/openat-priv.h (at_func2): Add declaration.
40531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40532         * modules/unistd (Makefile.am): Substitute them.
40533         * lib/unistd.in.h (linkat): Declare it.
40534         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40535         * doc/posix-functions/linkat.texi (linkat): Likewise.
40536         * doc/posix-functions/link.texi (link): Tweak wording.
40537         * tests/test-link.c (main): Move guts...
40538         * tests/test-link.h (test_link): ...into new file.
40539         * modules/linkat-tests: New test.
40540         * tests/test-linkat.c: Likewise.
40541         * modules/link-tests (Files): Ship new file.
40542         (Depends-on): Add stdbool.
40543
40544         dirname: add library-safe mdir_name
40545         * lib/dirname.h (mdir_name): New prototype.
40546         * lib/dirname.c (dir_name): Move guts...
40547         (mdir_name): ...to new function that avoids xalloc_die.
40548
40549         fchdir: another mingw fix
40550         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40551         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40552         on mingw (where it has not yet been ported), and make it optional
40553         elsewhere.
40554         (_gl_register_fd): Use it.
40555
40556         same-inode: make SAME_INODE tri-state, to port to mingw
40557         * NEWS: Mention this change.
40558         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40559         st_ino always being 0.
40560         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40561         * lib/cycle-check.c (cycle_check): Likewise.
40562         * lib/same.c (same_name): Likewise.
40563
40564         lstat: avoid mingw compilation error
40565         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40566         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40567         lstat ourselves.
40568         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40569         was adequate.
40570         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40571         the checks for lstat.
40572         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40573
40574         link: fix test failure on Solaris 9
40575         * lib/link.c (rpl_link): Don't assume link will catch bogus
40576         trailing slash on source.
40577
40578         test-symlinkat: enhance test
40579         * tests/test-readlink.c (main): Move guts...
40580         * tests/test-readlink.h (test_readlink): ...into new file.
40581         * tests/test-symlink.c (main): Move guts...
40582         * tests/test-symlink.h (test_symlink): ...into new file.
40583         * tests/test-symlinkat.c (main): Use new files for further
40584         coverage.
40585         (do_symlink, do_readlink): New helper functions.
40586         * modules/symlink-tests (Files): Ship new file.
40587         (Depends-on): Add stdbool.
40588         * modules/readlink-tests (Files): Ship new file.
40589         (Depends-on): Add stdbool.
40590         * modules/symlinkat-tests (Files): Use new files.
40591
40592 2009-09-23  Eric Blake  <ebb9@byu.net>
40593
40594         readlink: document portability issue with symlink length
40595         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40596         systems have bogus st_size on symlinks, and mention the
40597         areadlink-with-size module.
40598         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40599         * doc/posix-functions/readlink.texi (readlink): Mention the
40600         areadlink module, and ERANGE failure.
40601         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40602         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40603
40604         readlink: fix Solaris 9 bug with trailing slash
40605         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40606         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40607         * doc/posix-functions/readlink.texi (readlink): Document this.
40608         * modules/readlink-tests: New test.
40609         * tests/test-readlink.c: Likewise.
40610
40611         readlink: fix cygwin 1.5.x bug with return type
40612         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40613         * lib/unistd.in.h (readlink): Use ssize_t.
40614         * lib/readlink.c (readlink): Likewise.
40615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40616         * modules/unistd (Makefile.am): Substitute it.
40617         * lib/unistd.in.h (readlink): Declare replacement.
40618         * doc/posix-functions/readlink.texi (readlink): Document this.
40619
40620         symlink: use throughout gnulib
40621         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40622         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40623         symlink is not used.
40624         * modules/symlinkat (Depends-on): Add symlink.
40625         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40626         * modules/canonicalize-tests (Depends-on): Likewise.
40627         * modules/lstat-tests (Depends-on): Likewise.
40628         * modules/openat-tests (Depends-on): Likewise.
40629         * modules/remove-tests (Depends-on): Likewise.
40630         * modules/rmdir-tests (Depends-on): Likewise.
40631         * modules/unlink-tests (Depends-on): Likewise.
40632         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40633         * tests/test-canonicalize.c (symlink): Likewise.
40634         * tests/test-fstatat.c (symlink): Likewise.
40635         * tests/test-lstat.c (symlink): Likewise.
40636         * tests/test-remove.c (symlink): Likewise.
40637         * tests/test-rmdir.c (symlink): Likewise.
40638         * tests/test-unlink.c (symlink): Likewise.
40639         * tests/test-unlinkat.c (symlink): Likewise.
40640
40641         symlink: new module, for Solaris 9 bug
40642         * modules/symlink: New file.
40643         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40644         * lib/symlink.c: Likewise.
40645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40646         * modules/unistd (Makefile.am): Substitute them.
40647         * lib/unistd.in.h (symlink): Declare replacement.
40648         * MODULES.html.sh (File system functions): Mention it.
40649         * doc/posix-functions/symlink.texi (symlink): Likewise.
40650         * modules/symlink-tests: New test.
40651         * tests/test-symlink.c: Likewise.
40652
40653 2009-09-23  Bruno Haible  <bruno@clisp.org>
40654
40655         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40656         when needed.
40657         Test case: gnulib-tool --import --with-tests atexit inttypes.
40658         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40659
40660 2009-09-23  Bruno Haible  <bruno@clisp.org>
40661
40662         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40663         subcommand, not in a subshell.
40664
40665 2009-09-22  Eric Blake  <ebb9@byu.net>
40666
40667         unistd: sort replacement declarations
40668         * lib/unistd.in.h: Sort declarations.
40669
40670         open, openat: minor optimization
40671         * lib/open.c (open): If open succeeded, len is non-zero.
40672         * lib/openat.c (rpl_openat): Likewise.
40673
40674         link-follow: ensure correct result
40675         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40676         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40677         distinguish between possible failures.
40678
40679 2009-09-21  Eric Blake  <ebb9@byu.net>
40680
40681         fts: avoid compiler warning
40682         * lib/fts.c (dirent_inode_sort_may_be_useful)
40683         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40684
40685 2009-09-19  Bruno Haible  <bruno@clisp.org>
40686
40687         * lib/progreloc.c (canonicalize_file_name): New declaration.
40688
40689 2009-09-19  Eric Blake  <ebb9@byu.net>
40690
40691         link: fix quoting
40692         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40693
40694         openat: fix openat bugs on Solaris 9
40695         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40696         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40697         * modules/openat (Depends-on): Add open.
40698         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40699         * modules/fcntl-h (Makefile.am): Substitute it.
40700         * lib/fcntl.in.h (openat): Declare replacement.
40701         * doc/posix-functions/openat.texi (openat): Document this.
40702
40703         openat: move fstatat and unlinkat into correct files
40704         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40705         compiled.
40706         * lib/openat.c (fstatat, unlinkat): Move...
40707         * lib/fstatat.c (fstatat): ...into correct files.
40708         * lib/unlinkat.c (unlinkat): Likewise.
40709
40710         openat: fix unlinkat bugs on Solaris 9
40711         * lib/unlinkat.c (unlinkat): New file.
40712         * modules/openat (Depends-on): Add unlink.
40713         (Files): Distribute it.
40714         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40715         trailing slash behavior is broken.
40716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40717         * modules/unistd (Makefile.am): Substitute it.
40718         * lib/unistd.in.h (unlinkat): Declare replacement.
40719         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40720
40721         openat: fix fstatat bugs on Solaris 9
40722         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40723         stat.
40724         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40725
40726         test-unlinkat: enhance test, to expose Solaris 9 bug
40727         * tests/test-unlink.c (main): Factor guts...
40728         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40729         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40730         * tests/test-rmdir.c (main): Adjust caller.
40731         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40732         (unlinker): New helper function.
40733         (rmdirat): Enhance check.
40734         * modules/rmdir-tests (Depends-on): Add stdbool.
40735         * modules/unlink-tests (Depends-on): Likewise.
40736         (Files): Add test-unlink.h.
40737         * modules/openat-tests (Files): Likewise.
40738         (Depends-on): Add unlinkdir.
40739
40740         test-fstatat: new test, to expose Solaris 9 bugs
40741         * tests/test-stat.c (main): Factor guts...
40742         * tests/test-stat.h (test_stat_func): ...into new file.
40743         * tests/test-lstat.c (main): Factor guts...
40744         * tests/test-lstat.h (test_lstat_func): ...into new file.
40745         * tests/test-fstatat.c: New file.
40746         * modules/stat-tests (Files): Add test-stat.h.
40747         * modules/lstat-tests (Files): Add test-lstat.h.
40748         (Depends-on): Add stdbool.
40749         * modules/openat-tests (Depends-on): Add pathmax.
40750         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40751         (Makefile.am): Run new test.
40752
40753         remove: new module, for mingw and Solaris 9 bugs
40754         * modules/remove: New file.
40755         * lib/remove.c: Likewise.
40756         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40758         * modules/stdio (Makefile.am): Use them.
40759         * lib/stdio.in.h (remove): Declare replacement.
40760         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40761         * doc/posix-functions/remove.texi (remove): Likewise.
40762         * modules/remove-tests: New test.
40763         * tests/test-remove.c: Likewise.
40764
40765         unlink: new module, for Solaris 9 bug
40766         * modules/unlink: New file.
40767         * lib/unlink.c: Likewise.
40768         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40770         * modules/unistd (Makefile.am): Use them.
40771         * lib/unistd.in.h (stat): Declare replacement.
40772         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40773         * doc/posix-functions/unlink.texi (unlink): Likewise.
40774         * modules/unlink-tests: New test.
40775         * tests/test-unlink.c: Likewise.
40776
40777         lstat: fix Solaris 9 bug
40778         * lib/lstat.c (lstat): Also check for trailing slash on
40779         non-symlink, non-directories.  Use stat module to simplify logic.
40780         * doc/posix-functions/lstat.texi (lstat): Document it.
40781         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40782         (configure.ac): Check for symlink.
40783         * tests/test-lstat.c (main): Add more tests.
40784
40785         stat: add as dependency to other modules
40786         * modules/chown (Depends-on): Add stat.
40787         * modules/euidaccess (Depends-on): Likewise.
40788         * modules/fchdir (Depends-on): Likewise.
40789         * modules/isdir (Depends-on): Likewise.
40790         * modules/link (Depends-on): Likewise.
40791         * modules/lstat (Depends-on): Likewise.
40792         * modules/mkdir-p (Depends-on): Likewise.
40793         * modules/modechange (Depends-on): Likewise.
40794         * modules/open (Depends-on): Likewise.
40795         * modules/readlink (Depends-on): Likewise.
40796         * modules/same (Depends-on): Likewise.
40797
40798         stat: fix Solaris 9 bug
40799         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40800         slash.
40801         * lib/stat.c (rpl_stat): Work around it.
40802         * doc/posix-functions/stat.texi (stat): Update documentation.
40803
40804         stat: new module, for mingw bug
40805         * modules/stat: New file.
40806         * lib/stat.c: Likewise.
40807         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40809         * modules/sys_stat (Makefile.am): Use them.
40810         * lib/sys_stat.in.h (stat): Declare replacement.
40811         * lib/openat.c (fstatat): Deal with lstat and stat being function
40812         macros.
40813         * modules/openat (Depends-on): Add inline.
40814         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40815         * doc/posix-functions/stat.texi (stat): Likewise.
40816         * modules/stat-tests: New test.
40817         * tests/test-stat.c: Likewise.
40818
40819 2009-09-19  Jim Meyering  <meyering@redhat.com>
40820
40821         syntax-check: detect unnecessary inclusion of canonicalize.h
40822         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40823
40824 2009-09-19  Eric Blake  <ebb9@byu.net>
40825
40826         canonicalize-lgpl: adjust clients to use correct header
40827         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40828         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40829         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40830         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40831         * lib/progreloc.c (includes): Likewise.
40832
40833 2009-09-19  Jim Meyering  <meyering@redhat.com>
40834
40835         test-posixtm.c: correct a comment
40836         * tests/test-posixtm.c: Correct first-line comment.
40837         Spotted by Eric Blake.
40838
40839 2009-09-16  Jim Meyering  <meyering@redhat.com>
40840
40841         posixtm-tests: make T const-correct; add a test case
40842         * tests/test-posixtm.c (T): Declare const.
40843         Add a test for -(2^31+1).
40844         Remove useless can-succeed-only-in-2002 test.
40845
40846         posixtm-tests: adjust the sole failing test
40847         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40848         expected output matches what mktime now produces.  Cross-checked via
40849         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40850
40851         posixtm: move #ifdef'd tests into a new module
40852         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40853         * tests/test-posixtm.c: ... this new file.
40854         * modules/posixtm-tests: New module.
40855
40856 2009-09-19  Eric Blake  <ebb9@byu.net>
40857
40858         openat: simplify use of at-func.c
40859         * lib/at-func.c (includes): Include prerequisites here, to
40860         simplify requirements on client files.
40861         * lib/openat-priv.h: Add double-inclusion guard.
40862         * lib/faccessat.c (includes): Simplify.
40863         * lib/fchmodat.c (includes): Likewise.
40864         * lib/fchownat.c (includes): Likewise.
40865         * lib/mkdirat.c (includes): Likewise.
40866         * lib/mkfifoat.c (includes): Likewise.
40867         * lib/symlinkat.c (includes): Likewise.
40868
40869         openat: allow return of fd 0
40870         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40871         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40872         unistd-safer.
40873         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40874         <fcntl.h>; this module does not leak fds.
40875         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40876         must be allowed to return 0, leaving openat_safer to add the
40877         safety.
40878         (openat_permissive): Avoid writing to just-opened fd 2 if
40879         restoring the current directory fails.
40880         * lib/openat-die.c (openat_restore_fail): Add comment.
40881         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40882         (save_cwd): Guarantee safe fd, but without use of open_safer.
40883         * tests/test-openat.c: New test.
40884         * modules/openat-tests (Files, Makefile.am): Distribute and build
40885         new file.
40886
40887         relocatable-prog-wrapper: fix build
40888         * modules/relocatable-prog-wrapper (Files): Update name of
40889         canonicalize m4 file, broken on 2009-09-17.
40890         Reported by emad hajjar <aleppos@hotmail.com>.
40891
40892 2009-09-19  Bruno Haible  <bruno@clisp.org>
40893
40894         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40895         * lib/safe-alloc.c: Likewise.
40896         Reported by Ian Beckwith <ianb@erislabs.net>.
40897
40898 2009-09-18  Bruno Haible  <bruno@clisp.org>
40899
40900         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40901         Reported by <erobles@sensacd.com.mx>.
40902
40903 2009-09-17  Eric Blake  <ebb9@byu.net>
40904
40905         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40906         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40907         slashes when checking if last component is missing.
40908         * tests/test-canonicalize.c (main): Test this.
40909
40910         canonicalize, canonicalize-lgpl: honor // if distinct from /
40911         * modules/canonicalize (Files): Add double-slash-root.m4.
40912         * modules/canonicalize-lgpl (Files): Likewise.
40913         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40914         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40915         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40916         fallback definition.
40917         (canonicalize_filename_mode): Use it to protect //.
40918         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40919         (__realpath): Likewise.
40920         * tests/test-canonicalize.c (main): Test this.
40921         * tests/test-canonicalize-lgpl.c (main): Likewise.
40922         * modules/canonicalize-tests (Depends-on): Add same-inode.
40923         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40924
40925         canonicalize-lgpl: fix glibc bug with trailing slash
40926         * m4/canonicalize-lgpl.m4: Move contents...
40927         * m4/canonicalize.m4: ...here.
40928         (gl_CANONICALIZE_LGPL): Factor realpath check...
40929         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40930         glibc 2.3.5 bug, fixed 2005-04-27.
40931         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40932         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40933         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40934         * modules/canonicalize-lgpl (Files): Manage file rename.
40935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40936         * modules/stdlib (Makefile.am): Substitute witness.
40937         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40938         is needed.
40939         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40940         replacement is required.
40941         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40942         * doc/glibc-functions/canonicalize_file_name.texi
40943         (canonicalize_file_name): Document this.
40944         * doc/posix-functions/realpath.texi (realpath): Likewise.
40945
40946         canonicalize-lgpl: reject non-directory with trailing slash
40947         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40948         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40949         catches failures in glibc 2.3.5.
40950         * tests/test-canonicalize.c (main): Likewise.
40951
40952         canonicalize-lgpl: use native realpath if it works
40953         * lib/canonicalize-lgpl.c (realpath): Guard with
40954         FUNC_REALPATH_WORKS.
40955         * lib/stdlib.in.h (realpath): Make declaration optional based on
40956         HAVE_REALPATH.
40957         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40958         native realpath works.
40959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40960         * modules/stdlib (Makefile.am): Substitute witness.
40961
40962         canonicalize, canonicalize-lgpl: use <stdlib.h>
40963         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40964         (Include): Mention <stdlib.h>.
40965         (configure.ac): Mention functions we provide.
40966         * modules/canonicalize (configure.ac): Likewise.
40967         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40968         realpath if canonicalize_file_name is missing.
40969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40970         * modules/stdlib (Makefile.am): Substitute witnesses.
40971         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40972         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40973         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40974         * NEWS: Document this.
40975         * doc/glibc-functions/canonicalize_file_name.texi
40976         (canonicalize_file_name): Likewise.
40977         * doc/posix-functions/realpath.texi (realpath): Likewise.
40978         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40979
40980         test-canonicalize: consolidate into single C program
40981         * tests/test-canonicalize.sh: Delete; move setup into...
40982         * tests/test-canonicalize.c (main): ...the program, making it
40983         easier to run in debugger.  Add some tests.
40984         * modules/canonicalize-tests (Files): Remove unused file.
40985         (Depends-on): Add progname.
40986         (configure.ac, Makefile.am): Simplify.
40987
40988         test-canonicalize-lgpl: consolidate into single C program
40989         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40990         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40991         easier to run in debugger.  Add some tests.
40992         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40993         (configure.ac, Makefile.am): Simplify.
40994
40995         canonicalize: avoid resolvepath
40996         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40997         unnecessary checks.
40998         * lib/canonicalize.c (includes): Simplify.
40999         (canonicalize_file_name): Drop resolvepath implementation.
41000         * modules/canonicalize (Depends-on): Drop filenamecat.
41001
41002         canonicalize: don't lose errno
41003         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41004         over calls to free.
41005
41006         canonicalize: simplify errno handling
41007         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41008         assignment.
41009
41010         canonicalize, canonicalize-lgpl: update module dependencies
41011         * modules/canonicalize (Depends-on): Add extensions, lstat,
41012         pathmax, stdlib.
41013         (Files): Drop pathmax.h.
41014         (configure.ac): Adjust macro name.
41015         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41016         lstat, stdlib, sys_stat.
41017         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41018         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41019         extensions.
41020         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41021         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41022         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41023         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41024         declaration, if available.
41025         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41026         we can rely on the readlink module.
41027         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41028         (includes): Use <unistd.h> unconditionally.
41029
41030 2009-09-17  Eric Blake  <ebb9@byu.net>
41031
41032         maint: make Include sections of modules consistent
41033         * modules/alloca: Use only header name; no need to list #include.
41034         * modules/alloca-opt: Likewise.
41035         * modules/arpa_inet: Likewise.
41036         * modules/canon-host: Likewise.
41037         * modules/configmake: Likewise.
41038         * modules/dirent: Likewise.
41039         * modules/eealloc: Likewise.
41040         * modules/environ: Likewise.
41041         * modules/fchdir: Likewise.
41042         * modules/fcntl: Likewise.
41043         * modules/fcntl-h: Likewise.
41044         * modules/gethrxtime: Likewise.
41045         * modules/gettime: Likewise.
41046         * modules/ignore-value: Likewise.
41047         * modules/inet_ntop: Likewise.
41048         * modules/inet_pton: Likewise.
41049         * modules/inttypes: Likewise.
41050         * modules/isnand-nolibm: Likewise.
41051         * modules/isnanf-nolibm: Likewise.
41052         * modules/mbchar: Likewise.
41053         * modules/mbfile: Likewise.
41054         * modules/mbiter: Likewise.
41055         * modules/mbuiter: Likewise.
41056         * modules/netdb: Likewise.
41057         * modules/netinet_in: Likewise.
41058         * modules/nproc: Likewise.
41059         * modules/pagealign_alloc: Likewise.
41060         * modules/poll: Likewise.
41061         * modules/printf-frexp: Likewise.
41062         * modules/pthread: Likewise.
41063         * modules/putenv: Likewise.
41064         * modules/random_r: Likewise.
41065         * modules/relocatable-prog: Likewise.
41066         * modules/search: Likewise.
41067         * modules/select: Likewise.
41068         * modules/selinux-h: Likewise.
41069         * modules/settime: Likewise.
41070         * modules/signal: Likewise.
41071         * modules/size_max: Likewise.
41072         * modules/socklen: Likewise.
41073         * modules/ssize_t: Likewise.
41074         * modules/stdarg: Likewise.
41075         * modules/stdbool: Likewise.
41076         * modules/stddef: Likewise.
41077         * modules/stdint: Likewise.
41078         * modules/stdio: Likewise.
41079         * modules/stdlib: Likewise.
41080         * modules/string: Likewise.
41081         * modules/strings: Likewise.
41082         * modules/sys_file: Likewise.
41083         * modules/sys_ioctl: Likewise.
41084         * modules/sys_select: Likewise.
41085         * modules/sys_socket: Likewise.
41086         * modules/sys_stat: Likewise.
41087         * modules/sys_time: Likewise.
41088         * modules/sys_times: Likewise.
41089         * modules/sys_utsname: Likewise.
41090         * modules/sys_wait: Likewise.
41091         * modules/sysexits: Likewise.
41092         * modules/time: Likewise.
41093         * modules/times: Likewise.
41094         * modules/tmpfile: Likewise.
41095         * modules/trim: Likewise.
41096         * modules/unistd: Likewise.
41097         * modules/wchar: Likewise.
41098         * modules/wctype: Likewise.
41099
41100 2009-09-17  Bruno Haible  <bruno@clisp.org>
41101
41102         Make getdate.y compile on QNX and NetBSD 5 / i386.
41103         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41104         TIME_T_FITS_IN_LONG_INT.
41105         * lib/getdate.y (long_time_t): New type.
41106         (relative_time): Change type of 'seconds' field to long_time_t.
41107         (get_date): Update types of local variables. Check against overflow
41108         during conversion from long_time_t to time_t.
41109         Reported by Matt Kraai <kraai@ftbfs.org>
41110         and Hasso Tepper <hasso@netbsd.org>.
41111
41112 2009-09-17  Bruno Haible  <bruno@clisp.org>
41113
41114         * modules/COPYING: Update copyright years.
41115         * modules/README: Likeiwse.
41116         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41117         Reported by Ian Beckwith <ianb@erislabs.net>.
41118
41119 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41120
41121         * users.txt: Update references for gnuit package.
41122
41123 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41124
41125         * m4/getdelim.m4: Fix typo in copyright line.
41126
41127 2009-09-17  Bruno Haible  <bruno@clisp.org>
41128
41129         * lib/atoll.c: Use the standard header with GPL copyright.
41130         * lib/argz.in.h: Likewise.
41131         * lib/glob.c: Likewise.
41132         * lib/glob-libc.h: Likewise.
41133         * lib/random_r.c: Likewise.
41134         * lib/siglist.h: Likewise.
41135         * lib/strsignal.c: Likewise.
41136         Reported by Ian Beckwith <ianb@erislabs.net>.
41137
41138 2009-09-17  Eric Blake  <ebb9@byu.net>
41139
41140         rmdir: ensure correct dependency order
41141         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41142
41143 2009-09-17  Bruno Haible  <bruno@clisp.org>
41144
41145         Disable assertion that fails on NetBSD 5 / i386.
41146         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41147         Reported by Sam Steingold <sds@gnu.org>
41148         and Hasso Tepper <hasso@netbsd.org>.
41149
41150 2009-09-16  Eric Blake  <ebb9@byu.net>
41151
41152         unlinkdir: port to mingw
41153         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41154         on which no one can unlink a directory.
41155
41156         stdlib: sort witness names
41157         * modules/stdlib (Makefile.am): Sort replacements.
41158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41159         * lib/stdlib.in.h: Likewise.
41160
41161         parse-duration-tests: avoid link failure
41162         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41163         LIBINTL.
41164         Reported by Tom G. Christensen.
41165
41166         openat-tests: ensure unlinkat behaves like rmdir
41167         * tests/test-rmdir.c (main): Factor guts...
41168         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41169         * modules/rmdir-tests (Files): Ship new file.
41170         * modules/openat-tests: New test.
41171         * tests/test-unlinkat.c: Likewise.
41172
41173         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41174         * modules/rmdir-errno (Status, Notice): Now obsolete.
41175
41176         rmdir: work around cygwin 1.5.x and mingw bugs
41177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41178         * lib/rmdir.c (rmdir): Work around it.
41179         * modules/rmdir (Status, Notice): No longer obsolete.
41180         (Files): Add dos.m4.
41181         (Depends-on): Add unistd.
41182         (configure.ac): Set witnesses.
41183         (License): Relax to LGPLv2+.
41184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41185         * modules/unistd (Makefile.am): Substitute witnesses.
41186         * lib/unistd.in.h (rmdir): Declare replacement.
41187         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41188         * modules/rmdir-tests: New tests.
41189         * tests/test-rmdir.c: Likewise.
41190
41191 2009-09-15  Eric Blake  <ebb9@byu.net>
41192
41193         fchdir: improve use of replacement functions
41194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41195         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41196         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41197         REPLACE_CLOSEDIR.
41198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41199         * modules/sys_stat (Makefile.am): Substitute correct witness.
41200         * modules/dirent (Makefile.am): Likewise.
41201         * modules/unistd (Makefile.am): Likewise.
41202         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41203         * lib/unistd.in.h (dup): Likewise.
41204         * lib/sys_stat.in.h (fstat): Likewise.
41205
41206         maint: ignore gnulib-tool temp files
41207         * .gitignore: Ignore files created during gnulib-tool --test.
41208
41209 2009-09-13  Jim Meyering  <meyering@redhat.com>
41210
41211         posixtm: don't reject a time that specify "60" as the number of seconds
41212         * lib/posixtm.c (posixtime): The code to reject invalid dates
41213         would also reject a time specified with the .60 suffix.
41214         But POSIX allows that, in order to accommodate leap seconds.
41215         So don't reject it.
41216         (main): Adjust tests accordingly.
41217         * modules/posixtm (Depends-on): Add stpcpy.
41218
41219 2009-09-11  Jim Meyering  <meyering@redhat.com>
41220
41221         announce-gen: include [$release_type] in emitted Subject:
41222         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41223         e.g., [stable] in the emitted Subject: line.
41224
41225 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41226
41227         Remove obsolete macros from several modules.
41228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41229         obsolete Autoconf macros with their modern counterparts.
41230         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41231         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41232         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41233         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41234         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41235         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41237         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41238         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41239         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41240         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41241         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41242         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41243         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41244         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41245         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41246         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41247         * m4/time_r.m4 (gl_TIME_R): Likewise.
41248         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41249         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41250         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41251
41252         Fix copyright header in build-aux scripts.
41253         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41254         recommendation.
41255         * build-aux/ncftpput-ftp: Likewise.
41256         * build-aux/update-copyright: Likewise.
41257
41258 2009-09-09  Eric Blake  <ebb9@byu.net>
41259
41260         test-link: allow Linux choice of errno
41261         * tests/test-link.c (main): Relax test for alternate error.
41262
41263         strndup: fix improper m4 caching
41264         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41265         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41266         (gl_PREREQ_STRNDUP): Delete.
41267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41268         * modules/string (Makefile.am): Substitute it.
41269         * lib/string.in.h (strndup): Modernize prototype.
41270
41271         getcwd: port to mingw
41272         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41273         different from the POSIX assumptions made throughout the getcwd
41274         module; fortunately, the mingw getcwd does not need replacement.
41275         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41276         * modules/getcwd-tests: New test.
41277         * tests/test-getcwd.c: Likewise.
41278
41279         link: fix platform bugs
41280         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41281         * lib/link.c (link): Work around them.  Fix related mingw bug.
41282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41283         * modules/unistd (Makefile.am): Substitute it.
41284         * lib/unistd.in.h (link): Declare replacement.
41285         * doc/posix-functions/link.texi (link): Document this.
41286         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41287
41288         test-link: consolidate into single C program, test more cases
41289         * tests/test-link.sh: Delete.
41290         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41291         at least Cygwin and Solaris.
41292         * modules/link-tests (Files): Remove unused file.
41293         (Depends-on): Add errno, sys_stat.
41294         (Makefile.am): Simplify.
41295
41296 2009-09-08  Bruno Haible  <bruno@clisp.org>
41297
41298         Work around towlower, towupper bug on mingw.
41299         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41300         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41301         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41302         * doc/posix-functions/towupper.texi: Likewise.
41303         Reported by Eric Blake.
41304
41305 2009-09-08  Jim Meyering  <meyering@redhat.com>
41306
41307         build: don't try to run autoheader if we don't use it
41308         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41309         is not used in configure.ac.
41310
41311 2009-09-08  Eric Blake  <ebb9@byu.net>
41312
41313         euidaccess: fix compilation error
41314         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41315
41316         rawmemchr: relax license
41317         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41318         okay.
41319         Reported by Jim Meyering.
41320
41321         mkfifoat: new module
41322         * modules/mkfifoat: New file.
41323         * lib/mkfifoat.c: Likewise.
41324         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41326         * modules/sys_stat (Makefile.am): Use them.
41327         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41328         * MODULES.html.sh (File system functions): Mention module.
41329         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41330         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41331         * modules/mkfifoat-tests: New test.
41332         * tests/test-mkfifoat.c: Likewise.
41333
41334         strchrnul: relax license
41335         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41336         okay.
41337         Reported by Jim Meyering.
41338
41339 2009-09-08  Eric Blake  <ebb9@byu.net>
41340
41341         fstatat: fix compilation on Solaris
41342         * lib/fstatat.c (includes): Add fcntl.h.
41343         Reported by Pádraig Brady.
41344
41345 2009-09-07  Eric Blake  <ebb9@byu.net>
41346
41347         rename: modernize replacement
41348         * modules/rename (Depends-on): Add stdio.
41349         (configure.ac): Declare witness.
41350         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41351         stdio take care of replacement.
41352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41353         * modules/stdio (Makefile.am): Substitute them.
41354         * lib/stdio.in.h (rename): Declare replacement.
41355         * lib/rename.c (includes): Allow cross-compilation to non-windows
41356         machines.
41357         * doc/posix-functions/rename.texi (rename): Improve
41358         documentation.
41359
41360         stdio: sort witness names
41361         * modules/stdio (Makefile.am): Sort replacements.
41362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41363         * lib/stdio.in.h: Likewise.
41364
41365         getcwd: minor cleanups
41366         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41367         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41368
41369         openat: provide more convenience names
41370         * modules/faccessat (configure.ac): Add C witness.
41371         * lib/unistd.in.h (readlinkat): Fix typo.
41372         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41373         convenience wrappers.
41374         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41375         wrappers in syntax checks.
41376
41377 2009-09-06  Eric Blake  <ebb9@byu.net>
41378
41379         doc: fix comments in recent patches
41380         * lib/faccessat.c: Mention correct function.
41381         * lib/fchmodat.c: Likewise.
41382         * lib/fchownat.c: Likewise.
41383         * lib/symlinkat.c: Likewise.
41384         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41385         constants.
41386
41387         faccessat, symlinkat: continue cleanup of previous patch
41388         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41389         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41390         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41392         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41393         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41394         set.
41395
41396 2009-09-06  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41399         (fstatat): Declare if GNULIB_FSTATAT is set.
41400         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41401         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41402         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41403         * modules/fcntl-h (Files): Remove m4/openat.m4.
41404         * modules/sys_stat (Files): Remove m4/openat.m4.
41405         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41406         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41407         * modules/unistd (Files): Remove m4/openat.m4.
41408         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41409         GNULIB_OPENAT.
41410         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41411         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41413         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41414         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41415         gl_OPENAT_DEFAULTS.
41416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41417         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41418         Don't require gl_OPENAT_DEFAULTS.
41419         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41420         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41421         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41422         (gl_OPENAT_DEFAULTS): Remove macro.
41423
41424 2009-09-06  Bruno Haible  <bruno@clisp.org>
41425
41426         * modules/openat (configure.ac): Remove unneeded witness.
41427
41428 2009-09-06  Bruno Haible  <bruno@clisp.org>
41429
41430         Set errno to ENOSYS when a function is entirely unsupported.
41431         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41432         EOPNOTSUPP.
41433         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41434         * modules/chown (Depends-on): Remove errno.
41435
41436 2009-09-06  Bruno Haible  <bruno@clisp.org>
41437
41438         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41439
41440 2009-09-06  Bruno Haible  <bruno@clisp.org>
41441
41442         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41443
41444 2009-09-06  Ben Pfaff  <blp@gnu.org>
41445             Bruno Haible  <bruno@clisp.org>
41446
41447         Work around a glibc bug in strtok_r.
41448         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41449         Undefine if UNDEFINE_STRTOK_R is set.
41450         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41452         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41453         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41454         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41455         UNDEFINE_STRTOK_R.
41456         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41457
41458 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41459
41460         exclude: minor fix
41461         * lib/exclude.c: Include wctype.h
41462
41463 2009-09-06  Akim Demaille  <demaille@gostai.com>
41464
41465         bootstrap: improve error message
41466         * build-aux/bootstrap (find_tool): Upon failure, report the list
41467         of candidates.
41468         Honor the initial value of the envvar.
41469
41470 2009-09-05  Eric Blake  <ebb9@byu.net>
41471
41472         symlinkat: new module
41473         * modules/symlinkat: New file.
41474         * lib/symlinkat.c: Likewise.
41475         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41477         * modules/unistd (Makefile.am): Use them.
41478         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41479         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41480         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41481         * MODULES.html.sh (File system functions): Mention module.
41482         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41483         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41484         * modules/symlinkat-tests: New test.
41485         * tests/test-symlinkat.c: Likewise.
41486
41487         test-openat-safer: add more checks
41488         * tests/test-openat-safer.c (main): Check more code paths.
41489
41490 2009-09-05  Jim Meyering  <meyering@redhat.com>
41491
41492         syntax-check: detect unnecessary inclusion of openat.h
41493         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41494
41495 2009-09-05  Bruno Haible  <bruno@clisp.org>
41496
41497         Support towlower, towupper.
41498         * doc/posix-functions/towlower.texi: Mention module wctype.
41499         * doc/posix-functions/towupper.texi: Likewise.
41500         * lib/wctype.in.h (towlower, towupper): New functions.
41501         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41502         (ASSERT): New macro.
41503         (e): New variable.
41504         (main): Test also towlower, towupper. Test WEOF argument.
41505         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41506
41507 2009-09-05  Bruno Haible  <bruno@clisp.org>
41508
41509         Fix conversion behaviour when the input is invalid.
41510         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41511         mark occurring in first pass of indirect conversion.
41512         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41513         input.
41514         Found by clang's static analyzer.
41515
41516 2009-09-05  Bruno Haible  <bruno@clisp.org>
41517
41518         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41519         where direct conversion is possible.
41520
41521 2009-09-04  Eric Blake  <ebb9@byu.net>
41522
41523         openat: fail with ENOENT on empty name
41524         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41525         buffer.
41526
41527         link-follow: fix logic bug in prior patch
41528         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41529         reversed sense of yes and no in prior patch.  Avoid confusing
41530         compilation failure with desired semantics.
41531
41532         link-follow: accomodate mingw and cross-compilation
41533         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41534         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41535         cross-compilation results to -1, to make linkat easier to
41536         implement when cross-compiling.  Trivially support mingw.
41537         * modules/link-follow (configure.ac): Call new name.
41538         * NEWS: Mention this.
41539
41540 2009-09-03  Eric Blake  <ebb9@byu.net>
41541
41542         faccessat: compile replacement
41543         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41544         needed.
41545
41546         fts: fix compilation error
41547         * lib/fts.c (includes): Re-add "openat.h", for
41548         openat_needs_fchdir.
41549
41550         faccessat: new module
41551         * modules/faccessat: New file.
41552         * lib/faccessat.c: Likewise.
41553         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41555         * modules/unistd (Makefile.am): Use it.
41556         * lib/unistd.in.h (faccessat): Declare it.
41557         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41558         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41559         * MODULES.html.sh (File system functions): Mention it.
41560         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41561         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41562
41563         euidaccess: prefer POSIX over non-standard implementation
41564         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41565         * lib/euidaccess.c (euidaccess): Use it if available.
41566
41567         openat: make template easier to use
41568         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41569         AT_FUNC_F2 to be undefined.
41570         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41571         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41572         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41573         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41574         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41575         Likewise.
41576         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41577         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41578         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41579         Likewise.
41580
41581         openat: declare in POSIX headers
41582         * NEWS: Mention this.
41583         * modules/openat (configure.ac): Declare witnesses.
41584         (Depends-on): Add fcntl-h, sys_stat, unistd.
41585         (Include): Mention correct headers.
41586         * modules/fcntl-h (Depends-on): Add link-warning.
41587         (Files): Add openat.m4.
41588         (Makefile.am): Substitute witnesses.
41589         * modules/sys_stat (Files, Makefile.am): Likewise.
41590         * modules/unistd (Files, Makefile.am): Likewise.
41591         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41592         (gl_OPENAT_DEFAULTS): New macro.
41593         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41595         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41596         (SYS_STAT_H): Remove unused variable.
41597         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41598         * lib/fcntl--.h (includes): Remove unneeded header.
41599         * lib/openat-safer.c (includes): Likewise.
41600         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41601         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41602         appropriate headers.
41603         (__OPENAT_PREFIX): Delete.
41604         * lib/fcntl.in.h (openat): Provide declaration.
41605         (AT_FDCWD): Fix Solaris bug.
41606         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41607         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41608         * lib/fchmodat.c (includes):  Adjust to find declaration.
41609         * lib/fchownat.c (includes): Likewise.
41610         * lib/mkdirat.c (includes): Likewise.
41611         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41612         still visible.
41613
41614 2009-09-02  Eric Blake  <ebb9@byu.net>
41615
41616         errno: use consistently
41617         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41618         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41619         * lib/canonicalize.c (ELOOP): Likewise.
41620         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41621         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41622         * lib/lchown.c (EOPNOTSUPP): Likewise.
41623         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41624         * lib/savewd.c (ESTALE): Likewise.
41625         * lib/settime.c (ENOSYS): Likewise.
41626         * lib/utimens.c (ENOSYS): Likewise.
41627         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41628         * lib/chdir-safer.c (ELOOP): Likewise.
41629         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41630         * modules/c-stack (Depends-on): Add errno.
41631         * modules/canonicalize (Depends-on): Likewise.
41632         * modules/chdir-safer (Depends-on): Likewise.
41633         * modules/fdopendir (Depends-on): Likewise.
41634         * modules/inet_ntop (Depends-on): Likewise.
41635         * modules/inet_pton (Depends-on): Likewise.
41636         * modules/lchown (Depends-on): Likewise.
41637         * modules/openat (Depends-on): Likewise.
41638         * modules/savewd (Depends-on): Likewise.
41639         * modules/settime (Depends-on): Likewise.
41640         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41641
41642         fts: avoid leaking fds
41643         * modules/fts (Depends-on): Add cloexec.
41644         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41645         flag.
41646
41647         fts: make directory fds more robust
41648         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41649         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41650
41651         backupfile, chdir-long, fts, savedir: make safer
41652         * lib/backupfile.c (includes): Use "dirent--.h", since
41653         numbered_backup can write to stderr during readdir.
41654         * lib/savedir.c (includes): Likewise.
41655         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41656         emulation can write to stderr on failure.
41657         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41658         * lib/getcwd.c: Document why opendir_safer is unused.
41659         * lib/glob.c: Likewise.
41660         * lib/scandir.c: Likewise.
41661         * lib/openat-proc.c: Likewise, for open_safer.
41662         * modules/backupfile (Depends-on): Add dirent-safer.
41663         * modules/savedir (Depends-on): Likewise.
41664         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41665         * modules/chdir-long (Depends-on): Add openat-safer.
41666
41667         openat-safer: new module
41668         * modules/openat-safer: New file.
41669         * lib/openat-safer.c: Likewise.
41670         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41671         * lib/fcntl-safer.h (openat_safer): Declare.
41672         * lib/fcntl--.h (openat): Override.
41673         * MODULES.html.sh (File descriptor based I/O): Mention it.
41674         * lib/openat.h: Add double-inclusion guards.
41675         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41676         "fcntl--.h", so we can implement openat.
41677         * modules/openat-safer-tests: New test.
41678         * tests/test-openat-safer.c: New file.
41679
41680         dirent-safer: new module
41681         * modules/dirent-safer: New file.
41682         * lib/dirent--.h: Likewise.
41683         * lib/dirent-safer.h: Likewise.
41684         * lib/opendir-safer.c: Likewise.
41685         * m4/dirent-safer.m4: Likewise.
41686         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41687         * modules/dirent-safer-tests: New test.
41688         * tests/test-dirent-safer.c: New file.
41689         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41690
41691         fdopendir: optimize on mingw
41692         * lib/unistd.in.h (_gl_directory_name): New prototype.
41693         * lib/fchdir.c (_gl_directory_name): Implement it.
41694         (fchdir): Use it to simplify implementation.
41695         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41696         fchdir, when available, to avoid calling [f]chdir().
41697
41698         fdopendir: split into its own module
41699         * lib/openat.c (fdopendir): Move...
41700         * lib/fdopendir.c: ...into new file.
41701         * modules/fdopendir: New module.
41702         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41703         * modules/openat (Depends-on): Add fdopendir.
41704         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41705         fdopendir here.
41706         * modules/savedir (Depends-on): Only need fdopendir, not full
41707         openat.
41708         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41709         * lib/openat.h (fdopendir): Drop prototype.
41710         * lib/dirent.in.h (fdopendir): Provide prototype.
41711         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41712         * modules/dirent (Makefile.am): Substitute them.
41713         * MODULES.html.sh (File system functions): Mention it.
41714         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41715         * modules/fdopendir-tests: New file.
41716         * tests/test-fdopendir.c: Likewise.
41717
41718         fchdir: use more consistent macro convention
41719         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41720         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41721         REPLACE_FCHDIR, rather than relying on config.h macros.
41722         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41723         inside a single make-time REPLACE_FCHDIR block, rather than using
41724         the config.h FCHDIR_REPLACEMENT.
41725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41726         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41727         Manage fstat replacement.
41728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41729         REPLACE_FCHDIR.
41730         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41731         (Makefile.am): Substitute REPLACE_FCHDIR.
41732         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41733         FCHDIR_REPLACEMENT.
41734         * lib/dup-safer.c (dup_safer): Likewise.
41735         * lib/dup2.c (rpl_dup2): Likewise.
41736         * lib/dup3.c (rpl_dup3): Likewise.
41737         * lib/open.c (rpl_open): Likewise.
41738
41739         fchdir: simplify error handling, and support dup3
41740         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41741         stdbool, malloc-posix, realloc-posix.
41742         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41743         (ensure_dirs_slot): Return false on allocation failure.
41744         (rpl_dup2): Delete.
41745         (_gl_register_dup): New function.
41746         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41747         (_gl_register_fd): Close fd on allocation failure.
41748         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41749         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41750         prototype.
41751         (rpl_dup2_fchdir): Delete prototype.
41752         * lib/open.c (open): Update caller.
41753         * lib/dup2.c (dup2): Track fchdir metadata.
41754         * lib/dup3.c (dup3): Likewise.
41755         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41757
41758 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41759
41760         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41761         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41762         don't pass arguments to AC_OUTPUT.
41763
41764 2009-09-02  Bruno Haible  <bruno@clisp.org>
41765
41766         * modules/mkdtemp (License): Relicense under LGPLv2+.
41767         Reported by Paolo Bonzini.
41768
41769 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41770
41771         Replace uses of obsolete autoconf macros in Jim's modules.
41772         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41773         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41774         can evoke a warning from autoconf when run with -Wobsolete
41775         enabled.  They were declared obsolete for good reasons (see
41776         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41777         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41778         should not continue using the deprecated macros.
41779         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41780         obsolete Autoconf macros with modern counterparts.
41781         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41782         * m4/dos.m4 (gl_AC_DOS): Likewise.
41783         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41784         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41785         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41786         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41787         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41788         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41789         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41790         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41791         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41792         Likewise.
41793         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41794         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41795         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41796         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41797         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41798         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41799
41800 2009-09-01  Eric Blake  <ebb9@byu.net>
41801
41802         fchdir: fix off-by-one bug in previous patch
41803         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41804         (_gl_unregister_fd): Delete useless if.
41805
41806 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41807
41808         maint.mk: sort the list of syntax-check rules
41809         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41810         easier to get a sense of progress when the rules are run sequentially
41811         and take a long time.
41812
41813 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41814
41815         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41816         * modules/netinet_in: Likewise.
41817         * modules/sys_file: Likewise.
41818         * modules/sys_ioctl: Likewise.
41819         * modules/sys_select: Likewise.
41820         * modules/sys_socket: Likewise.
41821         * modules/sys_stat: Likewise.
41822         * modules/sys_time: Likewise.
41823         * modules/sys_times: Likewise.
41824         * modules/sys_utsname: Likewise.
41825         * modules/sys_wait: Likewise.
41826
41827 2009-09-01  Jim Meyering  <meyering@redhat.com>
41828
41829         fts: help ensure that return values are not ignored
41830         * lib/fts_.h (__GNUC_PREREQ): Define.
41831         (__attribute_warn_unused_result__): Define.
41832         (fts_children, fts_close, fts_open, fts_read): Declare with
41833         __attribute_warn_unused_result__.
41834
41835         fts: fts_close now fails also when closing a dir file descriptor fails
41836         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41837         and propagate to caller, along with errno.
41838
41839         announce-gen: correct formatting in --help output
41840         * build-aux/announce-gen (usage): Move the one-line description in
41841         --help output "up", to where it belongs, just after Usage:.
41842
41843 2009-08-31  Eric Blake  <ebb9@byu.net>
41844
41845         fchdir: port to mingw
41846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41847         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41848         opened, then use a substitute.
41849         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41850         replacement.
41851         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41852         (_gl_register_fd): No need to check stat if open already filters
41853         all directories.
41854         (fchdir): Fix error condition to match POSIX.
41855         * modules/fchdir (Depends-on): Add sys_stat.
41856         * doc/posix-functions/open.texi (open): Document the limitation.
41857         * modules/fchdir-tests: New file.
41858         * tests/test-fchdir.c: Likewise.
41859
41860         canonicalize: allow cross-testing from cygwin to mingw
41861         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41862         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41863         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41864         Likewise.
41865         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41866         target does not support symlinks.
41867         * tests/test-canonicalize-lgpl.sh: Likewise.
41868
41869         chown: avoid compilation warning on mingw
41870         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41871         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41872         mingw.
41873         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41874         * modules/chown (Depends-on): Add errno.
41875
41876 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41877
41878         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41879         command.
41880
41881 2009-08-31  Jim Meyering  <meyering@redhat.com>
41882
41883         canonicalize: remove useless initialization
41884         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41885         initialization of local, "end".
41886
41887 2009-08-30  Bruno Haible  <bruno@clisp.org>
41888
41889         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41890         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41891         ENOSYS.
41892
41893 2009-08-30  Bruno Haible  <bruno@clisp.org>
41894
41895         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41896         /usr/xpg4/bin/tr when it exists.
41897         * tests/test-pipe-filter-gi1.sh: Likewise.
41898
41899 2009-08-30  Bruno Haible  <bruno@clisp.org>
41900
41901         Work around deficient /usr/bin/id program on Solaris.
41902         * tests/test-file-has-acl.sh (ID): New variable.
41903         * tests/test-set-mode-acl.sh (ID): Likewise.
41904         * tests/test-copy-acl.sh (ID): Likewise.
41905         * tests/test-copy-file.sh (ID): Likewise.
41906
41907 2009-08-30  Bruno Haible  <bruno@clisp.org>
41908
41909         New module 'xstriconveh'.
41910         * lib/xstriconveh.h: New file.
41911         * lib/xstriconveh.c: New file.
41912         * modules/xstriconveh: New file.
41913
41914 2009-08-30  Bruno Haible  <bruno@clisp.org>
41915
41916         Make it easier to use mem_cd_iconveh.
41917         * lib/striconveh.h (iconveh_t): New type.
41918         (iconveh_open, iconveh_close): New declarations.
41919         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41920         with a single 'const iconveh_t *' argument.
41921         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41922         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41923         with a single 'const iconveh_t *' argument.
41924         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41925         * tests/test-striconveh.c (main): Update.
41926         * NEWS: Mention the change.
41927
41928 2009-08-30  Bruno Haible  <bruno@clisp.org>
41929
41930         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41931         problem.
41932
41933 2009-08-30  Bruno Haible  <bruno@clisp.org>
41934
41935         Work around iconv_open problem on Solaris.
41936         * lib/iconv_open-solaris.gperf: New file.
41937         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41938         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41939         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41940         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41941         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41942         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41943
41944 2009-08-29  Jim Meyering  <meyering@redhat.com>
41945
41946         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41947         * top/maint.mk (cvs-check): Remove target; it was just an alias
41948         to the better-named vc-diff-check.
41949         (maintainer-distcheck): Remove rule.  It was used only from
41950         the (alpha/beta/major) target, and all of its commands but one
41951         were coreutils-specific.
41952         (vc-dist): Remove rule.
41953         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41954         Run vc-diff-check, not vc-dist.
41955         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41956
41957 2009-08-27  Bruno Haible  <bruno@clisp.org>
41958
41959         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41960         of 0.
41961
41962 2009-08-27  Bruno Haible  <bruno@clisp.org>
41963
41964         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41965         compilers.
41966         * doc/func.texi: Document the SunPRO C bug.
41967
41968 2009-08-27  Bruno Haible  <bruno@clisp.org>
41969
41970         Fix link error on Solaris.
41971         * tests/test-parse-duration.c (xstrdup): Remove function.
41972
41973 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41974
41975         ignore-value: handle pointer types, too
41976         * lib/ignore-value.h (__attribute__): Remove definition.
41977         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41978         of a more concise and more-often effective "(void) i" statement.
41979         (ignore_ptr): New function to suppress warnings from functions that
41980         return pointers, and to make it explicit that one function doesn't
41981         handle all cases.
41982
41983 2009-08-25  Bruno Haible  <bruno@clisp.org>
41984
41985         dup2: work around a Linux bug.
41986         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41987         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41988         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41989         Reported by Simon Josefsson.
41990
41991 2009-08-25  Jim Meyering  <meyering@redhat.com>
41992
41993         libguestfs uses gnulib
41994         * users.txt: Add libguestfs.
41995
41996 2009-08-24  Eric Blake  <ebb9@byu.net>
41997
41998         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41999         * lib/pipe2.c (includes): Add binary-io.h.
42000         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42001
42002 2009-08-24  Bruno Haible  <bruno@clisp.org>
42003
42004         Tolerate declared but missing accept4 syscall.
42005         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42006         available.
42007         * lib/sys_socket.in.h (accept4): If the function is already present,
42008         override it.
42009         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42010         * modules/accept4 (Makefile.am): Compile accept4.c always.
42011         Reported by Paolo Bonzini and Eric Blake.
42012
42013 2009-08-23  Bruno Haible  <bruno@clisp.org>
42014
42015         New module 'accept4'.
42016         * lib/sys_socket.in.h (accept4): New declaration.
42017         * lib/accept4.c: New file.
42018         * m4/accept4.m4: New file.
42019         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42020         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42021         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42022         HAVE_ACCEPT4.
42023         * modules/accept4: New file.
42024         * doc/glibc-functions/accept4.texi: Mention the new module.
42025
42026 2009-08-24  Jim Meyering  <meyering@redhat.com>
42027
42028         progname: also set global program_invocation_name, when possible
42029         Before this change, a libtool-enabled program that calls glibc's
42030         error function would report the program name as
42031         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42032         * modules/progname (configure.ac): Check for a declaration of
42033         program_invocation_name.
42034         * lib/progname.c:  Include <errno.h>.
42035         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42036         Set program_invocation_name.
42037
42038 2009-08-23  Bruno Haible  <bruno@clisp.org>
42039
42040         * lib/dup3.c: Include <string.h>.
42041
42042 2009-08-23  Bruno Haible  <bruno@clisp.org>
42043
42044         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42045         * lib/pipe2.c (pipe2): Likewise.
42046         Suggested by Eric Blake.
42047
42048 2009-08-23  Bruno Haible  <bruno@clisp.org>
42049
42050         Tolerate declared but missing dup3 syscall.
42051         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42052         * lib/unistd.in.h (dup3): If the function is already present,
42053         override it.
42054         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42055         * modules/dup3 (Makefile.am): Compile dup3.c always.
42056         Reported by Paolo Bonzini.
42057
42058 2009-08-23  Bruno Haible  <bruno@clisp.org>
42059
42060         Tolerate declared but missing pipe2 syscall.
42061         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42062         available.
42063         * lib/unistd.in.h (pipe2): If the function is already present,
42064         override it.
42065         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42066         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42067         Reported by Paolo Bonzini.
42068
42069 2009-08-23  Bruno Haible  <bruno@clisp.org>
42070
42071         * lib/pipe2.c (pipe2): Move #ifs inside function.
42072
42073 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42074
42075         quotearg: document limitations of quote_these_too
42076         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42077         those limitations are created.
42078         * lib/quotearg.h (set_char_quoting): Document that digits and
42079         letters that are special after backslash are not permitted.
42080         (quotearg_char): Cross-reference set_char_quoting documentation.
42081
42082 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42083
42084         quotearg: implement custom_quoting_style
42085         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42086         right_quote fields.
42087         (set_custom_quoting): New public function.
42088         (quotearg_buffer_restyled): Add left_quote and right_quote
42089         arguments, handle them very much like locale quoting, and update
42090         all uses.
42091         (quotearg_n_custom): New public function.
42092         (quotearg_n_custom_mem): New public function.
42093         (quotearg_custom): New public function.
42094         (quotearg_custom_mem): New public function.
42095         * lib/quotearg.h: Prototype and document new public functions.
42096         (enum quoting_style): For escape_quoting_style and
42097         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42098         ignored even though they're otherwise like c_quoting_style.
42099         Add custom_quoting_style member and document with comparison to
42100         clocale_quoting_style.
42101         * tests/test-quotearg.c (custom_quotes): New array.
42102         (custom_results): New array.
42103         (main): Extend to test custom quoting.
42104
42105 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42106
42107         quotearg: fix right quote escaping when it's in quote_these_too
42108         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42109         quote, be sure to prepend only one backslash.
42110         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42111         (main): Test it.
42112
42113 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42114
42115         quotearg-tests: test escaping of embedded locale quotes
42116         * tests/test-quotearg.c (struct result_strings): Add member for
42117         new input.
42118         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42119         (inputs): Add new input.
42120         (results_g): Add expected results.
42121         (flag_results): Likewise.
42122         (locale_results): Likewise.
42123         (compare_strings): Check those.
42124
42125 2009-08-23  Bruno Haible  <bruno@clisp.org>
42126
42127         Tests for module 'dup3'.
42128         * modules/dup3-tests: New file.
42129         * tests/test-dup3.c: New file.
42130
42131         New module 'dup3'.
42132         * lib/unistd.in.h (dup3): New declaration.
42133         * lib/dup3.c: New file.
42134         * m4/dup3.m4: New file.
42135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42136         HAVE_DUP3.
42137         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42138         * modules/dup3: New file.
42139         * doc/glibc-functions/dup3.texi: Mention the new module.
42140
42141 2009-08-23  Bruno Haible  <bruno@clisp.org>
42142
42143         Tweak the dup2 test.
42144         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42145         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42146         the test file is still empty. Fix argument order of lseek.
42147
42148 2009-08-23  Bruno Haible  <bruno@clisp.org>
42149
42150         Avoid test link errors when the modules getopt-gnu, gettext are used.
42151         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42152         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42153
42154 2009-08-23  Bruno Haible  <bruno@clisp.org>
42155
42156         Fix getdtablesize() on mingw.
42157         * lib/getdtablesize.c (getdtablesize): Implement differently.
42158         * lib/unistd.in.h (getdtablesize): Improve comment.
42159
42160 2009-08-23  Bruno Haible  <bruno@clisp.org>
42161
42162         New module 'mkostemp'.
42163         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42164         * lib/stdlib.in.h (mksotemp): New declaration.
42165         * lib/mkostemp.c: New file, from glibc with modifications.
42166         * lib/tempname.h (GT_FILE): Remove outdated comment.
42167         (gen_tempname): Add flags argument.
42168         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42169         (__GT_FILE): Map to 1.
42170         (small_open, large_open): Remove macros.
42171         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42172         * lib/mkstemp.c (mkstemp): Update.
42173         * lib/mkdtemp.c (mkdtemp): Likewise.
42174         * m4/mkostemp.m4: New file.
42175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42176         HAVE_MKOSTEMP.
42177         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42178         HAVE_MKOSTEMP.
42179         * modules/mkostemp: New file, based on modules/mkstemp.
42180         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42181         * NEWS: Mention the change.
42182
42183 2009-08-23  Bruno Haible  <bruno@clisp.org>
42184
42185         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42186         Reported by Eric Blake.
42187
42188 2009-08-23  Bruno Haible  <bruno@clisp.org>
42189
42190         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42191         Reported by Eric Blake.
42192
42193 2009-08-23  Bruno Haible  <bruno@clisp.org>
42194
42195         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42196         * modules/pipe2 (Depends-on): Likewise.
42197
42198 2009-08-23  Eric Blake  <ebb9@byu.net>
42199
42200         fcntl-h: add O_TTY_INIT support
42201         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42202         * tests/test-fcntl-h.c (o): Test it.
42203         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42204
42205         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42206         * modules/fcntl: Move <fcntl.h> header replacement...
42207         * modules/fcntl-h: ...to new name, so as not to collide with
42208         like-named function.
42209         * tests/test-fcntl.c: Rename...
42210         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42211         * modules/fcntl-tests: Rename...
42212         * modules/fcntl-h-tests: ...to this.  Update test file name.
42213         * modules/chdir-long (Depends-on): Update clients.
42214         * modules/chdir-safer (Depends-on): Likewise.
42215         * modules/fcntl-safer (Depends-on): Likewise.
42216         * modules/fts (Depends-on): Likewise.
42217         * modules/mkancesdirs (Depends-on): Likewise.
42218         * modules/mkdir-p (Depends-on): Likewise.
42219         * modules/open (Depends-on): Likewise.
42220         * modules/savewd (Depends-on): Likewise.
42221         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42222         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42223
42224 2009-08-22  Bruno Haible  <bruno@clisp.org>
42225
42226         * modules/binary-io (License): Relicense under LGPL.
42227         * modules/pipe2 (License): Likewise.
42228
42229 2009-08-22  Bruno Haible  <bruno@clisp.org>
42230
42231         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42232         return value.
42233         * lib/pipe-filter-gi.c (filter_init): Likewise.
42234         Reported by Eric Blake.
42235
42236 2009-08-22  Bruno Haible  <bruno@clisp.org>
42237
42238         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42239         * modules/pipe (Depends-on): Add pipe2.
42240
42241 2009-08-22  Bruno Haible  <bruno@clisp.org>
42242
42243         Tests for module 'pipe2'.
42244         * modules/pipe2-tests: New file.
42245         * tests/test-pipe2.c: New file.
42246
42247         New module 'pipe2'.
42248         * lib/unistd.in.h (pipe2): New declaration.
42249         * lib/pipe2.c: New file.
42250         * m4/pipe2.m4: New file.
42251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42252         HAVE_PIPE2.
42253         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42254         * modules/pipe2: New file.
42255         * doc/glibc-functions/pipe2.texi: Mention the new module.
42256
42257 2009-08-22  Bruno Haible  <bruno@clisp.org>
42258
42259         Reference some new glibc functions.
42260         * doc/glibc-functions/accept4.texi: New file.
42261         * doc/glibc-functions/dup3.texi: New file.
42262         * doc/glibc-functions/mkostemp.texi: New file.
42263         * doc/glibc-functions/pipe2.texi: New file.
42264         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42265         (Glibc sys/socket.h): Refer to accept4.
42266         (Glibc unistd.h): Refer to dup3, pipe2.
42267         Reported by Eric Blake.
42268
42269 2009-08-22  Jim Meyering  <meyering@redhat.com>
42270             Bruno Haible  <bruno@clisp.org>
42271
42272         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42273         This makes it so packages using automake-1.11's silent-rules option
42274         can print e.g., a single "GEN    configmake.h" line, rather than
42275         the 30+ statements that perform the job.  If you want to see the
42276         actual commands, you can still run "make V=1".
42277         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42278         so that make output is abbreviated when those variables are defined
42279         appropriately.
42280         * modules/argz: Likewise.
42281         * modules/arpa_inet: Likewise.
42282         * modules/byteswap: Likewise.
42283         * modules/configmake: Likewise.
42284         * modules/dirent: Likewise.
42285         * modules/errno: Likewise.
42286         * modules/fcntl: Likewise.
42287         * modules/float: Likewise.
42288         * modules/fnmatch: Likewise.
42289         * modules/getopt-posix: Likewise.
42290         * modules/glob: Likewise.
42291         * modules/iconv_open: Likewise.
42292         * modules/inttypes: Likewise.
42293         * modules/localcharset: Likewise.
42294         * modules/locale: Likewise.
42295         * modules/math: Likewise.
42296         * modules/netdb: Likewise.
42297         * modules/netinet_in: Likewise.
42298         * modules/poll: Likewise.
42299         * modules/posix_spawnp-tests: Likewise.
42300         * modules/sched: Likewise.
42301         * modules/search: Likewise.
42302         * modules/selinux-h: Likewise.
42303         * modules/signal: Likewise.
42304         * modules/spawn: Likewise.
42305         * modules/stdarg: Likewise.
42306         * modules/stdbool: Likewise.
42307         * modules/stddef: Likewise.
42308         * modules/stdint: Likewise.
42309         * modules/stdio: Likewise.
42310         * modules/stdlib: Likewise.
42311         * modules/string: Likewise.
42312         * modules/strings: Likewise.
42313         * modules/sys_file: Likewise.
42314         * modules/sys_ioctl: Likewise.
42315         * modules/sys_select: Likewise.
42316         * modules/sys_socket: Likewise.
42317         * modules/sys_stat: Likewise.
42318         * modules/sys_time: Likewise.
42319         * modules/sys_times: Likewise.
42320         * modules/sys_utsname: Likewise.
42321         * modules/sys_wait: Likewise.
42322         * modules/sysexits: Likewise.
42323         * modules/time: Likewise.
42324         * modules/unistd: Likewise.
42325         * modules/wchar: Likewise.
42326         * modules/wctype: Likewise.
42327
42328 2009-08-22  Jim Meyering  <meyering@redhat.com>
42329
42330         announce-gen: detect write failure
42331         * build-aux/announce-gen: Add Coda at end.
42332         Remove equivalent-but-more-verbose block at top.
42333
42334 2009-08-19  Akim Demaille  <demaille@gostai.com>
42335
42336         bootstrap: --help to stdout.
42337         * bootstrap (usage): Don't send --help to stderr.
42338         Use a here doc instead of a long string.
42339
42340 2009-08-21  Eric Blake  <ebb9@byu.net>
42341
42342         test-popen-safer: split from test-popen
42343         * tests/test-popen.c (main): Move...
42344         * tests/test-popen.h: ...into new file.
42345         * tests/test-popen-safer2.c: New file.
42346         * modules/popen-tests (Files): Add test-popen.h.
42347         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42348         Suggested by Bruno Haible.
42349
42350         test-fcntl-safer: split from test-open
42351         * tests/test-open.c (main): Move...
42352         * tests/test-open.h: ...into new file.
42353         * tests/test-fcntl-safer.c: New file.
42354         * modules/open-tests (Files): Add test-open.h.
42355         * modules/fcntl-safer-tests: New file.
42356         Suggested by Bruno Haible.
42357
42358         test-fopen-safer: split from test-fopen
42359         * tests/test-fopen.c (main): Move...
42360         * tests/test-fopen.h: ...into new file.
42361         * tests/test-fopen-safer.c: New file.
42362         * modules/fopen-tests (Files): Add test-fopen.h.
42363         * modules/fopen-safer-tests: New file.
42364         Suggested by Bruno Haible.
42365
42366 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42367
42368         popen-safer: test O_CLOEXEC at run-time.
42369         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42370
42371 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42372
42373         fcntl: move more flags to the header
42374         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42375         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42376         * lib/fcntl.in.h: Do both things here.
42377
42378 2009-08-21  Jim Meyering  <meyering@redhat.com>
42379
42380         consistently remove $@-t before redirecting to it
42381         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42382         * modules/alloca-opt: Likewise.
42383         * modules/byteswap: Likewise.
42384         * modules/fnmatch: Likewise.
42385         * modules/getopt-posix: Likewise.
42386         * modules/glob: Likewise.
42387         * modules/poll: Likewise.
42388         * modules/posix_spawnp-tests: Likewise.
42389         * modules/sys_socket: Likewise.
42390         * modules/sysexits: Likewise.
42391
42392 2009-08-21  Eric Blake  <ebb9@byu.net>
42393
42394         popen: simplify access to original popen
42395         * lib/popen.c (rpl_popen): No need to worry about popen being a
42396         macro.
42397         Reported by Bruno Haible.
42398
42399 2009-08-20  Eric Blake  <ebb9@byu.net>
42400
42401         build: avoid some compiler warnings
42402         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42403         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42404         type.
42405         (new_exclude_segment, excluded_file_pattern_p)
42406         (excluded_file_name_p): Reduce scope.
42407         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42408         old-style declaration.
42409
42410 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42411
42412         * tests/test-exclude1.sh: Handle Windows EOL.
42413         * tests/test-exclude2.sh: Likewise.
42414         * tests/test-exclude3.sh: Likewise.
42415         * tests/test-exclude4.sh: Likewise.
42416         * tests/test-exclude5.sh: Likewise.
42417         * tests/test-exclude6.sh: Likewise.
42418         * tests/test-exclude7.sh: Likewise.
42419
42420 2009-08-19  Akim Demaille  <demaille@gostai.com>
42421
42422         bootstrap: find sha1sum when named gsha1sum.
42423         * bootstrap (find_tool): New.
42424         ($SHA1SUM): New.
42425         Use it.
42426
42427 2009-08-20  Jim Meyering  <meyering@redhat.com>
42428
42429         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42430         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42431         expression that converts "." in a file name to "\." in the resulting
42432         regexp.  Start with a dummy statement, so that prior shell variable
42433         definitions are expanded portably.  Reported by Simon Josefsson.
42434
42435 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42436
42437         Fix polling for writeability of a screen buffer.
42438         * lib/poll.c: Distinguish input and screen buffers for the
42439         Win32 implementation.
42440         * lib/select.c: Likewise.
42441
42442 2009-08-19  Eric Blake  <ebb9@byu.net>
42443
42444         popen-safer: prevent popen from clobbering std descriptors
42445         * modules/popen-safer: New file.
42446         * lib/popen-safer.c: Likewise.
42447         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42448         * lib/stdio--.h (popen): Provide override.
42449         * lib/stdio-safer.h (popen_safer): Provide declaration.
42450         * tests/test-popen.c (includes): Partially test this.
42451         * modules/popen-safer-tests: New file, for more tests.
42452         * tests/test-popen-safer.c: Likewise.
42453         * MODULES.html.sh (file stream based Input/Output): Mention it.
42454
42455         tests: test some of the *-safer modules
42456         * modules/fopen-safer (Depends-on): Add fopen.
42457         * modules/fcntl-safer (Depends-on): Add fcntl.
42458         * modules/stdlib-safer (Depends-on): Add stdlib.
42459         (configure.ac): Set indicator.
42460         * modules/unistd-safer (configure.ac): Likewise.
42461         * modules/tmpfile-safer (configure.ac): Likewise.
42462         (Depends-on): Add tmpfile.
42463         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42464         active.
42465         * tests/test-fopen.c (includes): Test safer versions when they are
42466         in use.
42467         * tests/test-open.c (includes): Likewise.
42468
42469         popen: fix cygwin 1.5 bug when stdin closed
42470         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42471         * modules/popen: New file.
42472         * modules/popen-tests: Likewise.
42473         * tests/test-popen.c: Likewise.
42474         * m4/popen.m4: Likewise.
42475         * lib/popen.c: Likewise.
42476         * lib/stdio.in.h (popen): New declaration.
42477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42478         * modules/stdio (Makefile.am): Likewise.
42479         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42480
42481 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42482
42483         maint.mk: give full control over update-copyright exclusions
42484         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42485         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42486         (update-copyright): Don't force inclusion of top-level
42487         ChangeLog.  Don't force exclusion of all COPYING files, but make
42488         them the default exclusion instead.
42489
42490 2009-08-16  Bruno Haible  <bruno@clisp.org>
42491
42492         Fix test failures on Solaris 10.
42493         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42494         tests when Solaris iconv() is used.
42495         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42496         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42497         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42498         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42499         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42500
42501 2009-08-16  Bruno Haible  <bruno@clisp.org>
42502
42503         Fix test failures on Solaris 10.
42504         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42505         'tr' program and pass it as first argument.
42506         * tests/test-pipe-filter-gi1.sh: Likewise.
42507         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42508         program as first argument.
42509         * tests/test-pipe-filter-gi1.c (main): Likewise.
42510
42511 2009-08-16  Eric Blake  <ebb9@byu.net>
42512
42513         fpurge: fix previous commits
42514         * modules/fpurge (Makefile.am): Make replacement conditional,
42515         partially reverting 2007-04-29 change; missed in previous
42516         attempt.
42517         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42518         is missing.
42519
42520 2009-08-16  Bruno Haible  <bruno@clisp.org>
42521
42522         Clarify fpurge's effect on the file position.
42523         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42524         * tests/test-fpurge.c (main): Make a second pass for checking the file
42525         position.
42526
42527 2009-08-16  Bruno Haible  <bruno@clisp.org>
42528
42529         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42530         declaration of fpurge is missing.
42531         * tests/test-fpurge.c (main): Check that the file has not more contents
42532         than expected. Close the file before removing it.
42533
42534 2009-08-15  Eric Blake  <ebb9@byu.net>
42535
42536         fpurge: don't wrap working cygwin implementation
42537         * lib/fpurge.c (fpurge): Fix comment typo.
42538         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42539         1.7 to avoid replacement.
42540         * tests/test-fpurge.c (main): Enhance test.
42541
42542 2009-08-15  Eric Blake  <ebb9@byu.net>
42543         and Jim Meyering  <meyering@redhat.com>
42544
42545         test-update-copyright: skip if perl is insufficient
42546         * tests/test-update-copyright.sh: Failure to run maintainer tool
42547         should not cause testsuite failure on cygwin 1.5.
42548
42549 2009-08-14  Eric Blake  <ebb9@byu.net>
42550
42551         doc: mention more functions added in cygwin 1.7.0
42552         * doc/posix-headers/limits.texi (limits.h): Update for recent
42553         cygwin additions.
42554         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42555         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42556         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42557         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42558         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42559
42560 2009-08-14  Eric Blake  <ebb9@byu.net>
42561
42562         maint.mk: simplify update-copyright rule
42563         * top/maint.mk (update-copyright-local): Delete, and document how
42564         to do it in cfg.mk instead.
42565         (update-copyright-exclude-regexp): Delete, and document how to do
42566         it in .x-update-copyright instead.
42567         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42568         exclude ChangeLog.
42569
42570 2009-08-14  Bruno Haible  <bruno@clisp.org>
42571
42572         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42573
42574 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42575
42576         maint.mk: support update-copyright-env
42577         * top/maint.mk (update-copyright-env): Define place-holder.
42578         (update-copyright): Expand $(update-copyright-env) before
42579         invoking update-copyright.
42580
42581 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42582
42583         update-copyright: implement forced reformatting
42584         * build-aux/update-copyright: Implement and document
42585         UPDATE_COPYRIGHT_FORCE.
42586         * tests/test-update-copyright.sh: Test it.
42587
42588 2009-08-14  Eric Blake  <ebb9@byu.net>
42589         and Bruno Haible  <bruno@clisp.org>
42590
42591         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42592         * tests/test-locale.c: Revert previous patch related to NULL.
42593         * tests/test-stdio.c: Likewise.
42594         * tests/test-stdlib.c: Likewise.
42595         * tests/test-string.c: Likewise.
42596         * tests/test-unistd.c: Likewise.
42597         * modules/time-tests (Depends-on): Add verify.
42598         * modules/wchar-tests (Depends-on): Likewise.
42599         * tests/test-time.c: Test for NULL compliance.
42600         * tests/test-wchar.c: Likewise.
42601         * modules/locale (Depends-on): Add stddef.
42602         * modules/stdio (Depends-on): Likewise.
42603         * modules/stdlib (Depends-on): Likewise.
42604         * modules/string (Depends-on): Likewise.
42605         * modules/time (Depends-on): Likewise.
42606         * modules/unistd (Depends-on): Likewise.
42607         * modules/wchar (Depends-on): Likewise.
42608         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42609         * lib/stdlib.in.h (includes): Likewise.
42610         * lib/string.in.h (includes): Likewise.
42611         * lib/time.in.h (includes): Likewise.
42612         * lib/unistd.in.h (includes): Likewise.
42613         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42614         replaced.
42615         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42616         * m4/stddef_h.m4: New file.
42617         * modules/stddef: Likewise.
42618         * lib/stddef.in.h: Likewise.
42619         * modules/stddef-tests: Likewise.
42620         * tests/test-stddef.c: Likewise.
42621         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42622         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42623         * doc/posix-headers/locale.texi (locale.h): Likewise.
42624         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42625         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42626         * doc/posix-headers/string.texi (string.h): Likewise.
42627         * doc/posix-headers/time.texi (time.h): Likewise.
42628         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42629         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42630
42631 2009-08-14  Eric Blake  <ebb9@byu.net>
42632
42633         doc: improve git diff of texinfo files
42634         * .gitattributes: Add rule for *.texi files, with hint on how to
42635         use it.
42636         Copied from m4, and based on a report by Bruno Haible.
42637
42638 2009-08-14  Bruno Haible  <bruno@clisp.org>
42639
42640         Disable multithread support by default on Cygwin 1.5.x for real.
42641         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42642
42643 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42644
42645         update-copyright: much ado about intervals
42646         * build-aux/update-copyright: Implement and document
42647         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42648         of copyright year intervals.
42649         Also, document UPDATE_COPYRIGHT_YEAR.
42650         * tests/test-update-copyright.sh: Test it.
42651
42652         update-copyright: convert 2-digit to 4-digit years
42653         * build-aux/update-copyright: Implement and document.
42654         * tests/test-update-copyright.sh: Update.
42655
42656 2009-08-14  Jim Meyering  <meyering@redhat.com>
42657
42658         test-exclude: avoid coreutils "make check" failure
42659         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42660         just as in test-argmatch.c.
42661
42662 2009-08-13  Eric Blake  <ebb9@byu.net>
42663
42664         test-dup2: fix bad assumption
42665         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42666         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42667
42668         test-version-etc: fix CRLF portability issue
42669         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42670         recognize \r.
42671         * tests/test-argp-version-etc-1.sh: Likewise.
42672
42673         getopt: update client modules
42674         * modules/argp (Depends-on): Use getopt-gnu.
42675         * modules/git-merge-changelog (Depends-on): Likewise.
42676         * modules/long-options (Depends-on): Likewise.
42677         * modules/xstrtol (Depends-on): Likewise.
42678
42679 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42680
42681         * tests/test-version-etc.sh: Don't fail on different
42682         project/version.  Don't fail on CRLF differences.  Rewrite to use
42683         multiple -e instead of multiple sed forks, suggested by Eric Blake
42684         <ebb9@byu.net>.
42685         * tests/test-argp-version-etc-1.sh: Likewise.
42686
42687 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42688
42689         * tests/test-version-etc.sh: Don't fail on different
42690         project/version.
42691
42692 2009-08-12  Bruno Haible  <bruno@clisp.org>
42693
42694         Tests for modules 'getopt-posix', 'getopt-gnu'.
42695         * modules/getopt-posix-tests: New file.
42696         * tests/test-getopt.c: New file.
42697         * tests/test-getopt.h: New file.
42698         * tests/test-getopt_long.h: New file.
42699
42700         New modules 'getopt-posix', 'getopt-gnu'.
42701         * modules/getopt-gnu: New file, renamed from modules/getopt.
42702         * modules/getopt-posix: New file.
42703         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42704         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42705         (gl_GETOPT): Remove macro.
42706         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42707         Disable the test against BSD systems that declare optreset. Test
42708         against mingw bug. Test against lack of support of optional arguments
42709         on many platforms.
42710         * doc/glibc-headers/getopt.texi: Update module name and list of
42711         relevant platforms.
42712         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42713         'getopt-gnu' and more portability problems.
42714         * NEWS: Mention the changes.
42715
42716 2009-08-12  Bruno Haible  <bruno@clisp.org>
42717
42718         Ensure that optarg etc. get declared by <unistd.h>.
42719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42720         AC_USE_SYSTEM_EXTENSIONS.
42721         * modules/getopt (Depends-on): Add 'extensions'.
42722
42723 2009-08-12  Bruno Haible  <bruno@clisp.org>
42724
42725         Avoid test link errors.
42726         * modules/pipe-filter-ii-tests (Makefile.am): Define
42727         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42728         * modules/pipe-filter-gi-tests (Makefile.am): Define
42729         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42731
42732 2009-08-12  Bruno Haible  <bruno@clisp.org>
42733
42734         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42735         gl_GETOPT_SUBSTITUTE before.
42736         (gl_GETOPT): Use it.
42737         * m4/argp.m4 (gl_ARGP): Update.
42738         Reported by Sergey Poznyakoff.
42739
42740         * m4/getopt.m4: Reorder macros.
42741         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42742         (gl_GETOPT_SUBSTITUTE): Remove macro.
42743
42744 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42745
42746         Minor improvement in gitlog-to-changelog
42747
42748         * build-aux/gitlog-to-changelog: New option `--format' makes
42749         output format string configurable.
42750
42751 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42752
42753         Optimize exclude: use hash tables for non-wildcard patterns.
42754
42755         * lib/exclude.c: Include hash.h and mbuiter.h
42756         (struct exclude_pattern, exclude_segment): New data types.
42757         (struct exclude): Rewrite.
42758         (fnmatch_pattern_has_wildcards): New function.
42759         (new_exclude_segment, free_exclude_segment): New functions.
42760         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42761         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42762         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42763         * modules/exclude: Depend on hash and mbuiter.
42764
42765         * modules/exclude-tests: New file.
42766         * tests/test-exclude.c: New file.
42767         * tests/test-exclude1.sh: New file.
42768         * tests/test-exclude2.sh: New file.
42769         * tests/test-exclude3.sh: New file.
42770         * tests/test-exclude4.sh: New file.
42771         * tests/test-exclude5.sh: New file.
42772         * tests/test-exclude6.sh: New file.
42773         * tests/test-exclude7.sh: New file.
42774
42775 2009-08-12  Bruno Haible  <bruno@clisp.org>
42776
42777         Ensure that getopt() gets declared by <unistd.h>.
42778         * lib/unistd.in.h: Conditionally include getopt.h.
42779         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42780         Set GNULIB_UNISTD_H_GETOPT.
42781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42782         GNULIB_UNISTD_H_GETOPT.
42783         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42784
42785 2009-08-12  Bruno Haible  <bruno@clisp.org>
42786
42787         Clarify logic.
42788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42789         gl_replace_getopt instead of GETOPT_H.
42790
42791 2009-08-12  Bruno Haible  <bruno@clisp.org>
42792
42793         * m4/getopt.m4: Add comments.
42794
42795 2009-08-12  Bruno Haible  <bruno@clisp.org>
42796
42797         Disable multithread support by default on Cygwin 1.5.x.
42798         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42799         set gl_use_threads=no if not specified otherwise.
42800
42801 2009-08-11  Bruno Haible  <bruno@clisp.org>
42802
42803         Avoid compilation error on NetBSD 5.0.
42804         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42805         * tests/test-stdio.c: Likewise.
42806         * tests/test-stdlib.c: Likewise.
42807         * tests/test-string.c: Likewise.
42808         * tests/test-unistd.c: Likewise.
42809         Reported by Greg Troxel <gdt@ir.bbn.com>
42810         at <https://savannah.gnu.org/support/?106973>.
42811
42812 2009-08-11  Bruno Haible  <bruno@clisp.org>
42813
42814         * modules/dup2-tests (Depends-on): Remove close.
42815
42816         Undo 2009-07-19 commit.
42817         * modules/acl-tests (Depends-on): Remove close.
42818         * modules/binary-io-tests (Depends-on): Likewise.
42819         * modules/closein-tests (Depends-on): Likewise.
42820         * modules/flock-tests (Depends-on): Likewise.
42821         * modules/fsync-tests (Depends-on): Likewise.
42822         * modules/lseek-tests (Depends-on): Likewise.
42823         * modules/pipe-tests (Depends-on): Likewise.
42824         * modules/posix_spawn-tests (Depends-on): Likewise.
42825         * modules/posix_spawnp-tests (Depends-on): Likewise.
42826         * modules/stat-time-tests (Depends-on): Likewise.
42827         * modules/yesno-tests (Depends-on): Likewise.
42828
42829 2009-08-10  Bruno Haible  <bruno@clisp.org>
42830
42831         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42832
42833 2009-08-10  Bruno Haible  <bruno@clisp.org>
42834
42835         Fix a gcc warning.
42836         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42837
42838 2009-08-10  Bruno Haible  <bruno@clisp.org>
42839
42840         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42841         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42842         not only the first time.
42843         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42844         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42845         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42846         is 1, not only the the first time.
42847
42848 2009-08-10  Bruno Haible  <bruno@clisp.org>
42849
42850         Make it possible to use module 'gethostname' without module 'close'.
42851         * lib/unistd.in.h (close): Evoke a link error only if
42852         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42854         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42855         * modules/unistd (Makefile.am): Substitute
42856         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42857         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42858         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42859         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42860         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42861         * modules/sys_ioctl (Makefile.am): Substitute
42862         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42863         * modules/socket (configure.ac): On native Windows, set
42864         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42865         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42866         Reported by Sam Steingold <sds@gnu.org>.
42867
42868 2009-08-10  Bruno Haible  <bruno@clisp.org>
42869
42870         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42871         * modules/ioctl (configure.ac): Likewise.
42872
42873 2009-08-10  Bruno Haible  <bruno@clisp.org>
42874
42875         Avoid collision between gnulib wrapper and libintl wrapper.
42876         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42877         already defined in intl/printf.c.
42878         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42879         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42880
42881 2009-08-09  Bruno Haible  <bruno@clisp.org>
42882
42883         Make <sys/select.h> really self-contained, also on Solaris 10.
42884         * lib/sys_select.in.h: Include <string.h>.
42885         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42886         Solaris 10 problem.
42887         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42888         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42889         Reported by Jim Meyering.
42890
42891 2009-08-09  Bruno Haible  <bruno@clisp.org>
42892
42893         Avoid warnings from 'aclocal' that are due to a use of macro name
42894         AM_XGETTEXT_OPTION that is not defined in automake.
42895         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42896         automake.
42897         * modules/error (configure.ac): Likewise.
42898         * modules/propername (configure.ac): Likewise.
42899         * modules/vasprintf (configure.ac): Likewise.
42900         * modules/verror (configure.ac): Likewise.
42901         * modules/xprintf (configure.ac): Likewise.
42902         * modules/xvasprintf (configure.ac): Likewise.
42903
42904 2009-08-08  Bruno Haible  <bruno@clisp.org>
42905
42906         Avoid compilation error in C++ mode.
42907         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42908         Reported by Sam Steingold <sds@gnu.org>.
42909
42910 2009-08-08  Bruno Haible  <bruno@clisp.org>
42911
42912         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42913         for the various Unix platforms.
42914         * doc/posix-headers/limits.texi: Update platforms list regarding
42915         HOST_NAME_MAX.
42916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42917
42918 2009-08-07  Jim Meyering  <meyering@redhat.com>
42919
42920         selinux-at: fix typo in a comment
42921         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42922         Spotted by Paolo Bonzini.
42923
42924         selinux-at: remove redundant m4 code, add documentation
42925         * modules/selinux-at (configure.ac): Remove redundant code.
42926         LIB_SELINUX is already set via the dependent module, selinux-h.
42927         (Include): Add quotes around selinux-at.h.
42928         * lib/selinux-at.h: Add documentation.
42929         Reported by Bruno Haible in
42930         http://marc.info/?l=gnulib-bug&m=124958988300749
42931
42932 2009-08-07  Bruno Haible  <bruno@clisp.org>
42933
42934         Avoid link error on MacOS X 10.3 and 10.4.
42935         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42936         on non-ELF systems.
42937         * lib/argp-pv.c (argp_program_version): Likewise.
42938         Reported by Simon Josefsson.
42939
42940 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42941
42942         * tests/test-version-etc.sh: Use $EXEEXT.
42943
42944 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42945
42946         update-copyright: update documentation to point to maint.mk
42947         * build-aux/update-copyright: Here.
42948
42949 2009-08-06  Jim Meyering  <meyering@redhat.com>
42950
42951         maint.mk: support update-copyright-local
42952         * top/maint.mk (update-copyright-local): Define place-holder.
42953         (update-copyright): Depend on $(update-copyright-local).
42954
42955 2009-08-06  Jim Meyering  <meyering@redhat.com>
42956
42957         selinux-at: new module
42958         Initially written for coreutils, this module will soon be
42959         used by findutils, too.
42960         * MODULES.html.sh [Misc]: Add selinux-at.
42961         * lib/selinux-at.h: New file, from coreutils.
42962         * lib/selinux-at.c: Likewise.
42963         * modules/selinux-at: Likewise.
42964         (License): Change from LGPL to GPL, since it depends
42965         on the GPL'd openat module.
42966
42967         doc: update README
42968         * README: Remove references to cogito.
42969         Remove cvs-repo-updating instructions from 2007.
42970         Don't imply that CVS is better if you have limited disk space.
42971
42972 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42973
42974         update-copyright: support C-style comments
42975         * build-aux/update-copyright: Implement and document.
42976         * tests/test-update-copyright.sh: Test.
42977
42978 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42979
42980         update-copyright: support omitted "(C)"
42981         * build-aux/update-copyright: Implement and document.  Also,
42982         allow variable whitespace before "(C)".
42983         * tests/test-update-copyright.sh: Test.
42984
42985 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42986
42987         update-copyright: don't trip on non-FSF copyright statements
42988         * build-aux/update-copyright: Fix so that the first correctly
42989         formatted FSF copyright statement is recognized no matter what
42990         appears before it.  Update documentation.
42991         * tests/test-update-copyright.sh: Test that.
42992
42993 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42994
42995         update-copyright: clean up code a little
42996         * build-aux/update-copyright: Append "_re" to the name of any
42997         variable holding a regular expression.
42998         Replace "old" and "new" with "stmt" in variable names.
42999         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43000         handled correctly.
43001         Format code more consistently.
43002
43003 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43004
43005         update-copyright-tests: improve portability
43006         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43007         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43008
43009 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43010
43011         update-copyright: support @copyright{} and &copy;
43012         * build-aux/update-copyright: Implement and document.
43013         * tests/test-update-copyright.sh: Test.
43014
43015 2009-08-04  Jim Meyering  <meyering@redhat.com>
43016
43017         update-copyright-tests: correctly test EOL=\r\n handling
43018         * tests/test-update-copyright.sh: Put \r at the end of some lines
43019         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43020
43021         maint.mk: make update-copyright exclusion list more configurable
43022         * top/maint.mk (update-copyright): Default to excluding COPYING,
43023         but allow an override, in case someone does want to update that file.
43024
43025         maint.mk: don't update copyright date in COPYING
43026         * top/maint.mk (update-copyright): Exclude COPYING.
43027
43028         maint.mk: add a copyright-updating rule
43029         * top/maint.mk (update-copyright): New rule.
43030         Derived from coreutils/Makefile.am.
43031
43032         update-copyright: rename some variables
43033         * build-aux/update-copyright: Rename a few variables for clarity.
43034         Tweak syntax.  List Joel E. Denny as coauthor.
43035
43036 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43037
43038         update-copyright: fix bug for 2-digit last year and add tests
43039         * build-aux/update-copyright: Fix bug.
43040         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43041         specified.
43042         * modules/update-copyright-tests: New
43043         * tests/test-update-copyright.sh: New.
43044
43045 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43046
43047         update-copyright: handle leading tabs in line prefix
43048         * build-aux/update-copyright: Count leading tabs as 8 spaces
43049         when computing margin.  This helps with the formatting of
43050         ChangeLogs, for example.
43051         Fix documentation a little.
43052
43053 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43054
43055         update-copyright: support EOL=\r\n
43056         * build-aux/update-copyright: Implement that.
43057
43058 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43059
43060         update-copyright: automatically format copyright statements
43061         * build-aux/update-copyright: Implement that.
43062         Also, be a little more predictable and safer by always failing
43063         when the full copyright format is not perfectly recognized as an
43064         unbroken whole.  Discussed at
43065         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43066         Rewrite documentation.
43067
43068 2009-08-03  Bruno Haible  <bruno@clisp.org>
43069
43070         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43071
43072 2009-08-02  Bruno Haible  <bruno@clisp.org>
43073
43074         Tests for module 'uname'.
43075         * modules/uname-tests: New file.
43076         * tests/test-uname.c: New file.
43077
43078         New module 'uname'.
43079         * lib/uname.c: New file.
43080         * m4/uname.m4: New file.
43081         * modules/uname: New file.
43082         * doc/posix-functions/uname.texi: Mention the new module.
43083
43084 2009-08-02  Bruno Haible  <bruno@clisp.org>
43085
43086         Tests for module 'sys_utsname'.
43087         * modules/sys_utsname-tests: New file.
43088         * tests/test-sys_utsname.c: New file.
43089
43090         New module 'sys_utsname'.
43091         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43092         * m4/sys_utsname_h.m4: New file.
43093         * modules/sys_utsname: New file.
43094         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43095
43096 2009-08-02  Bruno Haible  <bruno@clisp.org>
43097
43098         Implicitly initialize the sockets library.
43099         * lib/gethostname.c: Include sockets.h.
43100         (rpl_gethostname): Invoke gl_sockets_startup.
43101         * lib/socket.c: Include sockets.h.
43102         (rpl_socket): Invoke gl_sockets_startup.
43103         * modules/gethostname (Depends-on): Add sockets.
43104         * modules/socket (Depends-on): Likewise.
43105         * tests/test-poll.c: Don't include sockets.h.
43106         (main): Don't invoke gl_sockets_startup.
43107         * tests/test-select.c: Don't include sockets.h.
43108         (main): Don't invoke gl_sockets_startup.
43109
43110 2009-08-02  Bruno Haible  <bruno@clisp.org>
43111
43112         Allow multiple calls to gl_sockets_startup.
43113         * lib/sockets.c (initialized_sockets_version): New variable.
43114         (gl_sockets_startup): Do nothing if already called for this or a higher
43115         version.
43116         (gl_sockets_cleanup): Reset initialized_sockets_version.
43117
43118 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43119
43120         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43121         different project/version.
43122
43123 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43124             Bruno Haible  <bruno@clisp.org>
43125
43126         Tests for module 'pipe-filter-gi'.
43127         * modules/pipe-filter-gi-tests: New file.
43128         * tests/test-pipe-filter-gi1.sh: New file.
43129         * tests/test-pipe-filter-gi1.c: New file.
43130         * tests/test-pipe-filter-gi2.sh: New file.
43131         * tests/test-pipe-filter-gi2-main.c: New file.
43132         * tests/test-pipe-filter-gi2-child.c: New file.
43133
43134         New module 'pipe-filter-gi'.
43135         * lib/pipe-filter-gi.c: New file.
43136         * modules/pipe-filter-gi: New file.
43137
43138 2009-08-02  Bruno Haible  <bruno@clisp.org>
43139             Paolo Bonzini  <bonzini@gnu.org>
43140
43141         Tests for module 'pipe-filter-ii'.
43142         * modules/pipe-filter-ii-tests: New file.
43143         * tests/test-pipe-filter-ii1.sh: New file.
43144         * tests/test-pipe-filter-ii1.c: New file.
43145         * tests/test-pipe-filter-ii2.sh: New file.
43146         * tests/test-pipe-filter-ii2-main.c: New file.
43147         * tests/test-pipe-filter-ii2-child.c: New file.
43148
43149         New module 'pipe-filter-ii'.
43150         * lib/pipe-filter.h: New file.
43151         * lib/pipe-filter-ii.c: New file.
43152         * lib/pipe-filter-aux.h: New file.
43153         * modules/pipe-filter-ii: New file.
43154
43155 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43156
43157         * lib/gc-libgcrypt.c: Change copyright to FSF.
43158         * lib/gc-gnulib.c: Likewise.
43159
43160 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43161
43162         * lib/gethostname.c: Include limits.h.
43163
43164 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43165             Bruno Haible  <bruno@clisp.org>
43166
43167         Ensure HOST_NAME_MAX as part of the gethostname module.
43168         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43169         define also HOST_NAME_MAX.
43170         * tests/test-gethostname.c: Include <limits.h>.
43171         (main): Check also HOST_NAME_MAX.
43172         * doc/posix-headers/limits.texi: Document the mingw problem.
43173
43174 2009-08-02  Bruno Haible  <bruno@clisp.org>
43175
43176         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43177         Add comments.
43178
43179 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43180
43181         * lib/gethostname.c: Add Windows wrapper.
43182         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43183         * modules/gethostname: Depend on sys_socket & errno, for also
43184         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43185         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43186
43187 2009-07-31  Jim Meyering  <meyering@redhat.com>
43188
43189         getloadavg: fix symbol name in comment
43190         * lib/getloadavg.c: Correct a typo I introduced when adding
43191         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43192         Matt Kraai spotted the problem.
43193
43194 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43195
43196         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43197         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43198         code also if ! defined N_NAME_POINTER.
43199         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43200         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43201         but the n_name member is a 12-byte array.
43202
43203 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43204
43205         update-copyright: generalize comment handling
43206         * build-aux/update-copyright: Handle copyright statements
43207         within more comment styles.
43208         Document usage.
43209         Report any file with an external copyright holder or parse failure.
43210
43211 2009-07-29  Jim Meyering  <meyering@redhat.com>
43212
43213         mktime: correct setting of REPLACE_MKTIME
43214         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43215
43216         update-copyright: new module
43217         * modules/update-copyright: New file.
43218         * build-aux/update-copyright: New file.
43219         * MODULES.html.sh (maint+release support): Add update-copyright.
43220
43221 2009-07-27  Bruno Haible  <bruno@clisp.org>
43222
43223         Fix compilation error when <ctime> is used and mktime is replaced.
43224         * lib/time.in.h (mktime): New declaration.
43225         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43226         REPLACE_MKTIME instead of defining mktime in config.h.
43227         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43228         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43229         Reported by Ross McFarland <rwmcfa1@neces.com>.
43230
43231 2009-07-27  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43234         Reported by Matt Kraai <mkraai@beckman.com>.
43235
43236 2009-07-25  Jim Meyering  <meyering@redhat.com>
43237
43238         maint.mk: avoid warnings about missing files
43239         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43240         diagnostic when .prev-version does not exist.
43241         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43242         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43243         nonexistent cfg.mk.
43244         Suggestions from Simon Josefsson.
43245
43246 2009-07-25  Bruno Haible  <bruno@clisp.org>
43247
43248         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43249         defined as macros. Needed on QNX 6.4.1.
43250         Reported by Matt Kraai <mkraai@beckman.com>.
43251
43252 2009-07-23  Jim Meyering  <meyering@redhat.com>
43253
43254         maint.mk: invoke "make dist" with a working value of XZ_OPT
43255         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43256
43257 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43258
43259         Make fseeko.c compile on QNX.
43260         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43261
43262 2009-07-22  Peter Simons  <simons@cryp.to>
43263
43264         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43265         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43266         * lib/md4.h: Likewise.
43267         * lib/md5.h: Likewise.
43268         * lib/sha1.h: Likewise.
43269         * lib/sha256.h: Likewise.
43270         * lib/sha512.h: Likewise.
43271
43272         tests-sha1: don't assign literal string to 'char *' variable
43273         * tests/test-sha1.c (main): Declare locals with "const" to match
43274         attributes of the right hand side.
43275
43276 2009-07-21  Eric Blake  <ebb9@byu.net>
43277
43278         dup2: fix more mingw problems
43279         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43280         fd to itself.
43281         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43282         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43283         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43284         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43285         care of mingw bugs.
43286
43287 2009-07-21  Jim Meyering  <meyering@redhat.com>
43288
43289         vc-list-files: avoid failure when /bin/sh is dash
43290         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43291         On some Debian based systems, /bin/sh is a symlink to dash, and running
43292         this command would omit the "/" following each 'tests' prefix:
43293           dash -x build-aux/vc-list-files -C . tests
43294         That is because bash and dash work differently:
43295           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43296           bash ok
43297           dash odd
43298
43299 2009-07-21  Eric Blake  <ebb9@byu.net>
43300
43301         dup2-tests: test previous patch
43302         * modules/dup2-tests: New file.
43303         * tests/test-dup2.c: Likewise.
43304         * tests/test-open.c (main): Avoid unspecified behavior.
43305         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43306         test.
43307
43308         dup2: work around mingw and cygwin 1.5 bug
43309         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43311         * modules/unistd (Makefile.am): Substitute it.
43312         * lib/unistd.in.h (dup2): Declare the replacement.
43313         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43314         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43315         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43316         * modules/execute (Depends-on): Add dup2.
43317         * modules/fseterr (Depends-on): Likewise.
43318         * modules/pipe (Depends-on): Likewise.
43319         * modules/posix_spawn-internal (Depends-on): Likewise.
43320
43321 2009-07-21  Bruno Haible  <bruno@clisp.org>
43322
43323         * modules/.gitattributes: New file.
43324
43325 2009-07-20  Bruno Haible  <bruno@clisp.org>
43326
43327         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43328         (main): Use it.
43329
43330 2009-07-20  Eric Blake  <ebb9@byu.net>
43331
43332         test-pipe: make a bit more robust.
43333         * tests/test-pipe.c (myerr): Allow error messages regardless of
43334         what we do to stderr.
43335         (test_pipe): Rearrange to avoid deadlock.
43336         (child_main): Try a larger read, to ensure we avoided deadlock.
43337         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43338         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43339         if misused.
43340
43341 2009-07-19  Jim Meyering  <meyering@redhat.com>
43342
43343         fts: avoid false-positive cycle-detection
43344         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43345         for each new command line argument.
43346
43347 2009-07-19  Bruno Haible  <bruno@clisp.org>
43348
43349         Fix build error on mingw with the modules sys_select and unistd.
43350         * modules/acl-tests (Depends-on): Add close.
43351         * modules/binary-io-tests (Depends-on): Likewise.
43352         * modules/closein-tests (Depends-on): Likewise.
43353         * modules/flock-tests (Depends-on): Likewise.
43354         * modules/fsync-tests (Depends-on): Likewise.
43355         * modules/lseek-tests (Depends-on): Likewise.
43356         * modules/pipe-tests (Depends-on): Likewise.
43357         * modules/posix_spawn-tests (Depends-on): Likewise.
43358         * modules/posix_spawnp-tests (Depends-on): Likewise.
43359         * modules/stat-time-tests (Depends-on): Likewise.
43360         * modules/yesno-tests (Depends-on): Likewise.
43361
43362 2009-07-19  Bruno Haible  <bruno@clisp.org>
43363
43364         Unify conditionals.
43365         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43366         macros, not at the compiler macros.
43367         * lib/pipe.c: Likewise.
43368         * lib/execute.c: Likewise.
43369         * lib/spawni.c: Likewise.
43370
43371 2009-07-19  Bruno Haible  <bruno@clisp.org>
43372
43373         Fix handling of closed stdin/stdout/stderr on mingw.
43374         * lib/w32spawn.h: Include unistd.h.
43375         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43376         file descriptor with O_NOINHERIT flag.
43377         (fd_safer_noinherit): New function, based on fd-safer.c.
43378         (dup_safer_noinherit): New function, based on dup-safer.c.
43379         (undup_safer_noinherit): New function.
43380         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43381         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43382         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43383         instead of fd_safer.
43384         * tests/test-pipe.c: Include <windows.h>.
43385         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43386         result.
43387
43388         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43389         from main.
43390         (test_pipe): Pass an extra argument for disambiguation.
43391         (main): Invoke parent_main or child_main.
43392
43393         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43394         consistently.
43395
43396 2009-07-18  Eric Blake  <ebb9@byu.net>
43397
43398         test-pipe: fix mingw build
43399         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43400
43401 2009-07-18  Bruno Haible  <bruno@clisp.org>
43402
43403         * modules/pipe-tests (Makefile.am): Fix typo.
43404
43405 2009-07-18  Eric Blake  <ebb9@byu.net>
43406
43407         error: fix mingw build
43408         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43409         Reported by Bruno Haible.
43410
43411         error: avoid undefined use of stdout
43412         * lib/error.c (error, error_at_line): Check that fd 1 is open
43413         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43414         is handling faults and the close_stdout module wants to report the
43415         detection of closed stdout as an error.
43416
43417 2009-07-17  Eric Blake  <ebb9@byu.net>
43418
43419         pipe: be robust in face of closed fds
43420         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43421         should cause child to misbehave.
43422         * modules/pipe-tests: New module.
43423         * tests/test-pipe.c: New file.
43424         * tests/test-pipe.sh: New file.
43425         Reported by Akim Demaille.
43426
43427 2009-07-14  Bruno Haible  <bruno@clisp.org>
43428
43429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43430         Reported by anonymous kc.
43431
43432 2009-07-07  Jim Meyering  <meyering@redhat.com>
43433
43434         maint.mk: don't look for translatable strings in *.m4 or *.mk
43435         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43436         when searching for translatable strings.
43437
43438 2009-07-05  Jim Meyering  <meyering@redhat.com>
43439
43440         remove superfluous parentheses in STREQ definition
43441         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43442         * lib/getugroups.c (STREQ): Likewise.
43443         * lib/fnmatch.c (STREQ): Likewise.
43444         Spotted by Bruno Haible.
43445
43446 2009-07-04  Jim Meyering  <meyering@redhat.com>
43447
43448         argv-iter: new module
43449         * MODULES.html.sh: Add argv-iter.
43450         * lib/argv-iter.c, lib/argv-iter.h: New files.
43451         * modules/argv-iter: New file.
43452         * modules/argv-iter-tests: New file.
43453         * tests/test-argv-iter.c: Test it.
43454
43455 2009-07-04  Bruno Haible  <bruno@clisp.org>
43456
43457         Fix assertion.
43458         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43459         contains more exact copies of a given entry than file2, leave the extra
43460         copies unpaired rather than aborting.
43461         Reported by Eric Blake.
43462
43463 2009-07-02  Bruno Haible  <bruno@clisp.org>
43464
43465         Speedup git-merge-changelog for git cherry-pick.
43466         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43467         (entries_mapping_get): New function, extracted from compute_mapping.
43468         (entries_mapping_reverse_get): New function.
43469         (compute_mapping): Add a 'full' argument. Return the result in a
43470         'struct entries_mapping'.
43471         (main): Update. Access the mappings through entries_mapping_get.
43472         Reported by Eric Blake.
43473
43474 2009-07-02  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43477         best_i.
43478
43479 2009-07-02  Bruno Haible  <bruno@clisp.org>
43480
43481         Speed up approximate search for matching ChangeLog entries.
43482         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43483         argument. Call fstrcmp_bounded instead of fstrcmp.
43484         (compute_mapping, try_split_merged_entry, main): Update callers.
43485
43486 2009-07-02  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43489
43490 2009-06-30  Bruno Haible  <bruno@clisp.org>
43491
43492         Reduce the number of uc_is_cased calls.
43493         * lib/unicase.h (casing_suffix_context_t): Add
43494         'first_char_except_ignorable' field.
43495         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43496         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43497         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43498         Update initializer.
43499         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43500         case-ignorable characters.
43501         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43502         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43503         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43504         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43505         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43506
43507 2009-06-30  Bruno Haible  <bruno@clisp.org>
43508
43509         Tests for module 'unicase/ignorable'.
43510         * modules/unicase/ignorable-tests: New file.
43511         * tests/unicase/test-ignorable.c: New file, generated by
43512         gen-uni-tables.
43513
43514         Tests for module 'unicase/cased'.
43515         * modules/unicase/cased-tests: New file.
43516         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43517         * tests/unicase/test-predicate-part1.h: New file, derived from
43518         tests/unictype/test-predicate-part1.h.
43519         * tests/unicase/test-predicate-part2.h: New file, same as
43520         tests/unictype/test-predicate-part2.h.
43521
43522         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43523         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43524         (output_casing_properties): New function.
43525         (main): Call it.
43526         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43527         * lib/unicase/cased.c: Include unictype/bitmap.h.
43528         (uc_is_cased): Define through a bitmap lookup.
43529         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43530         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43531         (uc_is_case_ignorable): Define through a bitmap lookup.
43532         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43533         lib/unictype/bitmap.h.
43534         (Depends-on): Add inline. Clean up.
43535         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43536         lib/unictype/bitmap.h.
43537         (Depends-on): Add inline. Clean up.
43538         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43539         recognition.
43540         * tests/unicase/test-u16-tolower.c (main): Likewise.
43541         * tests/unicase/test-u32-tolower.c (main): Likewise.
43542
43543 2009-06-30  Bruno Haible  <bruno@clisp.org>
43544
43545         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43546         * lib/unicase/u16-casemap.c: Likewise.
43547         * lib/unicase/u32-casemap.c: Likewise.
43548
43549 2009-06-29  Bruno Haible  <bruno@clisp.org>
43550
43551         Define u32_casefold as a wrapper around u32_ct_casefold.
43552         * lib/unicase/u32-casefold.c: Update.
43553         * modules/unicase/u32-casefold (Depends-on): Add
43554         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43555         unicase/empty-suffix-context. Clean up.
43556
43557         Define u16_casefold as a wrapper around u16_ct_casefold.
43558         * lib/unicase/u16-casefold.c: Update.
43559         * modules/unicase/u16-casefold (Depends-on): Add
43560         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43561         unicase/empty-suffix-context. Clean up.
43562
43563         Define u8_casefold as a wrapper around u8_ct_casefold.
43564         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43565         * lib/unicase/u8-casefold.c: Update.
43566         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43567         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43568
43569         Define u32_totitle as a wrapper around u32_ct_totitle.
43570         * lib/unicase/u32-totitle.c: Update.
43571         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43572         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43573
43574         Define u16_totitle as a wrapper around u16_ct_totitle.
43575         * lib/unicase/u16-totitle.c: Update.
43576         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43577         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43578
43579         Define u8_totitle as a wrapper around u8_ct_totitle.
43580         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43581         functions.
43582         (FUNC): Delegate to U_CT_TOTITLE.
43583         * lib/unicase/u8-totitle.c: Update.
43584         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43585         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43586
43587         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43588         invocation.
43589         * modules/unicase/u32-tolower (Depends-on): Add
43590         unicase/empty-prefix-context, unicase/empty-suffix-context.
43591
43592         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43593         invocation.
43594         * modules/unicase/u16-tolower (Depends-on): Add
43595         unicase/empty-prefix-context, unicase/empty-suffix-context.
43596
43597         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43598         * modules/unicase/u8-tolower (Depends-on): Add
43599         unicase/empty-prefix-context, unicase/empty-suffix-context.
43600
43601         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43602         invocation.
43603         * modules/unicase/u32-toupper (Depends-on): Add
43604         unicase/empty-prefix-context, unicase/empty-suffix-context.
43605
43606         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43607         invocation.
43608         * modules/unicase/u16-toupper (Depends-on): Add
43609         unicase/empty-prefix-context, unicase/empty-suffix-context.
43610
43611         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43612         * modules/unicase/u8-toupper (Depends-on): Add
43613         unicase/empty-prefix-context, unicase/empty-suffix-context.
43614
43615         New module 'unicase/u32-ct-casefold'.
43616         * lib/unicase/u32-ct-casefold.c: New file.
43617         * modules/unicase/u32-ct-casefold: New file.
43618
43619         New module 'unicase/u16-ct-casefold'.
43620         * lib/unicase/u16-ct-casefold.c: New file.
43621         * modules/unicase/u16-ct-casefold: New file.
43622
43623         New module 'unicase/u8-ct-casefold'.
43624         * lib/unicase/u8-ct-casefold.c: New file.
43625         * lib/unicase/u-ct-casefold.h: New file, derived from
43626         lib/unicase/u-casefold.h.
43627         * modules/unicase/u8-ct-casefold: New file.
43628
43629         New module 'unicase/u32-ct-totitle'.
43630         * lib/unicase/u32-ct-totitle.c: New file.
43631         * modules/unicase/u32-ct-totitle: New file.
43632
43633         New module 'unicase/u16-ct-totitle'.
43634         * lib/unicase/u16-ct-totitle.c: New file.
43635         * modules/unicase/u16-ct-totitle: New file.
43636
43637         New module 'unicase/u8-ct-totitle'.
43638         * lib/unicase/u8-ct-totitle.c: New file.
43639         * lib/unicase/u-ct-totitle.h: New file, derived from
43640         lib/unicase/u-totitle.h.
43641         * modules/unicase/u8-ct-totitle: New file.
43642
43643         New module 'unicase/u32-ct-tolower'.
43644         * lib/unicase/u32-ct-tolower.c: New file.
43645         * modules/unicase/u32-ct-tolower: New file.
43646
43647         New module 'unicase/u16-ct-tolower'.
43648         * lib/unicase/u16-ct-tolower.c: New file.
43649         * modules/unicase/u16-ct-tolower: New file.
43650
43651         New module 'unicase/u8-ct-tolower'.
43652         * lib/unicase/u8-ct-tolower.c: New file.
43653         * modules/unicase/u8-ct-tolower: New file.
43654
43655         New module 'unicase/u32-ct-toupper'.
43656         * lib/unicase/u32-ct-toupper.c: New file.
43657         * modules/unicase/u32-ct-toupper: New file.
43658
43659         New module 'unicase/u16-ct-toupper'.
43660         * lib/unicase/u16-ct-toupper.c: New file.
43661         * modules/unicase/u16-ct-toupper: New file.
43662
43663         New module 'unicase/u8-ct-toupper'.
43664         * lib/unicase/u8-ct-toupper.c: New file.
43665         * modules/unicase/u8-ct-toupper: New file.
43666
43667         Add context arguments to u*_casemap functions.
43668         * lib/unicase/unicasemap.h: Include unicase.h.
43669         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43670         suffix_context arguments.
43671         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43672         functions.
43673         (FUNC): Add prefix_context and suffix_context arguments. Use
43674         uc_is_cased and uc_is_case_ignorable.
43675         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43676         * lib/unicase/u16-casemap.c: Likewise.
43677         * lib/unicase/u32-casemap.c: Likewise.
43678         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43679         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43680         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43681         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43682         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43683         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43684
43685         New module 'unicase/u32-suffix-context'.
43686         * lib/unicase/u32-suffix-context.c: New file.
43687         * modules/unicase/u32-suffix-context: New file.
43688
43689         New module 'unicase/u16-suffix-context'.
43690         * lib/unicase/u16-suffix-context.c: New file.
43691         * modules/unicase/u16-suffix-context: New file.
43692
43693         New module 'unicase/u8-suffix-context'.
43694         * lib/unicase/u8-suffix-context.c: New file.
43695         * lib/unicase/u-suffix-context.h: New file.
43696         * modules/unicase/u8-suffix-context: New file.
43697
43698         New module 'unicase/empty-suffix-context'.
43699         * lib/unicase/empty-suffix-context.c: New file.
43700         * modules/unicase/empty-suffix-context: New file.
43701
43702         New module 'unicase/u32-prefix-context'.
43703         * lib/unicase/u32-prefix-context.c: New file.
43704         * modules/unicase/u32-prefix-context: New file.
43705
43706         New module 'unicase/u16-prefix-context'.
43707         * lib/unicase/u16-prefix-context.c: New file.
43708         * modules/unicase/u16-prefix-context: New file.
43709
43710         New module 'unicase/u8-prefix-context'.
43711         * lib/unicase/u8-prefix-context.c: New file.
43712         * lib/unicase/u-prefix-context.h: New file.
43713         * lib/unicase/context.h: New file.
43714         * modules/unicase/u8-prefix-context: New file.
43715
43716         New module 'unicase/empty-prefix-context'.
43717         * lib/unicase/empty-prefix-context.c: New file.
43718         * modules/unicase/empty-prefix-context: New file.
43719
43720         New module 'unicase/ignorable'.
43721         * lib/unicase/ignorable.c: New file.
43722         * modules/unicase/ignorable: New file.
43723
43724         New module 'unicase/cased'.
43725         * lib/unicase/caseprop.h: New file.
43726         * lib/unicase/cased.c: New file.
43727         * modules/unicase/cased: New file.
43728
43729         New functions for case mapping of substrings.
43730         * lib/unicase.h (casing_prefix_context_t): New type.
43731         (unicase_empty_prefix_context): New variable.
43732         (u8_casing_prefix_context, u16_casing_prefix_context,
43733         u32_casing_prefix_context, u8_casing_prefixes_context,
43734         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43735         declarations.
43736         (casing_suffix_context_t): New type.
43737         (unicase_empty_suffix_context): New variable.
43738         (u8_casing_suffix_context, u16_casing_suffix_context,
43739         u32_casing_suffix_context, u8_casing_suffixes_context,
43740         u16_casing_suffixes_context, u32_casing_suffixes_context,
43741         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43742         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43743         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43744         declarations.
43745
43746 2009-06-28  Jim Meyering  <meyering@redhat.com>
43747
43748         boostrap: indent only with spaces
43749         * build-aux/bootstrap: Indent only with spaces, never TABs.
43750
43751         bootstrap: split long lines
43752         * build-aux/bootstrap: Keep line length < 80.
43753
43754         bootstrap: sync from coreutils
43755         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43756         just as autoreconf does.  Verify a list of prerequisite
43757         package-name,version-number pairs if defined in bootstrap.conf.
43758         Refer to README-prereq, if prerequisites are not satisfied.
43759
43760 2009-06-27  Eric Blake  <ebb9@byu.net>
43761
43762         tests: add test for bogus NULL definition
43763         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43764         * tests/test-stdlib.c: Likewise.
43765         * tests/test-string.c: Likewise.
43766         * tests/test-locale.c: Likewise.
43767         * tests/test-unistd.c: Likewise.
43768         * modules/stdio-tests (Depends-on): Add verify.
43769         * modules/stdlib-tests (Depends-on): Likewise.
43770         * modules/string-tests (Depends-on): Likewise.
43771         * modules/locale-tests (Depends-on): Likewise.
43772         * modules/unistd-tests (Depends-on): Likewise.
43773
43774 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43775
43776         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43777         self-explaining comment.
43778         * m4/selinux-selinux-h: Update serial.
43779         (gl_LIBSELINUX): New macro, adding a warning for missing development
43780         packages to code extracted from...
43781         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43782         Add warning for missing development packages here, too.
43783
43784 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43785
43786         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43787
43788 2009-06-25  Eric Blake  <ebb9@byu.net>
43789
43790         version-etc: fix regression
43791         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43792         gcc.
43793         (version_etc): Use it, to catch bugs with trailing NULL.
43794         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43795         (version_etc_va): Fix logic bug.
43796         * modules/version-etc-tests: Add test.
43797         * tests/test-version-etc.c: New file.
43798         * tests/test-version-etc.sh: Likewise.
43799
43800 2009-06-25  Sam Steingold  <sds@gnu.org>
43801
43802         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43803         mbtowc declaration.
43804
43805 2009-06-25  Eric Blake  <ebb9@byu.net>
43806
43807         fpurge: migrate into <stdio.h>
43808         * lib/fpurge.h: Delete...
43809         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43810         * lib/fpurge.c (fpurge): Change declaring header.
43811         * modules/fpurge (Files): Drop deleted file.
43812         (Depends-on): Add stdio.
43813         (configure.ac): Set witness.
43814         * modules/stdio (Makefile.am): Support fpurge macros.
43815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43816         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43817         * lib/fflush.c: Update client.
43818         * tests/test-fpurge.c: Likewise.
43819         * NEWS: Mention the change.
43820
43821 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43822
43823         * lib/argp-version-etc.c (program_authors): Add const
43824         qualifier.
43825         * lib/version-etc.c: Fix typos in the comments.
43826         * modules/argp-version-etc: Depends on version-etc.
43827
43828 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43829
43830         argp-version-etc: new module.
43831
43832         * lib/argp-version-etc.c: New file.
43833         * lib/argp-version-etc.h: New file.
43834         * modules/argp-version-etc: New file.
43835         * modules/argp-version-etc-tests: New file.
43836         * tests/test-argp-version-etc.c: New test.
43837         * tests/test-argp-version-etc-1.sh: New test.
43838
43839 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43840
43841         Provide additional interfaces and documentation for version-etc
43842         module.
43843
43844         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43845         interfaces.
43846         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43847         prototypes.
43848
43849 2009-06-24  Bruno Haible  <bruno@clisp.org>
43850
43851         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43852         HAVE_LIB${NAME} macro.
43853         Reported by Sam Steingold <sds@gnu.org>.
43854
43855 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43856
43857         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43858         needed.
43859
43860 2009-06-21  Bruno Haible  <bruno@clisp.org>
43861
43862         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43863         work.
43864         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43865         together with LIB${NAME}, LTLIB${NAME}.
43866         Reported by Sam Steingold <sds@gnu.org>.
43867
43868 2009-06-20  Jim Meyering  <meyering@redhat.com>
43869
43870         tests: make sc_require_test_exit_idiom more generic
43871         * top/maint.mk (Exit_witness_file): New overridable variable.
43872         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43873         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43874
43875 2009-06-19  Jim Meyering  <meyering@redhat.com>
43876
43877         hash: reverse order of src/dst parameters in an internal interface
43878         * lib/hash.c (transfer_entries): Reverse order of parameters to
43879         put DST before SRC.  Adjust callers.
43880
43881         tests: test-hash: avoid wholesale duplication
43882         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43883         Instead, use a loop and add a single conditional.
43884
43885         tests: test-hash: allow seed selection via a command line argument
43886         * tests/test-hash.c (get_seed): New function.
43887         (main): Use it.
43888
43889 2009-06-19  Eric Blake  <ebb9@byu.net>
43890
43891         hash: avoid memory leak on allocation failure
43892         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43893         failure.  Factor repeated algorithm...
43894         (transfer_entries): ...into new helper routine.
43895         (hash_delete): React to hash_rehash return value.
43896
43897         hash: reduce memory pressure in hash_rehash no-op case
43898         * lib/hash.c (next_prime): Avoid overflow.
43899         (hash_initialize): Factor bucket size computation...
43900         (compute_bucket_size): ...into new helper function.
43901         (hash_rehash): Use new function and open coding to reduce memory
43902         pressure, and avoid a memory leak in USE_OBSTACK code.
43903         Reported by Jim Meyering.
43904
43905 2009-06-18  Eric Blake  <ebb9@byu.net>
43906
43907         hash: make rotation more obvious
43908         * modules/hash (Depends-on): Add bitrotate and stdint.
43909         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43910         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43911         (SIZE_MAX): Rely on headers for definition.
43912         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43913         (raw_hasher): Use rotr_sz.
43914         Suggested by Jim Meyering.
43915
43916         hash: fix memory leak in last patch
43917         * lib/hash.c (hash_rehash): Avoid memory leak.
43918
43919         hash: avoid no-op rehashing
43920         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43921
43922         hash: provide default callback functions
43923         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43924         (hash_initialize): Use them as defaults.
43925         * tests/test-hash.c (main): Test this.
43926
43927         hash: minor optimization
43928         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43929         when possible.
43930         (hash_initialize): Document this promise.
43931         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43932         * tests/test-hash.c (hash_compare_strings): Test this.
43933
43934 2009-06-18  Bruno Haible  <bruno@clisp.org>
43935
43936         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43937         going to be replaced anyway.
43938
43939 2009-06-18  Bruno Haible  <bruno@clisp.org>
43940
43941         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43942         in one place.
43943         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43944         be replaced anyway.
43945
43946 2009-06-18  Eric Blake  <ebb9@byu.net>
43947
43948         hash: check for resize before insertion
43949         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43950         threshold before insertion, so that a pathological hash_rehash
43951         that fills every bucket can still trigger another rehash.
43952
43953 2009-06-18  Jim Meyering  <meyering@redhat.com>
43954
43955         hash-tests: add a loop around the small tests
43956         * tests/test-hash.c (main): Repeat small tests with selected
43957         small initial table sizes.
43958
43959 2009-06-17  Eric Blake  <ebb9@byu.net>
43960
43961         hash: minor cleanups
43962         * lib/hash.h (hash_entry): Make opaque, by moving...
43963         * lib/hash.c (hash_entry): ...here.
43964         (hash_insert): Clarify restrictions on what can be inserted.
43965         (hash_get_next): Clarify when it is safe to remove an element
43966         during traversal.
43967         (check_tuning): Skip verification when tuning is known safe.
43968         (hash_initialize): Clarify restrictions on tuning.
43969
43970 2009-06-17  Jim Meyering  <jim@meyering.net>
43971         and Eric Blake  <ebb9@byu.net>
43972
43973         hash-tests: new module
43974         * modules/hash-tests: New file.
43975         * tests/test-hash.c: New file.
43976
43977 2009-06-17  Eric Blake  <ebb9@byu.net>
43978
43979         strstr-simple: document new module
43980         * MODULES.html.sh: Document new module.
43981
43982         strstr, strcasestr: replace on platforms with broken memchr
43983         * modules/strstr: Split into...
43984         * modules/strstr-simple: ...new module that does not care about
43985         performance, but does care about glibc bug.
43986         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43987         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43988         if platform memchr is broken, per Debian bug 521737.
43989         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43990         memchr.
43991         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43992         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43993         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43994         * modules/mountlist (Depends-on): Add strstr-simple.
43995         * modules/gen-uni-tables (Depends-on): Likewise.
43996         * modules/argz (Depends-on): Add strstr.
43997
43998 2009-06-17  Bruno Haible  <bruno@clisp.org>
43999
44000         * modules/posix_spawn-internal (Depends-on): Add errno.
44001
44002 2009-06-17  Bruno Haible  <bruno@clisp.org>
44003
44004         Define missing ESTALE on Interix 3.5.
44005         * lib/errno.in.h (ESTALE): Assign a value if missing.
44006         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44008         missing.
44009         * doc/posix-headers/errno.texi: Mention the Interix bug.
44010         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44011
44012 2009-06-15  Eric Blake  <ebb9@byu.net>
44013
44014         memchr, memchr2: add valgrind exception
44015         * lib/memchr.valgrind: New file.
44016         * lib/memchr2.valgrind: New file.
44017         * modules/memchr (Files): Distribute valgrind file.
44018         * modules/memchr2 (Files): Likewise.
44019
44020         docs: memchr is no longer obsolete
44021         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44022         * lib/string.in.h (memchr): Simplify logic.
44023
44024 2009-06-14  Jim Meyering  <meyering@redhat.com>
44025
44026         link-follow: fix the "checking..." message to not mention trailing slash
44027         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44028         never considered trailing slashes.
44029
44030 2009-06-14  Bruno Haible  <bruno@clisp.org>
44031
44032         * m4/memchr.m4: Mention also the bug on IA-64.
44033         * doc/posix-functions/memchr.texi: Likewise.
44034
44035 2009-06-12  Eric Blake  <ebb9@byu.net>
44036
44037         memchr: detect broken x86_64 and alpha implementations
44038         * modules/memchr-tests (Depends-on): Move mmap detection...
44039         * modules/memchr (Depends-on): ...here.
44040         (configure.ac): Set indicator.
44041         * lib/string.in.h (memchr): Declare replacement.
44042         * modules/string (Makefile.am): Trigger replacement.
44043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44044         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44045         bugs.
44046         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44047         * modules/getpagesize (License): Relax license.
44048
44049 2009-06-11  Bruno Haible  <bruno@clisp.org>
44050
44051         * lib/idpriv.h: Add more references.
44052
44053 2009-06-08  Bruno Haible  <bruno@clisp.org>
44054
44055         Tests for module 'idpriv-droptemp'.
44056         * modules/idpriv-droptemp-tests: New file.
44057         * tests/test-idpriv-droptemp.sh: New file.
44058         * tests/test-idpriv-droptemp.su.sh: New file.
44059         * tests/test-idpriv-droptemp.c: New file.
44060
44061         New module 'idpriv-droptemp'.
44062         * lib/idpriv-droptemp.c: New file.
44063         * modules/idpriv-droptemp: New file.
44064
44065 2009-06-08  Bruno Haible  <bruno@clisp.org>
44066
44067         Tests for module 'idpriv-drop'.
44068         * modules/idpriv-drop-tests: New file.
44069         * tests/test-idpriv-drop.sh: New file.
44070         * tests/test-idpriv-drop.su.sh: New file.
44071         * tests/test-idpriv-drop.c: New file.
44072
44073         New module 'idpriv-drop'.
44074         * lib/idpriv.h: New file.
44075         * lib-idpriv-drop.c: New file.
44076         * m4/idpriv.m4: New file.
44077         * modules/idpriv-drop: New file.
44078
44079 2009-06-08  Bruno Haible  <bruno@clisp.org>
44080
44081         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44082         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44083         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44084         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44085         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44086         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44087         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44088
44089 2009-06-08  Eric Blake  <ebb9@byu.net>
44090
44091         test-strstr: use memory fence, when possible
44092         * tests/test-strstr.c (main): Use memory fence, in order to be
44093         more likely to trigger Debian bug 521737.
44094         * modules/strstr-tests (Files): Pull in additional files.
44095
44096         memchr: no longer obsolete, for wider field testing
44097         * modules/memchr (Status, Notice): Delete, this module is no
44098         longer obsolete.
44099         * modules/vasnprintf (Depends-on): Add memchr.
44100
44101 2009-06-07  Jim Meyering  <meyering@redhat.com>
44102
44103         hash: declare some functions with the warn_unused_result attribute
44104         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44105
44106 2009-06-07  Bruno Haible  <bruno@clisp.org>
44107
44108         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44109         Reported by Eric Blake.
44110
44111 2009-06-06  Eric Blake  <ebb9@byu.net>
44112
44113         test-alignof: fix typo with long double
44114         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44115         compiler error.
44116
44117 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44118
44119         Escape non-texinfo { and }s.
44120         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44121         markup error.
44122
44123 2009-06-04  Jim Meyering  <meyering@redhat.com>
44124
44125         gitlog-to-changelog: don't infloop on an empty commit log
44126         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44127         Reported by Boris Petersen <transacid@centerim.org>.
44128
44129 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44130
44131         version-etc: extend for packagers
44132         Add three new configure options, intended for packagers:
44133           --with-packager="packager name"
44134           --with-packager-version="packager-specific version"
44135           --with-packager-bug-reports="packager bug reporting"
44136         An example with coreutils:
44137           $ ./configure \
44138             --with-packager=Gentoo \
44139             --with-packager-bug-report=http://bugs.gentoo.org/ \
44140             --with-packager-version="patchset 1.6"
44141           $ ./src/ls --version | head -n2
44142           ls (GNU coreutils) 7.1-dirty
44143           Packaged by Gentoo (patchset 1.6)
44144         Note that the bug reporting info via --help doesn't show up because
44145         coreutils uses its own custom emit_bug_reporting_address() implementation
44146         in src/system.h.  If it didn't, it'd look like:
44147           $ ./src/ls --help | tail -n4
44148           Report bugs to <bug-coreutils@gnu.org>.
44149           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44150           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44151           General help using GNU software: <http://www.gnu.org/gethelp/>.
44152         * lib/version-etc.c: Print new information, if provided.
44153         * m4/version-etc.m4: New file.
44154         * modules/version-etc (Files): Add m4/version-etc.m4.
44155         (configure.ac): Add gl_VERSION_ETC.
44156
44157 2009-05-31  Bruno Haible  <bruno@clisp.org>
44158
44159         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44160         and 'int64_t'.
44161         * modules/alignof-tests (Dependencies): Add stdint.
44162         Reported by Eric Blake.
44163
44164 2009-05-31  Bruno Haible  <bruno@clisp.org>
44165
44166         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44167         restriction due to compiler bugs.
44168         Reported by Eric Blake.
44169
44170 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44171             Bruno Haible  <bruno@clisp.org>
44172
44173         Fix test-alignof failure.
44174         * lib/alignof.h (alignof_slot): New macro.
44175         (alignof_type): New macro, with the same semantics as the previous
44176         'alignof'.
44177         (alignof): Alias to alignof_slot.
44178         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44179         check that the results are usable as constant expressions.
44180
44181 2009-05-31  Bruno Haible  <bruno@clisp.org>
44182
44183         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44184         * tests/test-memchr.c (main): Check that memchr does not read past the
44185         first occurrence of the byte.
44186         * tests/test-strstr.c (main): Update comment.
44187         Suggested by Eric Blake.
44188
44189 2009-05-30  Bruno Haible  <bruno@clisp.org>
44190
44191         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44192         detail how to use dumpbin.
44193         Reported by David Byron <dbyron@dbyron.com>.
44194
44195 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44196
44197         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44198
44199 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44200
44201         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44202
44203 2009-05-28  Bruno Haible  <bruno@clisp.org>
44204
44205         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44206         build-aux/ files.
44207
44208 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44209
44210         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44211
44212 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44213
44214         * gnulib-tool (sed_transform_main_lib_file)
44215         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44216         regexps.
44217
44218 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44219
44220         * tests/test-strstr.c: Add another self-test.
44221         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44222         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44223
44224 2009-05-23  Bruno Haible  <bruno@clisp.org>
44225
44226         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44227         change.
44228
44229 2009-05-21  Bruno Haible  <bruno@clisp.org>
44230
44231         Simplify use of mode_t varargs.
44232         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44233         uses 'mode_t' or 'int'.
44234         * lib/openat.c (openat): Likewise.
44235         * lib/open-safer.c (open_safer): Likewise.
44236         * m4/mode_t.m4: New file.
44237         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44238         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44239         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44240         * modules/open (Files): Add m4/mode_t.m4.
44241         * modules/openat (Files): Likewise.
44242         * modules/fcntl-safer (Files): Likewise.
44243         Suggested by Eric Blake.
44244
44245 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44246
44247         * doc/glibc-functions/fallocate.texi: New file.
44248         * doc/gnulib.texi: Include it.
44249
44250 2009-05-21  Eric Blake  <ebb9@byu.net>
44251             Bruno Haible  <bruno@clisp.org>
44252
44253         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44254         invocations.
44255         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44256
44257 2009-05-21  Eric Blake  <ebb9@byu.net>
44258             Bruno Haible  <bruno@clisp.org>
44259
44260         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44261         include_next. Fix of 2008-11-20 commit.
44262         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44263         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44264         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44265         NEXT_MATH_H.
44266         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44267         instead of NEXT_MATH_H.
44268
44269 2009-05-21  Bruno Haible  <bruno@clisp.org>
44270
44271         Avoid redefinition warnings for SIZE_MAX.
44272         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44273         Reported by Simon Josefsson.
44274
44275 2009-05-21  Bruno Haible  <bruno@clisp.org>
44276
44277         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44278         AC_CACHE_VAL.
44279
44280 2009-05-20  Bruno Haible  <bruno@clisp.org>
44281
44282         Make zeroptr.h work on mingw.
44283         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44284         mprotect.
44285         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44286         * modules/memchr2-tests (configure.ac): Likewise.
44287         * modules/memcmp-tests (configure.ac): Likewise.
44288         * modules/memmem-tests (configure.ac): Likewise.
44289         * modules/memrchr-tests (configure.ac): Likewise.
44290         Reported by Simon Josefsson.
44291
44292 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44293
44294         * tests/test-glob.c: Include string.h for strcmp prototype.
44295
44296 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44297
44298         * modules/getdelim (Depends-on): Add explicit stdint, although it
44299         was implicitly already pulled in via realloc-posix.
44300         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44301
44302 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44303
44304         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44305         G. Christensen" <tgc@jupiterrise.com>.
44306         * m4/sys_socket_h.m4: Check for sa_family_t.
44307         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44308         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44309         * tests/test-sys_socket.c: Check that sa_family_t works.
44310
44311 2009-05-18  Eric Blake  <ebb9@byu.net>
44312
44313         maint.mk: allow gnulib_dir in VPATH build
44314         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44315
44316 2009-05-15  Jim Meyering  <meyering@redhat.com>
44317
44318         maint.mk: Give gnulib_dir a default definition.
44319         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44320         Thus, most packages no longer need to specify this variable in cfg.mk
44321
44322 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44323
44324         rename.m4: fix typos that would make non-mingw cross-configure fail
44325         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44326
44327 2009-05-13  Eric Blake  <ebb9@byu.net>
44328
44329         mmap-anon: avoid out-of-order autoconf expansion
44330         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44331         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44332         * modules/memchr-tests (Depends-on): Add extensions.
44333         * modules/memchr2-tests (Depends-on): Add extensions.
44334         * modules/memcmp-tests (Depends-on): Add extensions.
44335         * modules/memmem-tests (Depends-on): Add extensions.
44336         * modules/memrchr-tests (Depends-on): Add extensions.
44337
44338 2009-05-13  Bruno Haible  <bruno@clisp.org>
44339
44340         Make some tests ISO C 99 compliant.
44341         * tests/zerosize-ptr.h: New file.
44342         * tests/test-memchr.c: Include zerosize-ptr.h.
44343         (main): Use a zero-size object pointer instead of NULL.
44344         * tests/test-memchr2.c: Include zerosize-ptr.h.
44345         (main): Use a zero-size object pointer instead of NULL.
44346         * tests/test-memcmp.c: Include zerosize-ptr.h.
44347         (main): Use a zero-size object pointer instead of NULL.
44348         * tests/test-memmem.c: Include zerosize-ptr.h.
44349         (main): Use a zero-size object pointer instead of NULL.
44350         * tests/test-memrchr.c: Include zerosize-ptr.h.
44351         (main): Use a zero-size object pointer instead of NULL.
44352         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44353         m4/mmap-anon.m4.
44354         (Depends-on): Add getpagesize.
44355         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44356         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44357         m4/mmap-anon.m4.
44358         (Depends-on): Add getpagesize.
44359         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44360         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44361         m4/mmap-anon.m4.
44362         (Depends-on): Add getpagesize.
44363         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44364         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44365         m4/mmap-anon.m4.
44366         (Depends-on): Add getpagesize.
44367         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44368         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44369         m4/mmap-anon.m4.
44370         (Depends-on): Add getpagesize.
44371         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44372
44373 2009-05-12  Bruno Haible  <bruno@clisp.org>
44374
44375         Tests for module 'alignof'.
44376         * modules/alignof-tests: New file.
44377         * tests/test-alignof.c: New file.
44378
44379 2009-05-12  Bruno Haible  <bruno@clisp.org>
44380
44381         Fix alignof macro.
44382         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44383         vendor compilers that are always correct.
44384
44385 2009-05-12  Bruno Haible  <bruno@clisp.org>
44386
44387         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44388         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44389         not whether its fully works.
44390
44391 2009-05-12  Bruno Haible  <bruno@clisp.org>
44392
44393         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44394
44395 2009-05-12  Jim Meyering  <meyering@redhat.com>
44396
44397         * top/maint.mk: Adjust backslash alignment.
44398
44399 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44400
44401         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44402
44403 2009-05-11  Eric Blake  <ebb9@byu.net>
44404
44405         argp: avoid undefined behavior
44406         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44407         macros.
44408
44409 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44410
44411         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44412         user.name to prevent git commit from complaining.
44413
44414 2009-05-10  Bruno Haible  <bruno@clisp.org>
44415
44416         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44417         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44418         it rewrites every file name only once.
44419         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44420
44421 2009-05-08  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44424         instead of 'max'.
44425
44426 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44427
44428         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44429         sockaddr_storage test.
44430
44431 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44432
44433         * modules/sys_socket (Makefile.am): Substitute
44434         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44435         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44436         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44437         * tests/test-sys_socket.c: Check sockaddr_storage.
44438
44439 2009-05-08  Bruno Haible  <bruno@clisp.org>
44440
44441         New module 'alignof'.
44442         * lib/alignof.h: New file.
44443         * modules/alignof: New file.
44444
44445 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44446             Bruno Haible  <bruno@clisp.org>
44447
44448         Fix test-file-has-acl on FreeBSD.
44449         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44450         mask is implicitly added.
44451         * tests/test-file-has-acl.c: Include <signal.h>.
44452         (main): Terminate the test after 5 seconds.
44453         * modules/acl-tests (configure.ac): Check for alarm function.
44454
44455 2009-05-04  Bruno Haible  <bruno@clisp.org>
44456
44457         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44458         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44459         * modules/errno (configure.ac): Drop AC_REQUIRE.
44460         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44461         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44462
44463 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44464
44465         * modules/glob-tests: New module.
44466         * tests/test-glob.c: Add.
44467
44468 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44469
44470         * modules/fnmatch-tests: New module.
44471         * tests/test-fnmatch.c: Add.
44472
44473 2009-05-04  Eric Blake  <ebb9@byu.net>
44474
44475         maint: make the new no-submodule-changes rule VPATH-safe
44476         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44477
44478 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44479             Bruno Haible  <bruno@clisp.org>
44480
44481         acl: Fix infinite loop on FreeBSD.
44482         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44483         of return value from acl_get_entry.
44484         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44485         Likewise.
44486
44487 2009-05-03  Bruno Haible  <bruno@clisp.org>
44488
44489         * lib/acl-internal.h (acl_entries): Clarify return value.
44490         * lib/acl_entries.c (acl_entries): Likewise.
44491
44492 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44493
44494         Bug fix in acl module.
44495         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44496
44497 2009-05-03  Bruno Haible  <bruno@clisp.org>
44498
44499         Create gperf-generated file in the source dir, not in the build dir.
44500         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44501         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44502         * modules/unicase/locale-language (unicase/locale-languages.h):
44503         Likewise.
44504         * modules/unicase/special-casing (unicase/special-casing-table.h):
44505         Likewise.
44506         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44507         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44508         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44509         Reported by Ralf Wildenhues.
44510
44511 2009-05-03  Bruno Haible  <bruno@clisp.org>
44512
44513         * modules/fnmatch (Description, configure.ac): Taken from
44514         fnmatch-posix.
44515         * modules/fnmatch-posix: Turn into a symbolic reference to the
44516         'fnmatch' module, and deprecate.
44517         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44518
44519 2009-05-03  Bruno Haible  <bruno@clisp.org>
44520
44521         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44522         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44523         Reported by Ralf Wildenhues.
44524
44525 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44526
44527         * m4/fnmatch.m4: Fix fnmatch re-define.
44528
44529 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44530
44531         priv-set: new module and tests; adapt write-any-file
44532         * lib/priv-set.c: New file.
44533         * lib/priv-set.h: New file.
44534         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44535         * lib/write-any-file.c: Simplify by using priv-set module.
44536         * m4/priv-set.m4: New file.
44537         * modules/priv-set: New file.
44538         * modules/unlinkdir: Add dependency on priv-set module.
44539         * modules/write-any-file: Likewise.
44540
44541         Tests for module 'priv-set'.
44542         * modules/priv-set-tests: New file.
44543         * tests/test-priv-set.c: New file.
44544
44545 2009-05-03  Jim Meyering  <meyering@redhat.com>
44546             Bruno Haible  <bruno@clisp.org>
44547
44548         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44549         use the converted UTF-8 variant of the name instead.
44550
44551 2009-05-03  Jim Meyering  <meyering@redhat.com>
44552
44553         tests: tighten some getdate tests
44554         * tests/test-getdate.c (main): Tighten tests: require equality,
44555         not just greater than.  Set TZ envvar to UTC0.
44556
44557 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44558
44559         getdate: correctly interpret "next monday" when run on a Monday
44560         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44561         that e.g., "next tues" (when run on a tuesday) results in a date
44562         that is one week in the future, and not today's date.
44563         I.e., add a week when the wday is the same as the current one.
44564         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44565         and earlier by Martin Bernreuther and Jan Minář.
44566         * tests/test-getdate.c (main): Check that "next DAY" is always in
44567         the future and that "last DAY" is always in the past.
44568
44569 2009-05-02  Jim Meyering  <meyering@redhat.com>
44570
44571         build: ensure that a release build fails when a submodule is unclean
44572         * top/maint.mk (no-submodule-changes): New rule.
44573         (alpha beta major): Depend on it.
44574
44575 2009-05-02  Bruno Haible  <bruno@clisp.org>
44576
44577         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44578         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44579         shell variable gl_fnmatch_required to detect which variant is
44580         requested.
44581         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44582         gl_FUNC_FNMATCH_POSIX.
44583         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44584         exclude fnmatch-posix.
44585
44586 2009-05-02  Bruno Haible  <bruno@clisp.org>
44587
44588         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44589         * modules/mbsrtowcs (License): Change to LGPLv2+.
44590         * modules/strnlen1 (License): Likewise.
44591         Reported by Simon Josefsson.
44592
44593 2009-05-02  Bruno Haible  <bruno@clisp.org>
44594
44595         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44596         "cross".
44597         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44598         gnulib-tool was called with option --source-base=lib.
44599
44600 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44601
44602         Use automake *-local hooks without commands, for extensibility.
44603         * modules/localcharset (Makefile.am): Rename install-exec-local
44604         rule to install-exec-localcharset, and make it a prerequisite of
44605         install-exec-local.  Likewise, rename the uninstall-local rule to
44606         uninstall-localcharset, and make it a prerequisite of the former.
44607
44608 2009-05-01  Bruno Haible  <bruno@clisp.org>
44609
44610         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44611         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44612         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44614         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44615         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44616         m4/locale-zh.m4, m4/codeset.m4.
44617
44618         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44619         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44620         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44621         m4/locale-zh.m4.
44622
44623         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44624         REPLACE_WCRTOMB if mbstate_t must be replaced.
44625         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44626         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44627
44628 2009-05-01  Bruno Haible  <bruno@clisp.org>
44629
44630         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44631         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44632         dngettext, dcngettext, textdomain, bindtextdomain,
44633         bind_textdomain_codeset): Undefine before redefining.
44634
44635 2009-04-30  Bruno Haible  <bruno@clisp.org>
44636
44637         Fix bug introduced on 2009-04-25.
44638         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44639         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44640         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44641         is defined.
44642         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44643         is defined.
44644         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44645         is defined.
44646         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44647
44648 2009-04-28  Bruno Haible  <bruno@clisp.org>
44649
44650         Comment tweaks.
44651         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44652         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44653         * lib/unicase.h (u*_casexfrm): Likewise.
44654         Reported by Paolo Bonzini.
44655
44656 2009-04-28  Bruno Haible  <bruno@clisp.org>
44657
44658         Fix a compilation error.
44659         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44660         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44661         Reported by Jim Meyering.
44662
44663 2009-04-27  Bruno Haible  <bruno@clisp.org>
44664
44665         New module 'libunistring'.
44666         * modules/libunistring: New file.
44667         * m4/libunistring.m4: New file.
44668         * MODULES.html.sh (Unicode string functions): Add it.
44669
44670 2009-04-27  Eric Blake  <ebb9@byu.net>
44671
44672         maint.mk: allow package-specific header to provide <config.h>
44673         * top/maint.mk (sc_require_config_h): New variable.
44674         (sc_require_config_h, sc_require_config_h_first): Use it.
44675
44676 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44677
44678         * top/maint.mk (sc_avoid_if_before_free): Except
44679         useless-if-before-free script.
44680
44681 2009-04-27  Eric Blake  <ebb9@byu.net>
44682
44683         maintainer-makefile: depend on all required helper scripts
44684         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44685         useless-if-before-free.
44686         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44687         version, rather than assuming gnulib checkout is available.
44688         Reported by Simen Josefsson.
44689
44690 2009-04-26  Bruno Haible  <bruno@clisp.org>
44691
44692         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44693         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44694         "../" or "..".
44695
44696 2009-04-26  Bruno Haible  <bruno@clisp.org>
44697
44698         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44699         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44700         AC_LIB_HAVE_LINKFLAGS.
44701
44702 2009-04-26  Bruno Haible  <bruno@clisp.org>
44703
44704         Simplify calling convention of u*_conv_from_encoding.
44705         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44706         u32_conv_from_encoding): Expect a resultbuf argument and return the
44707         result directly as a pointer.
44708         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44709         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44710         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44711         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44712         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44713         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44714         Update.
44715         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44716         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44717         * lib/vasnprintf.c (VASNPRINTF): Update.
44718         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44719         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44720         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44721         * NEWS: Mention the change.
44722
44723 2009-04-26  Bruno Haible  <bruno@clisp.org>
44724
44725         Simplify calling convention of u*_conv_to_encoding.
44726         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44727         u32_conv_to_encoding): Expect a resultbuf argument and return the
44728         result directly as a pointer.
44729         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44730         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44731         freeing scaled_offsets if mem_iconveha failed.
44732         * lib/unicase/u-casexfrm.h (FUNC): Update.
44733         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44734         * lib/vasnprintf.c (VASNPRINTF): Update.
44735         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44736         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44737         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44738         * NEWS: Mention the change.
44739
44740 2009-04-26  Bruno Haible  <bruno@clisp.org>
44741
44742         Avoid test failures on AIX and OSF/1.
44743         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44744         malloc(0).
44745         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44746         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44747         Likewise.
44748         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44749         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44750         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44751         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44752         * doc/posix-functions/malloc.texi: Document the portability problem
44753         related to malloc(0).
44754
44755 2009-04-26  Bruno Haible  <bruno@clisp.org>
44756
44757         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44758         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44759         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44760
44761 2009-04-25  Bruno Haible  <bruno@clisp.org>
44762
44763         Avoid link error when creating a namespace clean library.
44764         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44765         as macro with arguments if already defined as an alias.
44766         * lib/signbitf.c (gl_signbitf): Don't undefine.
44767         * lib/signbitd.c (gl_signbitd): Don't undefine.
44768         * lib/signbitl.c (gl_signbitl): Don't undefine.
44769
44770 2009-04-25  Jim Meyering  <meyering@redhat.com>
44771
44772         vc-list-files: fix another quoting bug
44773         * build-aux/vc-list-files: Avoid sed backslash expansion
44774         of pathological directory names.
44775
44776 2009-04-25  Eric Blake  <ebb9@byu.net>
44777
44778         vc-list-files: fix shell quoting error
44779         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44780         timestamp.
44781
44782 2009-04-25  Jim Meyering  <meyering@redhat.com>
44783
44784         vc-list-files: restore lost functionality with subdir argument
44785         * build-aux/vc-list-files: When given a non-"." sub-directory
44786         argument, substitute the $dir/ prefix back onto each resulting name.
44787         Otherwise, coreutils' root_tests check would fail.
44788
44789 2009-04-24  Eric Blake  <ebb9@byu.net>
44790
44791         vc-list-files: ignore git symlinks
44792         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44793         than ls-files, to ignore git symlinks.
44794
44795         maint.mk: import improvements from m4
44796         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44797         (move_if_change): Delete unused macro.
44798         (news-date-check, vc-diff-check): Support VPATH builds.
44799         (announcement): Likewise.  Split --bootstrap-tools list...
44800         (boostrap-tools): ...into separate list, which can be overridden
44801         in cfg.mk.
44802         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44803         requiring dependency on useless-if-before-free module.
44804         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44805         Support VPATH builds.
44806
44807 2009-04-24  Jim Meyering  <meyering@redhat.com>
44808
44809         maint.mk: remove coreutils-specific rules and variables
44810         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44811         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44812         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44813
44814         maint.mk: remove obsolete rule
44815         * top/maint.mk (rel-check): Remove rule.
44816         (WGET, WGETFLAGS): Remove now-unused variables.
44817
44818 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44819
44820         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44821         consistency.
44822
44823         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44824         '$(PATH_SEPARATOR)' instead of ':'.
44825
44826 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44827
44828         * lib/getopt1.c (main): Use 'const' for static array.
44829
44830 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44831
44832         * top/maint.mk: Sync with coreutils.
44833         * NEWS: Explain incompatibilities.
44834
44835 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44836             Bruno Haible  <bruno@clisp.org>
44837
44838         Fix cross-compilation results.
44839         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44840         statement, as third argument of AC_TRY_RUN.
44841         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44842         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44843         Likewise.
44844         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44845         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44846         Likewise.
44847         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44848         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44849         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44850
44851 2009-04-20  Bruno Haible  <bruno@clisp.org>
44852
44853         Avoid test failure on mingw.
44854         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44855
44856 2009-04-20  Bruno Haible  <bruno@clisp.org>
44857
44858         Avoid compilation error on mingw.
44859         * modules/localename-tests (Depends-on): Add locale.
44860
44861 2009-04-19  Bruno Haible  <bruno@clisp.org>
44862
44863         Support for building a shared library on Windows platforms.
44864         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44865         (main): Test the presence of UNINORM_NFC here.
44866         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44867         (main): Test the presence of UNINORM_NFD here.
44868         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44869         (main): Test the presence of UNINORM_NFKC here.
44870         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44871         (main): Test the presence of UNINORM_NFKD here.
44872
44873 2009-04-19  Bruno Haible  <bruno@clisp.org>
44874
44875         Avoid a compiler warning.
44876         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44877         Change type of variable 'sequence'.
44878
44879 2009-04-19  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/configmake (Makefile.am): When the contents of configmake.h
44882         does not change, arrange to preserve its modification time.
44883
44884 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44885
44886         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44887         gettext domain.
44888
44889 2009-04-16  Jim Meyering  <meyering@redhat.com>
44890
44891         useless-if-before-free: improve conversion code
44892         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44893         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44894
44895 2009-04-14  Bruno Haible  <bruno@clisp.org>
44896
44897         * modules/fcntl (Depends-on): Add extensions.
44898         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44899
44900 2009-04-12  Ben Pfaff  <blp@gnu.org>
44901
44902         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44903         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44904
44905 2009-03-20  Ben Pfaff  <blp@gnu.org>
44906
44907         Make rename replace existing destinations on Windows.
44908         * m4/rename.m4: Add test for Mingw.
44909         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44910         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44911         * doc/posix-functions/rename.texi: Document.
44912
44913 2009-04-10  Bruno Haible  <bruno@clisp.org>
44914
44915         New include file "iconveh.h".
44916         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44917         * lib/striconveh.h: Include it.
44918         (enum iconv_ilseq_handler): Remove definition.
44919         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44920         striconveh.h.
44921         * lib/striconveha.c: Include striconveh.h.
44922         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44923         * modules/striconveh (Files): Add lib/iconveh.h.
44924         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44925         lib/striconveh.h.
44926
44927 2009-04-10  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/uniconv.h: Update comment.
44930
44931 2009-04-10  Bruno Haible  <bruno@clisp.org>
44932
44933         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44934         always.
44935         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44936         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44937         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44938         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44939         "unistring-notinline.h", so that the function gets defined always.
44940         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44941         * lib/unistr/u8-uctomb.c: Likewise.
44942         * lib/unistr/u16-mbtouc.c: Likewise.
44943         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44944         * lib/unistr/u16-uctomb.c: Likewise.
44945         * lib/unistr/u32-mbtouc.c: Likewise.
44946         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44947         * lib/unistr/u32-uctomb.c: Likewise.
44948
44949 2009-04-10  Bruno Haible  <bruno@clisp.org>
44950
44951         Mark 'utime' obsolete.
44952         * modules/utime (Status, Notice): New sections.
44953         Suggested by Jim Meyering.
44954
44955         Fix cross-compile guess for utime test.
44956         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44957         autoconf.
44958         * doc/posix-functions/utime.texi: Give more precisions.
44959         Reported by Jan <ipif@ymail.com>.
44960
44961 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44962
44963         filevercmp: correct today's change
44964         * lib/filevercmp.c: Also handle coreutils' test inputs.
44965         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44966
44967         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44968         for reporting it.
44969         * lib/filevercmp.c: Special handle for "", "." and "..".
44970         * tests/test-filevercmp.c: Enlarge the set suite.
44971
44972 2009-04-07  Jim Meyering  <meyering@redhat.com>
44973
44974         useless-if-before-free: show how to remove braced useless free, too
44975         * build-aux/useless-if-before-free: still only in a comment, though.
44976
44977 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44978
44979         maint.mk: import changes to syntax-check macros from coreutils
44980         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44981         Use them in the relevant macros.
44982
44983 2009-04-06  Bruno Haible  <bruno@clisp.org>
44984
44985         Fix unportable use of bit-fields.
44986         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44987         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44988         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44989
44990 2009-04-06  Bruno Haible  <bruno@clisp.org>
44991
44992         Avoid test failures on AIX and OSF/1.
44993         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44994         that malloc(0) = NULL.
44995         * tests/unicase/test-u8-tolower.c (check): Likewise.
44996         * tests/unicase/test-u8-totitle.c (check): Likewise.
44997         * tests/unicase/test-u8-toupper.c (check): Likewise.
44998         * tests/unicase/test-u16-casefold.c (check): Likewise.
44999         * tests/unicase/test-u16-tolower.c (check): Likewise.
45000         * tests/unicase/test-u16-totitle.c (check): Likewise.
45001         * tests/unicase/test-u16-toupper.c (check): Likewise.
45002         * tests/unicase/test-u32-casefold.c (check): Likewise.
45003         * tests/unicase/test-u32-tolower.c (check): Likewise.
45004         * tests/unicase/test-u32-totitle.c (check): Likewise.
45005         * tests/unicase/test-u32-toupper.c (check): Likewise.
45006         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45007         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45008         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45009         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45010         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45011         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45012         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45013         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45014         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45015         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45016         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45017         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45018
45019 2009-04-05  Bruno Haible  <bruno@clisp.org>
45020
45021         Work around an autoconf limitation.
45022         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45023         comment line if it would be longer than 3 KB.
45024
45025 2009-04-05  Bruno Haible  <bruno@clisp.org>
45026
45027         Avoid test failure with libiconv-1.13.
45028         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45029         of the expected test results.
45030
45031 2009-04-05  Bruno Haible  <bruno@clisp.org>
45032
45033         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45034         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45035         that it should be installed.
45036
45037 2009-04-05  Bruno Haible  <bruno@clisp.org>
45038
45039         * gnulib-tool: New option --copy-file.
45040         (func_usage): Document it.
45041         (func_dest_tmpfilename): Moved out of func_import.
45042         (func_add_file, func_update_file): New functions, extracted from
45043         func_import.
45044         (func_import): Update.
45045
45046 2009-04-05  Karl Berry  <karl@gnu.org>
45047
45048         * README: prominently mention gnulib-tool.
45049         Rearrange sections so getting the code is near the top.
45050
45051 2009-04-05  Bruno Haible  <bruno@clisp.org>
45052
45053         * lib/unicase.h: Mention u*_cmp2.
45054         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45055         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45056         * lib/unicase/ulc-casecmp.c: Likewise.
45057         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45058         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45059         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45060         unistr/u8-cmp.
45061         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45062         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45063         unistr/u16-cmp.
45064         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45065         unistr/u32-cmp.
45066
45067         * lib/uninorm.h: Mention u*_cmp2.
45068         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45069         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45070         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45071         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45072         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45073         unistr/u8-cmp.
45074         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45075         unistr/u16-cmp.
45076         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45077         unistr/u32-cmp.
45078
45079         New module 'unistr/u32-cmp2'.
45080         * lib/unistr/u32-cmp2.c: New file.
45081         * modules/unistr/u32-cmp2: New file.
45082
45083         New module 'unistr/u16-cmp2'.
45084         * lib/unistr/u16-cmp2.c: New file.
45085         * modules/unistr/u16-cmp2: New file.
45086
45087         New module 'unistr/u8-cmp2'.
45088         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45089         * lib/unistr/u8-cmp2.c: New file.
45090         * lib/unistr/u-cmp2.h: New file.
45091         * modules/unistr/u8-cmp2: New file.
45092
45093 2009-04-05  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/unictype.h (uc_property_is_valid): New macro.
45096         * tests/unictype/test-pr_byname.c (main): Use it.
45097
45098         * lib/unistr.h: Doc fixes.
45099         * lib/uniconv.h: Doc fixes.
45100         * lib/unictype.h: Doc fixes.
45101
45102 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45103
45104         Port coreutils 7.2 to Solaris 8.
45105
45106         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45107         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45108         for Solaris 8.  This is a bit of a hack, as it means it's the
45109         caller's responsibility to add -lnsl if needed, but most likely it
45110         won't be needed since only getaddrinfo uses this and getaddrinfo
45111         isn't needed on Solaris 8.
45112
45113         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45114         problem to Solaris 8 encountered with coreutils 7.2, which
45115         resulted in a message "fnmatch.c:292: warning: passing argument 4
45116         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45117         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45118
45119 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45120
45121         * m4/ld-version-script.m4: Add FIXME comment.
45122
45123 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45124
45125         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45126         SOVERSION variable.
45127
45128 2009-04-02  Bruno Haible  <bruno@clisp.org>
45129
45130         * Makefile (info, html, dvi, pdf): Combine the rules.
45131         Suggested by Jim Meyering.
45132
45133 2009-04-01  Bruno Haible  <bruno@clisp.org>
45134
45135         * Makefile (info, html, dvi, pdf): New targets.
45136         Reported by Reuben Thomas <rrt@sc3d.org>.
45137
45138 2009-04-01  Bruno Haible  <bruno@clisp.org>
45139
45140         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45141         can be put into PATH.
45142         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45143
45144 2009-04-01  Bruno Haible  <bruno@clisp.org>
45145
45146         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45147
45148 2009-04-01  Bruno Haible  <bruno@clisp.org>
45149
45150         Rename module 'visibility'.
45151         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45152         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45153         * doc/gnulib.texi: Update.
45154         * MODULES.html.sh (Misc): Update.
45155         * NEWS: Mention the change.
45156
45157 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45158
45159         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45160         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45161         Eric Blake <ebb9@byu.net> for review.
45162         * MODULES.html.sh: Add lib-msvc-compat.
45163         * doc/gnulib.texi: Link to new section.
45164         * m4/ld-output-def.m4: New file.
45165         * doc/ld-output-def.texi: New file.
45166
45167 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45168
45169         Rename ld-version-script to lib-symbol-versions.  Suggested by
45170         Bruno Haible <bruno@clisp.org>.
45171         * modules/ld-version-script: Renamed to lib-symbol-versions.
45172         * doc/ld-version-script.texi: Fix module name.
45173         * MODULES.html.sh: Add lib-symbol-versions.
45174
45175 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45176
45177         * modules/u64-tests: New file.
45178         * tests/test-u64.c: New file.
45179
45180 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45181
45182         * MODULES.html.sh: Mention u64.
45183         * modules/u64: New module.
45184         * modules/crypto/sha512: Depend on u64 module instead of providing
45185         u64.h.
45186
45187 2009-03-27  Eric Blake  <ebb9@byu.net>
45188
45189         test-strerror: make debugging EAI_SYSTEM easier
45190         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45191         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45192         failure was EAI_SYSTEM.
45193
45194 2009-03-25  Bruno Haible  <bruno@clisp.org>
45195
45196         Fix a problem with --enable-relocatable on Solaris 7.
45197         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45198         since 2008-02-24.
45199
45200 2009-03-25  Eric Blake  <ebb9@byu.net>
45201
45202         test-sockets: avoid gcc warning
45203         * tests/test-sockets.c (main): Silence compiler warning.
45204
45205 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45206
45207         New modules nproc, pthread, contributed by Glen Lenker.
45208
45209         * MODULES.html.sh: Add pthread, nproc.
45210         * lib/nproc.c: New file.
45211         * lib/nproc.h: New file.
45212         * lib/pthread.in.h: New file.
45213         * m4/pthread.m4: New file.
45214         * modules/nproc: New file.
45215         * modules/pthread: New file.
45216
45217 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45218
45219         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45220         New variable.
45221
45222 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45223
45224         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45225         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45226         * tests/test-filevercmp.c: Add tests for backup suffixes.
45227
45228 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45229
45230         * modules/stdlib (Depends-on): Add stdint, needed when defining
45231         struct random_data on, for example, HP-UX 10.20.  Reported by
45232         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45233
45234 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45235
45236         * lib/readline.c (readline): Call fflush on stdout after printing
45237         prompt.
45238
45239 2009-03-20  Bruno Haible  <bruno@clisp.org>
45240
45241         Remove dependency from 'close' module to -lws2_32 on native Windows.
45242         * lib/close-hook.h: New file.
45243         * lib/close-hook.c: New file.
45244         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45245         w32sock.h.
45246         (_gl_close_fd_maybe_socket): Remove function.
45247         (rpl_close): Invoke execute_all_close_hooks instead of
45248         _gl_close_fd_maybe_socket.
45249         * lib/sockets.c: Include close-hook.h, w32sock.h.
45250         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45251         (close_sockets_hook): New variable.
45252         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45253         (gl_sockets_cleanup): Unregister it.
45254         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45255         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45256         * modules/close-hook: New file.
45257         * modules/close (Files): Remove lib/w32sock.h.
45258         (Depends-on): Add close-hook.
45259         (Link): Remove section.
45260         * modules/sockets (Files): Add lib/w32sock.h.
45261         (Depends-on): Add close-hook.
45262         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45263         invocation.
45264         * NEWS: Mention that LIB_CLOSE is gone.
45265
45266 2009-03-23  Eric Blake  <ebb9@byu.net>
45267
45268         signal-tests: test previous patch
45269         * tests/test-signal.c: New file.
45270         * modules/signal-tests: Likewise.
45271
45272         signal.h: always support 'volatile sig_atomic_t'
45273         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45274         (gl_SIGNAL_H_DEFAULTS): Add a default.
45275         * modules/signal (Makefile.am): Substitute if needed.
45276         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45277         users can blindly add volatile.
45278         * doc/posix-headers/signal.texi (signal.h): Document it.
45279         Reported by Matthew Woehlke.
45280
45281 2009-03-23  Jim Meyering  <meyering@redhat.com>
45282
45283         pathmax: PATH_MAX: use pathconf only when available
45284         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45285         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45286         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45287         This avoids a link failure in a PSP cross-compilation environment
45288         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45289
45290         * lib/vasnprintf.c (divide): Fix typo in comment.
45291
45292 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45293
45294         * gnulib-tool (func_filter_filelist): Fix comment.
45295
45296 2009-03-20  Bruno Haible  <bruno@clisp.org>
45297
45298         Make sockets.h self-contained.
45299         * lib/sockets.c: Include sockets.h first.
45300         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45301
45302 2009-03-19  Eric Blake  <ebb9@byu.net>
45303
45304         doc: mention more functions added in cygwin 1.7.0
45305         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45306         addition.
45307         * doc/posix-functions/log2f.texi: Likewise.
45308
45309 2009-03-19  Jim Meyering  <meyering@redhat.com>
45310
45311         fsusage: avoid syntax error due to statement-before-declaration
45312         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45313         after all declarations.  Reported by Matthew Woehlke in
45314         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45315
45316 2009-03-18  Eric Blake  <ebb9@byu.net>
45317
45318         build-aux/compile: sync from automake
45319         * build-aux/compile: New file, from automake.
45320         * config/srclist.txt: Mention build-aux/compile.
45321
45322 2009-03-17  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/git-merge-changelog.c: Fix typo in comment.
45325         Reported by Reuben Thomas <rrt@sc3d.org>.
45326
45327 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45328
45329         * m4/regex.m4: update and improve help for
45330         --without-included-regex.
45331
45332 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45333
45334         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45335         failure on missing include files.
45336
45337 2009-03-17  Eric Blake  <ebb9@byu.net>
45338
45339         doc: mention more functions added in cygwin 1.7.0
45340         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45341         addition.
45342         * doc/posix-functions/fwscanf.texi: Likewise.
45343         * doc/posix-functions/swprintf.texi: Likewise.
45344         * doc/posix-functions/swscanf.texi: Likewise.
45345         * doc/posix-functions/vfwprintf.texi: Likewise.
45346         * doc/posix-functions/vfwscanf.texi: Likewise.
45347         * doc/posix-functions/vswprintf.texi: Likewise.
45348         * doc/posix-functions/vswscanf.texi: Likewise.
45349         * doc/posix-functions/vwprintf.texi: Likewise.
45350         * doc/posix-functions/vwscanf.texi: Likewise.
45351         * doc/posix-functions/wcscasecmp.texi: Likewise.
45352         * doc/posix-functions/wcsdup.texi: Likewise.
45353         * doc/posix-functions/wcsftime.texi: Likewise.
45354         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45355         * doc/posix-functions/wprintf.texi: Likewise.
45356         * doc/posix-functions/wscanf.texi: Likewise.
45357         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45358
45359 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45360
45361         maint.mk: really add $(AM_MAKEFLAGS)
45362         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45363         was inadvertently omitted in the last commit.
45364         Spotted by Bruno Haible.
45365
45366         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45367         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45368         $(AM_MAKEFLAGS)' rather than plain `make'.
45369
45370         gnulib-tool: execute $MAKE not make
45371         * gnulib-tool: Default $MAKE to 'make'.
45372         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45373         than make.  Initialize $MAKE in the do-autobuild script.
45374
45375         gnulib-tool: use $MAKE not make in generated files
45376         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45377         make, in generated files.  Initialize $MAKE in the do-autobuild
45378         script.
45379
45380         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45381
45382         GNUmakefile: disable parallelism only for multiple, recursive targets
45383         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45384         additions in the Makefile.
45385         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45386         by Automake.
45387         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45388         are listed on the command line and at least one of them is
45389         listed in $(ALL_RECURSIVE_TARGETS).
45390
45391 2009-03-14  Bruno Haible  <bruno@clisp.org>
45392
45393         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45394         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45395         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45396         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45397         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45398         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45399         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45400         unistr/u8-uctomb.
45401         * modules/unistr/u8-strchr (Depends-on): Likewise.
45402         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45403         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45404         unistr/u16-uctomb.
45405         * modules/unistr/u16-strchr (Depends-on): Likewise.
45406         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45407
45408 2009-03-12  Bruno Haible  <bruno@clisp.org>
45409
45410         Work around select() bug on Interix 3.5.
45411         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45412         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45413         * m4/select.m4: New file.
45414         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45415         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45416         * modules/select (Files): Add m4/select.m4.
45417         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45418         * modules/nanosleep (Depends-on): Add select.
45419         * modules/poll (Depends-on): Likewise.
45420         * doc/posix-functions/select.texi: Mention the Interix bug.
45421         Reported by Markus Duft <mduft@gentoo.org>.
45422
45423         * lib/select.c: Renamed from lib/winsock-select.c.
45424         * modules/select (Files): Add lib/select.c, remove
45425         lib/winsock-select.c.
45426         (configure.ac): Update.
45427
45428 2009-03-12  Jim Meyering  <meyering@redhat.com>
45429
45430         avoid gcc warnings about unused macro definitions
45431         * lib/readtokens.c (STREQ): Remove unused definition.
45432         * lib/xmalloc.c (SIZE_MAX): Likewise.
45433         * lib/openat-die.c (N_): Likewise.
45434         * lib/mountlist.c (SIZE_MAX): Remove definition.
45435         Instead, include <stdint.h>.
45436         * lib/readutmp.c: Likewise.
45437         * modules/readutmp (Depends-on): Add stdint.
45438         * modules/mountlist (Depends-on): Add stdint.
45439         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45440
45441 2009-03-10  Bruno Haible  <bruno@clisp.org>
45442
45443         Tests for module 'mbmemcasecoll'.
45444         * modules/mbmemcasecoll-tests: New file.
45445         * tests/test-mbmemcasecoll1.sh: New file.
45446         * tests/test-mbmemcasecoll2.sh: New file.
45447         * tests/test-mbmemcasecoll3.sh: New file.
45448         * tests/test-mbmemcasecoll.c: New file.
45449
45450         New module 'mbmemcasecoll'.
45451         * lib/mbmemcasecoll.h: New file.
45452         * lib/mbmemcasecoll.c: New file.
45453         * modules/mbmemcasecoll: New file.
45454
45455         * tests/test-mbmemcasecmp.h: New file, extracted from
45456         tests/test-mbmemcasecmp.c.
45457         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45458         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45459         (main): Update.
45460         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45461
45462 2009-03-09  Bruno Haible  <bruno@clisp.org>
45463
45464         Tests for module 'mbmemcasecmp'.
45465         * modules/mbmemcasecmp-tests: New file.
45466         * tests/test-mbmemcasecmp1.sh: New file.
45467         * tests/test-mbmemcasecmp2.sh: New file.
45468         * tests/test-mbmemcasecmp3.sh: New file.
45469         * tests/test-mbmemcasecmp.c: New file.
45470
45471         New module 'mbmemcasecmp'.
45472         * lib/mbmemcasecmp.h: New file.
45473         * lib/mbmemcasecmp.c: New file.
45474         * modules/mbmemcasecmp: New file.
45475
45476 2009-03-09  Bruno Haible  <bruno@clisp.org>
45477
45478         Tests for module 'unicase/ulc-casecoll'.
45479         * modules/unicase/ulc-casecoll-tests: New file.
45480         * tests/unicase/test-ulc-casecoll1.sh: New file.
45481         * tests/unicase/test-ulc-casecoll2.sh: New file.
45482         * tests/unicase/test-ulc-casecoll.c: New file.
45483
45484         New module 'unicase/ulc-casecoll'.
45485         * lib/unicase.h (ulc_casecoll): New declaration.
45486         * lib/unicase/ulc-casecoll.c: New file.
45487         * modules/unicase/ulc-casecoll: New file.
45488
45489         New module 'unicase/ulc-casexfrm'.
45490         * lib/unicase.h (ulc_casexfrm): New declaration.
45491         * lib/unicase/ulc-casexfrm.c: New file.
45492         * modules/unicase/ulc-casexfrm: New file.
45493
45494 2009-03-09  Bruno Haible  <bruno@clisp.org>
45495
45496         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45497         invocations.
45498
45499         * m4/mbscasecmp.m4: Remove file.
45500         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45501         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45502
45503         * m4/mbscasestr.m4: Remove file.
45504         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45505         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45506
45507         * m4/mbschr.m4: Remove file.
45508         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45509         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45510
45511         * m4/mbscspn.m4: Remove file.
45512         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45513         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45514
45515         * m4/mbslen.m4: Remove file.
45516         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45517         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45518
45519         * m4/mbsncasecmp.m4: Remove file.
45520         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45521         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45522
45523         * m4/mbsnlen.m4: Remove file.
45524         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45525         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45526
45527         * m4/mbspbrk.m4: Remove file.
45528         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45529         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45530
45531         * m4/mbspcasecmp.m4: Remove file.
45532         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45533         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45534
45535         * m4/mbsrchr.m4: Remove file.
45536         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45537         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45538
45539         * m4/mbssep.m4: Remove file.
45540         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45541         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45542
45543         * m4/mbsspn.m4: Remove file.
45544         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45545         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45546
45547         * m4/mbsstr.m4: Remove file.
45548         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45549         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45550
45551         * m4/mbstok_r.m4: Remove file.
45552         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45553         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45554
45555         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45556
45557         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45558         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45559
45560         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45561
45562 2009-03-08  Bruno Haible  <bruno@clisp.org>
45563
45564         Tests for module 'unicase/ulc-casecmp'.
45565         * modules/unicase/ulc-casecmp-tests: New file.
45566         * tests/unicase/test-ulc-casecmp1.sh: New file.
45567         * tests/unicase/test-ulc-casecmp2.sh: New file.
45568         * tests/unicase/test-ulc-casecmp.c: New file.
45569
45570         New module 'unicase/ulc-casecmp'.
45571         * lib/unicase.h (ulc_casecmp): New declaration.
45572         * lib/unicase/ulc-casecmp.c: New file.
45573         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45574         'const SRC_UNIT *'.
45575         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45576         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45577         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45578         * modules/unicase/ulc-casecmp: New file.
45579
45580         Tests for module 'unicase/u32-is-cased'.
45581         * modules/unicase/u32-is-cased-tests: New file.
45582         * tests/unicase/test-u32-is-cased.c: New file.
45583
45584         Tests for module 'unicase/u16-is-cased'.
45585         * modules/unicase/u16-is-cased-tests: New file.
45586         * tests/unicase/test-u16-is-cased.c: New file.
45587
45588         Tests for module 'unicase/u8-is-cased'.
45589         * modules/unicase/u8-is-cased-tests: New file.
45590         * tests/unicase/test-u8-is-cased.c: New file.
45591         * tests/unicase/test-is-cased.h: New file.
45592
45593         New module 'unicase/u32-is-cased'.
45594         * lib/unicase/u32-is-cased.c: New file.
45595         * modules/unicase/u32-is-cased: New file.
45596
45597         New module 'unicase/u16-is-cased'.
45598         * lib/unicase/u16-is-cased.c: New file.
45599         * modules/unicase/u16-is-cased: New file.
45600
45601         New module 'unicase/u8-is-cased'.
45602         * lib/unicase/u8-is-cased.c: New file.
45603         * lib/unicase/u-is-cased.h: New file.
45604         * modules/unicase/u8-is-cased: New file.
45605
45606         Tests for module 'unicase/u32-is-casefolded'.
45607         * modules/unicase/u32-is-casefolded-tests: New file.
45608         * tests/unicase/test-u32-is-casefolded.c: New file.
45609
45610         Tests for module 'unicase/u16-is-casefolded'.
45611         * modules/unicase/u16-is-casefolded-tests: New file.
45612         * tests/unicase/test-u16-is-casefolded.c: New file.
45613
45614         Tests for module 'unicase/u8-is-casefolded'.
45615         * modules/unicase/u8-is-casefolded-tests: New file.
45616         * tests/unicase/test-u8-is-casefolded.c: New file.
45617         * tests/unicase/test-is-casefolded.h: New file.
45618
45619         New module 'unicase/u32-is-casefolded'.
45620         * lib/unicase/u32-is-casefolded.c: New file.
45621         * modules/unicase/u32-is-casefolded: New file.
45622
45623         New module 'unicase/u16-is-casefolded'.
45624         * lib/unicase/u16-is-casefolded.c: New file.
45625         * modules/unicase/u16-is-casefolded: New file.
45626
45627         New module 'unicase/u8-is-casefolded'.
45628         * lib/unicase/u8-is-casefolded.c: New file.
45629         * modules/unicase/u8-is-casefolded: New file.
45630
45631         Tests for module 'unicase/u32-is-titlecase'.
45632         * modules/unicase/u32-is-titlecase-tests: New file.
45633         * tests/unicase/test-u32-is-titlecase.c: New file.
45634
45635         Tests for module 'unicase/u16-is-titlecase'.
45636         * modules/unicase/u16-is-titlecase-tests: New file.
45637         * tests/unicase/test-u16-is-titlecase.c: New file.
45638
45639         Tests for module 'unicase/u8-is-titlecase'.
45640         * modules/unicase/u8-is-titlecase-tests: New file.
45641         * tests/unicase/test-u8-is-titlecase.c: New file.
45642         * tests/unicase/test-is-titlecase.h: New file.
45643
45644         New module 'unicase/u32-is-titlecase'.
45645         * lib/unicase/u32-is-titlecase.c: New file.
45646         * modules/unicase/u32-is-titlecase: New file.
45647
45648         New module 'unicase/u16-is-titlecase'.
45649         * lib/unicase/u16-is-titlecase.c: New file.
45650         * modules/unicase/u16-is-titlecase: New file.
45651
45652         New module 'unicase/u8-is-titlecase'.
45653         * lib/unicase/u8-is-titlecase.c: New file.
45654         * modules/unicase/u8-is-titlecase: New file.
45655
45656         Tests for module 'unicase/u32-is-lowercase'.
45657         * modules/unicase/u32-is-lowercase-tests: New file.
45658         * tests/unicase/test-u32-is-lowercase.c: New file.
45659
45660         Tests for module 'unicase/u16-is-lowercase'.
45661         * modules/unicase/u16-is-lowercase-tests: New file.
45662         * tests/unicase/test-u16-is-lowercase.c: New file.
45663
45664         Tests for module 'unicase/u8-is-lowercase'.
45665         * modules/unicase/u8-is-lowercase-tests: New file.
45666         * tests/unicase/test-u8-is-lowercase.c: New file.
45667         * tests/unicase/test-is-lowercase.h: New file.
45668
45669         New module 'unicase/u32-is-lowercase'.
45670         * lib/unicase/u32-is-lowercase.c: New file.
45671         * modules/unicase/u32-is-lowercase: New file.
45672
45673         New module 'unicase/u16-is-lowercase'.
45674         * lib/unicase/u16-is-lowercase.c: New file.
45675         * modules/unicase/u16-is-lowercase: New file.
45676
45677         New module 'unicase/u8-is-lowercase'.
45678         * lib/unicase/u8-is-lowercase.c: New file.
45679         * modules/unicase/u8-is-lowercase: New file.
45680
45681         Tests for module 'unicase/u32-is-uppercase'.
45682         * modules/unicase/u32-is-uppercase-tests: New file.
45683         * tests/unicase/test-u32-is-uppercase.c: New file.
45684
45685         Tests for module 'unicase/u16-is-uppercase'.
45686         * modules/unicase/u16-is-uppercase-tests: New file.
45687         * tests/unicase/test-u16-is-uppercase.c: New file.
45688
45689         Tests for module 'unicase/u8-is-uppercase'.
45690         * modules/unicase/u8-is-uppercase-tests: New file.
45691         * tests/unicase/test-u8-is-uppercase.c: New file.
45692         * tests/unicase/test-is-uppercase.h: New file.
45693
45694         New module 'unicase/u32-is-uppercase'.
45695         * lib/unicase/u32-is-uppercase.c: New file.
45696         * modules/unicase/u32-is-uppercase: New file.
45697
45698         New module 'unicase/u16-is-uppercase'.
45699         * lib/unicase/u16-is-uppercase.c: New file.
45700         * modules/unicase/u16-is-uppercase: New file.
45701
45702         New module 'unicase/u8-is-uppercase'.
45703         * lib/unicase/u8-is-uppercase.c: New file.
45704         * modules/unicase/u8-is-uppercase: New file.
45705
45706         New module 'unicase/u32-is-invariant'.
45707         * lib/unicase/u32-is-invariant.c: New file.
45708         * modules/unicase/u32-is-invariant: New file.
45709
45710         New module 'unicase/u16-is-invariant'.
45711         * lib/unicase/u16-is-invariant.c: New file.
45712         * modules/unicase/u16-is-invariant: New file.
45713
45714         New module 'unicase/u8-is-invariant'.
45715         * lib/unicase/u8-is-invariant.c: New file.
45716         * lib/unicase/invariant.h: New file.
45717         * lib/unicase/u-is-invariant.h: New file.
45718         * modules/unicase/u8-is-invariant: New file.
45719
45720         Tests for module 'unicase/u32-casecoll'.
45721         * modules/unicase/u32-casecoll-tests: New file.
45722         * tests/unicase/test-u32-casecoll.c: New file.
45723
45724         Tests for module 'unicase/u16-casecoll'.
45725         * modules/unicase/u16-casecoll-tests: New file.
45726         * tests/unicase/test-u16-casecoll.c: New file.
45727
45728         Tests for module 'unicase/u8-casecoll'.
45729         * modules/unicase/u8-casecoll-tests: New file.
45730         * tests/unicase/test-u8-casecoll.c: New file.
45731
45732         New module 'unicase/u32-casecoll'.
45733         * lib/unicase/u32-casecoll.c: New file.
45734         * modules/unicase/u32-casecoll: New file.
45735
45736         New module 'unicase/u16-casecoll'.
45737         * lib/unicase/u16-casecoll.c: New file.
45738         * modules/unicase/u16-casecoll: New file.
45739
45740         New module 'unicase/u8-casecoll'.
45741         * lib/unicase/u8-casecoll.c: New file.
45742         * lib/unicase/u-casecoll.h: New file.
45743         * modules/unicase/u8-casecoll: New file.
45744
45745         New module 'unicase/u32-casexfrm'.
45746         * lib/unicase/u32-casexfrm.c: New file.
45747         * modules/unicase/u32-casexfrm: New file.
45748
45749         New module 'unicase/u16-casexfrm'.
45750         * lib/unicase/u16-casexfrm.c: New file.
45751         * modules/unicase/u16-casexfrm: New file.
45752
45753         New module 'unicase/u8-casexfrm'.
45754         * lib/unicase/u8-casexfrm.c: New file.
45755         * lib/unicase/u-casexfrm.h: New file.
45756         * modules/unicase/u8-casexfrm: New file.
45757
45758         Tests for module 'unicase/u32-casecmp'.
45759         * modules/unicase/u32-casecmp-tests: New file.
45760         * tests/unicase/test-u32-casecmp.c: New file.
45761
45762         Tests for module 'unicase/u16-casecmp'.
45763         * modules/unicase/u16-casecmp-tests: New file.
45764         * tests/unicase/test-u16-casecmp.c: New file.
45765
45766         Tests for module 'unicase/u8-casecmp'.
45767         * modules/unicase/u8-casecmp-tests: New file.
45768         * tests/unicase/test-u8-casecmp.c: New file.
45769         * tests/unicase/test-casecmp.h: New file.
45770
45771         New module 'unicase/u32-casecmp'.
45772         * lib/unicase/u32-casecmp.c: New file.
45773         * modules/unicase/u32-casecmp: New file.
45774
45775         New module 'unicase/u16-casecmp'.
45776         * lib/unicase/u16-casecmp.c: New file.
45777         * modules/unicase/u16-casecmp: New file.
45778
45779         New module 'unicase/u8-casecmp'.
45780         * lib/unicase/u8-casecmp.c: New file.
45781         * lib/unicase/u-casecmp.h: New file.
45782         * modules/unicase/u8-casecmp: New file.
45783
45784         Tests for module 'unicase/u32-casefold'.
45785         * modules/unicase/u32-casefold-tests: New file.
45786         * tests/unicase/test-u32-casefold.c: New file.
45787
45788         Tests for module 'unicase/u16-casefold'.
45789         * modules/unicase/u16-casefold-tests: New file.
45790         * tests/unicase/test-u16-casefold.c: New file.
45791
45792         Tests for module 'unicase/u8-casefold'.
45793         * modules/unicase/u8-casefold-tests: New file.
45794         * tests/unicase/test-u8-casefold.c: New file.
45795
45796         New module 'unicase/u32-casefold'.
45797         * lib/unicase/u32-casefold.c: New file.
45798         * modules/unicase/u32-casefold: New file.
45799
45800         New module 'unicase/u16-casefold'.
45801         * lib/unicase/u16-casefold.c: New file.
45802         * modules/unicase/u16-casefold: New file.
45803
45804         New module 'unicase/u8-casefold'.
45805         * lib/unicase/u8-casefold.c: New file.
45806         * lib/unicase/u-casefold.h: New file.
45807         * modules/unicase/u8-casefold: New file.
45808
45809         New module 'unicase/tocasefold'.
45810         * lib/unicase/casefold.h: New file.
45811         * lib/unicase/tocasefold.c: New file.
45812         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45813         * modules/unicase/tocasefold: New file.
45814
45815         Tests for module 'unicase/u32-totitle'.
45816         * modules/unicase/u32-totitle-tests: New file.
45817         * tests/unicase/test-u32-totitle.c: New file.
45818
45819         Tests for module 'unicase/u16-totitle'.
45820         * modules/unicase/u16-totitle-tests: New file.
45821         * tests/unicase/test-u16-totitle.c: New file.
45822
45823         Tests for module 'unicase/u8-totitle'.
45824         * modules/unicase/u8-totitle-tests: New file.
45825         * tests/unicase/test-u8-totitle.c: New file.
45826
45827         New module 'unicase/u32-totitle'.
45828         * lib/unicase/u32-totitle.c: New file.
45829         * modules/unicase/u32-totitle: New file.
45830
45831         New module 'unicase/u16-totitle'.
45832         * lib/unicase/u16-totitle.c: New file.
45833         * modules/unicase/u16-totitle: New file.
45834
45835         New module 'unicase/u8-totitle'.
45836         * lib/unicase/u8-totitle.c: New file.
45837         * lib/unicase/u-totitle.h: New file.
45838         * modules/unicase/u8-totitle: New file.
45839
45840         Tests for module 'unicase/u32-tolower'.
45841         * modules/unicase/u32-tolower-tests: New file.
45842         * tests/unicase/test-u32-tolower.c: New file.
45843
45844         Tests for module 'unicase/u16-tolower'.
45845         * modules/unicase/u16-tolower-tests: New file.
45846         * tests/unicase/test-u16-tolower.c: New file.
45847
45848         Tests for module 'unicase/u8-tolower'.
45849         * modules/unicase/u8-tolower-tests: New file.
45850         * tests/unicase/test-u8-tolower.c: New file.
45851
45852         New module 'unicase/u32-tolower'.
45853         * lib/unicase/u32-tolower.c: New file.
45854         * modules/unicase/u32-tolower: New file.
45855
45856         New module 'unicase/u16-tolower'.
45857         * lib/unicase/u16-tolower.c: New file.
45858         * modules/unicase/u16-tolower: New file.
45859
45860         New module 'unicase/u8-tolower'.
45861         * lib/unicase/u8-tolower.c: New file.
45862         * modules/unicase/u8-tolower: New file.
45863
45864         Tests for module 'unicase/u32-toupper'.
45865         * modules/unicase/u32-toupper-tests: New file.
45866         * tests/unicase/test-u32-toupper.c: New file.
45867
45868         Tests for module 'unicase/u16-toupper'.
45869         * modules/unicase/u16-toupper-tests: New file.
45870         * tests/unicase/test-u16-toupper.c: New file.
45871
45872         Tests for module 'unicase/u8-toupper'.
45873         * modules/unicase/u8-toupper-tests: New file.
45874         * tests/unicase/test-u8-toupper.c: New file.
45875
45876         New module 'unicase/u32-toupper'.
45877         * lib/unicase/u32-toupper.c: New file.
45878         * modules/unicase/u32-toupper: New file.
45879
45880         New module 'unicase/u16-toupper'.
45881         * lib/unicase/u16-toupper.c: New file.
45882         * modules/unicase/u16-toupper: New file.
45883
45884         New module 'unicase/u8-toupper'.
45885         * lib/unicase/u8-toupper.c: New file.
45886         * modules/unicase/u8-toupper: New file.
45887
45888         New module 'unicase/u32-casemap'.
45889         * lib/unicase/u32-casemap.c: New file.
45890         * modules/unicase/u32-casemap: New file.
45891
45892         New module 'unicase/u16-casemap'.
45893         * lib/unicase/u16-casemap.c: New file.
45894         * modules/unicase/u16-casemap: New file.
45895
45896         New module 'unicase/u8-casemap'.
45897         * lib/unicase/unicasemap.h: New file.
45898         * lib/unicase/u8-casemap.c: New file.
45899         * lib/unicase/u-casemap.h: New file.
45900         * modules/unicase/u8-casemap: New file.
45901
45902         New module 'unicase/special-casing'.
45903         * lib/unicase/special-casing.h: New file.
45904         * lib/unicase/special-casing.c: New file.
45905         * lib/unicase/special-casing-table.gperf: New file, generated by
45906         gen-uni-tables.c.
45907         * modules/unicase/special-casing: New file.
45908
45909         Tests for module 'unicase/locale-language'.
45910         * modules/unicase/locale-language-tests: New file.
45911         * tests/unicase/test-locale-language.sh: New file.
45912         * tests/unicase/test-locale-language.c: New file.
45913
45914         New module 'unicase/locale-language'.
45915         * lib/unicase/locale-language.c: New file.
45916         * lib/unicase/locale-languages.gperf: New file.
45917         * modules/unicase/locale-language: New file.
45918
45919         Generate more tables for case conversion and case folding.
45920         * lib/gen-uni-tables.c (SCC_*): New enum items.
45921         (struct special_casing_rule): New type.
45922         (casing_rules, num_casing_rules, allocated_casing_rules): New
45923         variables.
45924         (add_casing_rule, fill_casing_rules): New functions.
45925         (struct casefold_rule): New type.
45926         (casefolding_rules, num_casefolding_rules,
45927         allocated_casefolding_rules): New variables.
45928         (fill_casefolding_rules): New function.
45929         (unicode_casefold): New variable.
45930         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45931         sort_casing_rules, output_casing_rules): New functions.
45932         (main): Accept to more arguments: SpecialCasing.txt and
45933         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45934         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45935         Output mapping for casefolding.
45936
45937         * lib/unicase.h: Include stdbool.h, uninorm.h.
45938         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45939         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45940         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45941         arguments.
45942         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45943         resultp arguments.
45944         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45945         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45946         resultp arguments.
45947         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45948         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45949         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45950         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45951         declarations.
45952         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45953
45954 2009-03-08  Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45957         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45958         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45959         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45960
45961 2009-03-07  Bruno Haible  <bruno@clisp.org>
45962
45963         Adjust u*_normcmp, u*_normcoll API.
45964         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45965         u16_normcoll, u32_normcoll): Change failure conventions.
45966         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45967         errno and return -1.
45968         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45969
45970 2009-03-07  Bruno Haible  <bruno@clisp.org>
45971
45972         Tests for module 'uninorm/u32-normcoll'.
45973         * modules/uninorm/u32-normcoll-tests: New file.
45974         * tests/uninorm/test-u32-normcoll.c: New file.
45975
45976         Tests for module 'uninorm/u16-normcoll'.
45977         * modules/uninorm/u16-normcoll-tests: New file.
45978         * tests/uninorm/test-u16-normcoll.c: New file.
45979
45980         Tests for module 'uninorm/u8-normcoll'.
45981         * modules/uninorm/u8-normcoll-tests: New file.
45982         * tests/uninorm/test-u8-normcoll.c: New file.
45983
45984 2009-03-07  Bruno Haible  <bruno@clisp.org>
45985
45986         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45987         tests/uninorm/test-u32-normcmp.c.
45988         * tests/uninorm/test-u32-normcmp.c: Include it.
45989         (test_nonascii): New function, extracted from main. Add some more
45990         tests.
45991         (main): Invoke test_ascii and test_nonascii.
45992         * modules/uninorm/u32-normcmp-tests (Files): Add
45993         tests/uninorm/test-u32-normcmp.h.
45994         (Depends-on): Remove uninorm/u32-normcmp.
45995
45996         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45997         tests/uninorm/test-u16-normcmp.c.
45998         * tests/uninorm/test-u16-normcmp.c: Include it.
45999         (test_nonascii): New function, extracted from main. Add some more
46000         tests.
46001         (main): Invoke test_ascii and test_nonascii.
46002         * modules/uninorm/u16-normcmp-tests (Files): Add
46003         tests/uninorm/test-u16-normcmp.h.
46004         (Depends-on): Remove uninorm/u16-normcmp.
46005
46006         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46007         tests/uninorm/test-u8-normcmp.c.
46008         * tests/uninorm/test-u8-normcmp.c: Include it.
46009         (test_nonascii): New function, extracted from main. Add some more
46010         tests.
46011         (main): Invoke test_ascii and test_nonascii.
46012         * modules/uninorm/u8-normcmp-tests (Files): Add
46013         tests/uninorm/test-u8-normcmp.h.
46014         (Depends-on): Remove uninorm/u8-normcmp.
46015
46016 2009-03-07  Bruno Haible  <bruno@clisp.org>
46017
46018         New module 'uninorm/u32-normcoll'.
46019         * lib/uninorm/u32-normcoll.c: New file.
46020         * modules/uninorm/u32-normcoll: New file.
46021
46022         New module 'uninorm/u16-normcoll'.
46023         * lib/uninorm/u16-normcoll.c: New file.
46024         * modules/uninorm/u16-normcoll: New file.
46025
46026         New module 'uninorm/u8-normcoll'.
46027         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46028         declarations.
46029         * lib/uninorm/u8-normcoll.c: New file.
46030         * lib/uninorm/u-normcoll.h: New file.
46031         * modules/uninorm/u8-normcoll: New file.
46032
46033         New module 'uninorm/u32-normxfrm'.
46034         * lib/uninorm/u32-normxfrm.c: New file.
46035         * modules/uninorm/u32-normxfrm: New file.
46036
46037         New module 'uninorm/u16-normxfrm'.
46038         * lib/uninorm/u16-normxfrm.c: New file.
46039         * modules/uninorm/u16-normxfrm: New file.
46040
46041         New module 'uninorm/u8-normxfrm'.
46042         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46043         declarations.
46044         * lib/uninorm/u8-normxfrm.c: New file.
46045         * lib/uninorm/u-normxfrm.h: New file.
46046         * modules/uninorm/u8-normxfrm: New file.
46047
46048 2009-03-07  Bruno Haible  <bruno@clisp.org>
46049
46050         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46051         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46052         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46053
46054 2009-03-07  Bruno Haible  <bruno@clisp.org>
46055
46056         New module 'memxfrm'.
46057         * lib/memxfrm.h: New file.
46058         * lib/memxfrm.c: New file.
46059         * modules/memxfrm: New file.
46060
46061 2009-03-07  Bruno Haible  <bruno@clisp.org>
46062
46063         New module 'memcmp2'.
46064         * lib/memcmp2.h: New file.
46065         * lib/memcmp2.c: New file.
46066         * modules/memcmp2: New file.
46067
46068 2009-03-07  Bruno Haible  <bruno@clisp.org>
46069
46070         Tests for module 'uninorm/decomposing-form'.
46071         * modules/uninorm/decomposing-form-tests: New file.
46072         * tests/uninorm/test-decomposing-form.c: New file.
46073
46074         New module 'uninorm/decomposing-form'.
46075         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46076         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46077         Add 'decomposing_variant' field.
46078         * lib/uninorm/decomposing-form.c: New file.
46079         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46080         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46081         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46082         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46083         * modules/uninorm/decomposing-form: New file.
46084         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46085         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46086
46087 2009-03-07  Bruno Haible  <bruno@clisp.org>
46088
46089         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46090         strings.
46091
46092 2009-03-06  Bruno Haible  <bruno@clisp.org>
46093
46094         Tests for module 'uninorm/u32-normcmp'.
46095         * tests/uninorm/test-u32-normcmp.c: New file.
46096         * modules/uninorm/u32-normcmp-tests: New file.
46097
46098         Tests for module 'uninorm/u16-normcmp'.
46099         * tests/uninorm/test-u16-normcmp.c: New file.
46100         * modules/uninorm/u16-normcmp-tests: New file.
46101
46102         Tests for module 'uninorm/u8-normcmp'.
46103         * tests/uninorm/test-u8-normcmp.c: New file.
46104         * modules/uninorm/u8-normcmp-tests: New file.
46105
46106         New module 'uninorm/u32-normcmp'.
46107         * lib/uninorm/u32-normcmp.c: New file.
46108         * modules/uninorm/u32-normcmp: New file.
46109
46110         New module 'uninorm/u16-normcmp'.
46111         * lib/uninorm/u16-normcmp.c: New file.
46112         * modules/uninorm/u16-normcmp: New file.
46113
46114         New module 'uninorm/u8-normcmp'.
46115         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46116         declarations.
46117         * lib/uninorm/u8-normcmp.c: New file.
46118         * lib/uninorm/u-normcmp.h: New file.
46119         * modules/uninorm/u8-normcmp: New file.
46120
46121 2009-03-06  Bruno Haible  <bruno@clisp.org>
46122
46123         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46124         Reported by Eric Blake.
46125
46126 2009-03-06  Eric Blake  <ebb9@byu.net>
46127             Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46130         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46131         condition.
46132         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46133         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46134         condition.
46135         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46136
46137 2009-03-06  Eric Blake  <ebb9@byu.net>
46138
46139         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46140         to avoid compiler warnings.
46141         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46142
46143 2009-03-05  Bruno Haible  <bruno@clisp.org>
46144
46145         * tests/test-ftell.c (main): Disable test beyond end of file on
46146         FreeMiNT.
46147         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46148
46149 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46150
46151         * lib/filevercmp.c: Move hidden files up in ordering.
46152         * tests/test-filevercmp.c: Add tests for hidden files.
46153
46154 2009-03-04  Bruno Haible  <bruno@clisp.org>
46155
46156         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46157         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46158         AM_CFLAGS.
46159         Reported by Simon Josefsson.
46160
46161 2009-03-03  Bruno Haible  <bruno@clisp.org>
46162
46163         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46164         Reported by Simon Josefsson.
46165
46166         * doc/ld-version-script.texi: Update node reference.
46167
46168 2009-03-03  Bruno Haible  <bruno@clisp.org>
46169
46170         * modules/visibility (License): Change to 'unlimited'.
46171         Suggested by Simon Josefsson.
46172
46173 2009-03-03  Jim Meyering  <meyering@redhat.com>
46174
46175         unlinkdir: cannot_unlink_dir may modify process state
46176         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46177         it's neither thread-safe nor appropriate for use in a library.
46178
46179 2009-03-03  Eric Blake  <ebb9@byu.net>
46180
46181         test-closein: silence test under Darwin
46182         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46183         care if it dies from EPIPE or EBADF.
46184
46185 2009-03-03  Bruno Haible  <bruno@clisp.org>
46186
46187         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46188         earlier.
46189         * doc/visibility.texi: Fix @node and @section.
46190
46191 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46192
46193         * doc/gnulib.texi: Link to sections for ld version script and
46194         visibility.
46195         * doc/visibility.texi: Add @node and @section.
46196         * modules/ld-version-script: New module.
46197         * m4/ld-version-script.m4: New file.
46198         * doc/ld-version-script.texi: New file.
46199
46200 2009-03-02  David Lutterkort  <lutter@redhat.com>
46201
46202         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46204
46205 2009-03-02  Bruno Haible  <bruno@clisp.org>
46206
46207         * doc/visibility.texi: Mention libtool's -export-symbols option.
46208
46209 2009-03-02  Jim Meyering  <meyering@redhat.com>
46210
46211         announce-gen: new option: --no-print-checksums
46212         * build-aux/announce-gen (usage): Describe it.
46213         (print_checksums): Print a newline here, not in the [*] footnote.
46214         (main): Honor it.
46215
46216 2009-03-01  Bruno Haible  <bruno@clisp.org>
46217
46218         Use socklen_t in the native Windows replacements prototypes.
46219         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46220         instead of 'int'.
46221         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46222         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46223         * modules/getsockopt (Depends-on): Add socklen.
46224         * modules/setsockopt (Depends-on): Add socklen.
46225
46226 2009-03-01  Bruno Haible  <bruno@clisp.org>
46227
46228         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46229         least 4.2.
46230
46231 2009-03-01  Eric Blake  <ebb9@byu.net>
46232             Bruno Haible  <bruno@clisp.org>
46233
46234         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46235         error messages.
46236         * lib/wait-process.c (wait_subprocess): Omit error message about
46237         deadly signal sent to the child of termsigp != NULL.
46238
46239 2009-03-01  Eric Blake  <ebb9@byu.net>
46240
46241         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46242
46243 2009-03-01  Bruno Haible  <bruno@clisp.org>
46244
46245         Avoid a gcc warning.
46246         * tests/test-sched.c (b): Make global.
46247         Reported by Eric Blake.
46248
46249 2009-01-19  Martin Lambers  <marlam@marlam.de>
46250
46251         Provide POSIX semantics for socket timeout options on W32.
46252         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46253         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46254         * modules/setsockopt: Depend on sys_time module for struct timeval.
46255         * modules/getsockopt: Depend on sys_time module for struct timeval.
46256
46257 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46258
46259         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46260         __USE_GNU, for consistency with netdb.in.h.
46261         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46262
46263 2009-03-01  Bruno Haible  <bruno@clisp.org>
46264
46265         More support for FreeMiNT.
46266         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46267         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46268
46269 2009-03-01  Bruno Haible  <bruno@clisp.org>
46270
46271         More support for FreeMiNT.
46272         * lib/fpurge.c (fpurge): Correct last commit.
46273         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46274
46275 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46276
46277         Fix unportable awk script in vc-list-files.
46278         * build-aux/vc-list-files: In the replacement awk script, use
46279         substr with a second argument of 1, not zero.
46280         Report by Simon Josefsson.
46281
46282 2009-02-28  Bruno Haible  <bruno@clisp.org>
46283
46284         More support for FreeMiNT.
46285         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46286         to FreeMiNT today.
46287         * lib/fwriting.c (fwriting): Likewise.
46288         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46289
46290 2009-02-28  Bruno Haible  <bruno@clisp.org>
46291
46292         * tests/test-freadseek.c (main): Disable test beyond end of file on
46293         FreeMiNT.
46294         * tests/test-ftello.c (main): Likewise.
46295         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46296
46297 2009-02-28  Bruno Haible  <bruno@clisp.org>
46298
46299         Add tentative support for FreeMiNT.
46300         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46301         * lib/fpurge.c (fpurge): Likewise.
46302         * lib/freadable.c (freadable): Likewise.
46303         * lib/freading.c (freading): Likewise.
46304         * lib/freadptr.c (freadptr): Likewise.
46305         * lib/freadseek.c (freadptrinc): Likewise.
46306         * lib/fseeko.c (rpl_fseeko): Likewise.
46307         * lib/fseterr.c (fseterr): Likewise.
46308         * lib/fwritable.c (fwritable): Likewise.
46309         * lib/fwriting.c (fwriting): Likewise.
46310         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46311         Hourihane.
46312         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46313
46314 2009-02-28  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46317         SIGCHLD.
46318         Reported by Jim Meyering.
46319
46320 2009-02-28  Bruno Haible  <bruno@clisp.org>
46321
46322         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46323         Mention the results of these tests on various platforms.
46324         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46325         order.
46326         * doc/posix-functions/printf.texi: Likewise.
46327         * doc/posix-functions/snprintf.texi: Likewise.
46328         * doc/posix-functions/sprintf.texi: Likewise.
46329         * doc/posix-functions/vfprintf.texi: Likewise.
46330         * doc/posix-functions/vprintf.texi: Likewise.
46331         * doc/posix-functions/vsnprintf.texi: Likewise.
46332         * doc/posix-functions/vsprintf.texi: Likewise.
46333         * doc/glibc-functions/obstack_printf.texi: Likewise.
46334         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46335
46336 2009-02-28  Bruno Haible  <bruno@clisp.org>
46337
46338         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46339         Reported by Loïc Minier <lool@dooz.org>.
46340
46341 2009-02-27  Bruno Haible  <bruno@clisp.org>
46342
46343         * gnulib-tool (func_import): Make the sed expression used to create the
46344         sed script for updating the .gitignore file POSIX compliant.
46345         Reported by Eric Blake.
46346
46347 2009-02-27  Bruno Haible  <bruno@clisp.org>
46348
46349         * gnulib-tool (sed): Don't alias as "sed --posix".
46350         Reported by Eric Blake.
46351
46352 2009-02-27  Bruno Haible  <bruno@clisp.org>
46353
46354         Avoid test link errors.
46355         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46356         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46357         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46358         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46360
46361 2009-02-27  Bruno Haible  <bruno@clisp.org>
46362
46363         Avoid spurious "(cached)" in configure output.
46364         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46365         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46366         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46367         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46368         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46369         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46370         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46371         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46372         Reported by Eric Blake.
46373
46374 2009-02-27  Eric Blake  <ebb9@byu.net>
46375
46376         printf: fix regression in previous patch
46377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46378
46379 2009-02-27  Bruno Haible  <bruno@clisp.org>
46380
46381         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46382         value.
46383         * lib/stdint.in.h: Likewise.
46384         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46385
46386 2009-02-27  Eric Blake  <ebb9@byu.net>
46387
46388         doc: mention more functions added in cygwin 1.7.0
46389         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46390         addition.
46391         * doc/posix-functions/open_wmemstream.texi: Likewise.
46392         * doc/posix-functions/wcsnlen.texi: Likewise.
46393         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46394         * doc/posix-functions/wcstod.texi: Likewise.
46395         * doc/posix-functions/wcstof.texi: Likewise.
46396         * doc/posix-functions/wcstoimax.texi: Likewise.
46397         * doc/posix-functions/wcstok.texi: Likewise.
46398         * doc/posix-functions/wcstoumax.texi: Likewise.
46399
46400         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46402         * doc/posix-functions/fprintf.texi: Update.
46403         * doc/posix-functions/printf.texi: Update.
46404         * doc/posix-functions/snprintf.texi: Update.
46405         * doc/posix-functions/sprintf.texi: Update.
46406         * doc/posix-functions/vfprintf.texi: Update.
46407         * doc/posix-functions/vprintf.texi: Update.
46408         * doc/posix-functions/vsnprintf.texi: Update.
46409         * doc/posix-functions/vsprintf.texi: Update.
46410         * doc/glibc-functions/obstack_printf.texi: Update.
46411         * doc/glibc-functions/obstack_vprintf.texi: Update.
46412
46413 2009-02-26  Eric Blake  <ebb9@byu.net>
46414
46415         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46416         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46417         compilation bug by using runtime conversion.
46418         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46419         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46420         * modules/ceill-tests (Files): Use nan.h.
46421         * modules/floorl-tests (Files): Likewise.
46422         * modules/frexpl-tests (Files): Likewise.
46423         * modules/isnanl-tests (Files): Likewise.
46424         * modules/ldexpl-tests (Files): Likewise.
46425         * modules/roundl-tests (Files): Likewise.
46426         * modules/truncl-tests (Files): Likewise.
46427         * tests/test-ceill.c (main): Use a working NaN.
46428         * tests/test-floorl.c (main): Likewise.
46429         * tests/test-frexpl.c (main): Likewise.
46430         * tests/test-isnan.c (test_long_double): Likewise.
46431         * tests/test-isnanl.h (main): Likewise.
46432         * tests/test-ldexpl.h (main): Likewise.
46433         * tests/test-roundl.h (main): Likewise.
46434         * tests/test-truncl.h (main): Likewise.
46435         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46436
46437 2009-02-26  Eric Blake  <ebb9@byu.net>
46438             Bruno Haible  <bruno@clisp.org>
46439
46440         Work around a *printf bug with %ls on Solaris.
46441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46442         precision is specified, sprintf stops converting the wide string
46443         argument when the number of bytes that have been produced by this
46444         conversion equals or exceeds the precision.
46445         * doc/posix-functions/fprintf.texi: Update.
46446         * doc/posix-functions/printf.texi: Update.
46447         * doc/posix-functions/snprintf.texi: Update.
46448         * doc/posix-functions/sprintf.texi: Update.
46449         * doc/posix-functions/vfprintf.texi: Update.
46450         * doc/posix-functions/vprintf.texi: Update.
46451         * doc/posix-functions/vsnprintf.texi: Update.
46452         * doc/posix-functions/vsprintf.texi: Update.
46453         * doc/glibc-functions/obstack_printf.texi: Update.
46454         * doc/glibc-functions/obstack_vprintf.texi: Update.
46455
46456 2009-02-26  Eric Blake  <ebb9@byu.net>
46457
46458         stdlib: favor compiler check of random.h
46459         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46460         to avoid an ObjC random.h installed by Swarm.
46461
46462 2009-02-26  Bruno Haible  <bruno@clisp.org>
46463
46464         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46465         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46466         Reported by Gary V. Vaughan <gary@gnu.org>.
46467
46468 2009-02-26  Bruno Haible  <bruno@clisp.org>
46469
46470         Fix *printf behaviour regarding the %ls directive.
46471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46472         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46473         NEED_PRINTF_DIRECTIVE_LS.
46474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46475         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46476         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46477         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46478         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46479         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46480         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46485         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46486         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46487         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46488         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46489         * doc/posix-functions/fprintf.texi: Update.
46490         * doc/posix-functions/printf.texi: Update.
46491         * doc/posix-functions/snprintf.texi: Update.
46492         * doc/posix-functions/sprintf.texi: Update.
46493         * doc/posix-functions/vfprintf.texi: Update.
46494         * doc/posix-functions/vprintf.texi: Update.
46495         * doc/posix-functions/vsnprintf.texi: Update.
46496         * doc/posix-functions/vsprintf.texi: Update.
46497         * doc/glibc-functions/obstack_printf.texi: Update.
46498         * doc/glibc-functions/obstack_vprintf.texi: Update.
46499         Reported by Eric Blake.
46500
46501 2009-02-25  Bruno Haible  <bruno@clisp.org>
46502
46503         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46504         with known value.
46505         Reported by Gary V. Vaughan <gary@gnu.org>.
46506
46507 2009-02-25  Bruno Haible  <bruno@clisp.org>
46508
46509         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46510         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46511         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46512         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46513         Reported by Gary V. Vaughan <gary@gnu.org>.
46514
46515 2009-02-25  Bruno Haible  <bruno@clisp.org>
46516
46517         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46518         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46519         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46520         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46521         Reported by Gary V. Vaughan <gary@gnu.org>.
46522
46523 2009-02-25  Eric Blake  <ebb9@byu.net>
46524
46525         tests: skip fseek/ftell tests if ungetc is broken
46526         * m4/ungetc.m4: New file.
46527         * modules/fseek-tests: Split test, so ungetc dependency is
46528         separate from rest of test.
46529         * modules/fseeko-tests: Likewise.
46530         * modules/ftell-tests: Likewise.
46531         * modules/ftello-tests: Likewise.
46532         * tests/test-fseek.c (main): Isolate ungetc dependency.
46533         * tests/test-fseeko.c (main): Likewise.
46534         * tests/test-ftell.c (main): Likewise.
46535         * tests/test-ftello.c (main): Likewise.
46536         * tests/test-fseek2.sh: New file.
46537         * tests/test-fseeko2.sh: Likewise.
46538         * tests/test-ftell2.sh: Likewise.
46539         * tests/test-ftello2.sh: Likewise.
46540
46541 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46542
46543         test-getaddrinfo: fix usage of skip return code 77
46544         * tests/test-gettaddrinfo.c: Return skip code 77 only
46545         for first occurance of skip (4x77 is not 77)
46546
46547 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46548
46549         strtod: avoid C99 decl-after-statement
46550         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46551
46552 2009-02-24  Eric Blake  <ebb9@byu.net>
46553
46554         strtod: detect HP-UX 11.31 bug
46555         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46556         Reported by Gary V. Vaughan.
46557
46558 2009-02-23  Bruno Haible  <bruno@clisp.org>
46559
46560         Fix invalid read past end of memory block.
46561         * lib/vasnprintf.c (DCHAR_SET): Define.
46562         (local_wcslen): Define only when needed.
46563         (local_strnlen, local_wcsnlen): New functions.
46564         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46565         directives that involve a conversion ourselves.
46566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46567         wcsnlen, mbrtowc, wcrtomb.
46568         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46569         * tests/test-vasprintf-posix.c (test_function): Likewise.
46570         * tests/test-snprintf-posix.h (test_function): Likewise.
46571         * tests/test-sprintf-posix.h (test_function): Likewise.
46572         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46573
46574 2009-02-22  Bruno Haible  <bruno@clisp.org>
46575
46576         Implement new clarified decomposition of Hangul syllables.
46577         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46578         of type LTV, return only a pairwise decomposition.
46579         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46580         Likewise.
46581         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46582         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46583         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46584
46585 2009-02-22  Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46588         zero-length results and shrink excess allocated memory.
46589         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46590         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46591         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46592         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46593         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46594         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46595         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46596         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46597         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46598         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46599         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46600         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46601
46602 2009-02-21  Bruno Haible  <bruno@clisp.org>
46603
46604         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46605         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46606         spaces after a period. Put a space between a macro name and its
46607         argument list. Trivial rewordings.
46608         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46609         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46610         (main): Return 0 explicitly.
46611
46612 2009-02-21  Bruno Haible  <bruno@clisp.org>
46613
46614         Tests for module 'uninorm/filter'.
46615         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46616         * modules/uninorm/filter-tests: New file.
46617
46618         New module 'uninorm/filter'.
46619         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46620         uninorm_filter_flush, uninorm_filter_free): New declarations.
46621         * lib/uninorm/uninorm-filter.c: New file.
46622         * modules/uninorm/filter: New file.
46623
46624 2009-02-21  Bruno Haible  <bruno@clisp.org>
46625
46626         Tests for module 'uninorm/nfkc'.
46627         * tests/uninorm/test-nfkc.c: New file.
46628         * tests/uninorm/test-u8-nfkc.c: New file.
46629         * tests/uninorm/test-u16-nfkc.c: New file.
46630         * tests/uninorm/test-u32-nfkc.c: New file.
46631         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46632         * tests/uninorm/test-u32-nfkc-big.c: New file.
46633         * modules/uninorm/nfkc-tests: New file.
46634
46635         New module 'uninorm/nfkc'.
46636         * lib/uninorm/nfkc.c: New file.
46637         * modules/uninorm/nfkc: New file.
46638
46639         Tests for module 'uninorm/nfkd'.
46640         * tests/uninorm/test-nfkd.c: New file.
46641         * tests/uninorm/test-u8-nfkd.c: New file.
46642         * tests/uninorm/test-u16-nfkd.c: New file.
46643         * tests/uninorm/test-u32-nfkd.c: New file.
46644         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46645         * tests/uninorm/test-u32-nfkd-big.c: New file.
46646         * modules/uninorm/nfkd-tests: New file.
46647
46648         New module 'uninorm/nfkd'.
46649         * lib/uninorm/nfkd.c: New file.
46650         * modules/uninorm/nfkd: New file.
46651
46652         Tests for module 'uninorm/nfc'.
46653         * tests/uninorm/test-nfc.c: New file.
46654         * tests/uninorm/test-u8-nfc.c: New file.
46655         * tests/uninorm/test-u16-nfc.c: New file.
46656         * tests/uninorm/test-u32-nfc.c: New file.
46657         * tests/uninorm/test-u32-nfc-big.sh: New file.
46658         * tests/uninorm/test-u32-nfc-big.c: New file.
46659         * modules/uninorm/nfc-tests: New file.
46660
46661         New module 'uninorm/nfc'.
46662         * lib/uninorm/nfc.c: New file.
46663         * modules/uninorm/nfc: New file.
46664
46665         Tests for module 'uninorm/nfd'.
46666         * tests/uninorm/test-nfd.c: New file.
46667         * tests/uninorm/test-u8-nfd.c: New file.
46668         * tests/uninorm/test-u16-nfd.c: New file.
46669         * tests/uninorm/test-u32-nfd.c: New file.
46670         * tests/uninorm/test-u32-nfd-big.sh: New file.
46671         * tests/uninorm/test-u32-nfd-big.c: New file.
46672         * tests/uninorm/test-u32-normalize-big.h: New file.
46673         * tests/uninorm/test-u32-normalize-big.c: New file.
46674         * tests/uninorm/NormalizationTest.txt: New file, created from
46675         Unicode 5.1.0 NormalizationTest.txt.
46676         * modules/uninorm/nfd-tests: New file.
46677
46678         New module 'uninorm/nfd'.
46679         * lib/uninorm/nfd.c: New file.
46680         * modules/uninorm/nfd: New file.
46681
46682         New module 'uninorm/u32-normalize'.
46683         * lib/uninorm/u32-normalize.c: New file.
46684         * modules/uninorm/u32-normalize: New file.
46685
46686         New module 'uninorm/u16-normalize'.
46687         * lib/uninorm/u16-normalize.c: New file.
46688         * modules/uninorm/u16-normalize: New file.
46689
46690         New module 'uninorm/u8-normalize'.
46691         * lib/uninorm/u8-normalize.c: New file.
46692         * lib/uninorm/normalize-internal.h: New file.
46693         * lib/uninorm/u-normalize-internal.h: New file.
46694         * modules/uninorm/u8-normalize: New file.
46695
46696         New module 'uninorm/decompose-internal'.
46697         * lib/uninorm/decompose-internal.c: New file.
46698         * modules/uninorm/decompose-internal: New file.
46699
46700         Tests for module 'uninorm/composition'.
46701         * tests/uninorm/test-composition.c: New file.
46702         * modules/uninorm/composition-tests: New file.
46703
46704         New module 'uninorm/composition'.
46705         * lib/uninorm/composition.c: New file.
46706         * lib/uninorm/composition-table.gperf: New file, generated by
46707         gen-uni-tables.
46708         * modules/uninorm/composition: New file.
46709
46710         Tests for module 'uninorm/compat-decomposition'.
46711         * tests/uninorm/test-compat-decomposition.c: New file.
46712         * modules/uninorm/compat-decomposition-tests: New file.
46713
46714         New module 'uninorm/compat-decomposition'.
46715         * lib/uninorm/decompose-internal.h: New file.
46716         * lib/uninorm/compat-decomposition.c: New file.
46717         * modules/uninorm/compat-decomposition: New file.
46718
46719         Tests for module 'uninorm/canonical-decomposition'.
46720         * tests/uninorm/test-canonical-decomposition.c: New file.
46721         * modules/uninorm/canonical-decomposition-tests: New file.
46722
46723         New module 'uninorm/canonical-decomposition'.
46724         * lib/uninorm/canonical-decomposition.c: New file.
46725         * modules/uninorm/canonical-decomposition: New file.
46726
46727         Tests for module 'uninorm/decomposition'.
46728         * tests/uninorm/test-decomposition.c: New file.
46729         * modules/uninorm/decomposition-tests: New file.
46730
46731         New module 'uninorm/decomposition'.
46732         * lib/uninorm/decomposition.c: New file.
46733         * modules/uninorm/decomposition: New file.
46734
46735         New module 'uninorm/decomposition-table'.
46736         * lib/uninorm/decomposition-table.h: New file.
46737         * lib/uninorm/decomposition-table.c: New file.
46738         * lib/uninorm/decomposition-table1.h: New file, generated by
46739         gen-uni-tables.
46740         * lib/uninorm/decomposition-table2.h: New file, generated by
46741         gen-uni-tables.
46742         * modules/uninorm/decomposition-table: New file.
46743
46744         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46745         (UC_DECOMP_*): New enumeration items.
46746         (get_decomposition): New function.
46747         (struct decomp_table): New type.
46748         (output_decomposition, output_decomposition_tables): New functions.
46749         (unicode_composition_exclusions): New variable.
46750         (fill_composition_exclusions, debug_output_composition_tables): New
46751         functions.
46752         (main): Accept one more argument. Invoke fill_composition_exclusions.
46753         Output decomposition and composition tables.
46754
46755         New module 'uninorm/base'.
46756         * lib/uninorm.h: New file.
46757         * lib/unictype.h: Update comment.
46758         * modules/uninorm/base: New file.
46759
46760 2009-02-21  David Lutterkort  <lutter@redhat.com>
46761
46762         Tests for module 'safe-alloc'.
46763         * tests/test-safe-alloc.c: New file.
46764         * modules/safe-alloc-tests: New file.
46765
46766         New module 'safe-alloc'.
46767         * lib/safe-alloc.h: New file.
46768         * lib/safe-alloc.c: New file.
46769         * m4/safe-alloc.m4: New file.
46770         * modules/safe-alloc: New file.
46771         * doc/safe-alloc.texi: New file.
46772         * doc/gnulib.texi: Include it.
46773         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46774         safe-alloc.
46775
46776 2009-02-18  Bruno Haible  <bruno@clisp.org>
46777
46778         Fix link error on non-glibc systems.
46779         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46780         variable.
46781         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46782
46783 2009-02-18  Jim Meyering  <meyering@redhat.com>
46784
46785         fts: avoid used-uninitialized error due to recent change
46786         * lib/fts.c (fts_read): Guard uses of the new member,
46787         parent->fts_n_dirs_remaining, since it's not relevant for
46788         the parent of a directory specified on the command-line.
46789
46790 2009-02-17  James Youngman  <jay@gnu.org>
46791             Bruno Haible  <bruno@clisp.org>
46792
46793         * m4/include_next.m4: Reformulate comment.
46794
46795 2009-02-16  Jim Meyering  <meyering@redhat.com>
46796
46797         fts: add #if guards so that the fts_lgpl module still builds
46798         * lib/fts.c: Guard just-added hash-table-using parts with
46799         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46800         Reported by Simon Josefsson.
46801
46802 2009-02-15  Bruno Haible  <bruno@clisp.org>
46803
46804         * modules/array-mergesort-tests: New file.
46805         * tests/test-array-mergesort.c: New file.
46806
46807         New module 'array-mergesort'.
46808         * modules/array-mergesort: New file.
46809         * lib/array-mergesort.h: New file.
46810
46811 2009-02-15  Bruno Haible  <bruno@clisp.org>
46812
46813         Fix 2009-02-07 commit.
46814         * lib/gen-uni-tables.c (output_predicate, output_category,
46815         output_combclass, output_bidi_category, output_decimal_digit,
46816         output_digit, output_numeric, output_mirror, output_scripts,
46817         output_ident_category, output_simple_mapping): Fix format directives.
46818         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46819
46820 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46821
46822         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46823         fixes are available from IBM.
46824
46825 2009-02-13  Jim Meyering  <meyering@redhat.com>
46826
46827         fts: arrange not to stat non-directories in more cases
46828         This makes GNU find (when it doesn't need to stat each file)
46829         *much* more efficient at traversing reiserfs file systems.
46830         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46831         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46832         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46833         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46834         (leaf_optimization_applies): New function.
46835         (LCO_hash, LCO_compare): New helper functions.
46836         (link_count_optimize_ok): New function.
46837         (fts_stat): Initialize new member (if dir).
46838         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46839         we've just stat'ed a directory.  Skip the stat call when possible.
46840         ---
46841         Note this AFS-related exchange:
46842         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46843         and note find's pioctl call in find/fstype.c.
46844         But that is necessary only if you want to enable the
46845         optimization for AFS, and for now, I don't.
46846
46847         fts: move a function definition "up" (no semantic change)
46848         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46849         "up" to precede upcoming use of a related function.
46850
46851 2009-02-11  Jim Meyering  <meyering@redhat.com>
46852
46853         fts: correct internal computation of nlinks (optimization-related)
46854         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46855         whether the current entry is a directory, so don't test it.
46856
46857 2009-02-10  Bruno Haible  <bruno@clisp.org>
46858
46859         Tests for module 'uniwbrk/ulc-wordbreaks'.
46860         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46861         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46862         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46863
46864         Tests for module 'uniwbrk/u32-wordbreaks'.
46865         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46866         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46867
46868         Tests for module 'uniwbrk/u16-wordbreaks'.
46869         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46870         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46871
46872         Tests for module 'uniwbrk/u8-wordbreaks'.
46873         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46874         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46875
46876 2009-02-10  Bruno Haible  <bruno@clisp.org>
46877
46878         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46879         property.
46880         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46881         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46882         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46883
46884 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46885
46886         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46887         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46888
46889 2009-02-10  Bruno Haible  <bruno@clisp.org>
46890
46891         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46892         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46893         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46894         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46895         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46896         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46897
46898 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46899
46900         * lib/sockets.h (gl_fd_to_handle): New function.
46901
46902         * tests/test-sockets.c: Call gl_fd_to_handle.
46903
46904 2009-02-09  Bruno Haible  <bruno@clisp.org>
46905
46906         * doc/havelib.texi: Document the conventions on bi-arch systems.
46907
46908 2009-02-08  Bruno Haible  <bruno@clisp.org>
46909
46910         Document the AC_LIB_LINKFLAGS macro.
46911         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46912         * doc/gnulib.texi: Include it.
46913
46914 2009-02-08  Bruno Haible  <bruno@clisp.org>
46915
46916         Fix wrong order of sections, compared to TOC.
46917         * doc/gnulib.texi: Include relocatable-maint.texi after the
46918         "Regular expressions" node, not before.
46919
46920 2009-02-08  Bruno Haible  <bruno@clisp.org>
46921
46922         Tests for module 'unicase/totitle'.
46923         * modules/unicase/totitle-tests: New file.
46924
46925         Tests for module 'unicase/tolower'.
46926         * modules/unicase/tolower-tests: New file.
46927
46928         Tests for module 'unicase/toupper'.
46929         * modules/unicase/toupper-tests: New file.
46930         * tests/unicase/test-mapping-part1.h: New file.
46931         * tests/unicase/test-mapping-part2.h: New file.
46932
46933         New module 'unicase/totitle'.
46934         * modules/unicase/totitle: New file.
46935         * lib/unicase/totitle.c: New file.
46936
46937         New module 'unicase/tolower'.
46938         * modules/unicase/tolower: New file.
46939         * lib/unicase/tolower.c: New file.
46940
46941         New module 'unicase/toupper'.
46942         * modules/unicase/toupper: New file.
46943         * lib/unicase/toupper.c: New file.
46944         * lib/unicase/simple-mapping.h: New file.
46945
46946         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46947         (mapping_table): New structure.
46948         (output_simple_mapping): New function.
46949         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46950         * modules/gen-uni-tables (Description): Update.
46951         * lib/unicase/toupper.h: New file, automatically generated by
46952         gen-uni-tables.
46953         * lib/unicase/tolower.h: New file, automatically generated by
46954         gen-uni-tables.
46955         * lib/unicase/totitle.h: New file, automatically generated by
46956         gen-uni-tables.
46957         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46958         gen-uni-tables.
46959         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46960         gen-uni-tables.
46961         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46962         gen-uni-tables.
46963
46964         New module 'unicase/base'.
46965         * modules/unicase/base: New file.
46966         * lib/unicase.h: New file.
46967
46968 2009-02-08  Bruno Haible  <bruno@clisp.org>
46969
46970         New module 'uniwbrk/ulc-wordbreaks'.
46971         * modules/uniwbrk/ulc-wordbreaks: New file.
46972         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46973
46974         New module 'uniwbrk/u32-wordbreaks'.
46975         * modules/uniwbrk/u32-wordbreaks: New file.
46976         * lib/uniwbrk/u32-wordbreaks.c: New file.
46977
46978         New module 'uniwbrk/u16-wordbreaks'.
46979         * modules/uniwbrk/u16-wordbreaks: New file.
46980         * lib/uniwbrk/u16-wordbreaks.c: New file.
46981
46982         New module 'uniwbrk/u8-wordbreaks'.
46983         * modules/uniwbrk/u8-wordbreaks: New file.
46984         * lib/uniwbrk/u8-wordbreaks.c: New file.
46985         * lib/uniwbrk/u-wordbreaks.h: New file.
46986
46987         New module 'uniwbrk/table'.
46988         * modules/uniwbrk/table: New file.
46989         * lib/uniwbrk/wbrktable.h: New file.
46990         * lib/uniwbrk/wbrktable.c: New file.
46991
46992         New module 'uniwbrk/wordbreak-property'.
46993         * modules/uniwbrk/wordbreak-property: New file.
46994         * lib/uniwbrk/wordbreak-property.c: New file.
46995
46996         * lib/gen-uni-tables.c (WBP_*): New enum items.
46997         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46998         (unicode_org_wbp): New variable.
46999         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47000         New functions.
47001         (wbp_table): New structure.
47002         (output_wbp, output_wbrk_tables): New functions.
47003         (main): Accept additional argument. Invoke fill_org_wbp,
47004         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47005         output_wbrk_tables.
47006         * modules/gen-uni-tables (Description): Update.
47007         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47008         gen-uni-tables.
47009
47010         New module 'uniwbrk/base'.
47011         * modules/uniwbrk/base: New file.
47012         * lib/uniwbrk.h: New file.
47013
47014 2009-02-08  Bruno Haible  <bruno@clisp.org>
47015
47016         Update to Unicode 5.1.0.
47017         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47018         U+2185..U+2188.
47019         (is_property_default_ignorable_code_point): Don't include characters
47020         of category Cc or Cs and not-a-characters.
47021         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47022         U+0D79, U+109E, U+109F, U+A60C.
47023         * lib/unictype/bidi_of.h: Regenerated.
47024         * lib/unictype/blocks.h: Regenerated.
47025         * lib/unictype/categ_C.h: Regenerated.
47026         * lib/unictype/categ_Cf.h: Regenerated.
47027         * lib/unictype/categ_Cn.h: Regenerated.
47028         * lib/unictype/categ_L.h: Regenerated.
47029         * lib/unictype/categ_Ll.h: Regenerated.
47030         * lib/unictype/categ_Lm.h: Regenerated.
47031         * lib/unictype/categ_Lo.h: Regenerated.
47032         * lib/unictype/categ_Lu.h: Regenerated.
47033         * lib/unictype/categ_M.h: Regenerated.
47034         * lib/unictype/categ_Mc.h: Regenerated.
47035         * lib/unictype/categ_Me.h: Regenerated.
47036         * lib/unictype/categ_Mn.h: Regenerated.
47037         * lib/unictype/categ_N.h: Regenerated.
47038         * lib/unictype/categ_Nd.h: Regenerated.
47039         * lib/unictype/categ_Nl.h: Regenerated.
47040         * lib/unictype/categ_No.h: Regenerated.
47041         * lib/unictype/categ_P.h: Regenerated.
47042         * lib/unictype/categ_Pd.h: Regenerated.
47043         * lib/unictype/categ_Pe.h: Regenerated.
47044         * lib/unictype/categ_Pf.h: Regenerated.
47045         * lib/unictype/categ_Pi.h: Regenerated.
47046         * lib/unictype/categ_Po.h: Regenerated.
47047         * lib/unictype/categ_Ps.h: Regenerated.
47048         * lib/unictype/categ_S.h: Regenerated.
47049         * lib/unictype/categ_Sk.h: Regenerated.
47050         * lib/unictype/categ_Sm.h: Regenerated.
47051         * lib/unictype/categ_So.h: Regenerated.
47052         * lib/unictype/categ_of.h: Regenerated.
47053         * lib/unictype/combining.h: Regenerated.
47054         * lib/unictype/ctype_alnum.h: Regenerated.
47055         * lib/unictype/ctype_alpha.h: Regenerated.
47056         * lib/unictype/ctype_graph.h: Regenerated.
47057         * lib/unictype/ctype_lower.h: Regenerated.
47058         * lib/unictype/ctype_print.h: Regenerated.
47059         * lib/unictype/ctype_punct.h: Regenerated.
47060         * lib/unictype/ctype_upper.h: Regenerated.
47061         * lib/unictype/decdigit.h: Regenerated.
47062         * lib/unictype/digit.h: Regenerated.
47063         * lib/unictype/mirror.h: Regenerated.
47064         * lib/unictype/numeric.h: Regenerated.
47065         * lib/unictype/pr_alphabetic.h: Regenerated.
47066         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47067         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47068         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47069         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47070         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47071         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47072         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47073         * lib/unictype/pr_combining.h: Regenerated.
47074         * lib/unictype/pr_dash.h: Regenerated.
47075         * lib/unictype/pr_decimal_digit.h: Regenerated.
47076         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47077         * lib/unictype/pr_deprecated.h: Regenerated.
47078         * lib/unictype/pr_diacritic.h: Regenerated.
47079         * lib/unictype/pr_extender.h: Regenerated.
47080         * lib/unictype/pr_format_control.h: Regenerated.
47081         * lib/unictype/pr_grapheme_base.h: Regenerated.
47082         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47083         * lib/unictype/pr_grapheme_link.h: Regenerated.
47084         * lib/unictype/pr_id_continue.h: Regenerated.
47085         * lib/unictype/pr_id_start.h: Regenerated.
47086         * lib/unictype/pr_ideographic.h: Regenerated.
47087         * lib/unictype/pr_ignorable_control.h: Regenerated.
47088         * lib/unictype/pr_lowercase.h: Regenerated.
47089         * lib/unictype/pr_math.h: Regenerated.
47090         * lib/unictype/pr_numeric.h: Regenerated.
47091         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47092         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47093         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47094         * lib/unictype/pr_other_id_continue.h: Regenerated.
47095         * lib/unictype/pr_other_lowercase.h: Regenerated.
47096         * lib/unictype/pr_other_math.h: Regenerated.
47097         * lib/unictype/pr_punctuation.h: Regenerated.
47098         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47099         * lib/unictype/pr_soft_dotted.h: Regenerated.
47100         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47101         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47102         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47103         * lib/unictype/pr_uppercase.h: Regenerated.
47104         * lib/unictype/pr_xid_continue.h: Regenerated.
47105         * lib/unictype/pr_xid_start.h: Regenerated.
47106         * lib/unictype/pr_zero_width.h: Regenerated.
47107         * lib/unictype/scripts.h: Regenerated.
47108         * lib/unictype/scripts_byname.gperf: Regenerated.
47109         * lib/unictype/sy_java_ident.h: Regenerated.
47110         * lib/unilbrk/lbrkprop1.h: Regenerated.
47111         * lib/unilbrk/lbrkprop2.h: Regenerated.
47112         * tests/unictype/test-categ_C.c: Regenerated.
47113         * tests/unictype/test-categ_Cf.c: Regenerated.
47114         * tests/unictype/test-categ_Cn.c: Regenerated.
47115         * tests/unictype/test-categ_L.c: Regenerated.
47116         * tests/unictype/test-categ_Ll.c: Regenerated.
47117         * tests/unictype/test-categ_Lm.c: Regenerated.
47118         * tests/unictype/test-categ_Lo.c: Regenerated.
47119         * tests/unictype/test-categ_Lu.c: Regenerated.
47120         * tests/unictype/test-categ_M.c: Regenerated.
47121         * tests/unictype/test-categ_Mc.c: Regenerated.
47122         * tests/unictype/test-categ_Me.c: Regenerated.
47123         * tests/unictype/test-categ_Mn.c: Regenerated.
47124         * tests/unictype/test-categ_N.c: Regenerated.
47125         * tests/unictype/test-categ_Nd.c: Regenerated.
47126         * tests/unictype/test-categ_Nl.c: Regenerated.
47127         * tests/unictype/test-categ_No.c: Regenerated.
47128         * tests/unictype/test-categ_P.c: Regenerated.
47129         * tests/unictype/test-categ_Pd.c: Regenerated.
47130         * tests/unictype/test-categ_Pe.c: Regenerated.
47131         * tests/unictype/test-categ_Pf.c: Regenerated.
47132         * tests/unictype/test-categ_Pi.c: Regenerated.
47133         * tests/unictype/test-categ_Po.c: Regenerated.
47134         * tests/unictype/test-categ_Ps.c: Regenerated.
47135         * tests/unictype/test-categ_S.c: Regenerated.
47136         * tests/unictype/test-categ_Sk.c: Regenerated.
47137         * tests/unictype/test-categ_Sm.c: Regenerated.
47138         * tests/unictype/test-categ_So.c: Regenerated.
47139         * tests/unictype/test-ctype_alnum.c: Regenerated.
47140         * tests/unictype/test-ctype_alpha.c: Regenerated.
47141         * tests/unictype/test-ctype_graph.c: Regenerated.
47142         * tests/unictype/test-ctype_lower.c: Regenerated.
47143         * tests/unictype/test-ctype_print.c: Regenerated.
47144         * tests/unictype/test-ctype_punct.c: Regenerated.
47145         * tests/unictype/test-ctype_upper.c: Regenerated.
47146         * tests/unictype/test-decdigit.h: Regenerated.
47147         * tests/unictype/test-digit.h: Regenerated.
47148         * tests/unictype/test-numeric.h: Regenerated.
47149         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47150         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47151         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47152         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47153         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47154         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47155         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47156         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47157         * tests/unictype/test-pr_combining.c: Regenerated.
47158         * tests/unictype/test-pr_dash.c: Regenerated.
47159         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47160         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47161         * tests/unictype/test-pr_deprecated.c: Regenerated.
47162         * tests/unictype/test-pr_diacritic.c: Regenerated.
47163         * tests/unictype/test-pr_extender.c: Regenerated.
47164         * tests/unictype/test-pr_format_control.c: Regenerated.
47165         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47166         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47167         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47168         * tests/unictype/test-pr_id_continue.c: Regenerated.
47169         * tests/unictype/test-pr_id_start.c: Regenerated.
47170         * tests/unictype/test-pr_ideographic.c: Regenerated.
47171         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47172         * tests/unictype/test-pr_lowercase.c: Regenerated.
47173         * tests/unictype/test-pr_math.c: Regenerated.
47174         * tests/unictype/test-pr_numeric.c: Regenerated.
47175         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47176         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47177         Regenerated.
47178         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47179         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47180         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47181         * tests/unictype/test-pr_other_math.c: Regenerated.
47182         * tests/unictype/test-pr_punctuation.c: Regenerated.
47183         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47184         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47185         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47186         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47187         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47188         * tests/unictype/test-pr_uppercase.c: Regenerated.
47189         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47190         * tests/unictype/test-pr_xid_start.c: Regenerated.
47191         * tests/unictype/test-pr_zero_width.c: Regenerated.
47192
47193         Update to Unicode 5.1.0.
47194         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47195         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47196         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47197         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47198         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47199         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47200         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47201         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47202         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47203         (nonspacing_table_ind): Update.
47204         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47205
47206         Update to Unicode 5.1.0.
47207         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47208         code transform.
47209         * lib/uniname/uniname.c (unicode_character_name,
47210         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47211         * lib/uniname/uninames.h: Regenerated.
47212         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47213
47214 2009-02-07  Bruno Haible  <bruno@clisp.org>
47215
47216         Merge gen-ctype and gen-lbrk into a single program.
47217         * lib/gen-uni-tables.c: New file, incorporating
47218         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47219         Add directory prefixes to the names of the generated files.
47220         * lib/unictype/gen-ctype.c: Remove file.
47221         * lib/unilbrk/gen-lbrk.c: Remove file.
47222         * modules/gen-uni-tables: New file.
47223         * modules/unictype/gen-ctype: Remove file.
47224         * modules/unilbrk/gen-lbrk: Remove file.
47225
47226 2009-02-07  Bruno Haible  <bruno@clisp.org>
47227
47228         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47229
47230         New module 'unistr/u32-strcoll'.
47231         * modules/unistr/u32-strcoll: New file.
47232         * lib/unistr/u32-strcoll.c: New file.
47233
47234         New module 'unistr/u16-strcoll'.
47235         * modules/unistr/u16-strcoll: New file.
47236         * lib/unistr/u16-strcoll.c: New file.
47237
47238         New module 'unistr/u8-strcoll'.
47239         * modules/unistr/u8-strcoll: New file.
47240         * lib/unistr/u8-strcoll.c: New file.
47241         * lib/unistr/u-strcoll.h: New file.
47242
47243 2009-02-07  Bruno Haible  <bruno@clisp.org>
47244
47245         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47246         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47247         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47248         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47249         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47250         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47251
47252 2009-02-07  Bruno Haible  <bruno@clisp.org>
47253
47254         Make 64-bit clean.
47255         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47256         output_combclass, output_bidi_category, output_decimal_digit,
47257         output_digit, output_numeric, output_mirror, output_scripts,
47258         output_ident_category): Use proper width specifier in format strings.
47259
47260 2009-02-07  Bruno Haible  <bruno@clisp.org>
47261
47262         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47263         failure behaviour.
47264
47265 2009-02-07  Jim Meyering  <meyering@redhat.com>
47266
47267         regex: avoid compilation failure with upcoming gcc-4.4
47268         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47269         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47270         "... error: integer overflow in preprocessor expression".
47271
47272 2009-02-05  Ben Pfaff  <blp@gnu.org>
47273
47274         Fix link errors on Windows when close module is used.
47275         * modules/close: Add $(LIB_CLOSE) to Link section.
47276         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47277         $(LIB_CLOSE) on Windows.
47278
47279 2009-02-05  Jim Meyering  <meyering@redhat.com>
47280
47281         still avoid unused-parameter warnings, but do it cleanly
47282         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47283         (get_fs_usage): Cast to void instead.
47284         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47285         (dev_from_mount_options, read_file_system_list): Cast to void.
47286         Prompted by Bruno Haible.
47287
47288 2009-02-04  Jim Meyering  <meyering@redhat.com>
47289
47290         fsusage.c: correct copyright year
47291         * lib/fsusage.c: Reflect year in which the change is pushed into
47292
47293         avoid misc. warnings
47294         * lib/fsusage.c (UNUSED_PARAM): Define.
47295         (get_fs_usage): Mark parameter "disk" as unused.
47296         * lib/getugroups.c (getgrent): Use "void" in prototype.
47297         * lib/mountlist.c: Mark unused parameters.
47298         (read_file_system_list): Declare a local with "const".
47299         * lib/nanosleep.c (getnow): Declare static.
47300         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47301
47302         dirfd: set errno upon failure
47303         * lib/dirfd.c: Include <errno.h>.
47304         Set errno to ENOTSUP when returning -1.
47305         * modules/dirfd (Depends-on): Add errno.
47306         Suggested by John Kodis <kodis@comcast.net>.
47307
47308 2009-02-01  Bruno Haible  <bruno@clisp.org>
47309
47310         Don't assume sizeof (long) >= sizeof (void *).
47311         * lib/memcmp.c: Include stdint.h.
47312         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47313         srcp2 to 'const byte *'.
47314         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47315         types to uintptr_t.
47316         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47317         * modules/memcmp (Depends-on): Add stdint.
47318         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47319
47320 2009-01-30  Eric Blake  <ebb9@byu.net>
47321
47322         fix more require-before-expand issues
47323         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47324         expand, AC_PROG_AWK.
47325         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47326
47327 2009-01-28  Eric Blake  <ebb9@byu.net>
47328
47329         version-etc: use consistent URL formatting
47330         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47331         Improve formatting.  Use fputs for string without %.
47332
47333 2009-01-28  Jim Meyering  <meyering@redhat.com>
47334
47335         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47336         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47337         "underquoted definition of NAME" from autoconf-2.59.
47338
47339 2009-01-28  Bruno Haible  <bruno@clisp.org>
47340
47341         * doc/gnulib.texi: Add "Obsolete modules" to index.
47342
47343 2009-01-28  Jim Meyering  <meyering@redhat.com>
47344
47345         useless-if-before-free: recognize more variants
47346         * build-aux/useless-if-before-free: Also recognize e.g.,
47347         if (NULL != p) free (p);
47348
47349 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47350
47351         test-getaddrinfo: skip (don't fail) this test when there's no network
47352         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47353         on the presumption that it means you lack network access.
47354
47355 2009-01-26  Jim Meyering  <meyering@redhat.com>
47356
47357         fflush: avoid warnings on modern systems
47358         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47359         pos and result, into scopes where they're used.
47360
47361 2009-01-26  Eric Blake  <ebb9@byu.net>
47362
47363         Silence warning reintroduced by recent extensions patch.
47364         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47365         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47366         autoconf.
47367
47368         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47369         * m4/00gnulib.m4: New file.
47370         * gnulib-tool (func_get_filelist): Always use it.
47371         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47372         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47373
47374 2009-01-25  Bruno Haible  <bruno@clisp.org>
47375
47376         Make test-quotearg work on MacOS X and AIX.
47377         * tests/test-quotearg.sh: New file.
47378         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47379         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47380         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47381         include <libintl.h>.
47382         (fake_locale): Remove variable.
47383         (gettext, dgettext, dcgettext): Remove functions.
47384         (main): Instead of setting a fake locale, set a real locale. Call
47385         textdomain and bindtextdomain.
47386         * modules/quotearg-tests (Files): Add the new files.
47387         (Depends-on): Add gettext, setenv, unsetenv.
47388         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47389         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47390         Augment TESTS_ENVIRONMENT.
47391
47392 2009-01-25  Bruno Haible  <bruno@clisp.org>
47393
47394         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47395         fr_FR.ISO8859-1 locale on MacOS X.
47396         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47397         ja_JP.eucJP locale on MacOS X.
47398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47399         zh_CN.GB18030 locale on MacOS X.
47400
47401 2009-01-25  Bruno Haible  <bruno@clisp.org>
47402
47403         Avoid link errors on MacOS X 10.3.
47404         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47405         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47406
47407 2009-01-25  Bruno Haible  <bruno@clisp.org>
47408
47409         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47410         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47411         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47412         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47413         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47414         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47415         posix_spawnattr_init, posix_spawnattr_setsigmask,
47416         posix_spawnattr_setflags, posix_spawnattr_destroy.
47417
47418         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47419         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47420         * modules/execute (Files): Remove m4/posix_spawn.m4.
47421         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47422         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47423         posix_spawnattr_init, posix_spawnattr_setsigmask,
47424         posix_spawnattr_setflags, posix_spawnattr_destroy.
47425
47426 2009-01-25  Bruno Haible  <bruno@clisp.org>
47427
47428         * lib/glthread/threadlib.c: Include <stdlib.h>.
47429
47430 2009-01-25  Bruno Haible  <bruno@clisp.org>
47431
47432         * lib/glthread/threadlib.c (dummy): New declaration.
47433
47434 2009-01-25  Bruno Haible  <bruno@clisp.org>
47435
47436         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47437         multibyte characters also for the GB18030 encoding. Don't crash when
47438         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47439
47440 2009-01-25  Bruno Haible  <bruno@clisp.org>
47441
47442         Avoid redefining 'struct random_data' on OSF/1 5.1.
47443         * lib/stdlib.in.h: Include <random.h> if it exists.
47444         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47445         HAVE_RANDOM_H. Include <random.h> when testing whether
47446         'struct random_data' exists.
47447         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47448
47449 2009-01-25  Bruno Haible  <bruno@clisp.org>
47450
47451         Don't install charset.alias on MacOS X >= 10.3.
47452         * lib/localcharset.c (DARWIN7): New macro.
47453         (get_charset_aliases): Hardcode the result for Darwin7.
47454         * modules/localcharset (install-exec-local): Don't install
47455         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47456
47457 2009-01-25  Bruno Haible  <bruno@clisp.org>
47458
47459         Don't install charset.alias on mingw and Cygwin.
47460         * modules/localcharset (install-exec-local): Don't install
47461         charset.alias on mingw and Cygwin, if the file does not yet exist.
47462         The result for these platforms is hardcoded in localcharset.c.
47463
47464 2009-01-25  Bruno Haible  <bruno@clisp.org>
47465
47466         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47467         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47468         before requiring AC_USE_SYSTEM_EXTENSIONS.
47469
47470 2009-01-25  Jim Meyering  <meyering@redhat.com>
47471
47472         c-strtod: avoid warnings
47473         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47474         "assignment discards qualifiers from pointer target type" warnings.
47475
47476 2009-01-24  Bruno Haible  <bruno@clisp.org>
47477
47478         Add support for non-UTF-8 locales on MacOS X.
47479         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47480         canonical encodings. For Darwin 7 and newer, don't map traditional
47481         encodings to UTF-8.
47482         Reported by Vincent Lefevre <vincent@vinc17.org>
47483         at <http://savannah.gnu.org/bugs/?25235>.
47484
47485 2009-01-24  Bruno Haible  <bruno@clisp.org>
47486
47487         * doc/gnulib.texi (Obsolete modules): New section.
47488         Reported by Mike Frysinger <vapier@gentoo.org>.
47489
47490 2009-01-24  Bruno Haible  <bruno@clisp.org>
47491
47492         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47493         (%.dvi): New rule.
47494
47495 2009-01-24  Bruno Haible  <bruno@clisp.org>
47496
47497         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47498         Reported by Eric Blake.
47499
47500 2009-01-24  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47503         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47504         Reported by Gary V. Vaughan <gary@gnu.org>.
47505
47506 2009-01-24  Bruno Haible  <bruno@clisp.org>
47507
47508         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47509
47510 2009-01-23  Bruno Haible  <bruno@clisp.org>
47511
47512         Make c-strtod, c-strtold usable in libraries.
47513         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47514         (C_STRTOD): Call strdup instead of xstrdup.
47515         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47516         * modules/c-strtold (Depends-on): Likewise.
47517         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47518         * NEWS: Mention the change.
47519         Reported by Michael Gold <mgold@ncf.ca>.
47520
47521 2009-01-23  Jim Meyering  <meyering@redhat.com>
47522
47523         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47524         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47525         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47526
47527 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47528
47529         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47530         GNU CoreUtils.
47531         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47532         * modules/version-etc (Description): Update.
47533
47534 2009-01-22  Bruno Haible  <bruno@clisp.org>
47535
47536         Cache the C locale object.
47537         * lib/c-strtod.c (c_locale_cache): New variable.
47538         (c_locale): New function.
47539         (C_STRTOD): Use it, and don't call freelocale.
47540         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47541         Suggested by Paolo Bonzini.
47542
47543 2009-01-21  Bruno Haible  <bruno@clisp.org>
47544
47545         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47546         conditions other than overflow.
47547
47548 2009-01-21  Bruno Haible  <bruno@clisp.org>
47549
47550         * lib/c-strtod.c: Include errno.h.
47551         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47552         value from STRTOD_L and STRTOD.
47553
47554 2009-01-21  Bruno Haible  <bruno@clisp.org>
47555         and Jim Meyering  <meyering@redhat.com>
47556
47557         nanosleep: skip configure test (fail it) for apple universal builds
47558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47559         universal builds, assume that nanosleep does not work.
47560         * modules/nanosleep (Depends-on): Add multiarch.
47561
47562         mktime: skip configure test (fail it) for apple universal builds
47563         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47564         universal builds, assume that mktime does not work.
47565         * modules/mktime (Depends-on): Add multiarch.
47566
47567 2009-01-21  Eric Blake  <ebb9@byu.net>
47568
47569         multiarch: avoid expand-before-require warning
47570         * modules/multiarch (configure.ac): Require, rather than expand,
47571         gl_MULTIARCH.
47572         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47573         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47574         enforce that all clients require it.  Partial reversion of
47575         2008-12-29 patch.
47576
47577         error: avoid expand-before-require warning
47578         * modules/errno (configure.ac): Require, rather than expand,
47579         gl_HEADER_ERRNO_H.
47580         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47581         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47582         enforce that all clients require it.
47583
47584         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47585         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47586         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47587         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47588
47589 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47590
47591         Revert:
47592         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47593
47594         regex: do not depend on obsolete modules.
47595         * modules/regex: Remove memcmp and memmove.
47596
47597 2009-01-20  Bruno Haible  <bruno@clisp.org>
47598
47599         Make the 'link' module link on Windows NT 4.
47600         * lib/link.c (_WIN32_WINNT): Don't define.
47601         (CreateHardLinkFuncType): New type.
47602         (CreateHardLinkFunc, initialized): New variables.
47603         (initialize): New function.
47604         (link): Invoke CreateHardLink indirectly through the function pointer.
47605
47606 2009-01-20  Bruno Haible  <bruno@clisp.org>
47607
47608         Fix compilation failure on mingw.
47609         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47610
47611 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47612
47613         * doc/c-strtod.texi: Mention a couple of restrictions.
47614
47615 2009-01-20  Jim Meyering  <meyering@redhat.com>
47616
47617         gettimeofday: move more declarations out of functions
47618         * lib/gettimeofday.c: Move extern declarations of tzset and
47619         gmtime out of containing functions.  Prompted by Bruno Haible.
47620
47621 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47622
47623         regex: do not depend on obsolete modules.
47624         * modules/regex: Remove memcmp and memmove.
47625
47626 2009-01-19  Bruno Haible  <bruno@clisp.org>
47627
47628         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47629         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47630         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47631         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47632         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47633
47634 2009-01-19  Bruno Haible  <bruno@clisp.org>
47635
47636         * tests/test-link.c: Include <errno.h>.
47637         (main): Exit with code 77 when a hard link cannot be created due to
47638         the file system.
47639         * tests/test-link.sh: Skip test when a hard link cannot be created due
47640         to the file system.
47641         Suggested by Eric Blake.
47642
47643 2009-01-19  Martin Lambers  <marlam@marlam.de>
47644
47645         * modules/link-tests: New file.
47646         * tests/test-link.sh: New file.
47647         * tests/test-link.c: New file.
47648
47649 2009-01-19  Eric Blake  <ebb9@byu.net>
47650
47651         doc: mention another function added in cygwin 1.7.0
47652         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47653         Another new function in cygwin 1.7.
47654
47655 2009-01-19  Bruno Haible  <bruno@clisp.org>
47656
47657         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47658         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47659         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47660         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47661         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47662         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47663         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47664         * m4/md4.m4 (gl_MD4): Likewise.
47665         * m4/md5.m4 (gl_MD5): Likewise.
47666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47667         * m4/sha1.m4 (gl_SHA1): Likewise.
47668         * m4/sha256.m4 (gl_SHA256): Likewise.
47669         * m4/sha512.m4 (gl_SHA512): Likewise.
47670
47671 2009-01-19  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/uniname/uniname-tests (Depends-on): Add progname.
47674         * tests/uniname/test-uninames.c: Include progname.h.
47675         (main): Call set_program_name.
47676
47677         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47678         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47679         (main): Call set_program_name.
47680
47681         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47682         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47683         (main): Call set_program_name.
47684
47685         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47686         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47687         (main): Call set_program_name.
47688
47689         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47690         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47691         (main): Call set_program_name.
47692
47693         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47694         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47695         (main): Call set_program_name.
47696
47697         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47698         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47699         (main): Call set_program_name.
47700
47701         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47702         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47703         (main): Call set_program_name.
47704
47705         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47706         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47707         (main): Call set_program_name.
47708
47709 2009-01-19  Eric Blake  <ebb9@byu.net>
47710
47711         test-unistd: test previous patch
47712         * tests/test-unistd.c: Test *_FILENO macros.
47713
47714         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47715         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47716         Guarantee a definition.
47717         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47718         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47719         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47720         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47721         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47722         Likewise.
47723         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47724         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47725         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47726         Likewise.
47727         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47728         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47729         (STDERR_FILENO): Likewise.
47730         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47731         (STDERR_FILENO): Likewise.
47732         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47733         (STDERR_FILENO): Likewise.
47734         Reported by Elbert Pol.
47735
47736 2009-01-19  Eric Blake  <ebb9@byu.net>
47737
47738         doc: mention more functions added in cygwin 1.7.0
47739         * doc/posix-functions/abort.texi (abort): Update wording related
47740         to cygwin.
47741         * doc/posix-functions/daylight.texi (daylight): Likewise.
47742         * doc/posix-functions/optarg.texi (optarg): Likewise.
47743         * doc/posix-functions/optarg.texi (opterr): Likewise.
47744         * doc/posix-functions/optarg.texi (optind): Likewise.
47745         * doc/posix-functions/optarg.texi (optopt): Likewise.
47746         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47747         worked in 1.5.x, and was withdrawn in 1.7.
47748         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47749         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47750         cygwin versions.
47751         * doc/posix-functions/perror.texi (perror): Likewise.
47752         * doc/posix-functions/printf.texi (printf): Likewise.
47753         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47754         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47755         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47756         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47757         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47758         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47759         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47760         Likewise.
47761         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47762         Likewise.
47763         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47764         this function.
47765         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47766         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47767         Likewise.
47768         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47769         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47770         * doc/posix-functions/confstr.texi (confstr): Likewise.
47771         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47772         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47773         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47774         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47775         * doc/posix-functions/fputws.texi (fputws): Likewise.
47776         * doc/posix-functions/fwide.texi (fwide): Likewise.
47777         * doc/posix-functions/getwc.texi (getwc): Likewise.
47778         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47779         * doc/posix-functions/putwc.texi (putwc): Likewise.
47780         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47781         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47782         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47783         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47784         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47785         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47786         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47787         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47788         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47789         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47790         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47791
47792 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47793
47794         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47795         * lib/ioctl.c: Include <sys/ioctl.h>.
47796
47797 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47798
47799         * modules/getdate-tests (Depends-on): Add progname.
47800         * tests/test-getdate.c: Use progname module, to avoid link errors
47801         on non-glibc systems.
47802
47803 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47804
47805         * modules/filenamecat-tests (Depends-on): Add progname.
47806         * modules/fstrcmp-tests (Depends-on): Likewise.
47807
47808         * tests/test-filenamecat.c: Use progname module, to avoid link
47809         errors on non-glibc systems.
47810         * tests/test-fstrcmp.c: Likewise.
47811
47812 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47813
47814         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47815         * lib/gettimeofday.c: Move extern declaration out of function.
47816
47817 2009-01-18  Bruno Haible  <bruno@clisp.org>
47818
47819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47820         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47821         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47822
47823 2009-01-18  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/strftime.c (MEMPCPY): Remove unused macro.
47826         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47827
47828 2009-01-18  Martin Lambers  <marlam@marlam.de>
47829
47830         New module 'link'.
47831         * lib/unistd.in.h (link): New declaration.
47832         * lib/link.c: New file.
47833         * m4/link.m4: New file.
47834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47835         HAVE_LINK.
47836         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47837         * modules/link: New file.
47838         * doc/posix-functions/link.texi: Mention the new module.
47839
47840 2009-01-18  Bruno Haible  <bruno@clisp.org>
47841
47842         * tests/test-avltree_list.c (main): Call set_program_name.
47843         * tests/test-avltree_oset.c (main): Likewise.
47844         * tests/test-obstack-printf.c: Include progname.h.
47845         (main): Call set_program_name.
47846         * tests/test-quotearg.c: Include progname.h.
47847         (main): Call set_program_name.
47848         * tests/test-xmemdup0.c: Include progname.h.
47849         (main): Call set_program_name.
47850
47851 2009-01-18  Bruno Haible  <bruno@clisp.org>
47852
47853         New module 'alphasort'.
47854         * lib/dirent.in.h (alphasort): New declaration.
47855         * lib/alphasort.c: New file, from glibc with modifications.
47856         * m4/alphasort.m4: New file.
47857         * modules/alphasort: New file.
47858         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47859         HAVE_ALPHASORT.
47860         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47861         HAVE_ALPHASORT.
47862         * doc/posix-functions/alphasort.texi: Mention the new module and the
47863         portability problems.
47864
47865 2009-01-18  Bruno Haible  <bruno@clisp.org>
47866
47867         New module 'scandir'.
47868         * lib/dirent.in.h (scandir): New declaration.
47869         * lib/scandir.c: New file, from glibc with modifications.
47870         * m4/scandir.m4: New file.
47871         * modules/scandir: New file.
47872         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47873         HAVE_SCANDIR.
47874         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47875         HAVE_SCANDIR.
47876         * doc/posix-functions/scandir.texi: Mention the new module and the
47877         portability problems.
47878
47879 2009-01-17  Bruno Haible  <bruno@clisp.org>
47880
47881         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47882         Update documentation.
47883         (func_remove_suffix): Escape all dots in the suffix. Update
47884         documentation.
47885         (func_filter_filelist): Update documentation.
47886         Reported by Ralf Wildenhues.
47887
47888 2009-01-17  Bruno Haible  <bruno@clisp.org>
47889
47890         * modules/dprintf-posix-tests: New file.
47891         * tests/test-dprintf-posix.sh: New file.
47892         * tests/test-dprintf-posix.c: New file.
47893
47894         New modules 'dprintf', 'dprintf-posix'.
47895         * lib/stdio.in.h (dprintf): New declaration.
47896         * lib/dprintf.c: New file.
47897         * m4/dprintf.m4: New file.
47898         * m4/dprintf-posix.m4: New file.
47899         * modules/dprintf: New file.
47900         * modules/dprintf-posix: New file.
47901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47902         HAVE_DPRINTF, REPLACE_DPRINTF.
47903         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47904         HAVE_DPRINTF, REPLACE_DPRINTF.
47905         * doc/posix-functions/dprintf.texi: Mention the new modules.
47906
47907 2009-01-17  Bruno Haible  <bruno@clisp.org>
47908
47909         * modules/vdprintf-posix-tests: New file.
47910         * tests/test-vdprintf-posix.sh: New file.
47911         * tests/test-vdprintf-posix.c: New file.
47912
47913         New modules 'vdprintf', 'vdprintf-posix'.
47914         * lib/stdio.in.h (vdprintf): New declaration.
47915         * lib/vdprintf.c: New file.
47916         * m4/vdprintf.m4: New file.
47917         * m4/vdprintf-posix.m4: New file.
47918         * modules/vdprintf: New file.
47919         * modules/vdprintf-posix: New file.
47920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47921         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47922         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47923         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47924         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47925
47926 2009-01-17  Bruno Haible  <bruno@clisp.org>
47927
47928         Fix replacement of fopen on mingw.
47929         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47930         mingw.
47931
47932 2009-01-17  Bruno Haible  <bruno@clisp.org>
47933
47934         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47935         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47936
47937 2009-01-17  Bruno Haible  <bruno@clisp.org>
47938
47939         Avoid test-fflush2.sh failure on mingw.
47940         * tests/test-fflush2.c: Include binary-io.h.
47941         (main): Put standard input into binary mode.
47942         * modules/fflush-tests (Depends-on): Add binary-io.
47943
47944 2009-01-17  Bruno Haible  <bruno@clisp.org>
47945
47946         * lib/wchar.in.h: In another particular situation, include only the
47947         system's <wchar.h> file.
47948         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47949         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47950         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47951
47952 2009-01-17  Bruno Haible  <bruno@clisp.org>
47953
47954         Support for stripping executables in --enable-relocatable.
47955         * build-aux/install-reloc: Expect one more argument, or an environment
47956         variable RELOC_STRIP_PROG. If set, strip the destination program and
47957         its wrapper.
47958         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47959         RELOC_STRIP_PROG.
47960         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47961         to set RELOCATABLE_STRIP.
47962         * NEWS: Mention the new Makefile requirement.
47963
47964 2009-01-17  Bruno Haible  <bruno@clisp.org>
47965
47966         * build-aux/install-reloc: Remove debugging information left over by
47967         C compiler on MacOS X.
47968
47969 2009-01-17  Bruno Haible  <bruno@clisp.org>
47970
47971         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47972         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47973         _NSGetExecutablePath.
47974
47975 2009-01-16  Jim Meyering  <meyering@redhat.com>
47976
47977         strerror: avoid warnings about discarding "const"
47978         * lib/strerror.c (rpl_strerror): Instead of returning a const
47979         string from each and every "case", use a variable, and add a single
47980         cast after the switch.
47981
47982 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47983
47984         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47985
47986 2009-01-16  Bruno Haible  <bruno@clisp.org>
47987
47988         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47989         array initializer syntax that also works in C++ mode.
47990         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47991
47992 2009-01-16  Jim Meyering  <meyering@redhat.com>
47993
47994         poll: suppress a warning
47995         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47996         to ignore "...unsigned expression < 0 is always false" warnings.
47997
47998 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47999
48000         poll: remove declarations of unused variables
48001         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48002         sockbuf and optlen.
48003
48004 2009-01-15  Bruno Haible  <bruno@clisp.org>
48005
48006         Make fflush-after-ungetc POSIX compliant on BSD systems.
48007         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48008         (clear_ungetc_buffer): Implement also for other systems.
48009         (rpl_fflush): On glibc systems, invoke
48010         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48011         clear_ungetc_buffer after fetching the stream's position, not before.
48012
48013 2009-01-15  Bruno Haible  <bruno@clisp.org>
48014
48015         Make fflush-after-ungetc POSIX compliant on glibc systems.
48016         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48017         after ungetc.
48018         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48019         (rpl_fflush): On glibc systems, simply call the system's fflush
48020         function after clearing the ungetc buffer.
48021         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48022         Instead, lseek only to the end of file, then use the system's fseeko
48023         for the rest. On glibc systems, reset the EOF indicator bit.
48024
48025 2009-01-15  Jim Meyering  <meyering@redhat.com>
48026
48027         openmp.m4: revert quote-adding change, for portability to older autoconf
48028         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48029         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48030         Simon Josefsson noticed the problem when using autoconf-2.61.
48031
48032 2009-01-15  Bruno Haible  <bruno@clisp.org>
48033
48034         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48035         * tests/test-fflush2.c (ASSERT): Always fail.
48036         (main): Add two tests for fflush() after ungetc(), taking into account
48037         the Austin Group's clarification.
48038         Suggested by Eric Blake.
48039
48040 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48041
48042         mktime.m4: remove K&R-style function prototypes
48043         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48044         for the Sun C++ compiler.
48045
48046 2009-01-14  Bruno Haible  <bruno@clisp.org>
48047
48048         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48049         while including <wchar.h>.
48050         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48051         the system's <wchar.h> file.
48052         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48053
48054 2009-01-14  Bruno Haible  <bruno@clisp.org>
48055
48056         * m4/csharp.m4: Don't mention gettext on the serial number line.
48057         * m4/csharpexec.m4: Likewise.
48058         * m4/eaccess.m4: Likewise.
48059         * m4/javaexec.m4: Likewise.
48060         * m4/sig_atomic_t.m4: Likewise.
48061         * m4/tmpdir.m4: Likewise.
48062         * m4/intldir.m4: Bump gettext version.
48063         * m4/lib-ld.m4: Likewise.
48064
48065 2009-01-14  Bruno Haible  <bruno@clisp.org>
48066
48067         * lib/progname.c (set_program_name): Add more comments.
48068         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48069
48070 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48071
48072         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48073         were sys/stat.h does not define it.
48074
48075 2009-01-14  Jim Meyering  <meyering@redhat.com>
48076
48077         many *.m4 files: improve m4 quoting
48078         99% of this change was performed by running the following commands:
48079         git ls-files | grep '\.m4$' | xargs perl -pi \
48080           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48081           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48082           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48083           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48084         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48085         The remainder were to add Copyright dates, increment serial numbers,
48086         undo some changes in comments, exclude m4/intl.m4, and add quotes
48087         around the "1" in ",1" where the unusual spacing prohibited the
48088         above regexps from doing the job.  For more details, see
48089         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48090         * m4/acl.m4: Modified.
48091         * m4/afs.m4: Likewise.
48092         * m4/alloca.m4: Likewise.
48093         * m4/argp.m4: Likewise.
48094         * m4/argz.m4: Likewise.
48095         * m4/atexit.m4: Likewise.
48096         * m4/bison-i18n.m4: Likewise.
48097         * m4/bison.m4: Likewise.
48098         * m4/byteswap.m4: Likewise.
48099         * m4/c-stack.m4: Likewise.
48100         * m4/c-strtod.m4: Likewise.
48101         * m4/calloc.m4: Likewise.
48102         * m4/canonicalize-lgpl.m4: Likewise.
48103         * m4/chown.m4: Likewise.
48104         * m4/clock_time.m4: Likewise.
48105         * m4/codeset.m4: Likewise.
48106         * m4/copy-file.m4: Likewise.
48107         * m4/csharp.m4: Likewise.
48108         * m4/csharpcomp.m4: Likewise.
48109         * m4/csharpexec.m4: Likewise.
48110         * m4/d-ino.m4: Likewise.
48111         * m4/d-type.m4: Likewise.
48112         * m4/dirfd.m4: Likewise.
48113         * m4/double-slash-root.m4: Likewise.
48114         * m4/eaccess.m4: Likewise.
48115         * m4/eealloc.m4: Likewise.
48116         * m4/environ.m4: Likewise.
48117         * m4/errno_h.m4: Likewise.
48118         * m4/euidaccess.m4: Likewise.
48119         * m4/execute.m4: Likewise.
48120         * m4/fatal-signal.m4: Likewise.
48121         * m4/fchdir.m4: Likewise.
48122         * m4/fcntl_h.m4: Likewise.
48123         * m4/fileblocks.m4: Likewise.
48124         * m4/filenamecat.m4: Likewise.
48125         * m4/findprog.m4: Likewise.
48126         * m4/flexmember.m4: Likewise.
48127         * m4/fnmatch.m4: Likewise.
48128         * m4/fopen.m4: Likewise.
48129         * m4/fpending.m4: Likewise.
48130         * m4/fprintf-posix.m4: Likewise.
48131         * m4/free.m4: Likewise.
48132         * m4/frexp.m4: Likewise.
48133         * m4/frexpl.m4: Likewise.
48134         * m4/fsusage.m4: Likewise.
48135         * m4/ftruncate.m4: Likewise.
48136         * m4/gc-camellia.m4: Likewise.
48137         * m4/gc-random.m4: Likewise.
48138         * m4/gc.m4: Likewise.
48139         * m4/getaddrinfo.m4: Likewise.
48140         * m4/getcwd-abort-bug.m4: Likewise.
48141         * m4/getcwd-path-max.m4: Likewise.
48142         * m4/getdate.m4: Likewise.
48143         * m4/getdomainname.m4: Likewise.
48144         * m4/getgroups.m4: Likewise.
48145         * m4/gethostname.m4: Likewise.
48146         * m4/gethrxtime.m4: Likewise.
48147         * m4/getline.m4: Likewise.
48148         * m4/getloadavg.m4: Likewise.
48149         * m4/getndelim2.m4: Likewise.
48150         * m4/getpass.m4: Likewise.
48151         * m4/gettext.m4: Likewise.
48152         * m4/gettime.m4: Likewise.
48153         * m4/gettimeofday.m4: Likewise.
48154         * m4/gnulib-common.m4: Likewise.
48155         * m4/group-member.m4: Likewise.
48156         * m4/host-os.m4: Likewise.
48157         * m4/iconv.m4: Likewise.
48158         * m4/iconv_open.m4: Likewise.
48159         * m4/inet_ntop.m4: Likewise.
48160         * m4/inet_pton.m4: Likewise.
48161         * m4/inline.m4: Likewise.
48162         * m4/intldir.m4: Likewise.
48163         * m4/intlmacosx.m4: Likewise.
48164         * m4/intmax.m4: Likewise.
48165         * m4/intmax_t.m4: Likewise.
48166         * m4/inttypes.m4: Likewise.
48167         * m4/inttypes_h.m4: Likewise.
48168         * m4/inttypes-pri.m4: Likewise.
48169         * m4/isapipe.m4: Likewise.
48170         * m4/isnand.m4: Likewise.
48171         * m4/isnanf.m4: Likewise.
48172         * m4/isnanl.m4: Likewise.
48173         * m4/javacomp.m4: Likewise.
48174         * m4/javaexec.m4: Likewise.
48175         * m4/jm-winsz1.m4: Likewise.
48176         * m4/jm-winsz2.m4: Likewise.
48177         * m4/lchown.m4: Likewise.
48178         * m4/lcmessage.m4: Likewise.
48179         * m4/ldexpl.m4: Likewise.
48180         * m4/lib-ld.m4: Likewise.
48181         * m4/lib-link.m4: Likewise.
48182         * m4/libsigsegv.m4: Likewise.
48183         * m4/link-follow.m4: Likewise.
48184         * m4/localcharset.m4: Likewise.
48185         * m4/locale-fr.m4: Likewise.
48186         * m4/locale-ja.m4: Likewise.
48187         * m4/locale-tr.m4: Likewise.
48188         * m4/locale-zh.m4: Likewise.
48189         * m4/lock.m4: Likewise.
48190         * m4/longlong.m4: Likewise.
48191         * m4/ls-mntd-fs.m4: Likewise.
48192         * m4/lstat.m4: Likewise.
48193         * m4/malloc.m4: Likewise.
48194         * m4/mathl.m4: Likewise.
48195         * m4/mbrtowc.m4: Likewise.
48196         * m4/mbstate_t.m4: Likewise.
48197         * m4/mbswidth.m4: Likewise.
48198         * m4/memchr.m4: Likewise.
48199         * m4/memcmp.m4: Likewise.
48200         * m4/memcpy.m4: Likewise.
48201         * m4/memmem.m4: Likewise.
48202         * m4/memmove.m4: Likewise.
48203         * m4/mempcpy.m4: Likewise.
48204         * m4/memrchr.m4: Likewise.
48205         * m4/memset.m4: Likewise.
48206         * m4/minmax.m4: Likewise.
48207         * m4/mkdir-slash.m4: Likewise.
48208         * m4/mkdtemp.m4: Likewise.
48209         * m4/mktime.m4: Likewise.
48210         * m4/mmap-anon.m4: Likewise.
48211         * m4/mountlist.m4: Likewise.
48212         * m4/nanosleep.m4: Likewise.
48213         * m4/nls.m4: Likewise.
48214         * m4/nocrash.m4: Likewise.
48215         * m4/open.m4: Likewise.
48216         * m4/openat.m4: Likewise.
48217         * m4/openmp.m4: Likewise.
48218         * m4/pathmax.m4: Likewise.
48219         * m4/perl.m4: Likewise.
48220         * m4/physmem.m4: Likewise.
48221         * m4/pipe.m4: Likewise.
48222         * m4/po.m4: Likewise.
48223         * m4/poll.m4: Likewise.
48224         * m4/posixtm.m4: Likewise.
48225         * m4/posixver.m4: Likewise.
48226         * m4/printf-frexp.m4: Likewise.
48227         * m4/printf-frexpl.m4: Likewise.
48228         * m4/printf-posix.m4: Likewise.
48229         * m4/printf-posix-rpl.m4: Likewise.
48230         * m4/printf.m4: Likewise.
48231         * m4/progtest.m4: Likewise.
48232         * m4/putenv.m4: Likewise.
48233         * m4/readline.m4: Likewise.
48234         * m4/readlink.m4: Likewise.
48235         * m4/readutmp.m4: Likewise.
48236         * m4/realloc.m4: Likewise.
48237         * m4/regex.m4: Likewise.
48238         * m4/relocatable.m4: Likewise.
48239         * m4/relocatable-lib.m4: Likewise.
48240         * m4/rename-dest-slash.m4: Likewise.
48241         * m4/rename.m4: Likewise.
48242         * m4/rmdir-errno.m4: Likewise.
48243         * m4/rmdir.m4: Likewise.
48244         * m4/roundf.m4: Likewise.
48245         * m4/roundl.m4: Likewise.
48246         * m4/rpmatch.m4: Likewise.
48247         * m4/save-cwd.m4: Likewise.
48248         * m4/selinux-selinux-h.m4: Likewise.
48249         * m4/setenv.m4: Likewise.
48250         * m4/settime.m4: Likewise.
48251         * m4/sig2str.m4: Likewise.
48252         * m4/sig_atomic_t.m4: Likewise.
48253         * m4/signalblocking.m4: Likewise.
48254         * m4/signbit.m4: Likewise.
48255         * m4/sigpipe.m4: Likewise.
48256         * m4/sockets.m4: Likewise.
48257         * m4/sockpfaf.m4: Likewise.
48258         * m4/st_dm_mode.m4: Likewise.
48259         * m4/stat-time.m4: Likewise.
48260         * m4/stdbool.m4: Likewise.
48261         * m4/stdint.m4: Likewise.
48262         * m4/stdint_h.m4: Likewise.
48263         * m4/stpcpy.m4: Likewise.
48264         * m4/stpncpy.m4: Likewise.
48265         * m4/strcase.m4: Likewise.
48266         * m4/strchrnul.m4: Likewise.
48267         * m4/strcspn.m4: Likewise.
48268         * m4/strdup.m4: Likewise.
48269         * m4/strftime.m4: Likewise.
48270         * m4/strndup.m4: Likewise.
48271         * m4/strnlen.m4: Likewise.
48272         * m4/strpbrk.m4: Likewise.
48273         * m4/strptime.m4: Likewise.
48274         * m4/strsep.m4: Likewise.
48275         * m4/strtod.m4: Likewise.
48276         * m4/strtoimax.m4: Likewise.
48277         * m4/strtok_r.m4: Likewise.
48278         * m4/strtol.m4: Likewise.
48279         * m4/strtoll.m4: Likewise.
48280         * m4/strtoul.m4: Likewise.
48281         * m4/strtoull.m4: Likewise.
48282         * m4/strtoumax.m4: Likewise.
48283         * m4/strverscmp.m4: Likewise.
48284         * m4/threadlib.m4: Likewise.
48285         * m4/timegm.m4: Likewise.
48286         * m4/tm_gmtoff.m4: Likewise.
48287         * m4/tmpdir.m4: Likewise.
48288         * m4/tmpfile.m4: Likewise.
48289         * m4/tzset.m4: Likewise.
48290         * m4/uintmax_t.m4: Likewise.
48291         * m4/unlinkdir.m4: Likewise.
48292         * m4/unlocked-io.m4: Likewise.
48293         * m4/uptime.m4: Likewise.
48294         * m4/userspec.m4: Likewise.
48295         * m4/utimbuf.m4: Likewise.
48296         * m4/utime.m4: Likewise.
48297         * m4/utimes-null.m4: Likewise.
48298         * m4/utimes.m4: Likewise.
48299         * m4/vararrays.m4: Likewise.
48300         * m4/vasnprintf.m4: Likewise.
48301         * m4/vfprintf-posix.m4: Likewise.
48302         * m4/vprintf-posix.m4: Likewise.
48303         * m4/wait-process.m4: Likewise.
48304         * m4/wchar_t.m4: Likewise.
48305         * m4/wint_t.m4: Likewise.
48306         * m4/write-any-file.m4: Likewise.
48307         * m4/yield.m4: Likewise.
48308
48309 2009-01-13  Bruno Haible  <bruno@clisp.org>
48310
48311         Avoid test-copy-file.sh failures when ACL support insufficient.
48312         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48313         TESTS_ENVIRONMENT.
48314         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48315         Reported by Jim Meyering.
48316
48317 2009-01-13  Bruno Haible  <bruno@clisp.org>
48318
48319         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48320         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48321         * modules/unistdio/u8-printf-parse (Files): Likewise.
48322         * modules/unistdio/u32-printf-parse (Files): Likewise.
48323         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48324
48325 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48326
48327         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48328         and m4/inttypes_h.m4 too.
48329
48330 2009-01-12  Eric Blake  <ebb9@byu.net>
48331
48332         tests: IRIX 6.2 cc can't compile -0.0 into .data
48333         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48334         rather than at compile-time.
48335         * tests/test-floorl.c (minus_zero): Likewise.
48336         * tests/test-frexpl.c (minus_zero): Likewise.
48337         * tests/test-isnan.c (minus_zerol): Likewise.
48338         * tests/test-isnanl.h (minus_zero): Likewise.
48339         * tests/test-ldexpl.c (minus_zero): Likewise.
48340         * tests/test-roundl.c (minus_zero): Likewise.
48341         * tests/test-signbit.c (minus_zerol): Likewise.
48342         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48343         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48344         * tests/test-truncl.c (minus_zero): Likewise.
48345         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48346         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48347         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48348
48349 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48350
48351         regex: fix glibc bug 9697
48352         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48353         handling.
48354
48355 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48356
48357         regex: fix glibc bug 697
48358         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48359         being NULL also if there are no backreferences.
48360
48361 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48362
48363         regex: merge glibc changes
48364         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48365         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48366         re_string_skip_chars, re_string_reconstruct): Likewise.
48367         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48368
48369 2009-01-07  Jim Meyering  <meyering@redhat.com>
48370
48371         poll: filter through cppi
48372         * lib/poll.c: Indent cpp directives to reflect nesting.
48373
48374 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48375
48376         poll: don't return uninitialized
48377         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48378
48379 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48380
48381         avoid compile failure on AIX 6.1
48382         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48383         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48384
48385 2009-01-04  Jim Meyering  <meyering@redhat.com>
48386
48387         remove duplicate inclusion of <stdio.h>
48388         * tests/test-fprintf-posix.c: Likewise.
48389         * tests/test-printf-posix.c: Likewise.
48390         * tests/test-snprintf-posix.c: Likewise.
48391         * tests/test-sprintf-posix.c: Likewise.
48392         * tests/test-vasprintf-posix.c: Likewise.
48393         * tests/test-vfprintf-posix.c: Likewise.
48394         * tests/test-vprintf-posix.c: Likewise.
48395         * tests/test-vsnprintf-posix.c: Likewise.
48396         * tests/test-vsprintf-posix.c: Likewise.
48397
48398 2009-01-03  Jim Meyering  <meyering@redhat.com>
48399
48400         gnulib-tool: fix sed-based filtering
48401         * gnulib-tool (func_filter_filelist): Remove extra backslash
48402         in sed_fff_filter definition.
48403
48404 2009-01-02  Jim Meyering  <meyering@redhat.com>
48405
48406         strftime: avoid compilation failure on Solaris 2.6
48407         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48408         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48409         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48410         be available.  Reported by Tom G. Christensen.  Details in
48411         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48412
48413 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48414             Bruno Haible  <bruno@clisp.org>
48415
48416         Speed up gnulib-tool by doing more string processing through shell
48417         built-ins.
48418         * gnulib-tool (fast_func_append): New variable.
48419         (func_remove_prefix, func_remove_suffix): New functions.
48420         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48421         (func_filter_filelist): New function.
48422         (func_get_dependencies): Use func_remove_suffix instead of sed.
48423         (func_get_automake_snippet): Use func_filter_filelist instead of a
48424         subshell and sed invocation.
48425
48426 2009-01-01  Bruno Haible  <bruno@clisp.org>
48427
48428         Fix a security bug.
48429         * gnulib-tool (func_import, import, update): Don't allow the characters
48430         '"', '$', '`', '\' in macro arguments that become part of commands that
48431         are evaluated.
48432
48433 2009-01-01  Bruno Haible  <bruno@clisp.org>
48434
48435         * gnulib-tool (func_reset_sigpipe): Add more comments.
48436
48437 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48438
48439         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48440         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48441         already know the answer.
48442
48443 2009-01-01  Jim Meyering  <meyering@redhat.com>
48444
48445         * lib/version-etc.c (version_etc_va): Update copyright year.
48446
48447 2008-12-30  Bruno Haible  <bruno@clisp.org>
48448
48449         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48450         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48451         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48452
48453 2008-12-29  Eric Blake  <ebb9@byu.net>
48454
48455         multiarch: avoid autoconf AC_REQUIRE bug
48456         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48457         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48458         2.63 and older.
48459         Reported by Bruno Haible, and analyzed in
48460         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48461
48462 2008-12-29  Bruno Haible  <bruno@clisp.org>
48463
48464         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48465         files in subdirectories correctly.
48466         Reported by Ralf Wildenhues.
48467
48468 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48469
48470         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48471         rather than 'join FILE -', for Solaris join.
48472
48473 2008-12-29  Bruno Haible  <bruno@clisp.org>
48474
48475         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48476         quoting.
48477         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48478         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48479         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48480         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48481         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48482         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48483         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48484         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48485         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48486         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48487         * m4/nls.m4 (AM_NLS): Likewise.
48488         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48489         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48490         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48491         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48492         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48493         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48494         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48495         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48496         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48497         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48498         * m4/xsize.m4 (gl_XSIZE): Likewise.
48499         Suggested by Jim Meyering.
48500
48501 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48502
48503         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48504         * lib/parse-duration.c: use a switch instead of cascading if's.
48505
48506 2008-12-29  Eric Blake  <ebb9@byu.net>
48507
48508         wchar.h: supply WEOF on Irix 5.3
48509         * lib/wchar.in.h (wint_t): Also supply WEOF.
48510         * lib/wctype.in.h (wint_t): Likewise.
48511         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48512         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48513         Reported by Tom G. Christensen.
48514
48515 2008-12-26  Bruno Haible  <bruno@clisp.org>
48516
48517         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48518         i486, i586, i686.
48519
48520 2008-12-26  Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48523
48524 2008-12-26  Bruno Haible  <bruno@clisp.org>
48525
48526         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48527         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48528         not __STDC_CONSTANT_MACROS.
48529         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48530
48531 2008-12-25  Bruno Haible  <bruno@clisp.org>
48532
48533         Add support for universal builds to vasnprintf.
48534         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48535         universal builds, guess no.
48536         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48537         * modules/vasprintf-posix (Depends-on): Likewise.
48538         * modules/fprintf-posix (Depends-on): Likewise.
48539         * modules/vfprintf-posix (Depends-on): Likewise.
48540         * modules/snprintf-posix (Depends-on): Likewise.
48541         * modules/vsnprintf-posix (Depends-on): Likewise.
48542         * modules/sprintf-posix (Depends-on): Likewise.
48543         * modules/vsprintf-posix (Depends-on): Likewise.
48544         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48545         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48546         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48547         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48548         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48549         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48550         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48551
48552         Add support for universal builds to <inttypes.h>.
48553         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48554         _SCNu64_PREFIX): In Apple
48555         universal builds, define directly, using _LP64.
48556         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48557         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48558         * modules/inttypes (Depends-on): Add multiarch.
48559         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48560
48561         Add support for universal builds to <stdint.h>.
48562         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48563         universal builds, define directly, using _LP64.
48564         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48565         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48566         and size_t.
48567         * modules/stdint (Depends-on): Add multiarch.
48568         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48569
48570         New module 'multiarch'.
48571         * modules/multiarch: New file.
48572         * m4/multiarch.m4: New file.
48573
48574 2008-12-25  Bruno Haible  <bruno@clisp.org>
48575
48576         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48577
48578 2008-12-25  Bruno Haible  <bruno@clisp.org>
48579
48580         * modules/btowc (License): Relicense under LGPLv2+.
48581         * modules/mbsinit (License): Likewise.
48582         * modules/mbrtowc (License): Likewise.
48583         * modules/wcrtomb (License): Likewise.
48584         * modules/streq (License): Likewise.
48585         Reported by David Lutterkort <lutter@redhat.com>.
48586
48587 2008-12-23  Bruno Haible  <bruno@clisp.org>
48588
48589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48590
48591 2008-12-23  Bruno Haible  <bruno@clisp.org>
48592
48593         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48594         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48595         GETADDRINFO_LIB, not in LIBS.
48596         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48597         * modules/canon-host (Link): Likewise.
48598         * NEWS: Mention the change.
48599         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48600         GETADDRINFO_LIB.
48601
48602 2008-12-22  Bruno Haible  <bruno@clisp.org>
48603
48604         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48605         * doc/posix-functions/iswalpha_l.texi: Likewise.
48606         * doc/posix-functions/iswblank_l.texi: Likewise.
48607         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48608         * doc/posix-functions/iswctype_l.texi: Likewise.
48609         * doc/posix-functions/iswdigit_l.texi: Likewise.
48610         * doc/posix-functions/iswgraph_l.texi: Likewise.
48611         * doc/posix-functions/iswlower_l.texi: Likewise.
48612         * doc/posix-functions/iswprint_l.texi: Likewise.
48613         * doc/posix-functions/iswpunct_l.texi: Likewise.
48614         * doc/posix-functions/iswspace_l.texi: Likewise.
48615         * doc/posix-functions/iswupper_l.texi: Likewise.
48616         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48617         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48618         * doc/posix-functions/open_wmemstream.texi: Likewise.
48619         * doc/posix-functions/swscanf.texi: Likewise.
48620         * doc/posix-functions/towctrans_l.texi: Likewise.
48621         * doc/posix-functions/towlower.texi: Likewise.
48622         * doc/posix-functions/towlower_l.texi: Likewise.
48623         * doc/posix-functions/towupper.texi: Likewise.
48624         * doc/posix-functions/towupper_l.texi: Likewise.
48625         * doc/posix-functions/vfwprintf.texi: Likewise.
48626         * doc/posix-functions/vfwscanf.texi: Likewise.
48627         * doc/posix-functions/vswscanf.texi: Likewise.
48628         * doc/posix-functions/vwprintf.texi: Likewise.
48629         * doc/posix-functions/vwscanf.texi: Likewise.
48630         * doc/posix-functions/wcpcpy.texi: Likewise.
48631         * doc/posix-functions/wcpncpy.texi: Likewise.
48632         * doc/posix-functions/wcscasecmp.texi: Likewise.
48633         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48634         * doc/posix-functions/wcscoll_l.texi: Likewise.
48635         * doc/posix-functions/wcsdup.texi: Likewise.
48636         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48637         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48638         * doc/posix-functions/wcsnlen.texi: Likewise.
48639         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48640         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48641         * doc/posix-functions/wctrans_l.texi: Likewise.
48642         * doc/posix-functions/wctype_l.texi: Likewise.
48643         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48644         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48645         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48646         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48647         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48648         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48649         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48650         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48651         * doc/glibc-functions/wcschrnul.texi: Likewise.
48652         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48653         * doc/glibc-functions/wcstod_l.texi: Likewise.
48654         * doc/glibc-functions/wcstof_l.texi: Likewise.
48655         * doc/glibc-functions/wcstol_l.texi: Likewise.
48656         * doc/glibc-functions/wcstold_l.texi: Likewise.
48657         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48658         * doc/glibc-functions/wcstoq.texi: Likewise.
48659         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48660         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48661         * doc/glibc-functions/wcstouq.texi: Likewise.
48662         * doc/glibc-functions/wmempcpy.texi: Likewise.
48663
48664 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48665             Eric Blake  <ebb9@byu.net>
48666             Paolo Bonzini  <bonzini@gnu.org>
48667             Bruno Haible  <bruno@clisp.org>
48668
48669         Make c-stack work on Haiku.
48670         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48671         (c_stack_action): Use SA_ONSTACK flag.
48672
48673 2008-12-22  Bruno Haible  <bruno@clisp.org>
48674
48675         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48676
48677 2008-12-22  Bruno Haible  <bruno@clisp.org>
48678
48679         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48680         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48681         being overridden.
48682         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48683         New macros.
48684         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48686         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48687         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48688
48689 2008-12-22  Bruno Haible  <bruno@clisp.org>
48690
48691         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48692         from test code.
48693
48694 2008-12-22  Eric Blake  <ebb9@byu.net>
48695
48696         Avoid gcc warnings on cygwin.
48697         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48698         Avoid unused variable.
48699         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48700         Likewise.
48701
48702 2008-12-22  Bruno Haible  <bruno@clisp.org>
48703
48704         Remove HAVE_MBRTOWC conditionals.
48705         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48706         (mbscasecmp): Assume mbrtowc function.
48707         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48708         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48709         * lib/mbschr.c: Include mbuiter.h unconditionally.
48710         (mbschr): Assume mbrtowc function.
48711         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48712         (mbscspn): Assume mbrtowc function.
48713         * lib/mbslen.c: Include mbuiter.h unconditionally.
48714         (mbslen): Assume mbrtowc function.
48715         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48716         (mbsncasecmp): Assume mbrtowc function.
48717         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48718         (mbsnlen): Assume mbrtowc function.
48719         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48720         (mbspbrk): Assume mbrtowc function.
48721         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48722         (mbspcasecmp): Assume mbrtowc function.
48723         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48724         (mbsrchr): Assume mbrtowc function.
48725         * lib/mbssep.c: Include mbuiter.h unconditionally.
48726         (mbssep): Assume mbrtowc function.
48727         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48728         (mbsspn): Assume mbrtowc function.
48729         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48730         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48731         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48732         (mbstok_r): Assume mbrtowc function.
48733         * lib/propername.c: Include mbuiter.h unconditionally.
48734         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48735         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48736         (trim2): Assume mbrtowc function.
48737         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48738         (mbsnwidth): Assume mbrtowc function.
48739         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48740         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48741         fallback definitions.
48742         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48743
48744 2008-12-22  Bruno Haible  <bruno@clisp.org>
48745
48746         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48747
48748 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48749
48750         * modules/regex: Request emulations for the mb*/wc* functions we need.
48751         * m4/regex.m4: Don't look for those functions here.
48752         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48753
48754 2008-12-22  Bruno Haible  <bruno@clisp.org>
48755
48756         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48757
48758 2008-12-21  Bruno Haible  <bruno@clisp.org>
48759
48760         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48761         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48762         (Include): Remove conditionalization.
48763         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48764         (Include): Remove conditionalization.
48765         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48766         (Include): Remove conditionalization.
48767         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48768         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48769         * NEWS: Mention the change.
48770         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48771         via Sergey Poznyakoff <gray@gnu.org.ua>.
48772
48773 2008-12-21  Bruno Haible  <bruno@clisp.org>
48774
48775         * MODULES.html.sh (Extended multibyte and wide character utilities
48776         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48777         wcrtomb, wcsrtombs.
48778         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48779         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48780         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48781         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48782
48783 2008-12-21  Bruno Haible  <bruno@clisp.org>
48784
48785         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48786
48787 2008-12-21  Bruno Haible  <bruno@clisp.org>
48788
48789         * modules/wcsnrtombs-tests: New file.
48790         * tests/test-wcsnrtombs1.sh: New file.
48791         * tests/test-wcsnrtombs2.sh: New file.
48792         * tests/test-wcsnrtombs3.sh: New file.
48793         * tests/test-wcsnrtombs4.sh: New file.
48794         * tests/test-wcsnrtombs.c: New file.
48795
48796         New module 'wcsnrtombs'.
48797         * lib/wchar.in.h (wcsnrtombs): New declaration.
48798         * lib/wcsnrtombs.c: New file.
48799         * lib/wcsrtombs-state.c: New file.
48800         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48801         (internal_state): Remove variable.
48802         * m4/wcsnrtombs.m4: New file.
48803         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48804         compilation units.
48805         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48806         HAVE_WCSNRTOMBS.
48807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48808         HAVE_WCSNRTOMBS.
48809         * modules/wcsnrtombs: New file.
48810         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48811         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48812
48813 2008-12-21  Bruno Haible  <bruno@clisp.org>
48814
48815         * modules/wcsrtombs-tests: New file.
48816         * tests/test-wcsrtombs1.sh: New file.
48817         * tests/test-wcsrtombs2.sh: New file.
48818         * tests/test-wcsrtombs3.sh: New file.
48819         * tests/test-wcsrtombs4.sh: New file.
48820         * tests/test-wcsrtombs.c: New file.
48821
48822         New module 'wcsrtombs'.
48823         * lib/wchar.in.h (wcsrtombs): New declaration.
48824         * lib/wcsrtombs.c: New file.
48825         * m4/wcsrtombs.m4: New file.
48826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48827         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48829         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48830         * modules/wcsrtombs: New file.
48831         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48832         bugs.
48833
48834 2008-12-21  Bruno Haible  <bruno@clisp.org>
48835
48836         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48837         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48838         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48839         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48840         if not correct.
48841         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48842         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48843         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48844         m4/locale-zh.m4, m4/codeset.m4.
48845         * doc/posix-functions/wcrtomb.texi: Document the bug.
48846
48847 2008-12-21  Bruno Haible  <bruno@clisp.org>
48848
48849         Work around a btowc() bug on IRIX 6.5.
48850         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48851         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48852         REPLACE_WTOBC if not.
48853         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48854         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48855         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48856
48857 2008-12-21  Bruno Haible  <bruno@clisp.org>
48858
48859         * modules/wcrtomb-tests: New file.
48860         * tests/test-wcrtomb.sh: New file.
48861         * tests/test-wcrtomb.c: New file.
48862
48863         New module 'wcrtomb'.
48864         * lib/wchar.in.h (wcrtomb): New declaration.
48865         * lib/wcrtomb.c: New file.
48866         * m4/wcrtomb.m4: New file.
48867         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48868         HAVE_WCRTOMB.
48869         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48870         HAVE_WCRTOMB.
48871         * modules/wcrtomb: New file.
48872         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48873
48874 2008-12-21  Bruno Haible  <bruno@clisp.org>
48875
48876         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48877         * modules/mbsrtowcs (Files): Likewise.
48878         * modules/wctob (Files): Likewise.
48879         * modules/c-strcase-tests (Files): Likewise.
48880         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48881         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48882         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48883         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48884         * modules/vasnprintf-posix-tests (Files): Likewise.
48885
48886 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48887
48888         gitlog-to-changelog: pass all command-line arguments to git-log
48889         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48890         it is sometimes convenient to filter the commits in various ways.
48891         gitlog-to-changelog only allows --since to specify a start date,
48892         but git-log itself supports many other filtering mechanisms.
48893         At the moment, I want to filter by branch name.  Rather than
48894         adding a --branch option to gitlog-to-changelog, it seems more
48895         flexible to simply pass all options directly to git-log and let
48896         git do the work.  Notice that this effectively makes --since a
48897         redundant option for gitlog-to-changelog, but removing it would
48898         require current usage to change since calls would then require
48899         an additional '--'.
48900
48901 2008-12-21  Bruno Haible  <bruno@clisp.org>
48902
48903         * modules/mbsnrtowcs-tests: New file.
48904         * tests/test-mbsnrtowcs1.sh: New file.
48905         * tests/test-mbsnrtowcs2.sh: New file.
48906         * tests/test-mbsnrtowcs3.sh: New file.
48907         * tests/test-mbsnrtowcs4.sh: New file.
48908         * tests/test-mbsnrtowcs.c: New file.
48909
48910         New module 'mbsnrtowcs'.
48911         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48912         * lib/mbsnrtowcs.c: New file.
48913         * lib/mbsrtowcs-state.c: New file.
48914         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48915         (internal_state): Remove variable.
48916         * m4/mbsnrtowcs.m4: New file.
48917         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48918         compilation units.
48919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48920         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48921         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48922         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48923         * modules/mbsnrtowcs: New file.
48924         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48925         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48926         portability problem.
48927
48928 2008-12-21  Bruno Haible  <bruno@clisp.org>
48929
48930         Work around mbsrtowcs bug.
48931         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48932         (gl_FUNC_MBSRTOWCS): Invoke it.
48933         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48934         m4/locale-zh.m4.
48935         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48936
48937 2008-12-21  Bruno Haible  <bruno@clisp.org>
48938
48939         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48940
48941 2008-12-21  Bruno Haible  <bruno@clisp.org>
48942
48943         Update doc for AIX.
48944         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48945         16-bit wchar_t type.
48946         * doc/posix-functions/btowc.texi: Likewise.
48947         * doc/posix-functions/fgetwc.texi: Likewise.
48948         * doc/posix-functions/fgetws.texi: Likewise.
48949         * doc/posix-functions/fputwc.texi: Likewise.
48950         * doc/posix-functions/fputws.texi: Likewise.
48951         * doc/posix-functions/fwide.texi: Likewise.
48952         * doc/posix-functions/fwprintf.texi: Likewise.
48953         * doc/posix-functions/fwscanf.texi: Likewise.
48954         * doc/posix-functions/getwchar.texi: Likewise.
48955         * doc/posix-functions/getwc.texi: Likewise.
48956         * doc/posix-functions/iswalnum.texi: Likewise.
48957         * doc/posix-functions/iswalpha.texi: Likewise.
48958         * doc/posix-functions/iswblank.texi: Likewise.
48959         * doc/posix-functions/iswcntrl.texi: Likewise.
48960         * doc/posix-functions/iswctype.texi: Likewise.
48961         * doc/posix-functions/iswdigit.texi: Likewise.
48962         * doc/posix-functions/iswgraph.texi: Likewise.
48963         * doc/posix-functions/iswlower.texi: Likewise.
48964         * doc/posix-functions/iswprint.texi: Likewise.
48965         * doc/posix-functions/iswpunct.texi: Likewise.
48966         * doc/posix-functions/iswspace.texi: Likewise.
48967         * doc/posix-functions/iswupper.texi: Likewise.
48968         * doc/posix-functions/iswxdigit.texi: Likewise.
48969         * doc/posix-functions/mbrtowc.texi: Likewise.
48970         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48971         * doc/posix-functions/mbstowcs.texi: Likewise.
48972         * doc/posix-functions/mbtowc.texi: Likewise.
48973         * doc/posix-functions/putwchar.texi: Likewise.
48974         * doc/posix-functions/putwc.texi: Likewise.
48975         * doc/posix-functions/swprintf.texi: Likewise.
48976         * doc/posix-functions/tolower.texi: Likewise.
48977         * doc/posix-functions/toupper.texi: Likewise.
48978         * doc/posix-functions/towctrans.texi: Likewise.
48979         * doc/posix-functions/ungetwc.texi: Likewise.
48980         * doc/posix-functions/vswprintf.texi: Likewise.
48981         * doc/posix-functions/wcrtomb.texi: Likewise.
48982         * doc/posix-functions/wcscat.texi: Likewise.
48983         * doc/posix-functions/wcschr.texi: Likewise.
48984         * doc/posix-functions/wcscmp.texi: Likewise.
48985         * doc/posix-functions/wcscoll.texi: Likewise.
48986         * doc/posix-functions/wcscpy.texi: Likewise.
48987         * doc/posix-functions/wcscspn.texi: Likewise.
48988         * doc/posix-functions/wcsftime.texi: Likewise.
48989         * doc/posix-functions/wcslen.texi: Likewise.
48990         * doc/posix-functions/wcsncat.texi: Likewise.
48991         * doc/posix-functions/wcsncmp.texi: Likewise.
48992         * doc/posix-functions/wcsncpy.texi: Likewise.
48993         * doc/posix-functions/wcspbrk.texi: Likewise.
48994         * doc/posix-functions/wcsrchr.texi: Likewise.
48995         * doc/posix-functions/wcsrtombs.texi: Likewise.
48996         * doc/posix-functions/wcsspn.texi: Likewise.
48997         * doc/posix-functions/wcsstr.texi: Likewise.
48998         * doc/posix-functions/wcstod.texi: Likewise.
48999         * doc/posix-functions/wcstof.texi: Likewise.
49000         * doc/posix-functions/wcstoimax.texi: Likewise.
49001         * doc/posix-functions/wcstok.texi: Likewise.
49002         * doc/posix-functions/wcstold.texi: Likewise.
49003         * doc/posix-functions/wcstoll.texi: Likewise.
49004         * doc/posix-functions/wcstol.texi: Likewise.
49005         * doc/posix-functions/wcstombs.texi: Likewise.
49006         * doc/posix-functions/wcstoull.texi: Likewise.
49007         * doc/posix-functions/wcstoul.texi: Likewise.
49008         * doc/posix-functions/wcstoumax.texi: Likewise.
49009         * doc/posix-functions/wcswidth.texi: Likewise.
49010         * doc/posix-functions/wcsxfrm.texi: Likewise.
49011         * doc/posix-functions/wctob.texi: Likewise.
49012         * doc/posix-functions/wctomb.texi: Likewise.
49013         * doc/posix-functions/wctrans.texi: Likewise.
49014         * doc/posix-functions/wctype.texi: Likewise.
49015         * doc/posix-functions/wcwidth.texi: Likewise.
49016         * doc/posix-functions/wmemchr.texi: Likewise.
49017         * doc/posix-functions/wmemcmp.texi: Likewise.
49018         * doc/posix-functions/wmemcpy.texi: Likewise.
49019         * doc/posix-functions/wmemmove.texi: Likewise.
49020         * doc/posix-functions/wmemset.texi: Likewise.
49021         * doc/posix-functions/wprintf.texi: Likewise.
49022         * doc/posix-functions/wscanf.texi: Likewise.
49023
49024 2008-12-21  Bruno Haible  <bruno@clisp.org>
49025
49026         Update doc for HP-UX 11.11.
49027         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49028         in HP-UX version 11.00, not in all versions of HP-UX 11.
49029         * doc/posix-functions/fwide.texi: Likewise.
49030         * doc/posix-functions/fwprintf.texi: Likewise.
49031         * doc/posix-functions/fwscanf.texi: Likewise.
49032         * doc/posix-functions/inet_ntop.texi: Likewise.
49033         * doc/posix-functions/inet_pton.texi: Likewise.
49034         * doc/posix-functions/mbrlen.texi: Likewise.
49035         * doc/posix-functions/mbrtowc.texi: Likewise.
49036         * doc/posix-functions/mbsinit.texi: Likewise.
49037         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49038         * doc/posix-functions/swprintf.texi: Likewise.
49039         * doc/posix-functions/swscanf.texi: Likewise.
49040         * doc/posix-functions/towctrans.texi: Likewise.
49041         * doc/posix-functions/vfwprintf.texi: Likewise.
49042         * doc/posix-functions/vswprintf.texi: Likewise.
49043         * doc/posix-functions/vwprintf.texi: Likewise.
49044         * doc/posix-functions/wcrtomb.texi: Likewise.
49045         * doc/posix-functions/wcsrtombs.texi: Likewise.
49046         * doc/posix-functions/wcsstr.texi: Likewise.
49047         * doc/posix-functions/wctob.texi: Likewise.
49048         * doc/posix-functions/wctrans.texi: Likewise.
49049         * doc/posix-functions/wmemchr.texi: Likewise.
49050         * doc/posix-functions/wmemcmp.texi: Likewise.
49051         * doc/posix-functions/wmemcpy.texi: Likewise.
49052         * doc/posix-functions/wmemmove.texi: Likewise.
49053         * doc/posix-functions/wmemset.texi: Likewise.
49054         * doc/posix-functions/wprintf.texi: Likewise.
49055         * doc/posix-functions/wscanf.texi: Likewise.
49056
49057 2008-12-21  Bruno Haible  <bruno@clisp.org>
49058
49059         Work around a portability problem.
49060         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49061         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49062
49063 2008-12-20  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49066         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49067         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49068         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49069         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49070
49071         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49072         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49073         set.
49074         (GNULIB_defined_mbstate_t): New macro.
49075         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49076         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49077         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49078         reuses the system's mbrtowc function but works around the bugs.
49079         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49080         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49081         macros.
49082         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49083         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49084         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49085         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49086         REPLACE_MBSINIT if mbsinit needs to be overridden.
49087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49088         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49089         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49090         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49091         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49092         m4/locale-zh.m4.
49093         (Depends): Add mbsinit.
49094         * modules/mbsinit (Depends): Add mbrtowc.
49095         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49096
49097 2008-12-20  Bruno Haible  <bruno@clisp.org>
49098
49099         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49100         so that there are no conversion errors on AIX.
49101         * tests/test-mbsrtowcs.c (main): LIkewise.
49102
49103 2008-12-20  Bruno Haible  <bruno@clisp.org>
49104
49105         Work around wctob bug on Solaris <= 9.
49106         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49107         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49108         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49109         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49110         * modules/wctob (Files): Add m4/locale-fr.m4.
49111         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49112
49113 2008-12-20  Bruno Haible  <bruno@clisp.org>
49114
49115         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49116         /dev/null.
49117         * tests/test-select-in.sh: Likewise.
49118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49119
49120 2008-12-20  Bruno Haible  <bruno@clisp.org>
49121
49122         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49123         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49124         Cygwin 1.5.x.
49125
49126 2008-12-20  Bruno Haible  <bruno@clisp.org>
49127
49128         Ensure mbstate_t is defined on HP-UX 11.11.
49129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49130         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49131         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49132         AC_USE_SYSTEM_EXTENSIONS.
49133         * modules/fnmatch (Depends-on): Add extensions.
49134         * modules/mbrlen (Depends-on): Likewise.
49135         * modules/mbrtowc (Depends-on): Likewise.
49136         * modules/mbsinit (Depends-on): Likewise.
49137         * modules/mbsrtowcs (Depends-on): Likewise.
49138         * modules/mbswidth (Depends-on): Likewise.
49139         * modules/quotearg (Depends-on): Likewise.
49140         * modules/strftime (Depends-on): Likewise.
49141
49142 2008-12-20  Bruno Haible  <bruno@clisp.org>
49143
49144         Ensure wctob is declared on IRIX 6.5.
49145         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49146         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49147         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49149         of HAVE_WCTOB.
49150         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49151         HAVE_WCTOB.
49152         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49153
49154 2008-12-19  Bruno Haible  <bruno@clisp.org>
49155
49156         * modules/mbsrtowcs-tests: New file.
49157         * tests/test-mbsrtowcs1.sh: New file.
49158         * tests/test-mbsrtowcs2.sh: New file.
49159         * tests/test-mbsrtowcs3.sh: New file.
49160         * tests/test-mbsrtowcs4.sh: New file.
49161         * tests/test-mbsrtowcs.c: New file.
49162
49163         New module 'mbsrtowcs'.
49164         * lib/wchar.in.h (mbsrtowcs): New declaration.
49165         * lib/mbsrtowcs.c: New file.
49166         * m4/mbsrtowcs.m4: New file.
49167         * modules/mbsrtowcs: New file.
49168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49169         HAVE_MBSRTOWCS.
49170         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49171         HAVE_MBSRTOWCS.
49172         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49173
49174 2008-12-19  Bruno Haible  <bruno@clisp.org>
49175
49176         New module 'mbrlen'.
49177         * lib/wchar.in.h (mbrlen): New declaration.
49178         * lib/mbrlen.c: New file.
49179         * m4/mbrlen.m4: New file.
49180         * modules/mbrlen: New file.
49181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49182         HAVE_MBRLEN.
49183         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49184         HAVE_MBRLEN.
49185         * doc/posix-functions/mbrlen.texi: Document the new module.
49186
49187 2008-12-19  Bruno Haible  <bruno@clisp.org>
49188
49189         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49190         * modules/mbrtowc (Depends-on): Add verify.
49191         Suggested by Paul Eggert.
49192
49193 2008-12-18  Bruno Haible  <bruno@clisp.org>
49194
49195         * modules/mbsinit-tests: New file.
49196         * tests/test-mbsinit.sh: New file.
49197         * tests/test-mbsinit.c: New file.
49198
49199 2008-12-18  Bruno Haible  <bruno@clisp.org>
49200
49201         * modules/mbrtowc-tests: New file.
49202         * tests/test-mbrtowc1.sh: New file.
49203         * tests/test-mbrtowc2.sh: New file.
49204         * tests/test-mbrtowc3.sh: New file.
49205         * tests/test-mbrtowc4.sh: New file.
49206         * tests/test-mbrtowc.c: New file.
49207
49208         New module 'mbrtowc'.
49209         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49210         mbsinit and mbrtowc.
49211         (mbrtowc): New declaration.
49212         * lib/mbrtowc.c: New file.
49213         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49214         * modules/mbrtowc: New file.
49215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49216         HAVE_MBRTOWC.
49217         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49218         HAVE_MBRTOWC.
49219         * doc/posix-functions/mbrtowc.texi: Document the new module.
49220
49221 2008-12-18  Bruno Haible  <bruno@clisp.org>
49222
49223         New module 'wctob'.
49224         * lib/wchar.in.h (wctob): New declaration.
49225         * lib/wctob.c: New file.
49226         * m4/wctob.m4: New file.
49227         * modules/wctob: New file.
49228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49229         HAVE_WCTOB.
49230         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49231         * doc/posix-functions/wctob.texi: Document the new module.
49232
49233 2008-12-18  Bruno Haible  <bruno@clisp.org>
49234
49235         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49236         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49237
49238 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49239
49240         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49241         G. Christensen" <tgc@jupiterrise.com>.
49242
49243         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49244         G. Christensen" <tgc@jupiterrise.com>.
49245
49246         * lib/flock.c: Need to include string.h.  Reported by "Tom
49247         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49248         <ebb9@byu.net>.
49249
49250 2008-12-18  Bruno Haible  <bruno@clisp.org>
49251
49252         * m4/locale-ja.m4: New file, from GNU gettext.
49253
49254 2008-12-17  Bruno Haible  <bruno@clisp.org>
49255
49256         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49257         Suggested by Eric Blake.
49258
49259 2008-12-17  Bruno Haible  <bruno@clisp.org>
49260
49261         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49262
49263 2008-12-17  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49266         * modules/mbsinit (Depends-on): Add verify.
49267         Suggested by Paul Eggert.
49268
49269 2008-12-17  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49272         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49273         gl_FUNC_MBRTOWC.
49274         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49275         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49276         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49277         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49278         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49279         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49280         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49281         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49282         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49283         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49284         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49285         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49286         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49287         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49288         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49289         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49290         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49291         * modules/trim (configure.ac): Likewise.
49292
49293 2008-12-17  Bruno Haible  <bruno@clisp.org>
49294
49295         * modules/btowc-tests: New file.
49296         * tests/test-btowc1.sh: New file.
49297         * tests/test-btowc2.sh: New file.
49298         * tests/test-btowc.c: New file.
49299
49300         New module 'btowc'.
49301         * lib/wchar.in.h (btowc): New declaration.
49302         * lib/btowc.c: New file.
49303         * m4/btowc.m4: New file.
49304         * modules/btowc: New file.
49305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49306         HAVE_BTOWC.
49307         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49308         * doc/posix-functions/btowc.texi: Document the new module.
49309
49310 2008-12-17  Bruno Haible  <bruno@clisp.org>
49311
49312         New module 'mbsinit'.
49313         * lib/wchar.in.h (mbsinit): New declaration.
49314         * lib/mbsinit.c: New file.
49315         * m4/mbsinit.m4: New file.
49316         * modules/mbsinit: New file.
49317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49318         HAVE_MBSINIT.
49319         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49320         HAVE_MBSINIT.
49321         * doc/posix-functions/mbsinit.texi: Document the new module.
49322
49323 2008-12-16  Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/unistd.in.h: Add comment.
49326         * tests/test-environ.c: Don't include <stdlib.h>.
49327
49328 2008-12-16  Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/parse-duration.h (parse_duration): Document return value
49331         convention.
49332         * lib/parse-duration.c: Include specification header first. Add
49333         comments.
49334         (_): Remove macro.
49335         (parse_year_month_day, parse_hour_minute_second): Move side effects
49336         outside of strchr call.
49337         (parse_non_iso8601): Move side effects outside of isspace call.
49338         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49339         call.
49340
49341 2008-12-16  Bruno Haible  <bruno@clisp.org>
49342
49343         * tests/test-parse-duration.sh: Produce no output when the test
49344         succeeds.
49345
49346 2008-12-16  Bruno Haible  <bruno@clisp.org>
49347
49348         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49349         expressions.
49350
49351 2008-12-15  Bruno Haible  <bruno@clisp.org>
49352
49353         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49354         * doc/glibc-functions/flistxattr.texi: Likewise.
49355         * doc/glibc-functions/fopencookie.texi: Likewise.
49356         * doc/glibc-functions/fremovexattr.texi: Likewise.
49357         * doc/glibc-functions/fsetxattr.texi: Likewise.
49358         * doc/glibc-functions/getxattr.texi: Likewise.
49359         * doc/glibc-functions/lgetxattr.texi: Likewise.
49360         * doc/glibc-functions/listxattr.texi: Likewise.
49361         * doc/glibc-functions/llistxattr.texi: Likewise.
49362         * doc/glibc-functions/lremovexattr.texi: Likewise.
49363         * doc/glibc-functions/lsetxattr.texi: Likewise.
49364         * doc/glibc-functions/removexattr.texi: Likewise.
49365         * doc/glibc-functions/setxattr.texi: Likewise.
49366         * doc/posix-functions/open_memstream.texi: Likewise.
49367
49368 2008-12-15  Eric Blake  <ebb9@byu.net>
49369
49370         Update doc for cygwin 1.7.
49371         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49372         functions.
49373         * doc/posix-functions/fchmodat.texi: Likewise.
49374         * doc/posix-functions/fchownat.texi: Likewise.
49375         * doc/posix-functions/fdopendir.texi: Likewise.
49376         * doc/posix-functions/fmemopen.texi: Likewise.
49377         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49378         * doc/posix-functions/fstatat.texi: Likewise.
49379         * doc/posix-functions/futimens.texi: Likewise.
49380         * doc/posix-functions/gai_strerror.texi: Likewise.
49381         * doc/posix-functions/getaddrinfo.texi: Likewise.
49382         * doc/posix-functions/getnameinfo.texi: Likewise.
49383         * doc/posix-functions/if_freenameindex.texi: Likewise.
49384         * doc/posix-functions/if_indextoname.texi: Likewise.
49385         * doc/posix-functions/if_nameindex.texi: Likewise.
49386         * doc/posix-functions/if_nametoindex.texi: Likewise.
49387         * doc/posix-functions/insque.texi: Likewise.
49388         * doc/posix-functions/linkat.texi: Likewise.
49389         * doc/posix-functions/llrint.texi: Likewise.
49390         * doc/posix-functions/llrintf.texi: Likewise.
49391         * doc/posix-functions/llrintl.texi: Likewise.
49392         * doc/posix-functions/lockf.texi: Likewise.
49393         * doc/posix-functions/lrintl.texi: Likewise.
49394         * doc/posix-functions/mkdirat.texi: Likewise.
49395         * doc/posix-functions/mkfifoat.texi: Likewise.
49396         * doc/posix-functions/mknodat.texi: Likewise.
49397         * doc/posix-functions/mq_close.texi: Likewise.
49398         * doc/posix-functions/mq_getattr.texi: Likewise.
49399         * doc/posix-functions/mq_notify.texi: Likewise.
49400         * doc/posix-functions/mq_open.texi: Likewise.
49401         * doc/posix-functions/mq_receive.texi: Likewise.
49402         * doc/posix-functions/mq_send.texi: Likewise.
49403         * doc/posix-functions/mq_setattr.texi: Likewise.
49404         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49405         * doc/posix-functions/mq_timedsend.texi: Likewise.
49406         * doc/posix-functions/mq_unlink.texi: Likewise.
49407         * doc/posix-functions/open_memstream.texi: Likewise.
49408         * doc/posix-functions/openat.texi: Likewise.
49409         * doc/posix-functions/posix_fadvise.texi: Likewise.
49410         * doc/posix-functions/posix_fallocate.texi: Likewise.
49411         * doc/posix-functions/posix_madvise.texi: Likewise.
49412         * doc/posix-functions/posix_memalign.texi: Likewise.
49413         * doc/posix-functions/posix_openpt.texi: Likewise.
49414         * doc/posix-functions/readlinkat.texi: Likewise.
49415         * doc/posix-functions/remque.texi: Likewise.
49416         * doc/posix-functions/renameat.texi: Likewise.
49417         * doc/posix-functions/rintl.texi: Likewise.
49418         * doc/posix-functions/sem_unlink.texi: Likewise.
49419         * doc/posix-functions/shm_open.texi: Likewise.
49420         * doc/posix-functions/shm_unlink.texi: Likewise.
49421         * doc/posix-functions/signgam.texi: Likewise.
49422         * doc/posix-functions/sigset.texi: Likewise.
49423         * doc/posix-functions/stpcpy.texi: Likewise.
49424         * doc/posix-functions/stpncpy.texi: Likewise.
49425         * doc/posix-functions/strerror.texi: Likewise.
49426         * doc/posix-functions/strtod.texi: Likewise.
49427         * doc/posix-functions/symlinkat.texi: Likewise.
49428         * doc/posix-functions/unlinkat.texi: Likewise.
49429         * doc/posix-functions/utimensat.texi: Likewise.
49430         * doc/glibc-functions/bindresvport.texi: Likewise.
49431         * doc/glibc-functions/dn_expand.texi: Likewise.
49432         * doc/glibc-functions/exp10.texi: Likewise.
49433         * doc/glibc-functions/exp10f.texi: Likewise.
49434         * doc/glibc-functions/fgetxattr.texi: Likewise.
49435         * doc/glibc-functions/flistxattr.texi: Likewise.
49436         * doc/glibc-functions/fopencookie.texi: Likewise.
49437         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49438         * doc/glibc-functions/fremovexattr.texi: Likewise.
49439         * doc/glibc-functions/fsetxattr.texi: Likewise.
49440         * doc/glibc-functions/getifaddrs.texi: Likewise.
49441         * doc/glibc-functions/getxattr.texi: Likewise.
49442         * doc/glibc-functions/lgetxattr.texi: Likewise.
49443         * doc/glibc-functions/listxattr.texi: Likewise.
49444         * doc/glibc-functions/llistxattr.texi: Likewise.
49445         * doc/glibc-functions/lremovexattr.texi: Likewise.
49446         * doc/glibc-functions/lsetxattr.texi: Likewise.
49447         * doc/glibc-functions/pow10.texi: Likewise.
49448         * doc/glibc-functions/pow10f.texi: Likewise.
49449         * doc/glibc-functions/rcmd_af.texi: Likewise.
49450         * doc/glibc-functions/removexattr.texi: Likewise.
49451         * doc/glibc-functions/res_init.texi: Likewise.
49452         * doc/glibc-functions/res_mkquery.texi: Likewise.
49453         * doc/glibc-functions/res_query.texi: Likewise.
49454         * doc/glibc-functions/res_querydomain.texi: Likewise.
49455         * doc/glibc-functions/res_send.texi: Likewise.
49456         * doc/glibc-functions/rresvport_af.texi: Likewise.
49457         * doc/glibc-functions/setxattr.texi: Likewise.
49458         * doc/glibc-functions/strcasestr.texi: Likewise.
49459
49460 2008-12-15  Bruno Haible  <bruno@clisp.org>
49461
49462         Fix compilation error on OSF/1 4.0.
49463         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49464         <sys/time.h>, simply delegate to the system header.
49465         Reported by Daniel Richard G. <oss@teragram.com>.
49466
49467 2008-12-15  Bruno Haible  <bruno@clisp.org>
49468
49469         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49470         * doc/posix-functions/fchmodat.texi: Likewise.
49471         * doc/posix-functions/fchownat.texi: Likewise.
49472         * doc/posix-functions/fdopendir.texi: Likewise.
49473         * doc/posix-functions/fstatat.texi: Likewise.
49474         * doc/posix-functions/mkdirat.texi: Likewise.
49475         * doc/posix-functions/unlinkat.texi: Likewise.
49476
49477 2008-12-14  Bruno Haible  <bruno@clisp.org>
49478
49479         Update doc for POSIX:2008.
49480         * doc/posix-functions/faccessat.texi: New file.
49481         * doc/posix-functions/fchmodat.texi: New file.
49482         * doc/posix-functions/fchownat.texi: New file.
49483         * doc/posix-functions/fdopendir.texi: New file.
49484         * doc/posix-functions/fstatat.texi: New file.
49485         * doc/posix-functions/futimens.texi: New file.
49486         * doc/posix-functions/linkat.texi: New file.
49487         * doc/posix-functions/mkdirat.texi: New file.
49488         * doc/posix-functions/mkfifoat.texi: New file.
49489         * doc/posix-functions/mknodat.texi: New file.
49490         * doc/posix-functions/open_wmemstream.texi: New file.
49491         * doc/posix-functions/openat.texi: New file.
49492         * doc/posix-functions/psiginfo.texi: New file.
49493         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49494         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49495         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49496         * doc/posix-functions/readlinkat.texi: New file.
49497         * doc/posix-functions/renameat.texi: New file.
49498         * doc/posix-functions/strerror_l.texi: New file.
49499         * doc/posix-functions/symlinkat.texi: New file.
49500         * doc/posix-functions/unlinkat.texi: New file.
49501         * doc/posix-functions/utimensat.texi: New file.
49502         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49503
49504 2008-12-14  Bruno Haible  <bruno@clisp.org>
49505
49506         Update doc for POSIX:2008.
49507         * doc/posix-functions/alphasort.texi: Renamed from
49508         doc/glibc-functions/alphasort.texi.
49509         * doc/posix-functions/dirfd.texi: Renamed from
49510         doc/glibc-functions/dirfd.texi.
49511         * doc/posix-functions/dprintf.texi: Renamed from
49512         doc/glibc-functions/dprintf.texi.
49513         * doc/posix-functions/duplocale.texi: Renamed from
49514         doc/glibc-functions/duplocale.texi.
49515         * doc/posix-functions/fexecve.texi: Renamed from
49516         doc/glibc-functions/fexecve.texi.
49517         * doc/posix-functions/fmemopen.texi: Renamed from
49518         doc/glibc-functions/fmemopen.texi.
49519         * doc/posix-functions/freelocale.texi: Renamed from
49520         doc/glibc-functions/freelocale.texi.
49521         * doc/posix-functions/getdate_err.texi: Renamed from
49522         doc/glibc-functions/getdate_err.texi.
49523         * doc/posix-functions/isalnum_l.texi: Renamed from
49524         doc/glibc-functions/isalnum_l.texi.
49525         * doc/posix-functions/isalpha_l.texi: Renamed from
49526         doc/glibc-functions/isalpha_l.texi.
49527         * doc/posix-functions/isblank_l.texi: Renamed from
49528         doc/glibc-functions/isblank_l.texi.
49529         * doc/posix-functions/iscntrl_l.texi: Renamed from
49530         doc/glibc-functions/iscntrl_l.texi.
49531         * doc/posix-functions/isdigit_l.texi: Renamed from
49532         doc/glibc-functions/isdigit_l.texi.
49533         * doc/posix-functions/isgraph_l.texi: Renamed from
49534         doc/glibc-functions/isgraph_l.texi.
49535         * doc/posix-functions/islower_l.texi: Renamed from
49536         doc/glibc-functions/islower_l.texi.
49537         * doc/posix-functions/isprint_l.texi: Renamed from
49538         doc/glibc-functions/isprint_l.texi.
49539         * doc/posix-functions/ispunct_l.texi: Renamed from
49540         doc/glibc-functions/ispunct_l.texi.
49541         * doc/posix-functions/isspace_l.texi: Renamed from
49542         doc/glibc-functions/isspace_l.texi.
49543         * doc/posix-functions/isupper_l.texi: Renamed from
49544         doc/glibc-functions/isupper_l.texi.
49545         * doc/posix-functions/iswalnum_l.texi: Renamed from
49546         doc/glibc-functions/iswalnum_l.texi.
49547         * doc/posix-functions/iswalpha_l.texi: Renamed from
49548         doc/glibc-functions/iswalpha_l.texi.
49549         * doc/posix-functions/iswblank_l.texi: Renamed from
49550         doc/glibc-functions/iswblank_l.texi.
49551         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49552         doc/glibc-functions/iswcntrl_l.texi.
49553         * doc/posix-functions/iswctype_l.texi: Renamed from
49554         doc/glibc-functions/iswctype_l.texi.
49555         * doc/posix-functions/iswdigit_l.texi: Renamed from
49556         doc/glibc-functions/iswdigit_l.texi.
49557         * doc/posix-functions/iswgraph_l.texi: Renamed from
49558         doc/glibc-functions/iswgraph_l.texi.
49559         * doc/posix-functions/iswlower_l.texi: Renamed from
49560         doc/glibc-functions/iswlower_l.texi.
49561         * doc/posix-functions/iswprint_l.texi: Renamed from
49562         doc/glibc-functions/iswprint_l.texi.
49563         * doc/posix-functions/iswpunct_l.texi: Renamed from
49564         doc/glibc-functions/iswpunct_l.texi.
49565         * doc/posix-functions/iswspace_l.texi: Renamed from
49566         doc/glibc-functions/iswspace_l.texi.
49567         * doc/posix-functions/iswupper_l.texi: Renamed from
49568         doc/glibc-functions/iswupper_l.texi.
49569         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49570         doc/glibc-functions/iswxdigit_l.texi.
49571         * doc/posix-functions/isxdigit_l.texi: Renamed from
49572         doc/glibc-functions/isxdigit_l.texi.
49573         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49574         doc/glibc-functions/mbsnrtowcs.texi.
49575         * doc/posix-functions/mkdtemp.texi: Renamed from
49576         doc/glibc-functions/mkdtemp.texi.
49577         * doc/posix-functions/newlocale.texi: Renamed from
49578         doc/glibc-functions/newlocale.texi.
49579         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49580         doc/glibc-functions/nl_langinfo_l.texi.
49581         * doc/posix-functions/open_memstream.texi: Renamed from
49582         doc/glibc-functions/open_memstream.texi.
49583         * doc/posix-functions/opterr.texi: Renamed from
49584         doc/glibc-functions/opterr.texi.
49585         * doc/posix-functions/optind.texi: Renamed from
49586         doc/glibc-functions/optind.texi.
49587         * doc/posix-functions/optopt.texi: Renamed from
49588         doc/glibc-functions/optopt.texi.
49589         * doc/posix-functions/psignal.texi: Renamed from
49590         doc/glibc-functions/psignal.texi.
49591         * doc/posix-functions/scandir.texi: Renamed from
49592         doc/glibc-functions/scandir.texi.
49593         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49594         doc/glibc-functions/sched_get_priority_min.texi.
49595         * doc/posix-functions/signgam.texi: Renamed from
49596         doc/glibc-functions/signgam.texi.
49597         * doc/posix-functions/stpcpy.texi: Renamed from
49598         doc/glibc-functions/stpcpy.texi.
49599         * doc/posix-functions/stpncpy.texi: Renamed from
49600         doc/glibc-functions/stpncpy.texi.
49601         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49602         doc/glibc-functions/strcasecmp_l.texi.
49603         * doc/posix-functions/strcoll_l.texi: Renamed from
49604         doc/glibc-functions/strcoll_l.texi.
49605         * doc/posix-functions/strfmon_l.texi: Renamed from
49606         doc/glibc-functions/strfmon_l.texi.
49607         * doc/posix-functions/strftime_l.texi: Renamed from
49608         doc/glibc-functions/strftime_l.texi.
49609         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49610         doc/glibc-functions/strncasecmp_l.texi.
49611         * doc/posix-functions/strndup.texi: Renamed from
49612         doc/glibc-functions/strndup.texi.
49613         * doc/posix-functions/strnlen.texi: Renamed from
49614         doc/glibc-functions/strnlen.texi.
49615         * doc/posix-functions/strsignal.texi: Renamed from
49616         doc/glibc-functions/strsignal.texi.
49617         * doc/posix-functions/strxfrm_l.texi: Renamed from
49618         doc/glibc-functions/strxfrm_l.texi.
49619         * doc/posix-functions/timer_gettime.texi: Renamed from
49620         doc/glibc-functions/timer_gettime.texi.
49621         * doc/posix-functions/tolower_l.texi: Renamed from
49622         doc/glibc-functions/tolower_l.texi.
49623         * doc/posix-functions/toupper_l.texi: Renamed from
49624         doc/glibc-functions/toupper_l.texi.
49625         * doc/posix-functions/towctrans_l.texi: Renamed from
49626         doc/glibc-functions/towctrans_l.texi.
49627         * doc/posix-functions/towlower_l.texi: Renamed from
49628         doc/glibc-functions/towlower_l.texi.
49629         * doc/posix-functions/towupper_l.texi: Renamed from
49630         doc/glibc-functions/towupper_l.texi.
49631         * doc/posix-functions/uselocale.texi: Renamed from
49632         doc/glibc-functions/uselocale.texi.
49633         * doc/posix-functions/vdprintf.texi: Renamed from
49634         doc/glibc-functions/vdprintf.texi.
49635         * doc/posix-functions/wcpcpy.texi:
49636         Renamed from doc/glibc-functions/wcpcpy.texi.
49637         * doc/posix-functions/wcpncpy.texi: Renamed from
49638         doc/glibc-functions/wcpncpy.texi.
49639         * doc/posix-functions/wcscasecmp.texi: Renamed from
49640         doc/glibc-functions/wcscasecmp.texi.
49641         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49642         doc/glibc-functions/wcscasecmp_l.texi.
49643         * doc/posix-functions/wcscoll_l.texi: Renamed from
49644         doc/glibc-functions/wcscoll_l.texi.
49645         * doc/posix-functions/wcsdup.texi: Renamed from
49646         doc/glibc-functions/wcsdup.texi.
49647         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49648         doc/glibc-functions/wcsncasecmp.texi.
49649         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49650         doc/glibc-functions/wcsncasecmp_l.texi.
49651         * doc/posix-functions/wcsnlen.texi: Renamed from
49652         doc/glibc-functions/wcsnlen.texi.
49653         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49654         doc/glibc-functions/wcsnrtombs.texi.
49655         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49656         doc/glibc-functions/wcsxfrm_l.texi.
49657         * doc/posix-functions/wctrans_l.texi: Renamed from
49658         doc/glibc-functions/wctrans_l.texi.
49659         * doc/posix-functions/wctype_l.texi: Renamed from
49660         doc/glibc-functions/wctype_l.texi.
49661         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49662         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49663         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49664         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49665         these subsections.
49666         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49667         Remove sections.
49668
49669 2008-12-14  Bruno Haible  <bruno@clisp.org>
49670
49671         Update doc for POSIX:2008.
49672         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49673
49674 2008-12-14  Bruno Haible  <bruno@clisp.org>
49675
49676         Update doc for POSIX:2008.
49677         * doc/pastposix-functions/bcmp.texi: Renamed from
49678         doc/posix-functions/bcmp.texi.
49679         * doc/pastposix-functions/bcopy.texi: Renamed from
49680         doc/posix-functions/bcopy.texi.
49681         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49682         doc/posix-functions/bsd_signal.texi.
49683         * doc/pastposix-functions/bzero.texi: Renamed from
49684         doc/posix-functions/bzero.texi.
49685         * doc/pastposix-functions/ecvt.texi: Renamed from
49686         doc/posix-functions/ecvt.texi.
49687         * doc/pastposix-functions/fcvt.texi: Renamed from
49688         doc/posix-functions/fcvt.texi.
49689         * doc/pastposix-functions/ftime.texi: Renamed from
49690         doc/posix-functions/ftime.texi.
49691         * doc/pastposix-functions/gcvt.texi: Renamed from
49692         doc/posix-functions/gcvt.texi.
49693         * doc/pastposix-functions/getcontext.texi: Renamed from
49694         doc/posix-functions/getcontext.texi.
49695         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49696         doc/posix-functions/gethostbyaddr.texi.
49697         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49698         doc/posix-functions/gethostbyname.texi.
49699         * doc/pastposix-functions/getwd.texi: Renamed from
49700         doc/posix-functions/getwd.texi.
49701         * doc/pastposix-functions/h_errno.texi: Renamed from
49702         doc/posix-functions/h_errno.texi.
49703         * doc/pastposix-functions/index.texi: Renamed from
49704         doc/posix-functions/index.texi.
49705         * doc/pastposix-functions/makecontext.texi: Renamed from
49706         doc/posix-functions/makecontext.texi.
49707         * doc/pastposix-functions/mktemp.texi: Renamed from
49708         doc/posix-functions/mktemp.texi.
49709         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49710         doc/posix-functions/pthread_attr_getstackaddr.texi.
49711         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49712         doc/posix-functions/pthread_attr_setstackaddr.texi.
49713         * doc/pastposix-functions/rindex.texi: Renamed from
49714         doc/posix-functions/rindex.texi.
49715         * doc/pastposix-functions/scalb.texi: Renamed from
49716         doc/posix-functions/scalb.texi.
49717         * doc/pastposix-functions/setcontext.texi: Renamed from
49718         doc/posix-functions/setcontext.texi.
49719         * doc/pastposix-functions/swapcontext.texi: Renamed from
49720         doc/posix-functions/swapcontext.texi.
49721         * doc/pastposix-functions/ualarm.texi: Renamed from
49722         doc/posix-functions/ualarm.texi.
49723         * doc/pastposix-functions/usleep.texi: Renamed from
49724         doc/posix-functions/usleep.texi.
49725         * doc/pastposix-functions/vfork.texi: Renamed from
49726         doc/posix-functions/vfork.texi.
49727         * doc/pastposix-functions/wcswcs.texi: Renamed from
49728         doc/posix-functions/wcswcs.texi.
49729         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49730         (Function Substitutes): Update.
49731
49732 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49733
49734         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49735         m4/strerror.m4.
49736
49737 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49738             Bruno Haible  <bruno@clisp.org>
49739
49740         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49741
49742 2008-12-13  Bruno Haible  <bruno@clisp.org>
49743
49744         * modules/strtoull (Depends-on): Remove unistd.
49745
49746 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49747
49748         * modules/strtoull (Depends-on): Add stdlib.
49749
49750 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49751
49752         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49753
49754 2008-12-10  Jim Meyering  <meyering@redhat.com>
49755
49756         gl_ASSERT: don't say assertions are disabled when they're not
49757         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49758         "checking whether to enable assertions... no", when they are in
49759         fact enabled.  This is solely a bug in the output of configure.
49760         In spite of saying "no", NDEBUG was not defined in that case.
49761         Also, as noted by Eric Blake, leave assertions enabled upon
49762         --enable-assert=INVALID.
49763
49764 2008-12-10  Bruno Haible  <bruno@clisp.org>
49765
49766         Change MODULES.html to refer to POSIX:2008 where possible.
49767         * MODULES.html.sh (POSIX2008_URL): New variable.
49768         (posix_headers): Remove sys/timeb, ucontext.
49769         (posix2001_headers): New variable.
49770         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49771         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49772         index, makecontext, mktemp, pthread_attr_getstackaddr,
49773         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49774         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49775         (posix2001_functions): New variable.
49776         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49777         otherwise.
49778
49779 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49780
49781         add missing include to parse-duration.c
49782         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49783         * modules/parse-duration (Depends-on): Add xalloc.
49784
49785         fix sed script reading maint.mk
49786         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49787         (syntax-check-rules): Use it.
49788
49789 2008-12-09  Bruno Haible  <bruno@clisp.org>
49790
49791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49792         MacOS X 10.4/PowerPC.
49793         Reported by Simon Josefsson.
49794
49795 2008-12-08  Jim Meyering  <meyering@redhat.com>
49796
49797         work around mingw's lack of some S_IF definitions
49798         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49799         Reported by Simon Josefsson.
49800
49801 2008-12-08  Bruno Haible  <bruno@clisp.org>
49802
49803         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49804         applied to variables. Needed on MacOS X 10.4/PowerPC.
49805         Reported by Simon Josefsson.
49806
49807 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49808         and Eric Blake  <ebb9@byu.net>
49809
49810         assert: honor --enable-assert
49811         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49812         order to honor --enable-assert, rather than treating it as a
49813         synonym for --disable-assert.
49814
49815 2008-12-08  Jim Meyering  <meyering@redhat.com>
49816
49817         * lib/posixtm.c: Remove now-useless declaration of mktime.
49818
49819         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49820
49821 2008-12-07  Bruno Haible  <bruno@clisp.org>
49822
49823         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49824         test_once): Mark functions as static.
49825         * tests/test-tls.c (test_tls): Likewise.
49826
49827 2008-12-07  Bruno Haible  <bruno@clisp.org>
49828
49829         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49830         iconv_register_autodetect.
49831
49832 2008-12-07  Jim Meyering  <meyering@redhat.com>
49833
49834         posixtm.c: avoid a warning
49835         * lib/posixtm.c (posixtime): Don't initialize tm0.
49836         It's no longer needed to placate gcc4's -Wuninitialized,
49837         and the attempt to placate would elicit a new warning.
49838
49839         unicodeio.c: mark unused parameters
49840         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49841         (fallback_failure_callback): Likewise.
49842
49843 2008-12-07  Bruno Haible  <bruno@clisp.org>
49844
49845         * gnulib-tool (func_create_testdir): When building the tests
49846         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49847         Reported by Simon Josefsson.
49848
49849 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49850
49851         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49852
49853 2008-12-06  Bruno Haible  <bruno@clisp.org>
49854
49855         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49856         Suggested by Eric Blake.
49857
49858 2008-12-06  Bruno Haible  <bruno@clisp.org>
49859
49860         Fix a c-stack test failure on MacOS X.
49861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49862         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49863         handler for SIGBUS as well.
49864         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49865         install a signal handler for SIGBUS as well.
49866         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49867
49868 2008-12-06  Bruno Haible  <bruno@clisp.org>
49869
49870         Advocacy documentation.
49871         * doc/gnulib-intro.texi (Benefits): New section.
49872         * doc/gnulib.texi: Update.
49873
49874 2008-12-06  Bruno Haible  <bruno@clisp.org>
49875
49876         Document the 'manywarnings' module.
49877         * doc/manywarnings.texi: New file.
49878         * doc/gnulib.texi: Include it.
49879
49880 2008-12-05  Eric Blake  <ebb9@byu.net>
49881
49882         tests: silence some gcc warnings
49883         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49884         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49885         type mismatches.
49886
49887 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49888             Bruno Haible  <bruno@clisp.org>
49889
49890         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49891
49892 2008-11-29  Jim Meyering  <meyering@redhat.com>
49893
49894         unicodeio.c: mark unused parameters
49895         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49896         (fallback_failure_callback): Likewise.
49897
49898         fts: fix a thinko
49899         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49900         (set_stat_type): Return S_IF*-valued "type" directly.
49901         Prompted by James Youngman's spotting a related bug.
49902         Confirmed by further testing through find.
49903
49904         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49905         * lib/fts.c (D_TYPE): Define.
49906         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49907         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49908         (s_ifmt_shift_bits): New function.
49909         (set_stat_type): New function.
49910         (fts_build): When not calling fts_stat, call set_stat_type
49911         to propagate dirent.d_type info to fts_read caller.
49912         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49913         fts_statp->st_mode type information may be valid.
49914
49915 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49916
49917         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49918         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49919         <sds@gnu.org>.
49920
49921 2008-11-20  Bruno Haible  <bruno@clisp.org>
49922
49923         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49924         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49925         INCLUDE_NEXT.
49926         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49927         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49928         * modules/math (Makefile.am): Substitute
49929         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49930         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49931
49932 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49933             Bruno Haible  <bruno@clisp.org>
49934
49935         * lib/stdint.in.h: Define all type macros so that their expansion is
49936         a single typedef'ed token. Fixes a compilation failure in Boost which
49937         does "using ::int8_t;".
49938
49939 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49940
49941         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49942         gl_MANYWARN_ALL_GCC.
49943         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49944         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49945         * modules/manywarnings: New file.
49946         * MODULES.html.sh: Mention manywarnings module.
49947
49948 2008-11-18  Bruno Haible  <bruno@clisp.org>
49949
49950         * doc/gnulib-tool.texi (Unit tests): New section.
49951
49952 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49953
49954         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49955         paths like 'lib/po/foo.po'.
49956
49957 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49958
49959         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49960         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49961
49962 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49963
49964         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49965         parameter works.
49966
49967 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49968
49969         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49970
49971 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49972
49973         * modules/parse-duration-tests: New file.
49974         * tests/test-parse-duration.sh: New file.
49975         * tests/test-parse-duration.c: New file.
49976
49977         New module 'parse-duration'.
49978         * lib/parse-duration.h: New file.
49979         * lib/parse-duration.c: New file.
49980         * modules/parse-duration: New file.
49981
49982 2008-11-17  Bruno Haible  <bruno@clisp.org>
49983
49984         * tests/test-select-out.sh: Comment out the first pipe test.
49985         Reported by Simon Josefsson.
49986
49987 2008-11-17  Bruno Haible  <bruno@clisp.org>
49988
49989         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49991         gl_HOSTENT.
49992
49993 2008-11-17  Bruno Haible  <bruno@clisp.org>
49994
49995         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49996         -lnetwork and -lnet. Needed for Haiku and BeOS.
49997
49998 2008-11-16  Bruno Haible  <bruno@clisp.org>
49999
50000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50001
50002 2008-11-16  Bruno Haible  <bruno@clisp.org>
50003
50004         Avoid test failure on Haiku.
50005         * tests/test-fsync.c: Include <errno.h>.
50006         (main): Don't require that fsync (0) fails.
50007
50008 2008-11-15  Bruno Haible  <bruno@clisp.org>
50009
50010         New module 'hostent'.
50011         * modules/hostent: New file.
50012         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50013
50014 2008-11-15  Bruno Haible  <bruno@clisp.org>
50015
50016         New module 'servent'.
50017         * modules/servent: New file.
50018         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50019
50020 2008-11-15  Bruno Haible  <bruno@clisp.org>
50021
50022         Avoid generating same test program with two different rules.
50023         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50024         test-frexp to test-frexp-nolibm.
50025         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50026         test-frexpl to test-frexpl-nolibm.
50027
50028 2008-11-15  Bruno Haible  <bruno@clisp.org>
50029
50030         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50031         $(FREXPL_LIBM).
50032
50033 2008-11-15  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/netdb.in.h: Activate the definitions also when the system's
50036         <netdb.h> has 'struct addrinfo'.
50037         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50038         EAI_OVERFLOW or AI_NUMERICSERV.
50039         * doc/posix-headers/netdb.texi: Document the problem.
50040
50041 2008-11-15  Bruno Haible  <bruno@clisp.org>
50042
50043         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50044
50045         Make the 'sched' module work on platforms where <sched.h> exists but
50046         is incomplete (such as Haiku).
50047         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50048         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50049         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50050         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50051         HAVE_STRUCT_SCHED_PARAM.
50052         * modules/sched (Depends-on): Add include_next.
50053         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50054         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50055         * doc/posix-headers/sched.texi: Document the issue.
50056
50057 2008-11-13  Jim Meyering  <meyering@redhat.com>
50058
50059         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50060         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50061         test would fail due to the difference in the Report bugs to ...
50062         line.  The expected address is empty, "<>", while the actual
50063         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50064
50065 2008-11-12  Bruno Haible  <bruno@clisp.org>
50066
50067         lstat: don't compile lstat.c on systems lacking lstat
50068         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50069         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50070         Reported by Daniel P. Berrange via Jim Meyering.
50071
50072 2008-11-12  Jim Meyering  <meyering@redhat.com>
50073
50074         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50075
50076 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50077
50078         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50079         instead.
50080
50081 2008-11-12  Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/unicodeio.c: Include unistr.h.
50084         (utf8_wctomb): Remove function.
50085         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50086
50087 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50088
50089         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50090         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50091         <bruno@clisp.org>.
50092         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50093
50094 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50095
50096         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50097         * doc/gnulib.texi: Add section for warnings.
50098
50099 2008-11-11  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/sockets.h: Add a comment.
50102
50103 2008-11-11  Karl Berry  <karl@gnu.org>
50104
50105         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50106
50107 2008-11-11  Eric Blake  <ebb9@byu.net>
50108
50109         fdl.texi: avoid git symlinks
50110         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50111
50112 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50113
50114         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50115
50116 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50117
50118         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50119         (gl_WARN_ADD): Substitute $2 if literal.
50120
50121 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50122
50123         * m4/warning.m4: Remove.
50124
50125 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50126
50127         * m4/warnings.m4: Almost complete rewrite. :-)
50128
50129 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50130
50131         * modules/warnings: New module.
50132         * m4/warnings.m4: New file.
50133         * MODULES.html.sh: Mention warnings module.
50134         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50135         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50136
50137 2008-11-10  Eric Blake  <ebb9@byu.net>
50138
50139         fdl.texi: make a symlink to the latest version
50140         * doc/standards.texi: Revert today's earlier change.
50141         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50142         * doc/fdl.texi: ...and replace this with a symlink to the newer
50143         fdl-1.3.texi.
50144
50145 2008-11-10  Bruno Haible  <bruno@clisp.org>
50146
50147         * tests/test-select-fd.c (main): Accept the result file name as fourth
50148         argument.
50149         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50150         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50151
50152 2008-11-10  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50155         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50156         as autoconf-substituted macros.
50157         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50158         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50159         gl_NETDB_H_DEFAULTS. Set these variables.
50160         * modules/netdb (Makefile.am): Substitute these variables.
50161
50162 2008-11-10  Eric Blake  <ebb9@byu.net>
50163
50164         standards.texi: include correct file for FDL 1.3
50165         * doc/standards.texi (GNU Free Documentation License): Change
50166         include file to pull in FDL 1.3, not 1.2.
50167
50168         fdl.texi: revert accidental change to license
50169         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50170
50171 2008-11-10  Bruno Haible  <bruno@clisp.org>
50172
50173         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50174         cross-compiling guesses also when the native compile gives no result.
50175
50176 2008-11-10  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/spawni.c (__spawni): Force variable into the stack.
50179
50180 2008-11-10  Bruno Haible  <bruno@clisp.org>
50181
50182         Add support for Haiku.
50183         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50184         glibc and BeOS, but also on Haiku.
50185         * lib/fpurge.c (fpurge): Likewise.
50186         * lib/freadable.c (freadable): Likewise.
50187         * lib/freadahead.c (freadahead): Likewise.
50188         * lib/freading.c (freading): Likewise.
50189         * lib/freadptr.c (freadptr): Likewise.
50190         * lib/freadseek.c (freadptrinc): Likewise.
50191         * lib/fseeko.c (rpl_fseeko): Likewise.
50192         * lib/fseterr.c (fseterr): Likewise.
50193         * lib/fwritable.c (fwritable): Likewise.
50194         * lib/fwriting.c (fwriting): Likewise.
50195         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50196
50197 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50198
50199         * lib/config.charset: Treat Haiku like BeOS.
50200
50201 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50202
50203         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50204         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50205
50206 2008-11-08  Bruno Haible  <bruno@clisp.org>
50207
50208         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50209         AC_CACHE_CHECK.
50210
50211 2008-11-08  Bruno Haible  <bruno@clisp.org>
50212
50213         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50214
50215 2008-11-08  Bruno Haible  <bruno@clisp.org>
50216
50217         * tests/test-select-fd.c: New file.
50218         * tests/test-select-in.sh: New file.
50219         * tests/test-select-out.sh: New file.
50220         * tests/test-select-stdin.c: New file.
50221         * modules/select-tests (Files): Add the new files.
50222         (Depends-on): Add gettimeofday.
50223         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50224         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50225         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50226
50227 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50228             Bruno Haible  <bruno@clisp.org>
50229
50230         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50231
50232 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50233
50234         * build-aux/pmccabe2html: Added support for C++ source files.
50235
50236 2008-11-05  Ben Pfaff  <blp@gnu.org>
50237
50238         Fix lib/close.c build on Windows.
50239         * modules/close (Files): Add lib/w32sock.h.
50240
50241 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50242
50243         Accept Bison's NEWS format.
50244         * build-aux/announce-gen (print_news_deltas): Tweak
50245         $re_prefix.
50246
50247 2008-11-04  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/random_r (Maintainer): Add glibc.
50250
50251 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50252
50253         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50254         by karl@freefriends.org (Karl Berry).
50255         * doc/alloca.texi: Likewise.
50256         * doc/c-ctype.texi: Likewise.
50257         * doc/c-strcase.texi: Likewise.
50258         * doc/c-strcaseeq.texi: Likewise.
50259         * doc/c-strcasestr.texi: Likewise.
50260         * doc/c-strstr.texi: Likewise.
50261         * doc/c-strtod.texi: Likewise.
50262         * doc/c-strtold.texi: Likewise.
50263         * doc/ctime.texi: Likewise.
50264         * doc/error.texi: Likewise.
50265         * doc/fdl.texi: Likewise.
50266         * doc/gcd.texi: Likewise.
50267         * doc/getdate.texi: Likewise.
50268         * doc/gnulib-intro.texi: Likewise.
50269         * doc/gnulib-tool.texi: Likewise.
50270         * doc/gnulib.texi: Likewise.
50271         * doc/inet_ntoa.texi: Likewise.
50272         * doc/maintain.texi: Likewise.
50273         * doc/make-stds.texi: Likewise.
50274         * doc/quote.texi: Likewise.
50275         * doc/regexprops-generic.texi: Likewise.
50276         * doc/standards.texi: Likewise.
50277         * doc/verify.texi: Likewise.
50278         * doc/visibility.texi: Likewise.
50279         * doc/gnulib.texi (GNU Free Documentation License): Include
50280         fdl-1.3.texi instead of fdl.texi.
50281
50282 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50283
50284         * doc/fdl-1.3.texi: New file, from
50285         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50286         * modules/fdl-1.3: Add.
50287         * MODULES.html.sh: Add fdl-1.3.
50288
50289 2008-11-03  Bruno Haible  <bruno@clisp.org>
50290
50291         Make determination of absolute name of header file work with AIX xlc.
50292         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50293         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50294         preprocessing.
50295         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50296         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50297
50298 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50299
50300         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50301         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50302         <ludo@gnu.org>.
50303
50304 2008-11-02  Bruno Haible  <bruno@clisp.org>
50305
50306         Mark 'strpbrk' obsolete.
50307         * modules/strpbrk (Status, Notice): New sections.
50308         * modules/strtok_r (Depends-on): Add strpbrk.
50309
50310 2008-11-02  Bruno Haible  <bruno@clisp.org>
50311
50312         Mark 'strdup' obsolete.
50313         * modules/strdup (Status, Notice): New sections.
50314         * modules/findprog (Depends-on): Add strdup.
50315         * modules/getaddrinfo (Depends-on): Likewise.
50316         * modules/localename (Depends-on): Likewise.
50317         * modules/relocatable-lib (Depends-on): Likewise.
50318         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50319         * modules/relocatable-prog (Depends-on): Likewise.
50320         * modules/trim (Depends-on): Likewise.
50321         * modules/unictype/gen-ctype (Depends-on): Likewise.
50322         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50323
50324 2008-11-02  Bruno Haible  <bruno@clisp.org>
50325
50326         Mark 'strcspn' obsolete.
50327         * modules/strcspn (Status, Notice): New sections.
50328
50329 2008-11-02  Bruno Haible  <bruno@clisp.org>
50330
50331         Mark 'rmdir' obsolete.
50332         * modules/rmdir (Status, Notice): New sections.
50333         * modules/clean-temp (Depends-on): Add rmdir.
50334         * modules/openat (Depends-on): Likewise.
50335
50336 2008-11-02  Bruno Haible  <bruno@clisp.org>
50337
50338         Mark 'raise' obsolete.
50339         * modules/raise (Status, Notice): New sections.
50340         (Include): Specify <signal.h>.
50341         * modules/stdio (Depends-on): Add raise.
50342         * modules/write (Depends-on): Likewise.
50343
50344 2008-11-02  Bruno Haible  <bruno@clisp.org>
50345
50346         Mark 'memset' obsolete.
50347         * modules/memset (Status, Notice): New sections.
50348
50349 2008-11-02  Bruno Haible  <bruno@clisp.org>
50350
50351         Mark 'memmove' obsolete.
50352         * modules/memmove (Status, Notice): New sections.
50353         * modules/argp (Depends-on): Add memmove.
50354         * modules/argz (Depends-on): Likewise.
50355         * modules/canonicalize (Depends-on): Likewise.
50356         * modules/canonicalize-lgpl (Depends-on): Likewise.
50357         * modules/fts (Depends-on): Likewise.
50358         * modules/getcwd (Depends-on): Likewise.
50359         * modules/human (Depends-on): Likewise.
50360         * modules/regex (Depends-on): Likewise.
50361         * modules/striconveh (Depends-on): Likewise.
50362         * modules/trim (Depends-on): Likewise.
50363         * modules/unistr/u8-move (Depends-on): Likewise.
50364         * modules/unistr/u16-move (Depends-on): Likewise.
50365         * modules/unistr/u32-move (Depends-on): Likewise.
50366
50367 2008-11-02  Bruno Haible  <bruno@clisp.org>
50368
50369         Mark 'memcpy' obsolete.
50370         * modules/memcpy (Status, Notice): New sections.
50371
50372 2008-11-02  Bruno Haible  <bruno@clisp.org>
50373
50374         Mark 'memcmp' obsolete.
50375         * modules/memcmp (Status, Notice): New sections.
50376         * modules/argmatch (Depends-on): Add memchr.
50377         * modules/backupfile (Depends-on): Likewise.
50378         * modules/c-strcasestr (Depends-on): Likewise.
50379         * modules/crypto/des (Depends-on): Likewise.
50380         * modules/csharpcomp (Depends-on): Likewise.
50381         * modules/fnmatch (Depends-on): Likewise.
50382         * modules/git-merge-changelog (Depends-on): Likewise.
50383         * modules/isnand (Depends-on): Likewise.
50384         * modules/isnand-nolibm (Depends-on): Likewise.
50385         * modules/isnanf (Depends-on): Likewise.
50386         * modules/isnanf-nolibm (Depends-on): Likewise.
50387         * modules/isnanl (Depends-on): Likewise.
50388         * modules/isnanl-nolibm (Depends-on): Likewise.
50389         * modules/mbchar (Depends-on): Likewise.
50390         * modules/memcoll (Depends-on): Likewise.
50391         * modules/quotearg (Depends-on): Likewise.
50392         * modules/regex (Depends-on): Likewise.
50393         * modules/relocatable-prog (Depends-on): Likewise.
50394         * modules/same (Depends-on): Likewise.
50395         * modules/signbit (Depends-on): Likewise.
50396         * modules/strcasestr-simple (Depends-on): Likewise.
50397         * modules/unictype/gen-ctype (Depends-on): Likewise.
50398         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50399         * modules/uniname/uniname (Depends-on): Likewise.
50400         * modules/unistr/u8-cmp (Depends-on): Likewise.
50401
50402 2008-11-02  Bruno Haible  <bruno@clisp.org>
50403
50404         Mark 'memchr' obsolete.
50405         * modules/memchr (Status, Notice): New sections.
50406         * modules/argp (Depends-on): Add memchr.
50407         * modules/base64 (Depends-on): Likewise.
50408         * modules/c-strcasestr (Depends-on): Likewise.
50409         * modules/chdir-long (Depends-on): Likewise.
50410         * modules/fnmatch (Depends-on): Likewise.
50411         * modules/getsubopt (Depends-on): Likewise.
50412         * modules/git-merge-changelog (Depends-on): Likewise.
50413         * modules/glob (Depends-on): Likewise.
50414         * modules/strcasestr-simple (Depends-on): Likewise.
50415         * modules/strnlen (Depends-on): Likewise.
50416
50417 2008-11-02  Bruno Haible  <bruno@clisp.org>
50418
50419         Mark 'atexit' obsolete.
50420         * modules/atexit (Status, Notice): New sections.
50421         * modules/chdir-long (Depends-on): Add atexit.
50422         * modules/wait-process (Depends-on): Likewise.
50423
50424 2008-11-02  Bruno Haible  <bruno@clisp.org>
50425
50426         * gnulib-tool: New option --with-obsolete.
50427         (func_usage): Document it.
50428         (func_modules_transitive_closure): Drop obsolete dependencies if
50429         incobsolete is not true.
50430         (func_import): Read and save the incobsolete variable to the cache.
50431
50432 2008-11-02  Bruno Haible  <bruno@clisp.org>
50433
50434         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50435         * gnulib-tool: New option --extract-status.
50436         (func_usage): Document it.
50437         (sed_extract_prog): Recognize it.
50438         (func_get_status): New function.
50439
50440 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50441
50442         * modules/sockets (License): Change from LGPL to LGPLv2+.
50443
50444 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50445
50446         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50447
50448 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50449
50450         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50451         Mention times and sys_times.
50452         * modules/sys_times, modules/sys_times-tests: New modules.
50453         * modules/times, modules/times-tests: Likewise
50454         * m4/sys_times_h.m4: New file.
50455         * lib/sys_times.in.h: Likewise
50456         * lib/times.c: Likewise.
50457         * tests/test-sys_times.c: Likewise.
50458         * tests/test-times.c: Likewise.
50459         * doc/posix-headers/sys_times.texi: Update.
50460         * doc/posix-functions/times.texi: Update.
50461
50462 2008-10-28  Jim Meyering  <meyering@redhat.com>
50463
50464         * modules/tempname (Depends-on): Add lstat.
50465
50466         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50467
50468 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50469
50470         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50471         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50472         using idiom used elsewhere in gnulib.
50473
50474 2008-10-27  Jim Meyering  <meyering@redhat.com>
50475
50476         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50477
50478 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50479
50480         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50481         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50482         programs.
50483         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50484
50485 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50486
50487         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50488
50489 2008-10-27  Bruno Haible  <bruno@clisp.org>
50490
50491         * tests/test-lstat.c: Include <stdio.h>.
50492
50493 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50494
50495         * modules/lstat-tests: New module.
50496         * tests/test-lstat.c: New file.
50497
50498 2008-10-26  Jim Meyering  <meyering@redhat.com>
50499
50500         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50501
50502 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50503             Bruno Haible  <bruno@clisp.org>
50504
50505         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50506         * modules/configmake (Include): Add a note that the include must come
50507         after all system headers.
50508         * lib/javaversion.c: Include configmake.h after all other includes.
50509
50510 2008-10-26  Bruno Haible  <bruno@clisp.org>
50511
50512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50513         HAVE_STRUCT_RANDOM_DATA to 1.
50514         (gl_STDLIB_H): Simplify.
50515
50516 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50517
50518         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50519         substitute HAVE_STRUCT_RANDOM_DATA.
50520         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50521         random_data.
50522         * modules/stdlib (Makefile.am): Substitute
50523         HAVE_STRUCT_RANDOM_DATA.
50524
50525 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50526
50527         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50528         * doc/gnulib-intro.texi (Copyright): Likewise.
50529
50530 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50531
50532         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50533         findings.
50534
50535 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50536             Bruno Haible  <bruno@clisp.org>
50537
50538         * lib/unistd.in.h: Include <winsock2.h>.
50539         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50540         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50541         Provide dummy declarations.
50542         (gethostname): Override.
50543         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50544         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50545         gl_PREREQ_SYS_H_WINSOCK2.
50546         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50547         * doc/posix-functions/gethostname.texi: More details.
50548
50549 2008-10-25  Bruno Haible  <bruno@clisp.org>
50550
50551         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50552         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50553         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50554
50555         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50556         here ...
50557         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50558         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50559         gl_UNISTD_H_DEFAULTS.
50560
50561 2008-10-25  Eric Blake  <ebb9@byu.net>
50562
50563         signbit: avoid spurious compiler failure
50564         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50565         declarations inside function.
50566
50567 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50568             Bruno Haible  <bruno@clisp.org>
50569
50570         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50571         * modules/random_r (Depends-on): Add stdint.
50572
50573 2008-10-24  Bruno Haible  <bruno@clisp.org>
50574
50575         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50576         Eggert.
50577         * modules/strerror (License): Likewise.
50578
50579 2008-10-24  Jim Meyering  <meyering@redhat.com>
50580
50581         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50582         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50583
50584 2008-10-24  Eric Blake  <ebb9@byu.net>
50585
50586         getgroups: fix compilation when getgroups is available
50587         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50588         but with <config.h> override of getgroups disabled.
50589
50590 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50591
50592         * doc/gnulib.texi (Header files): Add note about C++ problems.
50593         Explained by Bruno Haible <bruno@clisp.org>.
50594
50595 2008-10-23  Bruno Haible  <bruno@clisp.org>
50596
50597         Define a dummy SA_NODEFER macro on Interix.
50598         * lib/signal.in.h (SA_NODEFER): Define fallback.
50599         Reported by Aleksey Cheusov <cheusov@tut.by> via
50600         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50601
50602 2008-10-23  Bruno Haible  <bruno@clisp.org>
50603
50604         * modules/freadahead (License): Change to LGPLv2+.
50605         Suggested by Simon Josefsson.
50606
50607 2008-10-23  Jim Meyering  <meyering@redhat.com>
50608
50609         random_r: new module
50610         * modules/random_r: New file.
50611         * m4/random_r.m4: New file.
50612         * lib/random_r.c: New file, from glibc.
50613         * modules/random_r-tests: New file.
50614         * tests/test-random_r.c: New file.
50615         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50616          Declare.
50617         (RAND_MAX): Define.
50618         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50619         * modules/stdlib: Substitute them, too.
50620         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50621         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50622         * doc/glibc-functions/random_r.texi: Likewise.
50623         * doc/glibc-functions/setstate_r.texi: Likewise.
50624         * doc/glibc-functions/srandom_r.texi: Likewise.
50625         * config/srclist.txt: Mention it.
50626
50627 2008-10-23  David Lutterkort  <lutter@redhat.com>
50628
50629         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50630         link requirement
50631
50632 2008-10-23  Jim Meyering  <meyering@redhat.com>
50633
50634         selinux-h: mark parameters of stub functions as intentionally unused
50635         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50636         * lib/se-context.in.h: Likewise.
50637
50638 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50639
50640         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50641
50642 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50643
50644         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50645
50646 2008-10-22  Eric Blake  <ebb9@byu.net>
50647
50648         glthread/thread: avoid compiler warning
50649         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50650         Add unreachable abort to silence compiler.
50651
50652 2008-10-22  Eric Blake  <ebb9@byu.net>
50653
50654         netdb: also supply struct addrinfo for cygwin 1.5.x
50655         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50656         older cygwin.
50657         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50658         cygwin.
50659         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50660
50661 2008-10-22  Bruno Haible  <bruno@clisp.org>
50662
50663         * users.txt: Update entry about pspp.
50664
50665 2008-10-21  Bruno Haible  <bruno@clisp.org>
50666
50667         Simplification.
50668         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50669         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50670
50671         Simplification.
50672         * lib/ioctl.c (ioctl): Don't undefine.
50673         * lib/socket.c (socket): Don't undefine.
50674
50675         Remove unused module indicator macros.
50676         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50677         GNULIB_$1 as a C macro.
50678
50679         * doc/posix-functions/close.texi: Undo last change.
50680         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50681         Windows platforms.
50682
50683 2008-10-21  Bruno Haible  <bruno@clisp.org>
50684
50685         Add gethostname() declaration to <unistd.h>.
50686         * lib/unistd.in.h (gethostname): New declaration.
50687         * lib/gethostname.c: Include <unistd.h>.
50688         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50689         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50691         and HAVE_GETHOSTNAME.
50692         * modules/gethostname (Depends-on): Add unistd.
50693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50694         (Include): Specify <unistd.h>.
50695         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50696         HAVE_GETHOSTNAME.
50697         * tests/test-gethostname.c: Include <unistd.h> first.
50698
50699 2008-10-21  Bruno Haible  <bruno@clisp.org>
50700
50701         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50702         * modules/select-tests (Depends-on): Likewise.
50703         Reported by Simon Josefsson.
50704
50705 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50706
50707         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50708         * lib/accept.c: New file, based on winsock.c.
50709         * lib/bind.c: New file, based on winsock.c.
50710         * lib/connect.c: New file, based on winsock.c.
50711         * lib/getpeername.c: New file, based on winsock.c.
50712         * lib/getsockname.c: New file, based on winsock.c.
50713         * lib/getsockopt.c: New file, based on winsock.c.
50714         * lib/ioctl.c: New file, based on winsock.c.
50715         * lib/listen.c: New file, based on winsock.c.
50716         * lib/recv.c: New file, based on winsock.c.
50717         * lib/recvfrom.c: New file, based on winsock.c.
50718         * lib/send.c: New file, based on winsock.c.
50719         * lib/sendto.c: New file, based on winsock.c.
50720         * lib/setsockopt.c: New file, based on winsock.c.
50721         * lib/shutdown.c: New file, based on winsock.c.
50722         * lib/socket.c: New file, based on winsock.c.
50723         * lib/w32sock.h: New file, based on winsock.c.
50724         * lib/winsock.c: Remove file.
50725         * modules/accept: Likewise.
50726         * modules/bind: Likewise.
50727         * modules/connect: Likewise.
50728         * modules/getpeername: Likewise.
50729         * modules/getsockname: Likewise.
50730         * modules/getsockopt: Likewise.
50731         * modules/ioctl: Likewise.
50732         * modules/listen: Likewise.
50733         * modules/recv: Likewise.
50734         * modules/recvfrom: Likewise.
50735         * modules/send: Likewise.
50736         * modules/sendto: Likewise.
50737         * modules/setsockopt: Likewise.
50738         * modules/shutdown: Likewise.
50739         * modules/socket: Use socket.c instead of winsock.c.
50740         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50741         * doc/posix-functions/accept.texi: Doc fix.
50742         * doc/posix-functions/bind.texi: Doc fix.
50743         * doc/posix-functions/close.texi: Doc fix.
50744         * doc/posix-functions/connect.texi: Doc fix.
50745         * doc/posix-functions/getpeername.texi: Doc fix.
50746         * doc/posix-functions/getsockname.texi: Doc fix.
50747         * doc/posix-functions/getsockopt.texi: Doc fix.
50748         * doc/posix-functions/ioctl.texi: Doc fix.
50749         * doc/posix-functions/listen.texi: Doc fix.
50750         * doc/posix-functions/recv.texi: Doc fix.
50751         * doc/posix-functions/recvfrom.texi: Doc fix.
50752         * doc/posix-functions/send.texi: Doc fix.
50753         * doc/posix-functions/sendto.texi: Doc fix.
50754         * doc/posix-functions/setsockopt.texi: Doc fix.
50755         * doc/posix-functions/shutdown.texi: Doc fix.
50756         * doc/posix-functions/socket.texi: Doc fix.
50757
50758 2008-10-20  Bruno Haible  <bruno@clisp.org>
50759
50760         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50761         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50762         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50763         as an alias for SIGABRT.
50764         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50765         (sigaction): Map it to SIGABRT.
50766         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50767
50768 2008-10-20  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/fts.c: Don't include lstat.h.
50771         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50772
50773         Move the lstat() declaration to <sys/stat.h>.
50774         * lib/lstat.h: Remove file.
50775         * lib/sys_stat.in.h: Add special invocation convention.
50776         (lstat): New declaration.
50777         * lib/lstat.c (orig_lstat): New function.
50778         (rpl_lstat): Use orig_lstat instead of lstat.
50779         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50780         AC_C_INLINE. Set REPLACE_LSTAT.
50781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50782         and REPLACE_LSTAT.
50783         * modules/lstat (Files): Remove lib/lstat.h.
50784         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50785         (Include): Specify <sys/stat.h> instead of lstat.h.
50786         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50787         REPLACE_LSTAT.
50788         * NEWS: Mention the change.
50789
50790 2008-10-20  Bruno Haible  <bruno@clisp.org>
50791
50792         * modules/posix_spawn-tests: New file.
50793         * tests/test-posix_spawn3.c: New file.
50794
50795 2008-10-20  Bruno Haible  <bruno@clisp.org>
50796
50797         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50798         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50799         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50800         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50801         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50802
50803 2008-10-20  Bruno Haible  <bruno@clisp.org>
50804
50805         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50806         of posix_spawn on AIX 5.3.
50807
50808 2008-10-20  Bruno Haible  <bruno@clisp.org>
50809
50810         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50811
50812 2008-10-20  Bruno Haible  <bruno@clisp.org>
50813
50814         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50815         of AC_LANG_PROGRAM.
50816
50817 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50818
50819         * lib/netdb.in.h: Don't define GNU specific constants until they
50820         are supported or needed.  Reported by Bruno Haible
50821         <bruno@clisp.org>.
50822
50823 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50824
50825         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50826
50827 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50828
50829         * lib/getaddrinfo.h: Remove file.
50830         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50831         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50832         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50833         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50834         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50835         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50836         * tests/test-getaddrinfo.c: Likewise.
50837         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50838         * NEWS: Mention change.
50839
50840 2008-10-19  Bruno Haible  <bruno@clisp.org>
50841
50842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50843
50844 2008-10-19  Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/wait-process.c: Include simply <sys/wait.h>.
50847         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50848         WIFSTOPPED): Remove fallback definitions.
50849         * modules/wait-process (Depends-on): Add sys_wait.
50850
50851         New module 'sys_wait'.
50852         * modules/sys_wait: New file.
50853         * lib/sys_wait.in.h: New file, partially copied from
50854         lib/wait-process.c.
50855         * m4/sys_wait_h.m4: New file.
50856         * doc/posix-headers/sys_wait.texi: Mention the new module.
50857
50858 2008-10-19  Bruno Haible  <bruno@clisp.org>
50859
50860         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50861
50862 2008-10-19  Bruno Haible  <bruno@clisp.org>
50863
50864         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50865         * lib/wait-process.c (WAIT_T): Remove type.
50866         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50867         (wait_subprocess): Update.
50868
50869 2008-10-19  Bruno Haible  <bruno@clisp.org>
50870
50871         New module 'atoll'.
50872         * modules/atoll: New file.
50873         * lib/stdlib.in.h (atoll): New declaration.
50874         * lib/atoll.c: New file, from glibc with modifications.
50875         * m4/atoll.m4: New file.
50876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50877         HAVE_ATOLL.
50878         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50879         * doc/posix-functions/atoll.texi: Mention the new module.
50880
50881 2008-10-19  Bruno Haible  <bruno@clisp.org>
50882
50883         Add strtoull() declaration to <stdlib.h>.
50884         * lib/stdlib.in.h (strtoull): New declaration.
50885         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50886         Set HAVE_STRTOULL.
50887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50888         HAVE_STRTOULL.
50889         * modules/strtoull (Depends-on): Add stdlib.
50890         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50891         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50892         HAVE_STRTOULL.
50893
50894 2008-10-19  Bruno Haible  <bruno@clisp.org>
50895
50896         Add strtoll() declaration to <stdlib.h>.
50897         * lib/stdlib.in.h (strtoll): New declaration.
50898         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50899         Set HAVE_STRTOLL.
50900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50901         HAVE_STRTOLL.
50902         * modules/strtoll (Depends-on): Add stdlib.
50903         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50904         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50905
50906 2008-10-19  Bruno Haible  <bruno@clisp.org>
50907
50908         * modules/bcopy (Depends-on): Add strings.
50909         (Include): Specify <strings.h>.
50910
50911 2008-10-19  Bruno Haible  <bruno@clisp.org>
50912
50913         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50914
50915 2008-10-19  Bruno Haible  <bruno@clisp.org>
50916
50917         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50918         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50919         mingw.
50920
50921 2008-10-19  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/atanl.c: Don't include isnanl.h.
50924         * lib/cosl.c: Likewise.
50925         * lib/ldexpl.c: Likewise.
50926         * lib/logl.c: Likewise.
50927         * lib/sinl.c: Likewise.
50928         * lib/sqrtl.c: Likewise.
50929         * lib/tanl.c: Likewise.
50930
50931         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50932         * lib/isnanf.h: Remove file.
50933         * lib/isnand.h: Remove file.
50934         * lib/isnanl.h: Remove file.
50935         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50936         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50937         macros.
50938         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50939         HAVE_ISNANF, don't define it as a C macro.
50940         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50941         HAVE_ISNAND, don't define it as a C macro.
50942         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50943         HAVE_ISNANL, don't define it as a C macro.
50944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50945         HAVE_ISNAN[FDL].
50946         * modules/isnanf (Files): Remove lib/isnanf.h.
50947         (Depends-on): Add math.
50948         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50949         (Include): Specify <math.h> instead of isnanf.h.
50950         * modules/isnand (Files): Remove lib/isnand.h.
50951         (Depends-on): Add math.
50952         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50953         (Include): Specify <math.h> instead of isnand.h.
50954         * modules/isnanl (Files): Remove lib/isnanl.h.
50955         (Depends-on): Add math.
50956         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50957         (Include): Specify <math.h> instead of isnanl.h.
50958         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50959         HAVE_ISNAN[FDL].
50960         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50961         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50962         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50963         * NEWS: Mention the change.
50964
50965 2008-10-18  Bruno Haible  <bruno@clisp.org>
50966
50967         Add getusershell(), setusershell(), endusershell() declarations to
50968         <unistd.h>.
50969         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50970         declarations.
50971         * lib/getusershell.c: Include unistd.h.
50972         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50973         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50974         HAVE_GETUSERSHELL.
50975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50976         and HAVE_GETUSERSHELL.
50977         * modules/getusershell (Depends-on): Add unistd, extensions.
50978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50979         (Include): Specify <unistd.h>.
50980         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50981         HAVE_GETUSERSHELL.
50982
50983 2008-10-18  Bruno Haible  <bruno@clisp.org>
50984
50985         Add a getloadavg() declaration to <stdlib.h>.
50986         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50987         getloadavg declaration.
50988         (getloadavg): New declaration.
50989         * lib/getloadavg.c: Include <stdlib.h> first.
50990         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50991         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50992         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50994         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50995         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50997         (Include): Specify <stdlib.h>.
50998         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50999         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51000
51001 2008-10-18  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/dirchownmod.c: Don't include lchmod.h.
51004
51005         Move the lchmod() declaration to <sys/stat.h>.
51006         * lib/lchmod.h: Remove file.
51007         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51008         (lchmod): New declaration, moved here from lib/lchown.h.
51009         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51010         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51011         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51012         and HAVE_LCHMOD.
51013         * modules/lchmod (Files): Remove lib/lchmod.h.
51014         (Depends-on): Add sys_stat, extensions.
51015         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51016         (Include): Specify <sys/stat.h> instead of lchmod.h.
51017         * modules/sys_stat (Depends-on): Add link-warning.
51018         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51019         definition of GL_LINK_WARNING.
51020         * NEWS: Mention the change.
51021
51022 2008-10-18  Bruno Haible  <bruno@clisp.org>
51023
51024         * lib/fchdir.c: Don't include dirfd.h.
51025         * lib/fts.c: Likewise.
51026         * lib/getcwd.c: Likewise.
51027         * lib/glob.c: Likewise.
51028
51029         Move the dirfd() declaration to <dirent.h>.
51030         * lib/dirfd.h: Remove file.
51031         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51032         (dirfd): New declaration.
51033         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51034         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51035         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51036         HAVE_DECL_DIRFD.
51037         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51038         HAVE_DECL_DIRFD.
51039         * modules/dirfd (Files): Remove lib/dirfd.h.
51040         (Depends-on): Add dirent, extensions.
51041         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51042         (Include): Specify <dirent.h> instead of dirfd.h.
51043         * modules/dirent (Depends-on): Add link-warning.
51044         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51045         definition of GL_LINK_WARNING.
51046         * NEWS: Mention the change.
51047
51048 2008-10-18  Bruno Haible  <bruno@clisp.org>
51049
51050         Move the euidaccess() declaration to <unistd.h>.
51051         * lib/euidaccess.h: Remove file.
51052         * lib/unistd.in.h (euidaccess): New declaration.
51053         * lib/euidaccess.c: Don't include euidaccess.h.
51054         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51055         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51057         and HAVE_EUIDACCESS.
51058         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51059         (Depends-on): Add unistd.
51060         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51061         (Include): Specify <unistd.h> instead of euidaccess.h.
51062         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51063         HAVE_EUIDACCESS.
51064         * NEWS: Mention the change.
51065
51066 2008-10-18  Bruno Haible  <bruno@clisp.org>
51067
51068         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51069
51070         Move the getdomainname() declaration to <unistd.h>.
51071         * lib/getdomainname.h: Remove file.
51072         * lib/unistd.in.h (getdomainname): New declaration.
51073         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51074         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51075         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51076         HAVE_GETDOMAINNAME.
51077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51078         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51079         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51080         (Depends-on): Add unistd, extensions.
51081         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51082         (Includes): Specify <unistd.h> instead of getdomainname.h.
51083         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51084         HAVE_GETDOMAINNAME.
51085         * NEWS: Mention the change.
51086
51087 2008-10-18  Bruno Haible  <bruno@clisp.org>
51088
51089         * modules/dirent: New file.
51090         * m4/dirent_h.m4: New file.
51091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51092         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51093         * modules/fchdir (Files): Remove lib/dirent.in.h.
51094         (Depends-on): Add dirent.
51095         (Makefile.am): Move rules to modules/dirent.
51096         * doc/posix-headers/dirent.texi: Mention the new module.
51097
51098 2008-10-18  Bruno Haible  <bruno@clisp.org>
51099
51100         Avoid -Wunused-parameter warnings in public gnulib header files.
51101         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51102         macro.
51103         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51104
51105 2008-10-18  Bruno Haible  <bruno@clisp.org>
51106
51107         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51108         * doc/glibc-functions/error.texi: Mention the module 'error'.
51109         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51110         * doc/glibc-functions/getdomainname.texi: Mention the module
51111         'getdomainname'.
51112         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51113         * doc/glibc-functions/getpagesize.texi: Mention the module
51114         'getpagesize'.
51115         * doc/glibc-functions/getusershell.texi: Mention the module
51116         'getusershell'.
51117         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51118         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51119         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51120         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51121         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51122         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51123         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51124         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51125         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51126         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51127         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51128         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51129         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51130         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51131
51132 2008-10-17  Bruno Haible  <bruno@clisp.org>
51133
51134         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51135         HP-UX and IRIX, use -0.0L.
51136         * tests/test-ceill.c (minus_zero): Likewise.
51137         * tests/test-floorl.c (minus_zero): Likewise.
51138         * tests/test-frexpl.c (minus_zero): Likewise.
51139         * tests/test-isnan.c (minus_zerol): Likewise.
51140         * tests/test-isnanl.h (minus_zero): Likewise.
51141         * tests/test-ldexpl.c (minus_zero): Likewise.
51142         * tests/test-roundl.c (minus_zero): Likewise.
51143         * tests/test-signbit.c (minus_zerol): Likewise.
51144         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51145         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51146         * tests/test-truncl.c (minus_zero): Likewise.
51147         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51148         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51149         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51150         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51151
51152 2008-10-17  Bruno Haible  <bruno@clisp.org>
51153
51154         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51155         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51156         that it gets activated only for gcc >= 3.0.
51157         * lib/dirent.in.h: Likewise.
51158         * lib/errno.in.h: Likewise.
51159         * lib/fcntl.in.h: Likewise.
51160         * lib/float.in.h: Likewise.
51161         * lib/iconv.in.h: Likewise.
51162         * lib/inttypes.in.h: Likewise.
51163         * lib/locale.in.h: Likewise.
51164         * lib/math.in.h: Likewise.
51165         * lib/netdb.in.h: Likewise.
51166         * lib/netinet_in.in.h: Likewise.
51167         * lib/search.in.h: Likewise.
51168         * lib/signal.in.h: Likewise.
51169         * lib/spawn.in.h: Likewise.
51170         * lib/stdarg.in.h: Likewise.
51171         * lib/stdint.in.h: Likewise.
51172         * lib/stdio.in.h: Likewise.
51173         * lib/stdlib.in.h: Likewise.
51174         * lib/string.in.h: Likewise.
51175         * lib/strings.in.h: Likewise.
51176         * lib/sys_file.in.h: Likewise.
51177         * lib/sys_ioctl.in.h: Likewise.
51178         * lib/sys_select.in.h: Likewise.
51179         * lib/sys_socket.in.h: Likewise.
51180         * lib/sys_stat.in.h: Likewise.
51181         * lib/sys_time.in.h: Likewise.
51182         * lib/sysexits.in.h: Likewise.
51183         * lib/time.in.h: Likewise.
51184         * lib/unistd.in.h: Likewise.
51185         * lib/wchar.in.h: Likewise.
51186         * lib/wctype.in.h: Likewise.
51187         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51188
51189 2008-10-17  Jim Meyering  <meyering@redhat.com>
51190
51191         ignore-value: don't depend on inline module
51192         * modules/ignore-value (Depends-on): Remove 'inline'.
51193         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51194         Suggestion from Bruno Haible.
51195
51196 2008-10-17  Bruno Haible  <bruno@clisp.org>
51197
51198         New implementation of condition variables for Win32.
51199         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51200         (gl_linked_waitqueue_t): New type.
51201         (gl_cond_t): Use it.
51202         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51203         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51204         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51205         (glthread_cond_init_func, glthread_cond_wait_func,
51206         glthread_cond_timedwait_func, glthread_cond_signal_func,
51207         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51208         Reimplemented on the basis of gl_linked_waitqueue_t.
51209         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51210         gl_waitqueue_t.
51211         (gl_rwlock_t): Update.
51212         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51213
51214 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51215
51216         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51217         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51218
51219 2008-10-17  Jim Meyering  <meyering@redhat.com>
51220
51221         ignore-value: new module
51222         * modules/ignore-value: New file.
51223         * lib/ignore-value.h: New file.
51224         * MODULES.html.sh (Compiler warning management): New section,
51225         just for this module.  More to come.
51226
51227 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51228
51229         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51230         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51231         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51232
51233 2008-10-16  Jim Meyering  <meyering@redhat.com>
51234
51235         openat-die.c: avoid 'no previous prototype' warning
51236         * lib/openat-die.c: Include "openat.h".
51237         Reported by Reuben Thomas <rrt@sc3d.org>.
51238
51239 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51240
51241         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51242         * lib/netdb.in.h: Fix typo.
51243         Reported by Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/netdb.in.h: Include sys/socket.h for platforms without
51246         netdb.h, to get structures like hostent on MinGW.
51247         * modules/netdb (Depends-on): Add sys_socket.
51248
51249 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51250
51251         * modules/netdb, modules/netdb-tests: New file.
51252         * m4/netdb_h.m4: New file.
51253         * lib/netdb.in.h: Add, currently just an empty file pending
51254         definitions.
51255         * tests/test-netdb.c: New file.
51256         * doc/posix-headers/netdb.texi: Mention that we replace it if
51257         needed.
51258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51259         netdb.
51260
51261 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51262
51263         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51264         with code.
51265
51266 2008-10-13  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/glthread/cond.c (glthread_cond_wait_func,
51269         glthread_cond_timedwait_func): Add a comment.
51270
51271 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51272
51273         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51274         * tests/test-select.c: Likewise,
51275
51276 2008-10-13  Bruno Haible  <bruno@clisp.org>
51277
51278         * lib/glthread/cond.c (glthread_cond_wait_func,
51279         glthread_cond_timedwait_func): Fix variable name.
51280         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51281
51282 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51283
51284         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51285         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51286         struct sockaddr.sa_len.
51287         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51288
51289 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51290
51291         * build-aux/pmccabe2html: Add css and css_url parameters.
51292
51293 2008-10-12  Bruno Haible  <bruno@clisp.org>
51294
51295         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51296         calling aclx_get.
51297         Reported by Rainer Tammer <tammer@tammer.net>.
51298
51299 2008-10-12  Bruno Haible  <bruno@clisp.org>
51300
51301         Use msvcrt aware primitives for creation/termination of Win32 threads.
51302         * lib/glthread/thread.c: Include <process.h>.
51303         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51304         (wrapper_func): Update signature.
51305         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51306
51307 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51308             Bruno Haible  <bruno@clisp.org>
51309
51310         Provide a Win32 implementation of the 'cond' module.
51311         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51312         * lib/glthread/cond.c (glthread_cond_init_func,
51313         glthread_cond_wait_func, glthread_cond_timedwait_func,
51314         glthread_cond_signal_func, glthread_cond_broadcast_func,
51315         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51316         * modules/cond (Dependencies): Add gettimeofday.
51317
51318 2008-10-11  Bruno Haible  <bruno@clisp.org>
51319
51320         Make sleep work on older versions of mingw.
51321         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51322         only whether it exists.
51323         * doc/posix-functions/sleep.texi: Mention the problem with older
51324         versions of mingw.
51325
51326 2008-10-11  Bruno Haible  <bruno@clisp.org>
51327
51328         New module 'shutdown'.
51329         * modules/shutdown: New file.
51330         * lib/sys_socket.in.h (shutdown): New declaration.
51331         * lib/winsock.c (shutdown): New function.
51332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51333         GNULIB_SHUTDOWN.
51334         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51335         * doc/posix-functions/shutdown.texi: Document the new module.
51336
51337 2008-10-11  Jim Meyering  <meyering@redhat.com>
51338
51339         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51340
51341 2008-10-11  Bruno Haible  <bruno@clisp.org>
51342
51343         New module 'fclose'.
51344         * modules/fclose: New file.
51345         * lib/stdio.in.h (fclose): New declaration.
51346         * lib/fclose.c: New file.
51347         * m4/fclose.m4: New file.
51348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51349         REPLACE_FCLOSE.
51350         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51351         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51352         REPLACE_FCLOSE.
51353         * modules/close (Depends-on): fclose.
51354         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51355
51356 2008-10-11  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51359         set errno and don't call _close.
51360
51361 2008-10-10  Bruno Haible  <bruno@clisp.org>
51362
51363         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51364         ACL, not afterwards. Fixes test failure on Cygwin.
51365
51366 2008-10-09  Ben Pfaff  <blp@gnu.org>
51367
51368         * build-aux/announce-gen: Fix gnulib version related part of usage
51369         message.  Die with a useful error message if no tarballs are
51370         found.
51371
51372 2008-10-10  Jim Meyering  <meyering@redhat.com>
51373
51374         bootstrap: use git's --depth=N option only if it's supported
51375         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51376         recognize the --depth option.  Reported by Pádraig Brady.
51377
51378 2008-10-09  Bruno Haible  <bruno@clisp.org>
51379
51380         New module 'ioctl'.
51381         * modules/ioctl: New file.
51382         * lib/sys_socket.in.h (ioctl): Remove declaration.
51383         * lib/winsock.c: Include <sys/ioctl.h>.
51384         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51385         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51386         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51387         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51388         * doc/posix-functions/ioctl.texi: Mention the new module.
51389
51390 2008-10-09  Bruno Haible  <bruno@clisp.org>
51391
51392         New module 'sys_ioctl'.
51393         * lib/sys_ioctl.in.h: New file.
51394         * m4/sys_ioctl_h.m4: New file.
51395         * modules/sys_ioctl: New file.
51396         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51397
51398 2008-10-09  Bruno Haible  <bruno@clisp.org>
51399
51400         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51401         * lib/winsock.c: Include <stdarg.h>.
51402         (rpl_ioctl): Change to second argument 'int' and then varargs.
51403
51404 2008-10-09  Bruno Haible  <bruno@clisp.org>
51405
51406         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51407         when the sys_socket module is present and the system has <winsock2.h>.
51408
51409 2008-10-09  Bruno Haible  <bruno@clisp.org>
51410
51411         * doc/posix-functions/close.texi: Mention module 'close' instead of
51412         module 'sys_socket'.
51413
51414 2008-10-09  Bruno Haible  <bruno@clisp.org>
51415
51416         * doc/glibc-headers/sys_ioctl.texi: New file.
51417         * doc/gnulib.texi: Include it.
51418
51419 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51420             Bruno Haible  <bruno@clisp.org>
51421
51422         Combine the two replacements of 'close'.
51423         * lib/sys_socket.in.h (close): Define to a reminder to include
51424         <unistd.h>.
51425         (_gl_close_fd_maybe_socket): New declaration.
51426         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51427         * lib/winsock.c (close): Remove undefinition.
51428         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51429         needed for the gnulib module 'close'.
51430         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51431         define to an error symbol or to a warning, if suitable.
51432         * lib/close.c: Include <sys/socket.h>.
51433         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51434         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51435         UNISTD_H_HAVE_WINSOCK2_H.
51436         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51438         UNISTD_H_HAVE_WINSOCK2_H.
51439         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51440         (configure.ac): Set a module indicator.
51441         (Makefile.am): Substitute GNULIB_CLOSE.
51442         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51443         * modules/poll-tests (Depends-on): Add close.
51444         * modules/select-tests (Depends-on): Likewise.
51445
51446 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51447             Bruno Haible  <bruno@clisp.org>
51448
51449         New module 'close'.
51450         * modules/close: New file.
51451         * lib/unistd.in.h (close): Move declaration out of the
51452         FCHDIR_REPLACEMENT scope.
51453         (_gl_unregister_fd): New declaration.
51454         * lib/close.c: New file.
51455         * lib/fchdir.c (rpl_close): Remove function.
51456         * m4/close.m4: New file.
51457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51458         close.
51459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51460         REPLACE_CLOSE.
51461         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51462         REPLACE_CLOSE.
51463         * modules/fchdir (Depends-on): Add close.
51464
51465 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51466             Bruno Haible  <bruno@clisp.org>
51467
51468         * lib/fcntl.in.h (open): Simplify conditionals.
51469         (_gl_register_fd): New declaration.
51470         * lib/fchdir.c (rpl_open): Remove function.
51471         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51472         also.
51473         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51475         open.
51476
51477 2008-10-09  Jim Meyering  <meyering@redhat.com>
51478
51479         GNUmakefile: use the more name-space-friendly "_version"
51480         * top/GNUmakefile (_dummy): Update.
51481         (_version): Rename from "version".
51482
51483 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51484             Bruno Haible  <bruno@clisp.org>
51485
51486         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51487         rpl_close.
51488         (_gl_register_fd): New function, extracted from rpl_open.
51489         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51490         (rpl_open, rpl_opendir): Use _gl_register_fd.
51491
51492 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51493
51494         Fix organization of 'open' replacement.
51495         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51496         (gl_FUNC_OPEN): Use it.
51497         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51498
51499 2008-10-08  Bruno Haible  <bruno@clisp.org>
51500
51501         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51502
51503 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51504
51505         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51506         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51507         listen).
51508
51509 2008-10-08  Eric Blake  <ebb9@byu.net>
51510
51511         GNUmakefile: add 'make version' target
51512         * top/GNUmakefile (_curr-ver): Split version update rules...
51513         (version): ...into a target.
51514
51515 2008-10-07  Bruno Haible  <bruno@clisp.org>
51516
51517         Use a more portable replacement expression for -0.0L.
51518         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51519         instead of -0.0L. Fix m4 quotation.
51520
51521         * tests/test-signbit.c: Include <float.h>.
51522         (minus_zero): New variable.
51523         (test_signbitl): Use minus_zero instead of -zero.
51524         * modules/signbit-tests (Depends-on): Add float.
51525
51526         * tests/test-ceill.c: Include <float.h>.
51527         (zero): Remove variable.
51528         (minus_zero): New variable.
51529         (main): Use minus_zero instead of -zero.
51530         * modules/ceill-tests (Depends-on): Add float.
51531
51532         * tests/test-floorl.c: Include <float.h>.
51533         (zero): Remove variable.
51534         (minus_zero): New variable.
51535         (main): Use minus_zero instead of -zero.
51536         * modules/floorl-tests (Depends-on): Add float.
51537
51538         * tests/test-roundl.c: Include <float.h>.
51539         (zero): Remove variable.
51540         (minus_zero): New variable.
51541         (main): Use minus_zero instead of -zero.
51542         * modules/roundl-tests (Depends-on): Add float.
51543
51544         * tests/test-truncl.c: Include <float.h>.
51545         (zero): Remove variable.
51546         (minus_zero): New variable.
51547         (main): Use minus_zero instead of -zero.
51548         * modules/truncl-tests (Depends-on): Add float.
51549
51550         * tests/test-frexpl.c (zero): Remove variable.
51551         (minus_zero): New variable.
51552         (main): Use minus_zero instead of -zero.
51553         * modules/frexpl-tests (Depends-on): Add float.
51554
51555         * tests/test-isnan.c (zerol): Remove variable.
51556         (minus_zerol): New variable.
51557         (test_long_double): Use minus_zerol instead of -zerol.
51558         * modules/isnan-tests (Depends-on): Add float.
51559
51560         * tests/test-isnanl.h (zero): Remove variable.
51561         (minus_zero): New variable.
51562         (main): Use minus_zero instead of -zero.
51563         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51564         * modules/isnanl-tests (Depends-on): Add float.
51565
51566         * tests/test-ldexpl.c (zero): Remove variable.
51567         (minus_zero): New variable.
51568         (main): Use minus_zero instead of -zero.
51569         * modules/ldexpl-tests (Depends-on): Add float.
51570
51571         * tests/test-snprintf-posix.h (zerol): Remove variable.
51572         (minus_zerol): New variable.
51573         (test_function): Use minus_zerol instead of -zerol.
51574         * modules/snprintf-posix-tests (Depends-on): Add float.
51575         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51576
51577         * tests/test-sprintf-posix.h (zerol): Remove variable.
51578         (minus_zerol): New variable.
51579         (test_function): Use minus_zerol instead of -zerol.
51580         * modules/sprintf-posix-tests (Depends-on): Add float.
51581         * modules/vsprintf-posix-tests (Depends-on): Add float.
51582
51583         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51584         (minus_zerol): New variable.
51585         (test_function): Use minus_zerol instead of -zerol.
51586         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51587
51588         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51589         (minus_zerol): New variable.
51590         (test_function): Use minus_zerol instead of -zerol.
51591         * modules/vasprintf-posix-tests (Depends-on): Add float.
51592
51593 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51594
51595         * MODULES.html.sh (Support for building documentation): Mention
51596         pmccabe2html.  Sort entries.
51597
51598         Add pmccabe2html module, from gnupdf.
51599         * build-aux/pmccabe.css: New file.
51600         * build-aux/pmccabe2html: New file.
51601         * m4/pmccabe2html.m4: New file.
51602         * modules/pmccabe2html: New file.
51603
51604 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51605
51606         flock: new module
51607         * MODULES.html.sh: Add to list of modules.
51608         * lib/flock.c: flock implementation for Windows and Unix systems
51609         which have fcntl.
51610         * doc/glibc-functions/flock.texi: Update documentation.
51611         * lib/sys_file.in.h: <sys/file.h> header file.
51612         * m4/flock.m4: M4 macros.
51613         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51614         * modules/flock: flock module.
51615         * modules/flock-tests: flock tests module.
51616         * modules/sys_file: sys/file.h module.
51617         * tests/test-flock.c: test suite for flock.
51618
51619 2008-10-06  Jim Meyering  <meyering@redhat.com>
51620
51621         bootstrap: check for LT_INIT more portably still ;-)
51622         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51623         Spotted by Bruno Haible.
51624
51625 2008-10-06  Eric Blake  <ebb9@byu.net>
51626
51627         test-signbit: avoid tripping Irix cc bug on -0.0L
51628         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51629         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51630         entire testsuite consistent and avoids an Irix 6.2 bug.
51631
51632 2008-10-05  Bruno Haible  <bruno@clisp.org>
51633             Jim Meyering  <jim@meyering.net>
51634
51635         Add an option for ignoring EPIPE during close_stdout.
51636         * lib/closeout.h: Include <stdbool.h>.
51637         (close_stdout_set_ignore_EPIPE): New declaration.
51638         * lib/closeout.c: Include <stdbool.h>.
51639         (ignore_EPIPE): New variable.
51640         (close_stdout_set_ignore_EPIPE): New function.
51641         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51642         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51643         failure.
51644         * modules/closeout (Depends-on): Add stdbool.
51645
51646 2008-10-05  Bruno Haible  <bruno@clisp.org>
51647
51648         * modules/accept: New file.
51649         * modules/bind: New file.
51650         * modules/connect: New file.
51651         * modules/getpeername: New file.
51652         * modules/getsockname: New file.
51653         * modules/getsockopt: New file.
51654         * modules/listen: New file.
51655         * modules/recv: New file.
51656         * modules/recvfrom: New file.
51657         * modules/send: New file.
51658         * modules/sendto: New file.
51659         * modules/setsockopt: New file.
51660         * modules/socket: New file.
51661         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51662         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51663         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51664         the particular module is requested. Add a link warning when the
51665         particular module is not requested.
51666         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51667         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51668         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51669         the particular module is requested.
51670         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51671         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51672         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51673         * modules/sys_socket (Depends-on): Add link-warning.
51674         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51675         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51676         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51677         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51678         GL_LINK_WARNING.
51679         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51680         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51681         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51682         * doc/posix-functions/getpeername.texi: Mention the new module
51683         'getpeername'.
51684         * doc/posix-functions/getsockname.texi: Mention the new module
51685         'getsockname'.
51686         * doc/posix-functions/getsockopt.texi: Mention the new module
51687         'getsockopt'.
51688         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51689         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51690         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51691         * doc/posix-functions/send.texi: Mention the new module 'send'.
51692         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51693         * doc/posix-functions/setsockopt.texi: Mention the new module
51694         'setsockopt'.
51695         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51696         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51697         listen, connect, accept.
51698         * modules/select-tests (Depends-on): Likewise.
51699
51700 2008-10-05  Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/winsock.c (strerror): Remove unused #undef.
51703         (rpl_close): Remove unused local variable.
51704
51705         * modules/sys_socket (Depends-on); Add errno.
51706
51707 2008-10-05  Bruno Haible  <bruno@clisp.org>
51708
51709         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51710         (select): Add a link warning when the 'select' module is not used.
51711         * modules/sys_select (Depends-on): Add link-warning.
51712         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51713         Suggested by Paolo Bonzini.
51714
51715 2008-10-05  Jim Meyering  <meyering@redhat.com>
51716
51717         bootstrap: check for LT_INIT more portably
51718         * build-aux/bootstrap: Avoid using grep -E, since it's not
51719         portable enough.  Suggestion from Bruno Haible.
51720
51721 2008-10-05  Bruno Haible  <bruno@clisp.org>
51722
51723         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51724         as being fixed by gnulib.
51725
51726 2008-10-05  Bruno Haible  <bruno@clisp.org>
51727
51728         * modules/select-tests: New file, mostly copied from
51729         modules/sys_select-tests.
51730         * tests/test-select.c: New file, mostly copied from
51731         tests/test-sys_select.c.
51732         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51733         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51734         (Makefile.am): Remove test_sys_select_LDADD.
51735
51736         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51737         to an undefined symbol, for an error message.
51738         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51739         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51740         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51741         winsock-select.c here.
51742         * modules/sys_select (Files): Remove lib/winsock-select.c.
51743         (Depends-on): Remove alloca.
51744         (Makefile.am): Substitute GNULIB_SELECT.
51745         * modules/select: New file.
51746         * doc/posix-functions/select.texi: Update.
51747
51748 2008-10-05  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51751         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51752         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51753         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51754         getdtablesize.
51755         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51756         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51757
51758 2008-10-05  Bruno Haible  <bruno@clisp.org>
51759
51760         * modules/getdtablesize-tests: New file.
51761         * tests/test-getdtablesize.c: New file.
51762
51763         New module 'getdtablesize'.
51764         * lib/unistd.in.h (getdtablesize): New declaration.
51765         * lib/getdtablesize.c: New file.
51766         * m4/getdtablesize.m4: New file.
51767         * modules/getdtablesize: New file.
51768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51769         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51770         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51771         HAVE_GETDTABLESIZE.
51772         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51773
51774 2008-10-05  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/sched (Makefile.am): Fix typo.
51777         Reported by Simon Josefsson.
51778
51779 2008-10-05  Jim Meyering  <meyering@redhat.com>
51780
51781         bootstrap: check for LT_INIT, too
51782         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51783         are deprecated.  Suggestion from Ralf Wildenhues.
51784
51785 2008-10-05  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51788         overriding them by ours.
51789         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51790
51791 2008-10-05  Jim Meyering  <meyering@redhat.com>
51792
51793         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51794         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51795         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51796
51797 2008-10-04  Bruno Haible  <bruno@clisp.org>
51798
51799         * modules/dup2 (License): Change to LGPLv2+.
51800         * modules/sleep (License): Likewise.
51801         * modules/perror (License): Likewise.
51802         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51803         Blake.
51804         * modules/signal (License): Likewise.
51805         * modules/sigprocmask (License): Likewise.
51806         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51807         Meyering.
51808
51809 2008-10-04  Bruno Haible  <bruno@clisp.org>
51810
51811         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51812         Reported by Rainer Tammer <tammer@tammer.net>.
51813
51814 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51815             Bruno Haible  <bruno@clisp.org>
51816
51817         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51818         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51819         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51820
51821 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51822
51823         filevercmp: new module
51824         * lib/filevercmp.h: New function filevercmp comparing version strings.
51825         * lib/filevercmp.c: Implementation of filevercmp function.
51826         * modules/filevercmp: Module metadata.
51827         * tests/test-filevercmp.c: Unit test for new module.
51828         * modules/filevercmp-tests: Unit test metadata.
51829         * MODULES.html.sh: Add filevercmp module.
51830
51831 2008-10-03  Bruno Haible  <bruno@clisp.org>
51832
51833         * lib/c-ctype.h: Add comment.
51834         Reported by Jim Meyering.
51835
51836 2008-10-02  Bruno Haible  <bruno@clisp.org>
51837
51838         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51839
51840 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51841
51842         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51843         name of bootstrap.conf accordingly.
51844
51845 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51846
51847         * build-aux/bootstrap: Install git-merge-changelog configuration
51848         items into .gitconfig if needed.
51849
51850 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51851
51852         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51853         git repository, and initialize/update it accordingly.
51854
51855 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51856
51857         * modules/fsync-tests: New file.
51858         * tests/test-fsync.c: New file.
51859
51860         New module 'fsync'.
51861         * lib/fsync.c: New file.
51862         * m4/fsync.m4: New file.
51863         * modules/fsync: New file.
51864         * lib/unistd.in.h (fsync): New declaration.
51865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51866         GNULIB_FSYNC and HAVE_FSYNC.
51867         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51868         * MODULES.html.sh (posix_functions): Add fsync.
51869         * doc/posix-functions/fsync.texi: Mention the new module.
51870
51871 2008-10-02  Jim Meyering  <meyering@redhat.com>
51872
51873         fts.c: sync with similar code from coreutils' remove.c
51874         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51875         Guard also with "#if defined __linux__", since for now at least,
51876         this code is Linux-kernel-specific.
51877
51878 2008-10-02  Jim Meyering  <meyering@redhat.com>
51879
51880         fts: bug fixes
51881         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51882         Include <sys/vfs.h>, not <sys/statfs.h>.
51883
51884         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51885         Include <sys/vfs.h>, not <sys/statfs.h>.
51886
51887 2008-10-01  Bruno Haible  <bruno@clisp.org>
51888
51889         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51890         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51891         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51892         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51893         * doc/posix-functions/posix_spawnp.texi: Likewise.
51894         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51895         whether posix_spawn actually works.
51896         * m4/pipe.m4 (gl_PIPE): Likewise.
51897         * modules/execute (Files): Add m4/posix_spawn.m4.
51898         * modules/pipe (Files): Add m4/posix_spawn.m4.
51899         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51900
51901 2008-10-01  Jim Meyering  <meyering@redhat.com>
51902
51903         remove trailing spaces
51904         * NEWS: Likewise.
51905         * lib/poll.c (poll): Likewise.
51906         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51907         * lib/winsock.c (rpl_close): Likewise.
51908         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51909         * modules/yield: Likewise.
51910         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51911         * tests/test-sys_select.c (connect_to_socket): Likewise.
51912
51913         fts.c: adjust a new interface to be more generally useful
51914         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51915         (fts_build): Adjust caller.
51916
51917 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51918
51919         * modules/cond-tests: New file.
51920         * tests/test-cond.c: New file.
51921
51922 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51923             Bruno Haible  <bruno@clisp.org>
51924
51925         * modules/cond (Dependencies): Add errno, time.
51926         * lib/glthread/cond.h: Include <time.h>.
51927         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51928         across platforms.
51929
51930 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51931             Bruno Haible  <bruno@clisp.org>
51932
51933         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51934
51935 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51936             Bruno Haible  <bruno@clisp.org>
51937
51938         * modules/tls-tests (Depends-on): Add thread, yield.
51939         (configure.ac): Remove all checks.
51940         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51941         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51942         gl_thread_self): Remove definitions. Include glthread/thread.h and
51943         glthread/yield.h instead.
51944         (test_tls): Pass an additional NULL argument to gl_thread_join.
51945
51946 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51947             Bruno Haible  <bruno@clisp.org>
51948
51949         * modules/lock-tests (Depends-on): Add thread, yield.
51950         (configure.ac): Remove all checks.
51951         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51952         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51953         gl_thread_self): Remove definitions. Include glthread/thread.h and
51954         glthread/yield.h instead.
51955         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51956         additional NULL argument to gl_thread_join.
51957
51958 2008-09-30  Bruno Haible  <bruno@clisp.org>
51959
51960         Fix the Win32 implementation of the 'thread' module.
51961         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51962         pointer type.
51963         (gl_thread_self): Invoke gl_thread_self_func.
51964         (gl_thread_self_func): New declaration.
51965         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51966         (do_init_self_key, init_self_key): New functions.
51967         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51968         Remove some fields.
51969         (running_threads, running_lock): Remove variables.
51970         (get_current_thread_handle): New function.
51971         (gl_thread_self_func, wrapper_func, glthread_create_func,
51972         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51973         simplified.
51974
51975 2008-09-30  Bruno Haible  <bruno@clisp.org>
51976
51977         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51978         files.
51979
51980 2008-09-30  Jim Meyering  <meyering@redhat.com>
51981
51982         fts.m4: correct the test for statfs.f_type
51983         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51984         when checking for statfs.f_type.
51985
51986 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51987
51988         tests: avoid some compiler warnings
51989         * tests/test-memchr.c (main): Pass NULL indirectly.
51990         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51991
51992 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51993
51994         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51995         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51996         exactly specified dayshifts.
51997         (dayshift): New rule.
51998         (rel): Add dayshift.
51999         (relative_time_table) [tomorrow, yesterday, today, now]:
52000         Use tDAY_SHIFT in place of tDAY_UNIT.
52001         * tests/test-getdate.c: Add tests for now-disallowed countable
52002         dayshifts, e.g., "4 yesterday ago".
52003
52004 2008-09-29  Bruno Haible  <bruno@clisp.org>
52005
52006         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52007         * tests/test-posix_spawn1.in.sh: Renamed from
52008         tests/test-posix_spawn.in.sh.
52009         * tests/test-posix_spawn2.c: New file.
52010         * tests/test-posix_spawn2.in.sh: New file.
52011         * modules/posix_spawnp-tests (Files): Update.
52012         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52013
52014 2008-09-29  Bruno Haible  <bruno@clisp.org>
52015
52016         Propagate effects of putenv/setenv/unsetenv to child processes.
52017         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52018         * lib/pipe.c (create_pipe): Likewise.
52019
52020 2008-09-29  Bruno Haible  <bruno@clisp.org>
52021
52022         Enable use of shell scripts as executables in mingw.
52023         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52024         run the program as a shell script.
52025         * lib/pipe.c (create_pipe): Likewise.
52026         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52027         resulting array.
52028
52029 2008-09-29  Eric Blake  <ebb9@byu.net>
52030
52031         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52032
52033 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52034
52035         * doc/posix-functions/accept.texi: Update mingw problems.
52036         * doc/posix-functions/bind.texi: Update mingw problems.
52037         * doc/posix-functions/close.texi: Update mingw problems.
52038         * doc/posix-functions/connect.texi: Update mingw problems.
52039         * doc/posix-functions/getpeername.texi: Update mingw problems.
52040         * doc/posix-functions/getsockname.texi: Update mingw problems.
52041         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52042         * doc/posix-functions/ioctl.texi: Update mingw problems.
52043         * doc/posix-functions/listen.texi: Update mingw problems.
52044         * doc/posix-functions/recv.texi: Update mingw problems.
52045         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52046         * doc/posix-functions/select.texi: Update mingw problems.
52047         * doc/posix-functions/send.texi: Update mingw problems.
52048         * doc/posix-functions/sendto.texi: Update mingw problems.
52049         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52050         * doc/posix-functions/socket.texi: Update mingw problems.
52051
52052 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52053             Bruno Haible  <bruno@clisp.org>
52054
52055         * lib/sys_select.in.h: Include sys/time.h.
52056         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52057         * modules/sys_select: Depend on sys_time.
52058         * tests/test-sys_select.c: Test that sys/select.h defines struct
52059         timeval fully.
52060
52061 2008-09-29  Bruno Haible  <bruno@clisp.org>
52062
52063         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52064         * lib/sys_select.in.h: Likewise.
52065
52066 2008-09-29  Bruno Haible  <bruno@clisp.org>
52067
52068         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52069
52070 2008-09-29  Bruno Haible  <bruno@clisp.org>
52071
52072         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52073         Set LIBSOCKET instead of augmenting LIBS.
52074         * modules/sockets (Link): New section.
52075         * modules/sockets-tests (test_sockets_LDADD): New variable.
52076         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52077         * modules/poll-tests (test_poll_LDADD): New variable.
52078         * NEWS: Document the change.
52079
52080 2008-09-29  Bruno Haible  <bruno@clisp.org>
52081
52082         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52083         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52084         ARPA_INET_H directly.
52085         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52086
52087 2008-09-28  Bruno Haible  <bruno@clisp.org>
52088
52089         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52090         from gl_HEADER_SYS_SOCKET.
52091         (gl_HEADER_SYS_SOCKET): Invoke it.
52092         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52093
52094 2008-09-28  Bruno Haible  <bruno@clisp.org>
52095
52096         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52097         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52098         Needed on OSF/1 4.0.
52099
52100 2008-09-28  Bruno Haible  <bruno@clisp.org>
52101
52102         Override open more carefully.
52103         * lib/open.c (orig_open): New function.
52104         (rpl_open): Use orig_open instead of open.
52105         * lib/fcntl.in.h: Add special invocation convention.
52106         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52107         (gl_FUNC_OPEN): Invoke it.
52108
52109         Override freopen more carefully.
52110         * lib/freopen.c (orig_freopen): New function.
52111         (rpl_freopen): Use orig_freopen instead of freopen.
52112         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52113         (gl_FUNC_FREOPEN): Invoke it.
52114
52115         Override fopen more carefully.
52116         * lib/fopen.c (orig_fopen): New function.
52117         (rpl_fopen): Use orig_fopen instead of fopen.
52118         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52119         (gl_FUNC_FOPEN): Invoke it.
52120         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52121
52122 2008-09-28  Bruno Haible  <bruno@clisp.org>
52123
52124         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52125         SIGPIPE.
52126
52127 2008-09-28  Bruno Haible  <bruno@clisp.org>
52128
52129         * tests/test-sigaction.c (handler, main): Disable the check whether
52130         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52131         glibc systems with LinuxThreads.
52132
52133 2008-09-28  Bruno Haible  <bruno@clisp.org>
52134
52135         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52136
52137         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52138         with AIX xlc.
52139         * lib/fcntl.in.h (open): Likewise.
52140         Reported by Rainer Tammer <tammer@tammer.net>.
52141
52142 2008-09-28  Bruno Haible  <bruno@clisp.org>
52143
52144         * modules/posix_spawnp-tests: New file.
52145         * tests/test-posix_spawn.c: New file.
52146         * tests/test-posix_spawn.in.sh: New file.
52147
52148         New module 'posix_spawnp'.
52149         * modules/posix_spawnp: New file.
52150         * lib/spawnp.c: New file, from GNU libc with modifications.
52151         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52152
52153         New module 'posix_spawn'.
52154         * modules/posix_spawn: New file.
52155         * lib/spawn.c: New file, from GNU libc with modifications.
52156         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52157
52158         New module 'posix_spawnattr_destroy'.
52159         * modules/posix_spawnattr_destroy: New file.
52160         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52161         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52162         module.
52163
52164         New module 'posix_spawnattr_setsigmask'.
52165         * modules/posix_spawnattr_setsigmask: New file.
52166         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52167         modifications.
52168         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52169         new module.
52170
52171         New module 'posix_spawnattr_getsigmask'.
52172         * modules/posix_spawnattr_getsigmask: New file.
52173         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52174         modifications.
52175         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52176         new module.
52177
52178         New module 'posix_spawnattr_setsigdefault'.
52179         * modules/posix_spawnattr_setsigdefault: New file.
52180         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52181         modifications.
52182         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52183         new module.
52184
52185         New module 'posix_spawnattr_getsigdefault'.
52186         * modules/posix_spawnattr_getsigdefault: New file.
52187         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52188         modifications.
52189         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52190         new module.
52191
52192         New module 'posix_spawnattr_setschedpolicy'.
52193         * modules/posix_spawnattr_setschedpolicy: New file.
52194         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52195         modifications.
52196         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52197         new module.
52198
52199         New module 'posix_spawnattr_getschedpolicy'.
52200         * modules/posix_spawnattr_getschedpolicy: New file.
52201         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52202         modifications.
52203         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52204         new module.
52205
52206         New module 'posix_spawnattr_setschedparam'.
52207         * modules/posix_spawnattr_setschedparam: New file.
52208         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52209         modifications.
52210         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52211         new module.
52212
52213         New module 'posix_spawnattr_getschedparam'.
52214         * modules/posix_spawnattr_getschedparam: New file.
52215         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52216         modifications.
52217         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52218         new module.
52219
52220         New module 'posix_spawnattr_setpgroup'.
52221         * modules/posix_spawnattr_setpgroup: New file.
52222         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52223         modifications.
52224         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52225         module.
52226
52227         New module 'posix_spawnattr_getpgroup'.
52228         * modules/posix_spawnattr_getpgroup: New file.
52229         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52230         modifications.
52231         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52232         module.
52233
52234         New module 'posix_spawnattr_setflags'.
52235         * modules/posix_spawnattr_setflags: New file.
52236         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52237         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52238         module.
52239
52240         New module 'posix_spawnattr_getflags'.
52241         * modules/posix_spawnattr_getflags: New file.
52242         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52243         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52244         module.
52245
52246         New module 'posix_spawnattr_init'.
52247         * modules/posix_spawnattr_init: New file.
52248         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52249         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52250         module.
52251
52252         New module 'posix_spawn_file_actions_destroy'.
52253         * modules/posix_spawn_file_actions_destroy: New file.
52254         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52255         modifications.
52256         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52257         the new module.
52258
52259         New module 'posix_spawn_file_actions_addopen'.
52260         * modules/posix_spawn_file_actions_addopen: New file.
52261         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52262         modifications.
52263         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52264         the new module.
52265
52266         New module 'posix_spawn_file_actions_adddup2'.
52267         * modules/posix_spawn_file_actions_adddup2: New file.
52268         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52269         modifications.
52270         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52271         the new module.
52272
52273         New module 'posix_spawn_file_actions_addclose'.
52274         * modules/posix_spawn_file_actions_addclose: New file.
52275         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52276         modifications.
52277         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52278         the new module.
52279
52280         New module 'posix_spawn_file_actions_init'.
52281         * modules/posix_spawn_file_actions_init: New file.
52282         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52283         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52284         new module.
52285
52286         New module 'posix_spawn-internal'.
52287         * modules/posix_spawn-internal: New file.
52288         * lib/spawn_int.h: New file, from GNU libc with modifications.
52289         * lib/spawni.c: New file, from GNU libc with modifications.
52290         * m4/posix_spawn.m4: New file.
52291
52292         New module 'spawn'.
52293         * modules/spawn: New file.
52294         * lib/spawn.in.h: New file, from GNU libc with modifications.
52295         * m4/spawn_h.m4: New file.
52296         * doc/posix-headers/spawn.texi: Mention the new module.
52297
52298 2008-09-28  Bruno Haible  <bruno@clisp.org>
52299
52300         * modules/sched-tests: New file.
52301         * tests/test-sched.c: New file.
52302
52303         New module 'sched'.
52304         * modules/sched: New file.
52305         * lib/sched.in.h: New file.
52306         * m4/sched_h.m4: New file.
52307         * doc/posix-headers/sched.texi: Mention the new module.
52308
52309 2008-09-27  Eric Blake  <ebb9@byu.net>
52310
52311         Fix previous patch, and tweak references to $0.
52312         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52313         (func_version, func_gnulib_dir): Don't call this program
52314         gnulib-tool.
52315         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52316         with using $0 in function.
52317         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52318         (func_fatal_error): Reuse the name the user invoked us with.
52319
52320 2008-09-27  Bruno Haible  <bruno@clisp.org>
52321
52322         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52323         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52324         (gl_ICONV_H): Not here.
52325         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52326         instead of assigning ICONV_H directly.
52327
52328         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52330         WCHAR_H directly.
52331
52332 2008-09-27  Bruno Haible  <bruno@clisp.org>
52333
52334         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52335         * modules/arpa_inet (Depends-on): Add link-warning.
52336         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52337         * modules/unistd (Makefile.am): Likewise.
52338
52339 2008-09-26  Bruno Haible  <bruno@clisp.org>
52340
52341         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52342         variables.
52343         (func_version): Essentially copied from gnulib-tool.
52344         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52345         func_readlink): Copied from gnulib-tool.
52346
52347 2008-09-26  Bruno Haible  <bruno@clisp.org>
52348
52349         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52350         invoking git-version-gen.
52351
52352 2008-09-26  Bruno Haible  <bruno@clisp.org>
52353
52354         * posix-modules: Update to directory names changed on 2008-01-19.
52355         Remove commas in output before splitting into words. No more need to
52356         avoid 'ftruncate' since 2007-02-19.
52357
52358 2008-09-26  Bruno Haible  <bruno@clisp.org>
52359
52360         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52361
52362 2008-09-26  Bruno Haible  <bruno@clisp.org>
52363
52364         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52365         * modules/fwriteerror (Depends-on): Add errno.
52366
52367 2008-09-26  Bruno Haible  <bruno@clisp.org>
52368
52369         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52370         * tests/test-vc-list-files-cvs.sh: Likewise.
52371
52372 2008-09-26  Bruno Haible  <bruno@clisp.org>
52373
52374         * doc/posix-headers/sys_resource.texi: Reorder items.
52375
52376 2008-09-26  Jim Meyering  <meyering@redhat.com>
52377
52378         fts: tweak inode comparison function
52379         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52380         inode numbers, as documented.
52381
52382         fts: sort dirent entries on inode number before traversing
52383         This avoids a quadratic, seek-related performance penalty when
52384         operating on a directory containing many entries (measurable at 10k;
52385         3.5 hours at 2 million entries with a cold cache) on certain types
52386         of file systems, including ext3 and ext4, but not tmpfs.
52387         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52388         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52389         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52390         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52391         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52392         (fts_build): Set the stat.st_ino member from D_INO.
52393         If it is likely to be useful, sort dirent entries on inode number.
52394
52395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52396         and the struct statfs.f_type member.
52397         * modules/fts (Depends-on): Add d-ino.
52398
52399 2008-09-26  Bruno Haible  <bruno@clisp.org>
52400
52401         * modules/sigpipe-die (Depends-on): Add sigpipe.
52402
52403         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52404         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52405         and GNULIB_STDIO_H_SIGPIPE are set.
52406         * lib/stdio-write.c: New file.
52407         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52408         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52409         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52410         REPLACE_STDIO_WRITE_FUNCS.
52411         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52412         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52413         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52414         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52415         * modules/stdio (Files): Add lib/stdio-write.c.
52416         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52417         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52418         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52419         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52420         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52421         REPLACE_FPRINTF_POSIX.
52422         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52423         REPLACE_PRINTF_POSIX.
52424         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52425         REPLACE_VFPRINTF_POSIX.
52426         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52427         REPLACE_VPRINTF_POSIX.
52428         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52429         SIGPIPE issue.
52430         * doc/posix-functions/fputc.texi: Likewise.
52431         * doc/posix-functions/fputs.texi: Likewise.
52432         * doc/posix-functions/fwrite.texi: Likewise.
52433         * doc/posix-functions/printf.texi: Likewise.
52434         * doc/posix-functions/putc.texi: Likewise.
52435         * doc/posix-functions/putchar.texi: Likewise.
52436         * doc/posix-functions/puts.texi: Likewise.
52437         * doc/posix-functions/vfprintf.texi: Likewise.
52438         * doc/posix-functions/vprintf.texi: Likewise.
52439
52440         * modules/safe-write (Depends-on): Add write.
52441
52442         * modules/sigpipe-tests: New file.
52443         * tests/test-sigpipe.c: New file.
52444         * tests/test-sigpipe.sh: New file.
52445
52446         * modules/write: New file.
52447         * lib/unistd.in.h: Include <sys/types.h>.
52448         (write): New declaration.
52449         * lib/write.c: New file.
52450         * m4/write.m4: New file.
52451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52452         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52453         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52454         GNULIB_WRITE, REPLACE_WRITE.
52455         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52456         and the SIGPIPE issue.
52457
52458         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52459         (raise): New declaration.
52460         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52461         (ext_signal): New function.
52462         (rpl_raise): New function.
52463         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52464         GNULIB_SIGNAL_H_SIGPIPE.
52465         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52466         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52467
52468         * modules/sigpipe: New file.
52469         * m4/sigpipe.m4: New file.
52470
52471 2008-09-25  Derek Price  <derek@ximbiot.com>
52472             Bruno Haible  <bruno@clisp.org>
52473
52474         * gnulib-tool (func_import): Report all license incompatibilities, not
52475         just the first one.
52476
52477 2008-09-25  Bruno Haible  <bruno@clisp.org>
52478
52479         * gnulib-tool (func_import): When computing the edits, consider not
52480         only the Makefile.ams that exist but also those that will be generated.
52481
52482 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52483
52484         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52485         fixes gnulib-tool --test warning about duplicate dependency.
52486
52487 2008-09-25  Bruno Haible  <bruno@clisp.org>
52488
52489         * gnulib-tool: Don't ask the user to perform edits in the generated
52490         Makefile.ams.
52491         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52492         apply to the Makefile.am being generated.
52493         (func_emit_tests_Makefile_am): Execute edits that apply to the
52494         Makefile.am being generated.
52495         (func_import): Setup list of Makefile.am edits before emitting the
52496         Makefile.ams, not at the end.
52497         (func_create_testdir): Update.
52498         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52499
52500 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52501
52502         * gnulib-tool (func_import): Store the --tests-base option in the
52503         comment in gnulib-cache.m4.
52504
52505 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52506
52507         * NEWS: Document increased portability that sys_select now provides.
52508
52509         * lib/sys_select.in.h: Install select wrapper.
52510         * lib/sys_socket.in.h: Use more descriptive name when there is no
52511         select wrapper.
52512         * lib/winsock-select.c: New.
52513         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52514         Require gl_HEADER_SYS_SOCKET.
52515         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52516         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52517         * tests/test-sys_select.c: Add functional tests.
52518
52519 2008-09-24  Eric Blake  <ebb9@byu.net>
52520
52521         open, fopen: close fd leak in last patch
52522         * lib/open.c (rpl_open): Close fd before returning error.
52523         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52524         * doc/posix-functions/open.texi (open): Document that Irix also
52525         has the bug.
52526         * doc/posix-functions/fopen.texi (fopen): Likewise.
52527         Reported by Paolo Bonzini.
52528
52529 2008-09-24  Bruno Haible  <bruno@clisp.org>
52530
52531         Ensure that a filename ending in a slash cannot be used to access a
52532         non-directory.
52533         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52534         to check whether it's really a directory.
52535         * lib/fopen.c: Include fcntl.h, unistd.h.
52536         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52537         and fdopen().
52538         * modules/fopen (Depends-on): Add unistd.
52539         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52540         * tests/test-fopen.c (main): Likewise.
52541         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52542         * doc/posix-functions/fopen.texi: Likewise.
52543         Reported by Eric Blake.
52544
52545 2008-09-23  Eric Blake  <ebb9@byu.net>
52546
52547         c-stack: avoid compiler optimizations when provoking overflow
52548         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52549         recursion harder to optimize, to ensure a stack overflow occurs.
52550         * tests/test-c-stack.c (recurse): Likewise.
52551         Borrowed from libsigsegv.
52552
52553         c-stack: work around Irix sigaltstack bug
52554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52555         whether sigaltstack uses wrong end of stack_t (copied in part from
52556         libsigsegv).
52557         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52558         Irix bug, without requiring an over-allocation.
52559         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52560         bug.
52561
52562         fopen: document mingw bug on directories
52563         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52564         not allowing a stream visiting a directory, even though reading
52565         from such a stream is not portable.
52566
52567 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52568
52569         * lib/poll.c: Rewrite.
52570         * modules/poll: Depend on alloca.
52571
52572 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52573
52574         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52575         instead define prototypes for a full set of wrappers.  Ensure
52576         that Cygwin does not use the compatibility code, which is only
52577         for MinGW.
52578         * lib/winsock.c: New.
52579         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52580         * modules/sys_socket: Add lib/winsock.c.
52581
52582         * modules/poll-tests: Add errno and perror.
52583         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52584
52585 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52586
52587         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52588
52589 2008-09-23  Bruno Haible  <bruno@clisp.org>
52590
52591         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52592         * doc/glibc-functions/*: Likewise.
52593
52594 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52595
52596         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52597         success.
52598
52599 2008-09-22  Eric Blake  <ebb9@byu.net>
52600             Bruno Haible  <bruno@clisp.org>
52601
52602         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52603         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52604         supply %A but mishandle pseudo-NaN.
52605         Reported by Simon Josefsson.
52606
52607 2008-09-21  Bruno Haible  <bruno@clisp.org>
52608
52609         * tests/test-lock.c (main): Tweak skip message.
52610         * tests/test-tls.c (main): Likewise.
52611
52612 2008-09-21  Bruno Haible  <bruno@clisp.org>
52613
52614         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52615         whether 'struct sigaction' has sa_sigaction here...
52616         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52617         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52618
52619 2008-09-21  Bruno Haible  <bruno@clisp.org>
52620
52621         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52622         section.
52623         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52624         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52625         the new section.
52626         (Support for obsolete systems lacking POSIX:2001): New section.
52627         (String handling <string.h>): Move strdup to the new section.
52628         Suggested by Simon Josefsson and Paolo Bonzini.
52629
52630 2008-09-21  Bruno Haible  <bruno@clisp.org>
52631
52632         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52633         exponents in %e and %g results on 'long double'. Needed for mingw's
52634         improved *printf functions.
52635         * tests/test-vasprintf-posix.c (test_function): Likewise.
52636         * tests/test-snprintf-posix.h (test_function): Likewise.
52637         * tests/test-sprintf-posix.h (test_function): Likewise.
52638         Reported by Eric Blake.
52639
52640 2008-09-21  Bruno Haible  <bruno@clisp.org>
52641
52642         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52643         * tests/test-sprintf-posix.h (test_function): Likewise.
52644
52645 2008-09-21  Bruno Haible  <bruno@clisp.org>
52646
52647         * modules/getpass (Depends-on): Add strdup-posix.
52648
52649         New module 'strdup-posix'.
52650         * modules/strdup-posix: New file.
52651         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52652         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52654         REPLACE_STRDUP.
52655         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52656         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52658         strdup-posix.
52659
52660         * modules/strdup (Depends-on): Remove malloc-posix.
52661
52662 2008-09-20  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52665         Wildenhues.
52666
52667 2008-09-20  Bruno Haible  <bruno@clisp.org>
52668
52669         Ensure that wint_t gets defined on IRIX 5.3.
52670         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52671         * lib/wctype.in.h (wint_t): Likewise.
52672         (__wctype_wint_t): Remove type.
52673         (isw*): Use wint_t instead of __wctype_wint_t.
52674         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52675         * modules/wchar (Files): Add m4/wint_t.m4.
52676         (Makefile.am): Substitute HAVE_WINT_T.
52677         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52678         * tests/test-wctype.c: Check that wint_t is defined.
52679         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52680         * doc/posix-headers/wctype.texi: Likewise.
52681         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52682
52683 2008-09-18  Bruno Haible  <bruno@clisp.org>
52684
52685         * gnulib-tool (func_exit): Update comment.
52686
52687 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52688
52689         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52690         assumes strdup exists and does not depend on strdup to return
52691         ENOMEM on out of memory conditions.
52692
52693 2008-09-18  Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52696         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52697         digits for the exponent.
52698
52699 2008-09-18  Jim Meyering  <meyering@redhat.com>
52700             Bruno Haible  <bruno@clisp.org>
52701
52702         * lib/vasnprintf.c (decimal_point_char): Define also if
52703         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52704
52705 2008-09-16  Bruno Haible  <bruno@clisp.org>
52706         and Eric Blake  <ebb9@byu.net>
52707
52708         vasnprintf: support Irix 5.3
52709         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52710         that mishandle long double infinity.
52711         Reported by Tom G. Christensen.
52712
52713 2008-09-16  Bruno Haible  <bruno@clisp.org>
52714
52715         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52716         Solaris 9.
52717         * doc/glibc-functions/alphasort.texi: Likewise.
52718         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52719
52720 2008-09-16  Jim Meyering  <meyering@redhat.com>
52721
52722         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52723         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52724         a umask modification leak out of a subshell.  Otherwise, the
52725         opensolaris /bin/sh would be accepted and thus cause unwarranted
52726         failures in the coreutils test suite.
52727
52728 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52729
52730         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52731         to succeed.
52732
52733 2008-09-16  Jim Meyering  <meyering@redhat.com>
52734
52735         avoid spurious test failure when library is built without ACL support
52736         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52737         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52738         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52739         * tests/test-copy-acl.sh: Likewise.
52740
52741 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52742
52743         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52744         based on character occurrence counts.
52745
52746 2008-09-15  Eric Blake  <ebb9@byu.net>
52747
52748         tests: avoid some compiler warnings
52749         * tests/test-memchr.c (main): Pass NULL indirectly.
52750         * tests/test-closein.c (main): Avoid unused variable.
52751
52752 2008-09-15  Bruno Haible  <bruno@clisp.org>
52753
52754         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52755         are missing on OpenBSD 4.0 individually.
52756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52757
52758 2008-09-15  Bruno Haible  <bruno@clisp.org>
52759
52760         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52761         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52762         * doc/posix-functions/perror.texi: Likewise.
52763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52764         is missing.
52765         Reported by Eric Blake.
52766
52767         * lib/errno.in.h: Use replacement values >= 2000.
52768         Reported by Eric Blake.
52769
52770 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52771
52772         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52773         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52774         limit.
52775         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52776         compareseq was aborted.
52777
52778 2008-09-14  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52781         yvec_edit_count.
52782         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52783         (fstrcmp_bounded): Simplify result computation accordingly.
52784
52785 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52786
52787         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52788         (fstrcmp): Define in terms of fstrcmp_bounded.
52789         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52790         lower_bound argument.
52791         Return quickly if the result is certainly < lower_bound.
52792         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52793
52794 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52795
52796         * lib/diffseq.h (EARLY_ABORT): New macro.
52797         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52798         evaluates to true.
52799
52800 2008-09-14  Bruno Haible  <bruno@clisp.org>
52801
52802         * modules/perror-tests: New file.
52803         * tests/test-perror.sh: New file.
52804         * tests/test-perror.c: New file.
52805
52806         New module 'perror'.
52807         * lib/stdio.in.h (perror): New declaration.
52808         * lib/perror.c: New file.
52809         * m4/perror.m4: New file.
52810         * modules/perror: New file.
52811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52812         * doc/posix-functions/perror.texi: Mention the perror module.
52813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52814         REPLACE_PERROR.
52815         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52816         REPLACE_PERROR.
52817
52818 2008-09-14  Bruno Haible  <bruno@clisp.org>
52819
52820         * modules/stdio (Makefile.am): Reorder to match the order in
52821         lib/stdio.in.h.
52822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52823
52824 2008-09-13  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52827
52828 2008-09-13  Bruno Haible  <bruno@clisp.org>
52829
52830         Extend strerror to cover the added errno values.
52831         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52832         (rpl_strerror): Provide error messages for the added errno values and
52833         for the WSA* values.
52834         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52835         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52836         strerror.
52837         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52838         * modules/strerror (Depends-on): Add errno.
52839         * doc/posix-functions/strerror.texi: Document the change.
52840         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52841         and EOVERFLOW.
52842
52843 2008-09-13  Bruno Haible  <bruno@clisp.org>
52844
52845         * modules/EOVERFLOW: Remove file.
52846         * m4/eoverflow.m4: Remove file.
52847         * modules/EOVERFLOW-tests: Remove file.
52848         * tests/test-EOVERFLOW.c: Remove file.
52849         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52850         * modules/ftell (Depends-on): Likewise.
52851         * modules/getdelim (Depends-on): Likewise.
52852         * modules/getugroups (Depends-on): Likewise.
52853         * modules/poll (Depends-on): Likewise.
52854         * modules/snprintf (Depends-on): Likewise.
52855         * modules/sprintf-posix (Depends-on): Likewise.
52856         * modules/vasnprintf (Depends-on): Likewise.
52857         * modules/vasprintf (Depends-on): Likewise.
52858         * modules/vfprintf-posix (Depends-on): Likewise.
52859         * modules/vsnprintf (Depends-on): Likewise.
52860         * modules/vsprintf-posix (Depends-on): Likewise.
52861         * modules/xvasprintf (Depends-on): Likewise.
52862         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52863         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52864         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52865         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52866         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52867         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52868         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52869         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52870         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52871         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52872         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52873         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52874         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52875         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52876         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52877         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52878         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52879         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52880         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52881         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52882         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52883         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52884         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52885         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52886         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52887         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52888         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52889         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52890         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52891         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52892         * MODULES.html.sh: Remove EOVERFLOW.
52893         * NEWS: Mention the change.
52894
52895 2008-09-13  Bruno Haible  <bruno@clisp.org>
52896
52897         * modules/errno-tests: New file.
52898         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52899
52900         * lib/errno.in.h: New file.
52901         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52902         * modules/errno: New file.
52903         * doc/posix-headers/errno.texi: Update documentation.
52904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52905
52906 2008-09-13  Bruno Haible  <bruno@clisp.org>
52907
52908         * tests/test-poll.c: Use #if for native Windows, rather than testing
52909         __MSVCRT__.
52910
52911 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52912             Bruno Haible  <bruno@clisp.org>
52913
52914         * lib/glob.c: Don't include <pwd.h> on native Windows.
52915         (WINDOWS32): New macro.
52916         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52917
52918 2008-09-13  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52921         (ETIMEDOUT): Remove macro.
52922         (glthread_cond_timedwait_multithreaded): New declaration.
52923         (glthread_cond_timedwait): Use it.
52924         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52925         (glthread_cond_timedwait_multithreaded): New function.
52926
52927 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52928
52929         * modules/poll-tests: Do not check for io.h.
52930         * tests/test-poll.c: Check for __MSVCRT__ instead.
52931
52932 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52933
52934         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52935         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52936         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52937
52938 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52939
52940         * modules/poll-tests: New.
52941         * tests/test-poll.c: New.
52942
52943 2008-09-12  Eric Blake  <ebb9@byu.net>
52944
52945         frexp: test for NetBSD failure on -0.0
52946         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52947         not all, bugs from NetBSD 3.0 have been fixed.
52948         * doc/posix-functions/frexp.texi (frexp): Document bug.
52949         Reported by Thomas Klausner.
52950
52951         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52952         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52953         literal -0.0.
52954         Reported by Jonathan C. Patschke <jp@centtech.com>.
52955
52956 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52957
52958         * lib/glthread/cond.h: Use dummy implementation also if
52959         USE_WIN32_THREADS.
52960
52961 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52962
52963         * modules/fnmatch-posix (License): Change to LGPLv2+.
52964         * modules/fnmatch-gnu (License): Likewise.
52965
52966 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52967
52968         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52969
52970 2008-09-11  Jim Meyering  <meyering@redhat.com>
52971
52972         * users.txt: Add gtk-vnc.
52973
52974 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52975
52976         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52977         rotate amounts.
52978
52979         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52980         required for 16-bit and 8-bit rotates.
52981         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52982         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52983         UINT8_MAX instead of hard-coded constants.
52984         Suggested by Paul Eggert.
52985
52986 2008-09-07  Bruno Haible  <bruno@clisp.org>
52987
52988         * tests/test-striconveh.c (main): Check behaviour when converting from
52989         UTF-7.
52990
52991         Make striconveh work better with stateful encodings.
52992         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52993         that iconv does not increment the inptr when returning -1/EINVAL.
52994
52995 2008-09-07  Bruno Haible  <bruno@clisp.org>
52996
52997         * build-aux/config.rpath: Update according to libtool-2.2.6.
52998         * build-aux/config.libpath: Likewise.
52999
53000 2008-09-06  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53003         * lib/freadptr.c (freadptr): Likewise.
53004         * lib/freadseek.c (freadptrinc): Likewise.
53005         Reported by Simon Josefsson.
53006
53007 2008-09-06  Bruno Haible  <bruno@clisp.org>
53008
53009         * modules/freadptr (License): Change to LGPLv2+.
53010         * modules/freadseek (License): Likewise.
53011         Suggested by Eric Blake.
53012
53013         * modules/memchr2 (License): Change to LGPLv2+.
53014         Approved by Eric Blake.
53015
53016 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53017             Bruno Haible  <bruno@clisp.org>
53018
53019         Make gnulib-tool work with native 'sed' on AIX.
53020         * gnulib-tool (sed_noop): New variable.
53021         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53022         func_add_or_update, func_create_testdir): Use it to initialize sed
53023         script variables.
53024         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53025
53026 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53027             Bruno Haible  <bruno@clisp.org>
53028
53029         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53030         also works after #include directives.
53031
53032 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53033
53034         getdate.y: reject an out-of-range timezone value
53035         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53036         the range [-24...+24].  When specified with only one or two digits,
53037         * tests/test-getdate.c: Tests for the fix.
53038         * doc/getdate.texi: Document this change.
53039
53040 2008-09-03  Bruno Haible  <bruno@clisp.org>
53041
53042         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53043
53044 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53045
53046         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53047         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53048         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53049         Blake <ebb9@byu.net>.
53050
53051         * tests/test-bitrotate.c: Add more test vectors.
53052
53053 2008-09-02  Eric Blake  <ebb9@byu.net>
53054
53055         vasnprintf-posix: handle large precision via %.*d
53056         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53057         when handling it ourselves.
53058         * tests/test-vasnprintf-posix.c (test_function): Add test.
53059         * tests/test-snprintf-posix.h (test_function): Likewise.
53060         * tests/test-sprintf-posix.h (test_function): Likewise.
53061         * tests/test-vasprintf-posix.c (test_function): Likewise.
53062         Reported by Alain Guibert.
53063
53064 2008-09-01  Eric Blake  <ebb9@byu.net>
53065
53066         c-stack: make configure-time check more robust
53067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53068         successful sigaction call.
53069         Reported by Tom G. Christensen.
53070
53071 2008-09-01  Bruno Haible  <bruno@clisp.org>
53072
53073         New module 'findprog-lgpl'.
53074         * modules/findprog-lgpl: New file.
53075         * lib/findprog-lgpl.c: New file.
53076         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53077         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53078         to decide whether to use strdup or xstrdup, concatenated_filename or
53079         xconcatenated_filename.
53080
53081 2008-09-01  Bruno Haible  <bruno@clisp.org>
53082
53083         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53084         'xconcat-filename' (GPL).
53085         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53086         (License): Change to LGPLv2+.
53087         * modules/xconcat-filename: New file.
53088         * lib/concat-filename.h (concatenated_filename): Change specification.
53089         (xconcatenated_filename): New declaration.
53090         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53091         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53092         memory situations.
53093         * lib/xconcat-filename.c: New file.
53094         * NEWS: Mention the change.
53095         * lib/findprog.c: Include concat-filename.h, not filename.h.
53096         (find_in_path): Use xconcatenated_filename instead of
53097         concatenated_filename.
53098         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53099         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53100         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53101         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53102         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53103         instead of concatenated_filename.
53104         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53105         (execute_java_class): Use xconcatenated_filename instead of
53106         concatenated_filename.
53107         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53108         * modules/javacomp (Depends-on): Likewise.
53109         * modules/javaexec (Depends-on): Likewise.
53110
53111 2008-09-01  Bruno Haible  <bruno@clisp.org>
53112
53113         Split module 'filename' into 'filename' and 'concat-filename'.
53114         * modules/filename: Keep only lib/filename.h.
53115         (License): Change to LGPLv2+.
53116         * modules/concat-filename: New file, extracted from modules/filename.
53117         * lib/filename.h (concatenated_filename): Remove declaration.
53118         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53119         * lib/concat-filename.c: Include concat-filename.h.
53120         * NEWS: Mention the change.
53121
53122 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53123
53124         * lib/bitrotate.h (rotl8, rotr8): Add.
53125
53126         * modules/bitrotate (configure.ac): Need
53127         AC_REQUIRE([AC_C_INLINE]).
53128         (Description): Mention stdint.h.  Reported by Bruno Haible
53129         <bruno@clisp.org>.
53130
53131         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53132         Paolo Bonzini <bonzini@gnu.org>.
53133
53134 2008-08-31  Bruno Haible  <bruno@clisp.org>
53135
53136         Assume Solaris specific bi-arch conventions on Solaris systems.
53137         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53138         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53139         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53140         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53141         like acl_libdirstem.
53142         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53143         acl_libdirstem.
53144         * NEWS: Mention the change.
53145         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53146
53147 2008-08-31  Jim Meyering  <meyering@redhat.com>
53148
53149         * lib/strftime.h: Add comments describing the two added arguments.
53150
53151         remove duplicate #include directives
53152         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53153         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53154
53155 2008-08-31  Bruno Haible  <bruno@clisp.org>
53156
53157         New module 'sigpipe-die'.
53158         * modules/sigpipe-die: New file.
53159         * lib/sigpipe-die.h: New file.
53160         * lib/sigpipe-die.c: New file.
53161         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53162
53163 2008-08-31  Bruno Haible  <bruno@clisp.org>
53164
53165         Don't override previously installed signal handlers.
53166         * lib/fatal-signal.c (saved_sigactions): New variable.
53167         (uninstall_handlers): Reset the signal to the saved handler, not
53168         to SIG_DFL (except when ignored).
53169         (install_handlers): Save the previous handlers.
53170
53171 2008-08-30  Bruno Haible  <bruno@clisp.org>
53172
53173         * gnulib-tool (func_reset_sigpipe): New function.
53174         (func_get_automake_snippet, func_modules_transitive_closure,
53175         func_import): Invoke it before a join command that reads from stdin,
53176         to avoid "echo: write error: Broken pipe" error messages on stderr.
53177         Reported by Sam Steingold <sds@gnu.org>.
53178
53179 2008-08-30  Bruno Haible  <bruno@clisp.org>
53180
53181         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53182         Code copied from m4/open.m4.
53183         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53184         access and the filename ends in a slash. Code copied from lib/open.c.
53185         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53186         * tests/test-fopen.c (main): Check against bug with trailing slash.
53187
53188 2008-08-29  Bruno Haible  <bruno@clisp.org>
53189
53190         Avoid some "gcc -pedantic" warnings.
53191         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53192         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53193         * lib/dirent.in.h: Likewise.
53194         * lib/fcntl.in.h: Likewise.
53195         * lib/float.in.h: Likewise.
53196         * lib/iconv.in.h: Likewise.
53197         * lib/inttypes.in.h: Likewise.
53198         * lib/locale.in.h: Likewise.
53199         * lib/math.in.h: Likewise.
53200         * lib/netinet_in.in.h: Likewise.
53201         * lib/search.in.h: Likewise.
53202         * lib/signal.in.h: Likewise.
53203         * lib/stdarg.in.h: Likewise.
53204         * lib/stdint.in.h: Likewise.
53205         * lib/stdio.in.h: Likewise.
53206         * lib/stdlib.in.h: Likewise.
53207         * lib/string.in.h: Likewise.
53208         * lib/strings.in.h: Likewise.
53209         * lib/sys_select.in.h: Likewise.
53210         * lib/sys_socket.in.h: Likewise.
53211         * lib/sys_stat.in.h: Likewise.
53212         * lib/sys_time.in.h: Likewise.
53213         * lib/sysexits.in.h: Likewise.
53214         * lib/time.in.h: Likewise.
53215         * lib/unistd.in.h: Likewise.
53216         * lib/wchar.in.h: Likewise.
53217         * lib/wctype.in.h: Likewise.
53218         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53219         * modules/fchdir (Makefile.am): Likewise.
53220         * modules/fcntl (Makefile.am): Likewise.
53221         * modules/float (Makefile.am): Likewise.
53222         * modules/iconv_open (Makefile.am): Likewise.
53223         * modules/inttypes (Makefile.am): Likewise.
53224         * modules/locale (Makefile.am): Likewise.
53225         * modules/math (Makefile.am): Likewise.
53226         * modules/netinet_in (Makefile.am): Likewise.
53227         * modules/search (Makefile.am): Likewise.
53228         * modules/signal (Makefile.am): Likewise.
53229         * modules/stdarg (Makefile.am): Likewise.
53230         * modules/stdint (Makefile.am): Likewise.
53231         * modules/stdio (Makefile.am): Likewise.
53232         * modules/stdlib (Makefile.am): Likewise.
53233         * modules/string (Makefile.am): Likewise.
53234         * modules/strings (Makefile.am): Likewise.
53235         * modules/sys_select (Makefile.am): Likewise.
53236         * modules/sys_socket (Makefile.am): Likewise.
53237         * modules/sys_stat (Makefile.am): Likewise.
53238         * modules/sys_time (Makefile.am): Likewise.
53239         * modules/sysexits (Makefile.am): Likewise.
53240         * modules/time (Makefile.am): Likewise.
53241         * modules/unistd (Makefile.am): Likewise.
53242         * modules/wchar (Makefile.am): Likewise.
53243         * modules/wctype (Makefile.am): Likewise.
53244         Reported by Reuben Thomas <rrt@sc3d.org>.
53245
53246 2008-08-29  Bruno Haible  <bruno@clisp.org>
53247
53248         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53249         any more.
53250
53251 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53252
53253         * MODULES.html.sh (Misc): Add bitrotate.
53254
53255         * modules/bitrotate: New file.
53256
53257         * lib/bitrotate.h: New file.
53258
53259         * modules/bitrotate-tests: New file.
53260
53261         * tests/test-bitrotate.c: New file.
53262
53263         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53264         on the bitrotate module.
53265
53266         * lib/arctwo.c: Use new bitrotate module.
53267
53268 2008-08-29  Jim Meyering  <meyering@redhat.com>
53269
53270         bootstrap: merge changes from coreutils
53271         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53272         of copied files.  Remove a kludge, now that this is fixed.
53273         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53274         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53275         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53276
53277 2008-08-29  Bruno Haible  <bruno@clisp.org>
53278
53279         * MODULES.html.sh: Remove --cvs-urls option.
53280
53281 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53282
53283         maint.mk: adjust to file name change
53284         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53285
53286 2008-08-28  Jim Meyering  <meyering@redhat.com>
53287
53288         * modules/getndelim2 (License): Relicense to LGPLv2+.
53289         Approved by Richard Stallman for the version of 1995, and by
53290         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53291
53292 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53293
53294         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53295         dummy if one is not available.  Do not touch them if
53296         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53297         (getc_maybe_unlocked): New.
53298         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53299
53300 2008-08-26  Eric Blake  <ebb9@byu.net>
53301
53302         doc/INSTALL: resync from autoconf
53303         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53304         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53305         moving...
53306         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53307         * INSTALL: Regenerate.
53308         * INSTALL.ISO: New file.
53309         * INSTALL.UTF-8: Likewise.
53310
53311 2008-08-26  Jim Meyering  <meyering@redhat.com>
53312
53313         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53314         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53315         these definitions conditional, so that they may be overridden, too.
53316
53317 2008-08-26  Bruno Haible  <bruno@clisp.org>
53318
53319         Generate INSTALL file variants with prettier quotes.
53320         * doc/Makefile (INSTALL_PRELUDE): New macro.
53321         (INSTALL): Use it.
53322         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53323
53324 2008-08-26  Bruno Haible  <bruno@clisp.org>
53325
53326         Run makeinfo in an English locale.
53327         * doc/Makefile (MAKEINFO): New variable.
53328
53329 2008-08-26  Bruno Haible  <bruno@clisp.org>
53330
53331         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53332         Suggested by Eric Blake.
53333
53334 2008-08-25  Bruno Haible  <bruno@clisp.org>
53335
53336         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53337
53338 2008-08-25  Eric Blake  <ebb9@byu.net>
53339
53340         c-stack: test that stack overflow can be caught
53341         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53342         that platform allows handling stack overflow; at least OS/2 EMX
53343         has sigaltstack, but crashes before transferring control to
53344         handler on stack overflow.
53345         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53346         check for HAVE_STACK_OVERFLOW_HANDLING.
53347         Reported by Elbert Pol.
53348
53349 2008-08-25  Bruno Haible  <bruno@clisp.org>
53350
53351         * doc/posix-functions/strftime.texi: Fix description of strftime
53352         module.
53353
53354 2008-08-24  Bruno Haible  <bruno@clisp.org>
53355
53356         * tests/uniwidth/test-uc_width2.c: New file.
53357         * tests/uniwidth/test-uc_width2.sh: New file.
53358         * modules/uniwidth/width-tests (Files): Add the new files.
53359         (TESTS): Add uniwidth/test-uc_width2.sh.
53360         (TESTS_ENVIRONMENT): New variable.
53361         (check_PROGRAMS): Add test-uc_width2.
53362         (test_uc_width2_SOURCES): New variable.
53363
53364         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53365         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53366         not 0x00AB.
53367         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53368
53369 2008-08-22  Eric Blake  <ebb9@byu.net>
53370
53371         test-lock, test-tls: mention why a test is skipped
53372         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53373         skipped.
53374         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53375
53376         count-one-bits: relax license
53377         * modules/count-one-bits (License): Relicense to LGPLv2+.
53378         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53379
53380 2008-08-22  Andreas Schwab  <schwab@suse.de>
53381
53382         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53383         Remove spurious space in assignment.
53384
53385 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53386
53387         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53388         Paul Eggert <eggert@CS.UCLA.EDU>.
53389
53390 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53391
53392         * modules/gettext: Add m4/threadlib.m4.
53393
53394 2008-08-19  Eric Blake  <ebb9@byu.net>
53395
53396         test-c-stack: fix compilation failure on FreeBSD 5.0
53397         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53398         headers before <sys/resource.h>.
53399         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53400         the bug.
53401         Reported by Nelson H. F. Beebe.
53402
53403         strverscmp: migrate from "strverscmp.h" to <string.h>
53404         * modules/string (Makefile.am): Add new hooks.
53405         * modules/strverscmp (Files): Remove strverscmp.h.
53406         (Depends-on): Add string.
53407         (configure.ac): Add indicator.
53408         (Include): Mention new header.
53409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53410         defaults.
53411         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53412         results.
53413         * lib/strverscmp.h: Delete.
53414         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53415         * tests/test-strverscmp.c (includes): Adjust client.
53416         * lib/check-version.c (includes): Likewise.
53417         * NEWS: Document the change.
53418
53419         strverscmp: add unit test
53420         * modules/strverscmp-tests: New file.
53421         * tests/test-strverscmp.c: Likewise.
53422
53423 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53424
53425         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53426         regarding Windows crypto stuff, from Mono.
53427
53428 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53429
53430         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53431         if present, for intel RND.  Return error on failures.
53432
53433 2008-08-18  Ben Pfaff  <blp@gnu.org>
53434
53435         gitlog-to-changelog: give better diagnostic for failed pipe-open
53436         * build-aux/gitlog-to-changelog: Improve error message: suggest
53437         that the version of Git may be too old.
53438
53439 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53440
53441         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53442         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53443
53444 2008-08-18  Bruno Haible  <bruno@clisp.org>
53445
53446         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53447         pthread_in_use().
53448
53449 2008-08-18  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/glthread/threadlib.c: Include <pthread.h>.
53452
53453 2008-08-18  Bruno Haible  <bruno@clisp.org>
53454
53455         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53456         glthread_recursive_lock_* macros.
53457         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53458         Fix syntax error.
53459
53460 2008-08-18  Bruno Haible  <bruno@clisp.org>
53461
53462         * lib/glthread/thread.c: Avoid forcing a context switch right after
53463         thread creation.
53464
53465 2008-08-17  Bruno Haible  <bruno@clisp.org>
53466
53467         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53468         * lib/glthread/thread.h: Provide Win32 specific implementation.
53469         * modules/thread (Files): Add lib/glthread/thread.c.
53470         (Depends-on): Add lock.
53471         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53472
53473 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53474
53475         New module 'yield'.
53476         * modules/yield: New file.
53477         * lib/glthread/yield.h: New file.
53478         * m4/yield.m4: New file.
53479         * MODULES.html.sh (Multithreading): Add yield.
53480
53481 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53482
53483         New module 'thread'.
53484         * modules/thread: New file.
53485         * lib/glthread/thread.h: New file.
53486         * m4/thread.m4: New file.
53487         * MODULES.html.sh (Multithreading): Add thread.
53488
53489 2008-08-17  Bruno Haible  <bruno@clisp.org>
53490
53491         * lib/glthread/lock.h: Include <stdlib.h> always.
53492         * lib/glthread/tls.h: Likewise.
53493         * lib/glthread/cond.h: Likewise.
53494
53495 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53496
53497         New module 'cond'.
53498         * modules/cond: New file.
53499         * lib/glthread/cond.h: New file.
53500         * lib/glthread/cond.c: New file.
53501         * m4/cond.m4: New file.
53502         * MODULES.html.sh (Multithreading): Add cond.
53503
53504 2008-08-16  Eric Blake  <ebb9@byu.net>
53505
53506         c-stack: fix regression on Irix 5.3 from 2008-06-21
53507         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53508         sa_sigaction...
53509         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53510         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53511         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53512         * modules/signal (Makefile.am): Use the value.
53513         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53514         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53515         * doc/posix-headers/signal.texi (signal.h): Document this
53516         portability issue.
53517         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53518         Reported by Tom G. Christensen.
53519
53520 2008-08-17  Bruno Haible  <bruno@clisp.org>
53521
53522         New module 'threadlib'.
53523         * modules/threadlib: New file.
53524         * lib/glthread/threadlib.c: New file, extracted from
53525         lib/glthread/lock.c.
53526         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53527         functions.
53528         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53529         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53530         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53531         macros.
53532         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53533         (gl_DISABLE_THREADS): Remove macro.
53534         * modules/lock (Files): Remove build-aux/config.rpath.
53535         (Depends-on): Remove havelib. Add threadlib.
53536         (configure.ac-early): Remove section.
53537         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53538         * modules/tls (Depends-on): Remove lock. Add threadlib.
53539         (Link): New section, copied from threadlib.
53540         * MODULES.html.sh (Multithreading): Add threadlib.
53541
53542 2008-08-14  Bruno Haible  <bruno@clisp.org>
53543
53544         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53545         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53546         glthread_rwlock_unlock, glthread_rwlock_destroy,
53547         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53548         glthread_recursive_lock_destroy): Define as macros always.
53549         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53550         glthread_lock_lock.
53551         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53552         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53553         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53554         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53555         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53556         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53557         (glthread_recursive_lock_lock_func): Renamed from
53558         glthread_recursive_lock_lock.
53559         (glthread_recursive_lock_unlock_func): Renamed from
53560         glthread_recursive_lock_unlock.
53561         (glthread_recursive_lock_destroy_func): Renamed from
53562         glthread_recursive_lock_destroy.
53563
53564 2008-08-14  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/glthread/lock.h: Renamed from lib/lock.h.
53567         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53568         * lib/glthread/tls.h: Renamed from lib/tls.h.
53569         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53570         * lib/fstrcmp.c: Update includes.
53571         * lib/strsignal.c: Update includes.
53572         * modules/lock (Files, Makefile.am): Update.
53573         (Include): Change to "glthread/lock.h".
53574         * modules/tls (Files, Makefile.am): Update.
53575         (Include): Change to "glthread/tls.h".
53576         * tests/test-lock.c: Update includes.
53577         * tests/test-tls.c: Update includes.
53578         * NEWS: Mention the renamed header files.
53579
53580 2008-08-11  Jim Meyering  <meyering@redhat.com>
53581
53582         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53583
53584 2008-08-11  Eric Blake  <ebb9@byu.net>
53585
53586         test-c-stack: avoid C99-ism
53587         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53588         before statement.
53589         Reported by Alain Guibert.
53590
53591 2008-08-10  Jim Meyering  <meyering@redhat.com>
53592
53593         ensure that return value of uinttostr et al are not ignored
53594         * lib/inttostr.h (__GNUC_PREREQ): Define.
53595         (__attribute_warn_unused_result__): Define.
53596         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53597
53598 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53599
53600         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53601         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53602
53603 2008-08-07  Jim Meyering  <meyering@redhat.com>
53604
53605         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53606
53607         * modules/mkstemp (License): Relicense under LGPLv2+.
53608         * modules/tempname (License): Likewise.
53609
53610 2008-08-06  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/poll.c (poll): Further micro-optimization.
53613
53614 2008-08-06  Jim Meyering  <meyering@redhat.com>
53615
53616         inet_pton.c: use locale-independent tolower
53617         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53618         (inet_pton6): Use c_tolower rather than tolower.
53619         * modules/inet_pton (Depends-on): Add c-ctype.
53620
53621 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53622
53623         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53624         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53625
53626 2008-08-06  Jim Meyering  <meyering@redhat.com>
53627
53628         * modules/inet_pton (License): Relicense under LGPLv2+.
53629
53630 2008-08-03  Bruno Haible  <bruno@clisp.org>
53631
53632         Additional non-aborting API for lock and tls.
53633         * lib/lock.h: Include <errno.h>.
53634         (glthread_lock_init): New macro/function.
53635         (gl_lock_init): Define as wrapper around glthread_lock_init.
53636         (glthread_lock_lock): New macro/function.
53637         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53638         (glthread_lock_unlock): New macro/function.
53639         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53640         (glthread_lock_destroy): New macro/function.
53641         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53642         (glthread_rwlock_init): New macro/function.
53643         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53644         (glthread_rwlock_rdlock): New macro/function.
53645         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53646         (glthread_rwlock_wrlock): New macro/function.
53647         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53648         (glthread_rwlock_unlock): New macro/function.
53649         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53650         (glthread_rwlock_destroy): New macro/function.
53651         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53652         (glthread_recursive_lock_init): New macro/function.
53653         (gl_recursive_lock_init): Define as wrapper around
53654         glthread_recursive_lock_init.
53655         (glthread_recursive_lock_lock): New macro/function.
53656         (gl_recursive_lock_lock): Define as wrapper around
53657         glthread_recursive_lock_lock.
53658         (glthread_recursive_lock_unlock): New macro/function.
53659         (gl_recursive_lock_unlock): Define as wrapper around
53660         glthread_recursive_lock_unlock.
53661         (glthread_recursive_lock_destroy): New macro/function.
53662         (gl_recursive_lock_destroy): Define as wrapper around
53663         glthread_recursive_lock_destroy.
53664         (glthread_once): New macro/function.
53665         (gl_once): Define as wrapper around glthread_once.
53666         Update function declarations.
53667         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53668         glthread_rwlock_init. Return error code.
53669         (glthread_rwlock_rdlock_multithreaded): Renamed from
53670         glthread_rwlock_rdlock. Return error code.
53671         (glthread_rwlock_wrlock_multithreaded): Renamed from
53672         glthread_rwlock_wrlock. Return error code.
53673         (glthread_rwlock_unlock_multithreaded): Renamed from
53674         glthread_rwlock_unlock. Return error code.
53675         (glthread_rwlock_destroy_multithreaded): Renamed from
53676         glthread_rwlock_destroy. Return error code.
53677         (glthread_recursive_lock_init_multithreaded): Renamed from
53678         glthread_recursive_lock_init. Return error code.
53679         (glthread_recursive_lock_lock_multithreaded): Renamed from
53680         glthread_recursive_lock_lock. Return error code.
53681         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53682         glthread_recursive_lock_unlock. Return error code.
53683         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53684         glthread_recursive_lock_destroy. Return error code.
53685         (glthread_once_call): Make static.
53686         (glthread_once_multithreaded): Renamed from glthread_once.
53687         * lib/tls.h: Include <errno.h>.
53688         (glthread_tls_key_init): New macro/function.
53689         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53690         (glthread_tls_set): New macro/function.
53691         (gl_tls_set): Define as wrapper around glthread_tls_set.
53692         (glthread_tls_key_destroy): New macro/function.
53693         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53694         Update function declarations.
53695         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53696         glthread_tls_get.
53697         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53698
53699 2008-08-04  Eric Blake  <ebb9@byu.net>
53700
53701         gnumakefile: use space, not TAB, outside of targets
53702         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53703
53704 2008-08-02  Jim Meyering  <meyering@redhat.com>
53705
53706         getdate.y: avoid locale-dependent date parsing failure
53707         In Turkish locales, getdate would fail to recognize keywords
53708         containing a lowercase "i".  The solution is not to rely on
53709         locale-sensitive case-conversion.
53710         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53711         (lookup_word): Use c_toupper in place of toupper.
53712         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53713         Reported by Vefa Bicakci <bicave@superonline.com> in
53714         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53715         * modules/getdate (Depends-on): Add c-ctype.
53716
53717 2008-08-02  Bruno Haible  <bruno@clisp.org>
53718
53719         * gnulib-tool (func_import): When updating or creating a .gitignore
53720         file, prepend each added line with a slash, and ignore leading slashes
53721         from the existing lines.
53722         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53723
53724 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53725
53726         Portability fix for GNU make 3.79.1.
53727         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53728         versions do not understand.
53729
53730 2008-08-01  Bruno Haible  <bruno@clisp.org>
53731
53732         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53733         * tests/test-isnanf.h (zero): New variable.
53734         (main): Avoid literal -0.0f.
53735         * tests/test-isnand.h (zero): New variable.
53736         (main): Avoid literal -0.0.
53737         * tests/test-isnanl.h (zero): New variable.
53738         (main): Avoid literal -0.0L.
53739         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53740         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53741         -0.0, -0.0L.
53742         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53743         (test_signbitd): Avoid literal -0.0.
53744         (test_signbitl): Avoid literal -0.0L.
53745         * tests/test-ceilf1.c (zero): New variable.
53746         (main): Avoid literal -0.0f.
53747         * tests/test-ceill.c (zero): New variable.
53748         (main): Avoid literal -0.0L.
53749         * tests/test-floorf1.c (zero): New variable.
53750         (main): Avoid literal -0.0f.
53751         * tests/test-floorl.c (zero): New variable.
53752         (main): Avoid literal -0.0L.
53753         * tests/test-roundf1.c (zero): New variable.
53754         (main): Avoid literal -0.0f.
53755         * tests/test-round1.c (zero): New variable.
53756         (main): Avoid literal -0.0.
53757         * tests/test-roundl.c (zero): New variable.
53758         (main): Avoid literal -0.0L.
53759         * tests/test-truncf1.c (zero): New variable.
53760         (main): Avoid literal -0.0f.
53761         * tests/test-trunc1.c (zero): New variable.
53762         (main): Avoid literal -0.0.
53763         * tests/test-truncl.c (zero): New variable.
53764         (main): Avoid literal -0.0L.
53765         * tests/test-frexp.c (zero): New variable.
53766         (main): Avoid literal -0.0.
53767         * tests/test-frexpl.c (zero): New variable.
53768         (main): Avoid literal -0.0L.
53769         * tests/test-ldexpl.c (zero): New variable.
53770         (main): Avoid literal -0.0L.
53771         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53772         (zerod, zerol): New variables.
53773         (test_function): Avoid literals -0.0, -0.0L.
53774         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53775         (zerod, zerol): New variables.
53776         (test_function): Avoid literals -0.0, -0.0L.
53777         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53778         (zerod, zerol): New variables.
53779         (test_function): Avoid literals -0.0, -0.0L.
53780         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53781         (zerod, zerol): New variables.
53782         (test_function): Avoid literals -0.0, -0.0L.
53783         * tests/test-strtod.c (zero): New variable.
53784         (main): Avoid literal -0.0.
53785         Reported by Jonathan C. Patschke <jp@centtech.com>.
53786
53787 2008-07-31  Jim Meyering  <meyering@redhat.com>
53788
53789         sha256.h: correct definition of SHA224_DIGEST_SIZE
53790         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53791         Reported by Paulie Pena IV <paulie4@gmail.com>.
53792         Define as 224 / 8, rather than as a literal.
53793         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53794         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53795         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53796
53797 2008-07-31  Bruno Haible  <bruno@clisp.org>
53798
53799         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53800         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53801         Reported by Jonathan Patschke <jp@centtech.com>.
53802
53803 2008-07-31  Bruno Haible  <bruno@clisp.org>
53804
53805         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53806         Reported by Paolo Bonzini <bonzini@gnu.org>.
53807
53808 2008-07-30  Eric Blake  <ebb9@byu.net>
53809
53810         test-strtod: allow compilation without -lm
53811         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53812         Reported by Dennis Clarke <blastwave@gmail.com>.
53813
53814 2008-07-28  Jim Meyering  <meyering@redhat.com>
53815
53816         bootstrap: work also when there are no .po files in po/
53817         * build-aux/bootstrap (update_po_files): Complete the change
53818         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53819
53820 2008-07-27  Jim Meyering  <meyering@redhat.com>
53821
53822         * users.txt: Add zile.
53823
53824 2008-07-26  Ben Pfaff  <blp@gnu.org>
53825
53826         Add missing dependencies on new m4/exponent[fdl].m4 files.
53827         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53828         * modules/isnand-nolibm: Add m4/exponentd.m4.
53829         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53830         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53831         m4/isnan[fdl].m4, because the macros actually used moved.
53832         Reported by Jim Meyering.
53833
53834 2008-07-14  Ben Pfaff  <blp@gnu.org>
53835
53836         Add isinf module.
53837         * lib/isinf.c: New file.
53838         * lib/math.in.h: Define isinf macro if we have decided to replace
53839         it.
53840         * m4/isinf.m4: New file.
53841         * m4/math_h.m4: Initialize and substitute variables for isinf
53842         module.
53843         * modules/isinf: New file.
53844         * modules/isinf-tests: New file.
53845         * modules/math: Add substitutions for new module.
53846         * tests/test-isinf.c: New file.
53847         * doc/posix-functions/isinf.texi: Mention new module.
53848         * MODULES.html.sh: Mention new module.
53849
53850 2008-07-14  Ben Pfaff  <blp@gnu.org>
53851
53852         Factor out some macros for use by additional modules.
53853         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53854         exponentf.m4.
53855         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53856         exponentd.m4.
53857         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53858         file exponentl.m4.
53859         * m4/exponentf.m4: New file.
53860         * m4/exponentd.m4: New file.
53861         * m4/exponentl.m4: New file.
53862         * modules/isnanf: Use new file m4/exponentf.m4.
53863         * modules/isnand: Use new file m4/exponentd.m4.
53864         * modules/isnanl: Use new file m4/exponentl.m4.
53865
53866 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53867
53868         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53869         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53870         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53871         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53872
53873         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53874         readlink on platforms without PATH_MAX.
53875
53876 2008-07-21  Eric Blake  <ebb9@byu.net>
53877
53878         Warn, not fail, on stale version.
53879         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53880
53881         Don't allow installation with stale devel version number.
53882         * top/GNUmakefile (_is-install-target): New macro.
53883         (_curr-ver): Forbid installation with stale version number.
53884
53885 2008-07-20  Bruno Haible  <bruno@clisp.org>
53886
53887         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53888         TESTS_ENVIRONMENT.
53889         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53890
53891 2008-07-20  Bruno Haible  <bruno@clisp.org>
53892
53893         * lib/c-stack.h (c_stack_action): Add documentation.
53894         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53895
53896 2008-07-20  Bruno Haible  <bruno@clisp.org>
53897
53898         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53899         * modules/readlink (License): Likewise.
53900
53901 2008-07-17  Eric Blake  <ebb9@byu.net>
53902
53903         * modules/c-stack (Link): Fix typo.
53904
53905         Make c-stack use libsigsegv, when available.
53906         * modules/c-stack (Depends-on): Add libsigsegv.
53907         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53908         needed.
53909         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53910         (segv_handler, overflow_handler, c_stack_action)
53911         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53912         implementation when libsigsegv is available, but only when using
53913         the library is necessary.
53914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53915         comment, explaining why XSI check fails on Linux.
53916         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53917         * tests/test-c-stack2.sh: Tweak skip message.
53918         * NEWS: Document new link-time requirements.
53919
53920 2008-07-16  Eric Blake  <ebb9@byu.net>
53921
53922         c-stack: Expose false positives when not using libsigsegv.
53923         * modules/c-stack-tests (Files): Expand test.
53924         * tests/test-c-stack.c (main): Add means to conditionally trigger
53925         non-overflow SIGSEGV.
53926         * tests/test-c-stack2.sh: New file.
53927
53928 2008-07-14  Bruno Haible  <bruno@clisp.org>
53929
53930         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53931         Reported by Eric Blake.
53932
53933 2008-07-14  Sam Steingold  <sds@gnu.org>
53934             Bruno Haible  <bruno@clisp.org>
53935
53936         New module libsigsegv.
53937         * modules/libsigsegv: New file.
53938         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53939         modifications.
53940         * MODULES.html.sh (Signal handling): New section.
53941
53942 2008-07-14  Bruno Haible  <bruno@clisp.org>
53943
53944         * modules/unictype/ctype-* (Description): Add the word "function".
53945         Improves the resulting doc in MODULES.html.
53946
53947 2008-07-12  Ben Pfaff  <blp@gnu.org>
53948
53949         Add longlong module.
53950         * modules/longlong: New file.
53951
53952 2008-07-12  Bruno Haible  <bruno@clisp.org>
53953
53954         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53955         to empty.
53956
53957 2008-07-10  Ben Pfaff  <blp@gnu.org>
53958
53959         Add isnan module.
53960         * doc/posix-functions/isnan.texi: Mention new module.
53961         * lib/math.in.h: Define isnan macro if we have decided to replace
53962         it.
53963         * m4/isnan.m4: New file.
53964         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53965         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53966         also.
53967         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53968         redundancy.
53969         * m4/math_h.m4: Initialize and substitute variables for isnan
53970         module.
53971         * modules/isnan: New file.
53972         * modules/isnan-tests: New file.
53973         * modules/math: Add substitutions for new module.
53974         * tests/test-isnan.c: New file.
53975         * MODULES.html.sh: Mention new module.
53976
53977 2008-07-10  Ben Pfaff  <blp@gnu.org>
53978
53979         Add isnanf module.
53980         * lib/isnanf.m4: New file.
53981         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53982         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53983         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53984         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53985         * modules/isnanf: New file.
53986         * modules/isnanf-tests: New file.
53987         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53988         files.
53989         * tests/test-isnanf-nolibm.c: factored most of its contents into
53990         new file tests/test-isnanf.h.
53991         * tests/test-isnanf.h: New file.
53992         * tests/test-isnanf.c: New file.
53993         * MODULES.html.sh: Mention new module.
53994         * doc/glibc-functions/isnanf.texi: Mention new module.
53995
53996 2008-07-10  Ben Pfaff  <blp@gnu.org>
53997
53998         Add isnand module.
53999         * lib/isnand.h: New file.
54000         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54001         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54002         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54003         functionality also.
54004         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54005         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54006         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54007         * modules/isnand: New file.
54008         * modules/isnand-tests: New file.
54009         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54010         files.
54011         * tests/test-isnand-nolibm.c: factored most of its contents into
54012         new file tests/test-isnand.h.
54013         * tests/test-isnand.h: New file.
54014         * tests/test-isnand.c: New file.
54015         * MODULES.html.sh: Mention new module.
54016
54017 2008-07-10  Ben Pfaff  <blp@gnu.org>
54018
54019         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54020         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54021         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54022         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54023         * modules/isnanf-nolibm: Update references to renamed files.
54024         * modules/isnand-nolibm: Likewise.
54025         * modules/isnanf-nolibm-tests: Likewise.
54026         * modules/isnand-nolibm-tests: Likewise.
54027         * lib/frexp.c: Likewise.
54028         * lib/isfinite.c: Likewise.
54029         * lib/signbitd.c: Likewise.
54030         * lib/signbitf.c: Likewise.
54031         * lib/vasnprintf.c: Likewise.
54032         * tests/test-ceilf1.c: Likewise.
54033         * tests/test-ceilf2.c: Likewise.
54034         * tests/test-floorf1.c: Likewise.
54035         * tests/test-floorf2.c: Likewise.
54036         * tests/test-frexp.c: Likewise.
54037         * tests/test-round1.c: Likewise.
54038         * tests/test-round2.c: Likewise.
54039         * tests/test-roundf1.c: Likewise.
54040         * tests/test-strtod.c: Likewise.
54041         * tests/test-trunc1.c: Likewise.
54042         * tests/test-trunc2.c: Likewise.
54043         * tests/test-truncf1.c: Likewise.
54044         * tests/test-truncf2.c: Likewise.
54045         * NEWS: Mention the renamed header files.
54046
54047 2008-07-11  Jim Meyering  <meyering@redhat.com>
54048
54049         vc-list-files: make the last-resort awk code more portable
54050         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54051         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54052         does not support it.
54053
54054 2008-07-10  Eric Blake  <ebb9@byu.net>
54055
54056         Work with tar's bootstrap.
54057         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54058         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54059         an m4 comment.
54060
54061 2008-07-09  Jim Meyering  <meyering@redhat.com>
54062
54063         posix-shell.m4: fix typo that made this test malfunction
54064         * m4/posix-shell.m4: Remove capitalization in variable name.
54065
54066 2008-07-08  Bruno Haible  <bruno@clisp.org>
54067
54068         * m4/onceonly.m4: Update comments.
54069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54070
54071 2008-07-04  Jim Meyering  <meyering@redhat.com>
54072
54073         * users.txt: Add vc-dwim.
54074         (bison, coreutils): Use the gitweb URL.
54075
54076 2008-07-03  Jim Meyering  <meyering@redhat.com>
54077
54078         * users.txt: Add libffcall.  From Sam Steingold.
54079
54080 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54081
54082         getdate.y: do not ignore TZ with relative day, month or year offset
54083         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54084         relative-date-handling, since otherwise, the latter would clobber the
54085         sole output (an updated Start value) of the tz-handling block.
54086         * tests/test-getdate.c: Tests for the fix
54087
54088 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54089
54090         Recognize 'foo_LIBRARIES += libgnu.a'.
54091         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54092         makefile snippet has already specified an installation location,
54093         also using '+='.
54094
54095 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54096
54097         getdate.y: factor out common actions
54098         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54099         Use them in place of open-coded actions.
54100
54101 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54102
54103         Add self-test for getdate module.
54104         * modules/getdate-tests: New file.
54105         * tests/test-getdate.c: New file.
54106
54107 2008-06-29  Bruno Haible  <bruno@clisp.org>
54108
54109         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54110         .gitignore.
54111         Reported by Sylvain Beucler <beuc@beuc.net>.
54112
54113 2008-06-29  Bruno Haible  <bruno@clisp.org>
54114
54115         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54116         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54117
54118 2008-06-29  Bruno Haible  <bruno@clisp.org>
54119
54120         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54121         EXTRA_DIST.
54122         Reported by Sylvain Beucler <beuc@beuc.net>.
54123
54124 2008-06-26  Jim Meyering  <meyering@redhat.com>
54125
54126         make several modules depend on the "open" module
54127         This provides slightly increased consistency when opening-for-write
54128         the name of a non-directory spelled with a trailing slash.
54129         * modules/chdir-safer: Likewise.
54130         * modules/chown: Likewise.
54131         * modules/clean-temp: Likewise.
54132         * modules/copy-file: Likewise.
54133         * modules/fchdir: Likewise.
54134         * modules/fcntl-safer: Likewise.
54135         * modules/pipe: Likewise.
54136         * modules/utime: Likewise.
54137         Prompted by Eric Blake and Bruno Haible.
54138
54139 2008-06-24  Andreas Schwab  <schwab@suse.de>
54140
54141         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54142         literals can be used as initializers for global variables.
54143
54144 2008-06-23  Eric Blake  <ebb9@byu.net>
54145
54146         Make gnulib-cache.m4 easier to diff.
54147         * gnulib-tool (func_import): Allow newlines when reading cached
54148         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54149
54150 2008-06-23  Bruno Haible  <bruno@clisp.org>
54151
54152         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54153         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54154         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54155         m4/signalblocking.m4.
54156         (gl_PREREQ_SIGACTION): Don't invoke it.
54157         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54158         gl_PREREQ_SIG_HANDLER_H.
54159         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54160         Don't check for sigaction here.
54161
54162 2008-06-23  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54165         (install_handlers): Don't set the SA_RESETHAND flag.
54166
54167 2008-06-23  Bruno Haible  <bruno@clisp.org>
54168
54169         * m4/sigaction.m4: Comment fixes.
54170         * lib/signal.in.h: Likewise.
54171
54172 2008-06-23  Eric Blake  <ebb9@byu.net>
54173
54174         Fix typo.
54175         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54176
54177         Avoid SA_ namespace.
54178         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54179         Reported by Ralf Wildenhues.
54180
54181         Avoid test failure due to SA_RESTORER.
54182         * tests/test-sigaction.c (SA_MASK): New macro.
54183         (main): Avoid failing due to extension flags being set.
54184         Reported by Jim Meyering.
54185
54186         Revert use of sig-handler.h in sigprocmask.c.
54187         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54188         it requires the existence of struct sigaction.
54189         * lib/sigprocmask.c (handler_t): Restore typedef.
54190         (rpl_signal, old_handlers): Use local type.
54191
54192 2008-06-22  Bruno Haible  <bruno@clisp.org>
54193
54194         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54195         conditionally.
54196         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54197
54198 2008-06-22  Bruno Haible  <bruno@clisp.org>
54199
54200         * doc/posix-functions/siginterrupt.texi: Move note.
54201
54202         * lib/signal.in.h (SA_RESTART): New macro.
54203         * lib/sigaction.c: Update comment.
54204
54205         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54206
54207         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54208         (gl_PREREQ_SIGPROCMASK): Invoke it.
54209         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54210
54211         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54212
54213         * lib/sigprocmask.c: Update a comment.
54214
54215 2008-06-21  Eric Blake  <ebb9@byu.net>
54216
54217         Use sigaction module rather than signal().
54218         * modules/c-stack (Depends-on): Add sigaction.
54219         * modules/fatal-signal (Depends-on): Likewise.
54220         * modules/nanosleep (Depends-on): Likewise.
54221         * modules/sigprocmask (Files): Add sig-handler.h.
54222         * modules/sigaction (Files): Likewise.
54223         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54224         Eggert.
54225         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54226         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54227         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54228         (init_fatal_signals): Likewise.
54229         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54230         (siginterrupt): Delete fallback.
54231         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54232         instead.
54233         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54234         siginterrupt.
54235
54236         New module sigaction, for mingw.
54237         * modules/sigaction: New module...
54238         * modules/sigaction-tests: ...and its test.
54239         * m4/sigaction.m4: New file.
54240         * lib/sigaction.c: Likewise.
54241         * tests/test-sigaction.c: Likewise.
54242         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54243         * modules/signal (Makefile.am): Likewise.
54244         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54245         needed.
54246         * doc/posix-headers/signal.texi (signal.h): Mention provided
54247         types.
54248         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54249         that sigaction is preferable.
54250         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54251         module.
54252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54253         sigaction.
54254
54255         Improve robustness of sigprocmask by overriding signal.
54256         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54257         is in use.
54258         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54259         (SIGKILL, SIGSTOP): Provide fallbacks.
54260         (rpl_signal): Implement.
54261         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54262         signal can be called inside handlers.
54263
54264         Fix nanosleep module on mingw.
54265         * modules/nanosleep (Depends-on): Add sys_select.
54266         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54267
54268         Fix licensing of sigprocmask.
54269         * modules/raise (License): Relicense as LGPL.
54270
54271 2008-06-21  Bruno Haible  <bruno@clisp.org>
54272
54273         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54274         result if it contains question marks.
54275         Reported by Michael Geng <linux@michaelgeng.de>.
54276
54277 2008-06-19  Bruno Haible  <bruno@clisp.org>
54278
54279         Fix CVS-ism.
54280         * doc/gnulib.texi: Include updated-stamp.texi.
54281         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54282         (updated-stamp.texi): New rule.
54283         (gnulib.info): Depend on it.
54284         * doc/.gitignore: Add updated-stamp.texi.
54285         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54286
54287 2008-06-19  Bruno Haible  <bruno@clisp.org>
54288
54289         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54290         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54291
54292 2008-06-19  Eric Blake  <ebb9@byu.net>
54293
54294         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54295         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54296         Reported by Stepan Kasal.
54297
54298 2008-06-18  Bruno Haible  <bruno@clisp.org>
54299
54300         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54301         Reported by Eric Blake.
54302
54303 2008-06-18  Eric Blake  <ebb9@byu.net>
54304
54305         Work around cygwin 1.5.25 strsignal bug.
54306         * tests/test-strsignal.c: Allow for const char *.
54307         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54308
54309 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54310
54311         * users.txt: Update URL to article and add author/date
54312         information.
54313
54314 2008-06-17  Bruno Haible  <bruno@clisp.org>
54315
54316         New macro gl_DISABLE_THREADS.
54317         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54318         if the user did not pass --enable-threads or --disable-threads option.
54319         (gl_DISABLE_THREADS): New macro.
54320         Reported by Eric Blake <ebb9@byu.net>.
54321
54322 2008-06-17  Bruno Haible  <bruno@clisp.org>
54323
54324         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54325         when the macro ignores it.
54326         Based on a patch by Eric Blake <ebb9@byu.net>.
54327
54328 2008-06-17  Bruno Haible  <bruno@clisp.org>
54329
54330         * modules/tls (License): Change to LGPLv2+.
54331         Reported by Eric Blake.
54332
54333 2008-06-17  Eric Blake  <ebb9@byu.net>
54334
54335         Simplify c-stack prerequisites.
54336         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54337         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54338         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54339         check.
54340         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54341         <sys/resource.h>.
54342
54343         Move c-stack test into testsuite.
54344         * modules/c-stack-tests: New file.
54345         * lib/c-stack.c [DEBUG]: Move test program...
54346         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54347         fail test if sigaltstack is lacking.
54348         * tests/test-c-stack.sh: New driver file.
54349
54350 2008-06-16  Eric Blake  <ebb9@byu.net>
54351
54352         Use raise module consistently.
54353         * modules/fatal-signal (Depends-on): Add raise.
54354         * modules/sigprocmask (Depends-on): Likewise.
54355         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54356         * lib/sigprocmask.c (sigprocmask): Likewise.
54357         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54358         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54359
54360         Fix compliance bug in sigpending.
54361         * lib/sigprocmask.c (sigpending): Return pending array via
54362         parameter, not return value.
54363
54364 2008-06-14  Eric Blake  <ebb9@byu.net>
54365
54366         Improve obstack-printf test code.
54367         * tests/test-obstack-printf.c (test_function): Fix comment, and
54368         simplify usage of obstack_* in macros.  Add a test for coverage.
54369         Reported by Bruno Haible.
54370
54371 2008-06-14  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54374         array size as a constant, not as a const variable.
54375         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54376         AC_USE_SYSTEM_EXTENSIONS.
54377         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54378         Test whether the obstack_printf function actually exists.
54379         * modules/obstack-printf (Depends-on): Add extensions.
54380         (Include): Remove obstack.h.
54381         * modules/obstack-printf-posix (Depends-on): Add extensions.
54382         (Include): Remove obstack.h.
54383
54384 2008-06-13  Eric Blake  <ebb9@byu.net>
54385
54386         Add obstack-printf and obstack-printf-posix modules.
54387         * modules/obstack-printf: New file.
54388         * modules/obstack-printf-posix: Likewise.
54389         * MODULES.html.sh (Misc): Mention them.
54390         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54391         Likewise.
54392         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54393         Likewise.
54394         * modules/stdio (Makefile.am): Accomodate new modules.
54395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54396         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54397         Declare.
54398         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54399         functions.
54400         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54401         (gl_REPLACE_OBSTACK_PRINTF): New macros
54402         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54403         * tests/test-obstack-printf.c: New file.
54404         * modules/obstack-printf-tests: Likewise.
54405         * modules/obstack-printf-posix-tests: Likewise.
54406
54407 2008-06-11  Bruno Haible  <bruno@clisp.org>
54408
54409         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54410         * lib/open.c: Include errno.h.
54411         (open): Fail when attempting to write to a file that has a trailing
54412         slash.
54413         * tests/test-open.c (main): Test against trailing slash bug.
54414         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54415
54416 2008-06-10  Bruno Haible  <bruno@clisp.org>
54417
54418         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54419         for $? to work inside the trap command, with various /bin/sh-s.
54420         * tests/test-vc-list-files-cvs.sh: Likewise.
54421
54422 2008-06-10  Bruno Haible  <bruno@clisp.org>
54423
54424         * lib/acl-internal.h: Don't include gettext.h here.
54425         * lib/set-mode-acl.c: Include gettext.h here.
54426         * lib/copy-acl.c: Likewise.
54427
54428 2008-06-10  Bruno Haible  <bruno@clisp.org>
54429
54430         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54431         * lib/wait-process.c (wait_subprocess): Likewise.
54432         * lib/execute.h (execute): Add termsigp argument.
54433         * lib/execute.c (execute): Likewise.
54434         * lib/csharpcomp.c (compile_csharp_using_pnet,
54435         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54436         * lib/csharpexec.c (execute_csharp_using_pnet,
54437         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54438         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54439         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54440         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54441         is_jikes_present): Update.
54442         * lib/javaexec.c (execute_java_class): Update.
54443         * lib/javaversion.c (execute_and_read_line): Update.
54444         * NEWS: Document the changes.
54445         Reported by Eric Blake.
54446
54447 2008-06-10  Eric Blake  <ebb9@byu.net>
54448
54449         Add missing include.
54450         * tests/test-strstr.c (includes): Add <signal.h>.
54451         * tests/test-strcasestr.c (includes): Likewise.
54452         * tests/test-memmem.c (includes): Likewise.
54453
54454 2008-06-10  Bruno Haible  <bruno@clisp.org>
54455
54456         * lib/wait-process.c (wait_subprocess): Add an assertion.
54457
54458 2008-06-10  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54461
54462 2008-06-10  Bruno Haible  <bruno@clisp.org>
54463
54464         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54465         using alarm().
54466         * tests/test-strcasestr.c (main): Likewise.
54467         * tests/test-strstr.c (main): Likewise.
54468
54469 2008-06-09  Bruno Haible  <bruno@clisp.org>
54470
54471         Work around the Solaris 10 ACE ACLs ABI change.
54472         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54473         declare if ACL_NO_TRIVIAL is present.
54474         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54475         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54476         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54477         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54478         define if ACL_NO_TRIVIAL is present.
54479         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54480         and use the current ABI.
54481         (file_has_acl): Use same #if condition as elsewhere.
54482         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54483         in use, and use the current ABI.
54484         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54485         Reported by Jim Meyering.
54486
54487 2008-06-09  Eric Blake  <ebb9@byu.net>
54488
54489         Work around environments that (stupidly) ignore SIGALRM.
54490         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54491         before using alarm().
54492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54494         Reported by Ian Beckwith <ianb@erislabs.net>.
54495
54496         Produce autobuild blurb earlier in log.
54497         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54498
54499 2008-06-09  Jim Meyering  <meyering@redhat.com>
54500         and OndÅ™ej Vašík  <ovasik@redhat.com>
54501
54502         utimens.c: correct kernel bug work-around
54503         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54504         failure, not success, and the kernel bug we're trying to work
54505         around affects not just the utimensat call, but also the fallback
54506         futimens call.
54507         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54508         not success.
54509         [HAVE_FUTIMENS]: Use the same work-around, here.
54510
54511 2008-06-09  Jim Meyering  <meyering@redhat.com>
54512
54513         add more guards around definition of ACE_-related code
54514         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54515         ALLOW and ACE_OWNER are also defined.
54516
54517 2008-06-08  Bruno Haible  <bruno@clisp.org>
54518
54519         * lib/acl-internal.h: Add me as co-author.
54520         * lib/file-has-acl.c: Likewise.
54521         * lib/set-mode-acl.c: Likewise.
54522         * lib/copy-acl.c: Likewise.
54523
54524 2008-06-08  Bruno Haible  <bruno@clisp.org>
54525
54526         Add support for AIX ACLs.
54527         * lib/acl-internal.h (acl_nontrivial): New declaration.
54528         * lib/file-has-acl.c (acl_nontrivial): New function.
54529         (file_has_acl): Add implementation using AIX 4 ACL API.
54530         * lib/set-mode-acl.c (qset_acl): Likewise.
54531         * lib/copy-acl.c (qcopy_acl): Likewise.
54532
54533 2008-06-08  Bruno Haible  <bruno@clisp.org>
54534
54535         Add support for HP-UX ACLs.
54536         * lib/acl-internal.h (acl_nontrivial): New declaration.
54537         * lib/file-has-acl.c (acl_nontrivial): New function.
54538         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54539         * lib/set-mode-acl.c (qset_acl): Likewise.
54540         * lib/copy-acl.c (qcopy_acl): Likewise.
54541
54542 2008-06-08  Bruno Haible  <bruno@clisp.org>
54543
54544         Add support for Cygwin ACLs.
54545         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54546         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54547         the chmod_or_fchmod call.
54548         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54549
54550 2008-06-08  Bruno Haible  <bruno@clisp.org>
54551
54552         Fix bug with setuid modes in Solaris 10+ code.
54553         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54554         succeeded, when the mode contains some special bits.
54555
54556 2008-06-08  Bruno Haible  <bruno@clisp.org>
54557
54558         Add support for Solaris 7..10 ACLs.
54559         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54560         declarations.
54561         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54562         functions.
54563         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54564         * lib/set-mode-acl.c (qset_acl): Likewise.
54565         * lib/copy-acl.c (qcopy_acl): Likewise.
54566
54567 2008-06-08  Bruno Haible  <bruno@clisp.org>
54568
54569         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54570         declaration.
54571         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54572         (acl_access_nontrivial): Remove MacOS X case.
54573         (file_has_acl): Use acl_extended_nontrivial.
54574         * lib/copy-acl.c (qcopy_acl): Likewise.
54575
54576 2008-06-08  Bruno Haible  <bruno@clisp.org>
54577
54578         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54579
54580 2008-06-08  Jim Meyering  <meyering@redhat.com>
54581
54582         * modules/acl (Maintainer): Add Bruno Haible.
54583
54584 2008-06-07  Bruno Haible  <bruno@clisp.org>
54585
54586         Improve support for Tru64 ACLs.
54587         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54588         ACL on OSF/1.
54589
54590 2008-06-07  Bruno Haible  <bruno@clisp.org>
54591
54592         Add support for MacOS X ACLs.
54593         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54594         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54595         * lib/set-mode-acl.c (qset_acl): Likewise.
54596         * lib/copy-acl.c (qcopy_acl): Likewise.
54597
54598 2008-06-07  Bruno Haible  <bruno@clisp.org>
54599
54600         Fix memory leak introduced on 2008-05-22.
54601         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54602         use.
54603
54604 2008-06-07  Bruno Haible  <bruno@clisp.org>
54605
54606         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54607         to construct an empty ACL.
54608
54609 2008-06-07  Bruno Haible  <bruno@clisp.org>
54610
54611         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54612         precisely.
54613         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54614
54615 2008-06-07  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54618         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54619
54620 2008-06-07  Bruno Haible  <bruno@clisp.org>
54621
54622         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54623         regardless of POSIX.
54624         * doc/posix-functions/_longjmp.texi: Likewise.
54625         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54626         SystemV platform in this case.
54627
54628 2008-06-06  Eric Blake  <ebb9@byu.net>
54629
54630         Document abort() bugs.
54631         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54632
54633         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54634         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54635         sigsetjmp.
54636         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54637         siglongjmp, but only as a macro.
54638         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54639         is obsolete.
54640         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54641
54642         Tweak documentation to cover cygwin argz bugs.
54643         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54644         argz bug fix; no code change needed since no cygwin releases
54645         occurred between the last fix and the bug being tested.
54646         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54647         module and recently fixed cygwin bugs.
54648         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54649         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54650         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54651         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54652         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54653         Likewise.
54654         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54655         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54656         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54657         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54658         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54659         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54660         Likewise.
54661
54662         Avoid gcc warning on cygwin.
54663         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54664         !ACL_NO_TRIVIAL]: Avoid unused variable.
54665
54666 2008-06-05  Eric Blake  <ebb9@byu.net>
54667
54668         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54669         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54670         git-version-gen fails to come up with a version.
54671         Reported by Simon Josefsson.
54672
54673 2008-06-05  Jim Meyering  <meyering@redhat.com>
54674             Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         utimens.c: work around a probable Linux kernel bug
54677         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54678         appears to be a kernel bug that causes utimensat to return 280
54679         instead of 0, indicating success.
54680
54681 2008-06-04  Bruno Haible  <bruno@clisp.org>
54682
54683         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54684         2008-06-01 commit.
54685
54686 2008-06-04  Bruno Haible  <bruno@clisp.org>
54687
54688         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54689         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54690         (file_has_acl): Use it. Save errno afterwards.
54691         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54692
54693 2008-06-03  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54696         draft code. Simplify #ifs.
54697         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54698         Put Solaris code after POSIX-draft code. Fix comments regarding
54699         Solaris 10, HP-UX. Mention Cygwin.
54700         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54701
54702 2008-06-03  Eric Blake  <ebb9@byu.net>
54703
54704         Provide fallback for older kernels.
54705         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54706         Provide runtime fallback if kernel lacks support.
54707         Reported by Mike Frysinger.
54708
54709 2008-06-02  Bruno Haible  <bruno@clisp.org>
54710
54711         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54712         it exists.
54713
54714 2008-06-02  Bruno Haible  <bruno@clisp.org>
54715
54716         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54717         * lib/copy-acl.c (qcopy_acl): Update comment.
54718
54719 2008-06-02  Bruno Haible  <bruno@clisp.org>
54720
54721         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54722         like ACL APIs.
54723
54724 2008-06-02  Bruno Haible  <bruno@clisp.org>
54725
54726         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54727         * tests/test-set-mode-acl.sh: Likewise.
54728         * tests/test-copy-acl.sh: Likewise.
54729         * tests/test-copy-file.sh: Likewise.
54730
54731 2008-06-02  Bruno Haible  <bruno@clisp.org>
54732
54733         * tests/test-file-has-acl.sh: Remove unused code.
54734
54735 2008-06-01  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54738         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54739         messages.
54740         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54741
54742 2008-06-01  Bruno Haible  <bruno@clisp.org>
54743
54744         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54745         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54746         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54747         APIs.
54748         * modules/acl-tests (configure.ac): Remove tests now contained in
54749         m4/acl.m4.
54750
54751 2008-06-02  Jim Meyering  <meyering@redhat.com>
54752
54753         announce-gen: use a better key-server host name
54754         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54755         it may be more consistently reliable.  Suggested by Werner Koch
54756         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54757
54758 2008-06-01  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54761         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54762
54763 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54764
54765         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54766
54767 2008-06-01  Bruno Haible  <bruno@clisp.org>
54768
54769         New ACL tests.
54770         * tests/test-file-has-acl.sh: New file.
54771         * tests/test-file-has-acl.c: New file.
54772         * tests/test-set-mode-acl.sh: New file.
54773         * tests/test-set-mode-acl.c: New file.
54774         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54775         * tests/test-copy-acl.c: New file.
54776         * modules/acl-tests: New file, based on modules/copy-file-tests.
54777         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54778         (Depends-on): Add acl-tests.
54779         (configure.ac): Remove checks.
54780         (Makefile.am): Don't create test-sameacls program here any more.
54781
54782 2008-06-01  Bruno Haible  <bruno@clisp.org>
54783
54784         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54785         * tests/test-sameacls.c: Include progname.h.
54786         (main): Invoke set_program_name. Portability fixes for MacOS X,
54787         Solaris, HP-UX.
54788
54789 2008-06-01  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54792         function.
54793         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54794
54795 2008-06-01  Bruno Haible  <bruno@clisp.org>
54796
54797         * modules/rpmatch (Depends-on): Add strdup.
54798
54799 2008-06-01  Bruno Haible  <bruno@clisp.org>
54800
54801         * lib/pipe.c: Include unistd-safer.h.
54802         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54803         * modules/pipe (Depends-on): Add unistd-safer.
54804
54805 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54806
54807         * modules/autobuild (configure.ac): Call AB_INIT.
54808
54809 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54810
54811         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54812         Suggested by Bruno Haible <bruno@clisp.org>.
54813
54814 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54815
54816         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54817         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54818         <bruno@clisp.org>.
54819
54820 2008-05-29  Eric Blake  <ebb9@byu.net>
54821
54822         Prefer new POSIX 200x interfaces over futimesat.
54823         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54824         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54825         when available.
54826         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54827
54828 2008-05-28  Bruno Haible  <bruno@clisp.org>
54829
54830         * modules/stpcpy (License): Change to LGPLv2+.
54831         Requested by David Lutterkort <dlutter@redhat.com>.
54832
54833 2008-05-27  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54836         current mingw.
54837         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54838
54839 2008-05-27  Bruno Haible  <bruno@clisp.org>
54840
54841         * modules/iconv_open (Link): New section, from module 'iconv'.
54842         * modules/striconv (Link): Likewise.
54843         * modules/striconveh (Link): Likewise.
54844         * modules/xstriconv (Link): Likewise.
54845         * modules/unicodeio (Link): Likewise.
54846         * modules/propername (Link): Likewise.
54847         Reported by Jim Meyering.
54848
54849 2008-05-26  Jim Meyering  <meyering@redhat.com>
54850
54851         sha256: do not artificially restrict buffer length to be < 2^32
54852         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54853         uint32_t to size_t.
54854         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54855         to match.
54856
54857         avoid unaligned access errors, e.g., on sparc
54858         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54859         direct access through a possibly-unaligned uint64* pointer.
54860         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54861         direct access through a possibly-unaligned uint32* pointer.
54862         Prompted by this patch from Tom "spot" Callaway:
54863         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54864
54865         sha512.c: fix typo in comment
54866         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54867
54868 2008-05-25  Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54871         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54872         (Makefile.am): Update lib_SOURCES.
54873
54874 2008-05-25  Bruno Haible  <bruno@clisp.org>
54875
54876         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54877
54878 2008-05-25  Jim Meyering  <meyering@redhat.com>
54879
54880         useless-if-before-free: freed expr may have white-space differences
54881         * build-aux/useless-if-before-free: Recognize cases in which the
54882         freed expression differs from the tested one in embedded white
54883         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54884         $1 was used, so we can't make any regexp shy.  Improved tests now
54885         detect this.
54886
54887         useless-if-before-free: accept white space in the expression.
54888         * build-aux/useless-if-before-free: For now, any white space
54889         in the expression must be identical in the free argument.
54890
54891         useless-if-before-free: efficiency tweak
54892         * build-aux/useless-if-before-free: Make the expression-matching
54893         regexp "shy".
54894         Make the *outer* regexp shy, not the expr-matching one.
54895
54896         update code-in-comment to accept cast of free arg
54897         * build-aux/useless-if-before-free: Update regexp.
54898
54899 2008-05-25  Bruno Haible  <bruno@clisp.org>
54900
54901         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54902         * modules/copy-file-tests (Files, Makefile.am): Update.
54903         * tests/test-copy-file.c (func_test_copy): Update.
54904
54905 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54906
54907         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54908
54909 2008-05-23  Bruno Haible  <bruno@clisp.org>
54910
54911         Improve support for ACLs on OSF/1.
54912         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54913         Remove fallback for unknown flavors of ACLs.
54914
54915 2008-05-22  Bruno Haible  <bruno@clisp.org>
54916
54917         Add support for ACLs on OSF/1.
54918         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54919         replacements.
54920         (acl_free_text): New macro fallback.
54921         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54922         acl_free.
54923         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54924         acl_free_text function. Require AC_C_INLINE.
54925
54926 2008-05-22  Bruno Haible  <bruno@clisp.org>
54927
54928         Make copy_acl work on MacOS X 10.5.
54929         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54930         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54931         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54932         If MODE_INSIDE_ACL, don't assume that every system has the same text
54933         representation for ACLs as FreeBSD.
54934         * lib/copy-acl.c (copy_acl): Add support for platforms with
54935         !MODE_INSIDE_ACL.
54936         * lib/file-has-acl.c (file_has_acl): Likewise.
54937         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54938         FreeBSD, MacOS X, or IRIX, respectively.
54939
54940 2008-05-22  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/acl.h: Don't include <sys/acl.h>.
54943         (GETACLCNT): Move fallback to lib/acl-internal.h.
54944         * lib/acl-internal.h: Include <sys/acl.h> here.
54945         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54946
54947 2008-05-22  Bruno Haible  <bruno@clisp.org>
54948
54949         Split off copy_acl function to separate file.
54950         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54951         * lib/acl.c (copy_acl): Moved function to separate file.
54952         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54953         * modules/acl (Files): Add lib/copy-acl.c.
54954         (Makefiles.am): Augment lib_SOURCES.
54955
54956 2008-05-22  Bruno Haible  <bruno@clisp.org>
54957
54958         * modules/copy-file-tests: New file.
54959         * tests/test-copy-file.sh: New file.
54960         * tests/test-copy-file.c: New file.
54961         * tests/test-copy-file-sameacls.c: New file.
54962
54963 2008-05-22  Eric Blake  <ebb9@byu.net>
54964
54965         Avoid gcc warning.
54966         * tests/test-memcmp.c (main): Pass NULL indirectly.
54967
54968 2008-05-21  Bruno Haible  <bruno@clisp.org>
54969
54970         Add reference doc about ACLs.
54971         * doc/acl-resources.txt: New file.
54972         * doc/acl-cygwin.txt: New file.
54973
54974 2008-05-21  Bruno Haible  <bruno@clisp.org>
54975
54976         Avoid one more warning from gcc.
54977         * lib/vasnprintf.c (IF_LINT): Update comments.
54978         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54979
54980 2008-05-21  Jim Meyering  <meyering@redhat.com>
54981
54982         avoid a warning from gcc
54983         * lib/vasnprintf.c (IF_LINT): Define.
54984         (scale10_round_decimal_long_double):
54985         Use it to avoid a "may be used uninitialized" warning.
54986         (scale10_round_decimal_double): Likewise.
54987
54988 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54989
54990         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54991         declared.
54992
54993 2008-05-20  Bruno Haible  <bruno@clisp.org>
54994
54995         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54996         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54997
54998 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54999
55000         * modules/memcmp-tests: New file.
55001         * tests/test-memcmp.c: New file.
55002
55003 2008-05-19  Bruno Haible  <bruno@clisp.org>
55004
55005         * modules/propername (Notice, configure.ac): Put quoted "..." into
55006         --keyword option.
55007         * lib/propername.h: Update comments accordingly.
55008         Reported by Eric Blake.
55009
55010 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55011
55012         * modules/getpass-gnu (Depends-on): Add fseeko.
55013
55014 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55015
55016         * modules/base64-tests: New file.
55017
55018 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55019
55020         * lib/base64.c (base64_decode_ctx): If a decode context structure
55021         was passed in use it to ignore newlines.  If a context structure
55022         was _not_ passed in, continue to treat newlines as garbage (this
55023         is the historical behavior).  Formerly base64_decode.
55024         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55025         takes a decode context structure.
55026         * lib/base64.h (base64_decode): Macro for four-argument calls.
55027         (base64_decode_alloc): Likewise.
55028         * lib/base64.c (base64_decode_ctx): If a decode context structure
55029         was passed in use it to ignore newlines.  If a context structure
55030         was _not_ passed in, continue to treat newlines as garbage (this
55031         is the historical behavior).  Formerly base64_decode.
55032         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55033         takes a decode context structure.
55034         * lib/base64.h (base64_decode): Macro for four-argument calls.
55035         (base64_decode_alloc): Likewise.
55036
55037 2008-05-19  Jim Meyering  <meyering@redhat.com>
55038
55039         avoid a warning from gcc
55040         * lib/trim.c (IF_LINT): Define.
55041         (trim2): Use it to avoid a "may be used uninitialized" warning.
55042
55043         Fix doc typo.
55044         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55045
55046 2008-05-19  Bruno Haible  <bruno@clisp.org>
55047
55048         * doc/glibc-functions/getpass.texi: Document limits of other
55049         implementations.
55050
55051 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55052             Bruno Haible <bruno@clisp.org>
55053
55054         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55055
55056 2008-05-18  Bruno Haible  <bruno@clisp.org>
55057
55058         * modules/propername: New file, from GNU gettext.
55059         * lib/propername.h: New file, from GNU gettext.
55060         * lib/propername.c: New file, from GNU gettext.
55061         * MODULES.html.sh (Internationalization functions): Add propername.
55062
55063 2008-05-16  Jim Meyering  <meyering@redhat.com>
55064             Bruno Haible  <bruno@clisp.org>
55065
55066         Avoid some warnings from "gcc -Wshadow".
55067         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55068
55069 2008-05-15  Eric Blake  <ebb9@byu.net>
55070
55071         Extend previous patch to cygwin 1.7.0.
55072         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55073         fast implementation in cygwin >= 1.7.0.
55074         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55075         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55076
55077 2008-05-15  Bruno Haible  <bruno@clisp.org>
55078
55079         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55080         implementation in glibc >= 2.9.
55081         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55082         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55083
55084 2008-05-15  Bruno Haible  <bruno@clisp.org>
55085
55086         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55087         (Unicode string functions): Add unilbrk/*.
55088         Reported by Karl Berry.
55089
55090 2008-05-15  Eric Blake  <ebb9@byu.net>
55091
55092         Fix violation of <stdbool.h> replacement in regex.
55093         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55094         * lib/regexec.c (re_search_internal): Likewise.
55095         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55096
55097 2008-05-15  Jim Meyering  <meyering@redhat.com>
55098
55099         avoid distracting test output when git or cvs is not found
55100         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55101         * tests/test-vc-list-files-git.sh: Likewise.
55102
55103 2008-05-15  Eric Blake  <ebb9@byu.net>
55104
55105         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55106         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55107         glibc version.
55108         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55109         * doc/posix-functions/strstr.texi (strstr): Likewise.
55110         * lib/str-two-way.h (MAX): Sychronize with glibc.
55111
55112 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55113
55114         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55115         opr.ctx_type.
55116         (calc_first): Initialize constraint field.
55117         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55118         Fix grammar.
55119         (duplicate_node): Merge constraint field for all node types.
55120         (calc_eclosure_iter): Look at constraint field for all node types.
55121         * lib/regex_internal.c (create_cd_newstate): Don't look at
55122         opr.ctx_type.
55123
55124 2008-05-14  Bruno Haible  <bruno@clisp.org>
55125
55126         Help GCC to do better code generation.
55127         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55128         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55129         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55130         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55131         Declare with attribute 'malloc' if supported.
55132
55133 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55134
55135         use "echo STR|wc -c" rather than unportable "expr length STR"
55136         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55137         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55138
55139 2008-05-14  Jim Meyering  <meyering@redhat.com>
55140
55141         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55142         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55143         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55144         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55145         via Collin Lasse.
55146
55147 2008-05-14  Eric Blake  <ebb9@byu.net>
55148
55149         Avoid quadratic growth in gl_LIBSOURCES.
55150         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55151         Suggested by Bruno Haible.
55152
55153         Test xmemdup0.
55154         * modules/xmemdup0-tests: New file.
55155         * tests/test-xmemdup0.c: Likewise.
55156
55157 2008-05-13  Eric Blake  <ebb9@byu.net>
55158
55159         Split xmemdup0 into its own module.
55160         * modules/xmemdup0: New file.
55161         * lib/xmemdup0.h: Likewise.
55162         * lib/xmemdup0.c: Likewise.
55163         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55164         * lib/xalloc.h (xmemdup0): Remove.
55165         * lib/xmalloc.c (xmemdup0): Likewise.
55166
55167 2008-05-13  Eric Blake  <ebb9@byu.net>
55168             Bruno Haible  <bruno@clisp.org>
55169
55170         Reduce number of forks required during autoconf.
55171         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55172         and gl_LIBSOURCES_DIR.
55173         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55174         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55175         m4_syscmd per file.
55176         <m4_foreach_w>: Move...
55177         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55178
55179 2008-05-13  Eric Blake  <ebb9@byu.net>
55180
55181         * gnulib-tool: Fix various comment typos.
55182
55183 2008-05-12  Bruno Haible  <bruno@clisp.org>
55184
55185         Tailor the linebreaking algorithm.
55186         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55187
55188 2008-05-12  Bruno Haible  <bruno@clisp.org>
55189
55190         Update to Unicode 5.0.0.
55191         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55192         LBP_JV, LBP_JT. Redistribute values.
55193         (unilbrk_table): Change size.
55194         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55195         Unicode TR#14 rev. 22.
55196         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55197         LBP_JV, LBP_JT. Redistribute values.
55198         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55199         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55200         Update.
55201         * lib/unilbrk/lbrkprop1.h: Regenerated.
55202         * lib/unilbrk/lbrkprop2.h: Regenerated.
55203         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55204         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55205         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55206         Likewise.
55207         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55208         Likewise.
55209         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55210         result.
55211         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55212         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55213         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55214         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55215         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55216         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55217
55218 2008-05-11  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55221
55222 2008-05-11  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55225         * modules/unilbrk/gen-lbrk: New file.
55226
55227 2008-05-11  Bruno Haible  <bruno@clisp.org>
55228
55229         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55230         * m4/sha512.m4 (gl_SHA512): Likewise.
55231
55232 2008-05-11  Jim Meyering  <meyering@redhat.com>
55233
55234         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55235         * modules/crypto/sha256: New file.
55236         * modules/crypto/sha512: Likewise.
55237         * lib/sha256.c: Likewise.
55238         * lib/sha256.h: Likewise.
55239         * lib/sha512.c: Likewise.
55240         * lib/sha512.h: Likewise.
55241         * lib/u64.h: Likewise.
55242         * m4/sha256.m4: Likewise.
55243         * m4/sha512.m4: Likewise.
55244         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55245
55246 2008-05-10  Bruno Haible  <bruno@clisp.org>
55247
55248         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55249         (Input/Output <stdio.h>): Add xprintf.
55250         (Signal handling <signal.h>): Add strsignal.
55251         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55252         (Core language properties): Add func.
55253         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55254         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55255         strings.
55256         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55257         (Input/output): New section.
55258         (File system functions): Add openat-die, stat-macros.
55259         (Networking functions): Add sockets.
55260         (Unicode string functions): Add unictype/*.
55261         (Support for building libraries and executables): Add gperf.
55262         (Support for building documentation): Add agpl-3.0.
55263         (Misc): Add nocrash.
55264
55265 2008-05-10  Bruno Haible  <bruno@clisp.org>
55266
55267         * modules/unictype/gen-ctype: New file.
55268
55269 2008-05-10  Jim Meyering  <meyering@redhat.com>
55270
55271         Make chdir-safer.c more efficient on a system with no symlinks.
55272         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55273         also if ELOOP is zero.  Suggested by Bruno Haible.
55274
55275         Make chdir-safer.c slightly safer.
55276         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55277         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55278
55279         Avoid compile failure on systems without ELOOP (like mingw).
55280         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55281         Reported by Bruno Haible.
55282
55283 2008-05-10  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55286         (is_utf8_encoding): Use a case-insensitive comparison.
55287         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55288         streq.
55289
55290 2008-05-10  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55293         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55294         * lib/unilbrk/ulc-common.h (iconv_string_length,
55295         iconv_string_keeping_offsets): Remove declarations.
55296         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55297         Don't include <iconv.h>, streq.h, xsize.h.
55298         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55299         conversion.
55300         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55301         <iconv.h>, streq.h, xsize.h.
55302         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55303         conversion.
55304         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55305         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55306         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55307         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55308
55309 2008-05-10  Bruno Haible  <bruno@clisp.org>
55310
55311         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55312         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55313
55314         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55315         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55316
55317         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55318         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55319
55320         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55321         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55322
55323         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55324         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55325
55326         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55327         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55328
55329         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55330         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55331
55332         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55333         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55334
55335 2008-05-10  Bruno Haible  <bruno@clisp.org>
55336
55337         Split up 'linebreak' module.
55338         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55339         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55340         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55341         modifications.
55342         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55343         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55344         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55345         lib/linebreak.c.
55346         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55347         lib/linebreak.c.
55348         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55349         lib/linebreak.c.
55350         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55351         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55352         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55353         lib/linebreak.c.
55354         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55355         lib/linebreak.c.
55356         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55357         lib/linebreak.c.
55358         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55359         lib/linebreak.c.
55360         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55361         lib/linebreak.c.
55362         * modules/unilbrk/base: New file.
55363         * modules/unilbrk/tables: New file.
55364         * modules/unilbrk/u8-possible-linebreaks: New file.
55365         * modules/unilbrk/u16-possible-linebreaks: New file.
55366         * modules/unilbrk/u32-possible-linebreaks: New file.
55367         * modules/unilbrk/ulc-common: New file.
55368         * modules/unilbrk/ulc-possible-linebreaks: New file.
55369         * modules/unilbrk/u8-width-linebreaks: New file.
55370         * modules/unilbrk/u16-width-linebreaks: New file.
55371         * modules/unilbrk/u32-width-linebreaks: New file.
55372         * modules/unilbrk/ulc-width-linebreaks: New file.
55373         * lib/linebreak.h: Remove file.
55374         * lib/linebreak.c: Remove file.
55375         * m4/linebreak.m4: Remove file.
55376         * modules/linebreak: Remove file.
55377         * NEWS: Mention the changes.
55378
55379 2008-05-09  Eric Blake  <ebb9@byu.net>
55380
55381         Add xmemdup0.
55382         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55383         implementation.
55384         * lib/xmalloc.c (xmemdup0): New C implementation.
55385
55386 2008-05-08  Bruno Haible  <bruno@clisp.org>
55387
55388         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55389
55390 2008-05-07  Eric Blake  <ebb9@byu.net>
55391
55392         Support cross-compilation of <wctype.h>.
55393         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55394         AC_CACHE_CHECK.
55395
55396 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55397
55398         * build-aux/vc-list-files: Add support for bzr.
55399
55400 2008-05-03  Jim Meyering  <meyering@redhat.com>
55401
55402         avoid failed assertion with tight malloc
55403         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55404
55405 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55406
55407         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55408         are needed from arpa/inet.h.
55409         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55410         Reported by Bruno Haible.
55411
55412 2008-05-02  Jim Meyering  <meyering@redhat.com>
55413
55414         avoid compilation error on FreeBSD 6
55415         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55416
55417 2008-05-01  Jim Meyering  <meyering@redhat.com>
55418
55419         useless-if-before-free: correct --help's exit status description
55420         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55421         for one or more matches, etc.  Reported by Bruno Haible.
55422
55423         vc-list-files: make the stand-alone gnulib test work
55424         * modules/vc-list-files-tests (configure.ac):
55425         Define and AC_SUBST abs_aux_dir.
55426         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55427         $(abs_top_srcdir) to each script and having each of them
55428         duplicate the work of setting PATH, set PATH here, using
55429         the new variable, abs_aux_dir instead.
55430         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55431         * tests/test-vc-list-files-git.sh: Likewise.
55432         Reported by Bruno Haible.
55433
55434 2008-05-01  Bruno Haible  <bruno@clisp.org>
55435
55436         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55437         reallocation. Rename 'done' to 'found_delimiter'.
55438
55439 2008-05-01  Jim Meyering  <meyering@redhat.com>
55440
55441         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55442         * build-aux/vc-list-files: Use `...`, not $(...).
55443
55444 2008-04-30  Jim Meyering  <meyering@redhat.com>
55445
55446         add tests for vc-list-files
55447         * modules/vc-list-files-tests: New module.
55448         * tests/test-vc-list-files-cvs.sh: New file.
55449         * tests/test-vc-list-files-git.sh: New file.
55450
55451         avoid a warning from gcc
55452         * lib/getndelim2.c (IF_LINT): Define.
55453         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55454
55455         vc-list-files: work properly with build-aux/cvsu, too
55456         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55457         to all cvs-based clauses.
55458
55459         vc-list-files: work properly in the CVS+awk case, too
55460         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55461
55462         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55463         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55464         take more than one file argument, so .  Add quotes, just in case $dir
55465         ever contains a shell meta-character.  Prompted by Soren Hansen in
55466         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55467
55468 2008-04-29  Eric Blake  <ebb9@byu.net>
55469
55470         Optimize getndelim2 to use block operations when possible.
55471         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55472         freadseek, and memchr2.
55473         * lib/getndelim2.c (getndelim2): Use them for block reads.
55474
55475 2008-04-29  Bruno Haible  <bruno@clisp.org>
55476
55477         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55478         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55479         * modules/inet_ntop (Depends-on): Add extensions.
55480         * modules/inet_pton (Depends-on): Likewise.
55481         Reported by Simon Josefsson.
55482
55483 2008-04-29  Jim Meyering  <meyering@redhat.com>
55484
55485         When the is more than one match in a block, match all of them.
55486         * build-aux/useless-if-before-free: Iterate through each block
55487         until there are no more matches.
55488
55489         Fix broken useless-if-before-free script.
55490         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55491         the expression to match cast of argument to free-like function.
55492
55493 2008-04-29  Eric Blake  <ebb9@byu.net>
55494
55495         Use new header.
55496         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55497
55498 2008-04-29  Jim Meyering  <meyering@redhat.com>
55499
55500         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55501         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55502         by gnulib to exist and to declare e.g., inet_ntop.
55503         Don't include "inet_ntop.h", now removed.
55504
55505         * m4/arpa_inet_h.m4: Remove trailing blanks.
55506
55507 2008-04-29  Eric Blake  <ebb9@byu.net>
55508
55509         Silence valgrind on safe reads beyond potential array bounds.
55510         * lib/rawmemchr.valgrind: New file.
55511         * lib/strchrnul.valgrind: Likewise.
55512         * modules/rawmemchr (Files): Distribute new file.
55513         * modules/strchrnul (Files): Likewise.
55514         Suggested by Bruno Haible.
55515
55516 2008-04-29  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55519         (inet_ntop, inet_pton): Change portability warning's wording.
55520         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55521         Invoke gl_CHECK_NEXT_HEADERS.
55522         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55523         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55524         set ARPA_INET_H.
55525         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55526         * modules/arpa_inet (Description): No longer only for systems that
55527         lack it.
55528         (Depends-on): Add include_next.
55529         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55530         HAVE_ARPA_INET_H.
55531
55532 2008-04-29  Jim Meyering  <meyering@redhat.com>
55533
55534         * modules/mkdir (License): Re-license as LGPLv2+.
55535
55536 2008-04-29  Bruno Haible  <bruno@clisp.org>
55537
55538         * modules/rawmemchr (Maintainer): Set to Eric.
55539         * modules/strchrnul (Maintainer): Likewise.
55540
55541 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55542
55543         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55544         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55545
55546         * modules/arpa_inet (arpa/inet.h): Use them.
55547
55548 2008-04-28  Eric Blake  <ebb9@byu.net>
55549
55550         Test getndelim2.
55551         * modules/getndelim2-tests: New file.
55552         * tests/test-getndelim2.c: Likewise.
55553         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55554         stream.
55555         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55556
55557         * MODULES.html.sh: Document new module.
55558
55559 2008-04-20  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/c-stack.c (die): Use raise.
55562         * modules/c-stack (Depends-on): Add raise.
55563
55564 2008-04-28  Bruno Haible  <bruno@clisp.org>
55565
55566         Expect rpmatch to be declared.
55567         * lib/yesno.c (rpmatch): Remove declaration.
55568
55569         Declare rpmatch.
55570         * lib/stdlib.in.h (rpmatch): New declaration.
55571         * lib/rpmatch.c: Include <stdlib.h> first.
55572         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55573         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55575         HAVE_RPMATCH.
55576         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55577         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55578         (Include): Set to <stdlib.h>.
55579         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55580         HAVE_RPMATCH.
55581         * NEWS: Document the change.
55582
55583 2008-04-28  Bruno Haible  <bruno@clisp.org>
55584
55585         Change rpmatch to use nl_langinfo when appropriate.
55586         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55587         (N_): New macro.
55588         (localized_pattern): New function/macro.
55589         (try): Remove match, nomatch arguments. Copy the pattern into safe
55590         memory before caching it.
55591         (rpmatch): Use localized_pattern. Add translator comments.
55592         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55593         Suggested by Eric Blake.
55594         * modules/rpmatch (Depends-on): Add stdbool.
55595
55596 2008-04-28  Eric Blake  <ebb9@byu.net>
55597
55598         Add rawmemchr module, matching glibc.
55599         * modules/string (Makefile.am): New indicator.
55600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55601         * lib/string.in.h (rawmemchr): Declare when appropriate.
55602         * modules/rawmemchr: New file.
55603         * m4/rawmemchr.m4: Likewise.
55604         * lib/rawmemchr.c: Likewise.
55605         * modules/rawmemchr-tests: Likewise.
55606         * tests/test-rawmemchr.c: Likewise.
55607         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55608         module.
55609         * modules/strchrnul (Depends-on): Add rawmemchr.
55610         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55611
55612         Whitespace cleanup.
55613         * tests/test-strchrnul.c: Reindent.
55614         * lib/strchrnul.c: Likewise.
55615
55616         Optimize and test strchrnul.
55617         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55618         * modules/strchrnul-tests: New file.
55619         * tests/test-strchrnul.c: Likewise.
55620
55621         Remove intprops dependency.
55622         * modules/memchr (Depends-on): Remove intprops.
55623         * modules/memrchr (Depends-on): Likewise.
55624         * modules/memchr2 (Depends-on): Likewise.
55625         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55626         * lib/memrchr.c (__memrchr): Likewise.
55627         * lib/memrchr2.c (memchr2): Likewise.
55628         Reported by Simon Josefsson.
55629
55630 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55631
55632         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55633         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55634
55635 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55636
55637         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55638
55639         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55640
55641         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55642
55643         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55644         declarations.
55645         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55646
55647         * m4/inet_pton.m4: Don't check for header files.
55648
55649         * m4/inet_ntop.m4: Don't check for header files.
55650
55651 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55652
55653         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55654         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55655         trigger for cygwin).
55656         Reported by Bruno Haible  <bruno@clisp.org>.
55657
55658 2008-04-28  Bruno Haible  <bruno@clisp.org>
55659
55660         * doc/posix-functions/strdup.texi: Mention mingw problem.
55661
55662 2008-04-27  Bruno Haible  <bruno@clisp.org>
55663
55664         * modules/stat-time-tests (Depends-on): Add sleep.
55665         * tests/test-stat-time.c (force_unlink): New function.
55666         (cleanup): Use it.
55667         (test_mtime): Remove the ctime related tests.
55668         (test_ctime): New function, containing the ctime related tests.
55669         (main): Call test_ctime, except on native Windows platforms.
55670
55671 2008-04-27  Bruno Haible  <bruno@clisp.org>
55672
55673         * lib/rpmatch.c (rpmatch): Add some comments.
55674         Reported by James Youngman <jay@gnu.org>.
55675
55676 2008-04-27  Bruno Haible  <bruno@clisp.org>
55677
55678         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55679         quiet NaNs.
55680
55681 2008-04-27  Bruno Haible  <bruno@clisp.org>
55682
55683         Make test-yesno.sh work on mingw.
55684         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55685         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55686         (main): Set stdin to binary mode.
55687         * modules/yesno-tests (Depends-on): Add binary-io.
55688
55689 2008-04-27  Bruno Haible  <bruno@clisp.org>
55690
55691         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55692         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55693         argument that lie outside the IEEE 854 domain.
55694         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55695         (gl_ISFINITE): Use it.
55696         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55697
55698 2008-04-27  Bruno Haible  <bruno@clisp.org>
55699
55700         Allow local renaming in config.h.
55701         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55702
55703 2008-04-27  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/memchr.c (__memchr): Change type of 'i'.
55706         * lib/memchr2.c (memchr2): Likewise.
55707
55708 2008-04-26  Eric Blake  <ebb9@byu.net>
55709         and Bruno Haible  <bruno@clisp.org>
55710
55711         Optimize and test memrchr.
55712         * modules/memrchr (Depends-on): Add intprops.
55713         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55714         * modules/memrchr-tests: New file.
55715         * tests/test-memrchr.c: New file.
55716
55717 2008-04-26  Bruno Haible  <bruno@clisp.org>
55718
55719         Add tentative support for DragonFly BSD.
55720         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55721         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55722         fp.
55723         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55724         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55725         * lib/fpurge.c (fpurge): Likewise.
55726         * lib/freadable.c (freaadable): Likewise.
55727         * lib/freadahead.c (freadahead): Likewise.
55728         * lib/freading.c (freading): Likewise.
55729         * lib/freadptr.c (freadptr): Likewise.
55730         * lib/freadseek.c (freadptrinc): Likewise.
55731         * lib/fseeko.c (fseeko): Likewise.
55732         * lib/fseterr.c (fseterr): Likewise.
55733         * lib/fwritable.c (fwritable): Likewise.
55734         * lib/fwriting.c (fwriting): Likewise.
55735
55736 2008-04-26  Bruno Haible  <bruno@clisp.org>
55737
55738         * lib/stdio-impl.h: New file.
55739         * lib/fbufmode.c: Include stdio-impl.h.
55740         (fbufmode): Use fp_, remove redundant #defines.
55741         * lib/fflush.c: Include stdio-impl.h.
55742         (clear_ungetc_buffer): Remove redundant #defines.
55743         * lib/fpurge.c: Include stdio-impl.h.
55744         (fpurge): Remove redundant #defines.
55745         * lib/freadable.c: Include stdio-impl.h.
55746         (freadable): Remove redundant #defines.
55747         * lib/freadahead.c: Include stdio-impl.h.
55748         (freadahead): Remove redundant #defines.
55749         * lib/freading.c: Include stdio-impl.h.
55750         (freading): Remove redundant #defines.
55751         * lib/freadptr.c: Include stdio-impl.h.
55752         (freadptr): Remove redundant #defines.
55753         * lib/freadseek.c: Include stdio-impl.h.
55754         (freadptrinc): Remove redundant #defines.
55755         * lib/fseeko.c: Include stdio-impl.h.
55756         (rpl_fseeko): Remove redundant #defines.
55757         * lib/fseterr.c: Include stdio-impl.h.
55758         (fseterr): Remove redundant #defines.
55759         * lib/fwritable.c: Include stdio-impl.h.
55760         (fwritable: Remove redundant #defines.
55761         * lib/fwriting.c: Include stdio-impl.h.
55762         (fwriting): Remove redundant #defines.
55763         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55764         * modules/fflush (Files): Likewise.
55765         * modules/fpurge (Files): Likewise.
55766         * modules/freadable (Files): Likewise.
55767         * modules/freadahead (Files): Likewise.
55768         * modules/freading (Files): Likewise.
55769         * modules/freadptr (Files): Likewise.
55770         * modules/freadseek (Files): Likewise.
55771         * modules/fseeko (Files): Likewise.
55772         * modules/fseterr (Files): Likewise.
55773         * modules/fwritable (Files): Likewise.
55774         * modules/fwriting (Files): Likewise.
55775
55776 2008-04-26  Bruno Haible  <bruno@clisp.org>
55777
55778         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55779         restore_seek_optimization, update_fpos_cache): New functions, extracted
55780         from rpl_fflush.
55781         (rpl_fflush): Use them.
55782         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55783         (gl_REPLACE_FFLUSH): Use it.
55784
55785 2008-04-26  Bruno Haible  <bruno@clisp.org>
55786
55787         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55788         on Solaris.
55789         * tests/test-xstrtoimax.sh: Likewise.
55790         * tests/test-xstrtoumax.sh: Likewise.
55791         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55792
55793 2008-04-26  Bruno Haible  <bruno@clisp.org>
55794
55795         * modules/memchr-tests: New file.
55796         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55797
55798 2008-04-26  Eric Blake  <ebb9@byu.net>
55799             Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/memchr.c: Include intprops.h.
55802         (__memchr): Optimize parallel detection of matching bytes. Rename local
55803         variables. Add explanatory comments.
55804
55805 2008-04-26  Bruno Haible  <bruno@clisp.org>
55806
55807         Fix module 'memchr', broken since 2000-10-28.
55808         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55809
55810 2008-04-26  Bruno Haible  <bruno@clisp.org>
55811
55812         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55813         comments.
55814
55815 2008-04-25  Eric Blake  <ebb9@byu.net>
55816
55817         Use native fstatat on cygwin 1.7.0.
55818         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55819         first.
55820
55821 2008-04-23  Eric Blake  <ebb9@byu.net>
55822
55823         Improve memchr2 performance.
55824         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55825         NUL bytes.
55826         * modules/memchr2 (Depends-on): Use intprops.h.
55827
55828 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55829
55830         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55831         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55832         <blp@cs.stanford.edu>.
55833
55834 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55835
55836         * lib/arpa_inet.in.h: New file.
55837
55838         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55839         (Makefile.am): Sed in substitute header file.
55840
55841         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55842         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55843
55844         * modules/inet_ntop (configure.ac): Use
55845         gl_ARPA_INET_MODULE_INDICATOR.
55846
55847         * modules/inet_pton (configure.ac): Use
55848         gl_ARPA_INET_MODULE_INDICATOR.
55849
55850 2008-04-22  Jim Meyering  <meyering@redhat.com>
55851
55852         * modules/verify (License): Re-license as LGPLv2+.
55853
55854 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55855
55856         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55857         parameter to void* as per POSIX standard (MinGW uses char*).
55858
55859 2008-04-21  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55862         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55863         Define to replacements if REPLACE_ISWCNTRL is 1.
55864         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55865         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55866         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55867         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55868         what it fixes.
55869         * doc/posix-functions/iswalpha.texi: Likewise.
55870         * doc/posix-functions/iswblank.texi: Likewise.
55871         * doc/posix-functions/iswcntrl.texi: Likewise.
55872         * doc/posix-functions/iswdigit.texi: Likewise.
55873         * doc/posix-functions/iswgraph.texi: Likewise.
55874         * doc/posix-functions/iswlower.texi: Likewise.
55875         * doc/posix-functions/iswprint.texi: Likewise.
55876         * doc/posix-functions/iswpunct.texi: Likewise.
55877         * doc/posix-functions/iswspace.texi: Likewise.
55878         * doc/posix-functions/iswupper.texi: Likewise.
55879         * doc/posix-functions/iswxdigit.texi: Likewise.
55880         Reported by Alain Guibert.
55881
55882 2008-04-21  Bruno Haible  <bruno@clisp.org>
55883
55884         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55885         Patch by Alain Guibert.
55886
55887 2008-04-21  Bruno Haible  <bruno@clisp.org>
55888
55889         Fix test failures on mingw.
55890         * tests/test-xstrtol.c (print_no_progname): New function.
55891         (main): Install it in error_print_progname hook.
55892         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55893         * tests/test-xstrtoimax.sh: Likewise.
55894         * tests/test-xstrtoumax.sh: Likewise.
55895
55896 2008-04-21  Bruno Haible  <bruno@clisp.org>
55897
55898         Fix test failure on mingw.
55899         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55900
55901 2008-04-21  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55904         Actually assign a value.
55905
55906 2008-04-20  Bruno Haible  <bruno@clisp.org>
55907
55908         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55909         take 2.
55910         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55911         'canonicalize-lgpl' module is also used.
55912         * lib/canonicalize-lgpl.c: Undo last change.
55913         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55914
55915 2008-04-20  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55918         config.h. Provide _mkdir based fallback for mingw.
55919         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55920         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55921         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55922         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55923         rather than defining mkdir in config.h.
55924         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55925         (gl_SYS_STAT_H_DEFAULTS): New macro.
55926         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55927         HAVE_IO_H any more.
55928         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55929         HAVE_DECL_MKDIR and HAVE_IO_H.
55930
55931 2008-04-20  Bruno Haible  <bruno@clisp.org>
55932
55933         * lib/isapipe.c: Port to native Windows platforms.
55934
55935 2008-04-20  Bruno Haible  <bruno@clisp.org>
55936
55937         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55938
55939 2008-04-21  Eric Blake  <ebb9@byu.net>
55940
55941         Work around preprocessors that don't handle UINTMAX_MAX.
55942         * lib/memchr2.c (memchr2): Avoid embedded #if.
55943         Reported by Alain Guibert, fix suggested by Bruno Haible.
55944
55945 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55946
55947         * doc/posix-functions/strftime.texi (strftime): Explain better
55948         Windows incompatibility.  Suggested by Micah Cowan
55949         <micah@cowan.name>.
55950
55951 2008-04-20  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55954         unistr/u8-mblen.
55955
55956 2008-04-20  Bruno Haible  <bruno@clisp.org>
55957
55958         Fix test failure on platforms with non-GNU iconv.
55959         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55960         (U_TO_U8): Use it, rather than u16_to_u8.
55961         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55962         units at the end of the input string.
55963         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55964
55965 2008-04-20  Bruno Haible  <bruno@clisp.org>
55966
55967         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55968         when the resulting length is 0.
55969         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55970
55971 2008-04-20  Bruno Haible  <bruno@clisp.org>
55972
55973         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55974         works.
55975         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55976
55977 2008-04-20  Bruno Haible  <bruno@clisp.org>
55978
55979         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55980         * modules/tsearch-tests (configure.ac): Test for initstate function.
55981
55982 2008-04-20  Bruno Haible  <bruno@clisp.org>
55983
55984         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55985         for nlink_t if missing.
55986         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55987
55988 2008-04-19  Bruno Haible  <bruno@clisp.org>
55989
55990         Work around snprintf bug on Linux libc5.
55991         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55993         gl_SNPRINTF_SIZE1.
55994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55995         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55996         that test failed.
55997         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55998         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55999         * modules/snprintf (Files): Add m4/printf.m4.
56000         * modules/vsnprintf (Files): Likewise.
56001         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56002         * doc/posix-functions/vsnprintf.texi: Likewise.
56003
56004 2008-04-19  Bruno Haible  <bruno@clisp.org>
56005
56006         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56007         from 0.0058 to less than 10^-7.
56008
56009 2008-04-19  Bruno Haible  <bruno@clisp.org>
56010
56011         Fix rounding when a precision is given.
56012         * lib/vasnprintf.c (is_borderline): New function.
56013         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56014         9...9x.
56015         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56016         %e, %g.
56017         * tests/test-vasprintf-posix.c (test_function): Likewise.
56018         * tests/test-snprintf-posix.h (test_function): Likewise.
56019         * tests/test-sprintf-posix.h (test_function): Likewise.
56020         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56021         * tests/test-printf-posix.h (test_function): Likewise.
56022         * tests/test-printf-posix.output: Update.
56023         Reported by John Darrington <john@darrington.wattle.id.au> via
56024         Ben Pfaff <blp@cs.stanford.edu>.
56025
56026 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56027
56028         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56029         Suggested by Bruno Haible <bruno@clisp.org>.
56030
56031 2008-04-17  Bruno Haible  <bruno@clisp.org>
56032
56033         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56034         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56035         implementation.
56036         Patch by Bruce Merry <bmerry@gmail.com>.
56037
56038 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56039
56040         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56041         doesn't work under Windows.
56042
56043 2008-04-16  Bruno Haible  <bruno@clisp.org>
56044
56045         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56046         New macros.
56047         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56048         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56049         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56050         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56051         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56052         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56053         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56054         macros.
56055         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56056         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56057         Northern Sotho, Uighur.
56058
56059 2008-04-16  Bruno Haible  <bruno@clisp.org>
56060
56061         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56062         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56063         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56064         Reported by Daniel Bergström <daniel@octocode.com>.
56065
56066 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56067             Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56070         function.
56071         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56072         New functions, mostly extracted from gl_locale_name_default.
56073         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56074
56075 2008-04-16  Eric Blake  <ebb9@byu.net>
56076
56077         Adjust strtod detection to catch glibc 2.7 bug.
56078         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56079         Reported by John Gatewood Ham.
56080
56081 2008-04-16  Bruno Haible  <bruno@clisp.org>
56082
56083         Add tentative support for Linux libc5.
56084         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56085         * lib/fpurge.c (fpurge): Likewise.
56086         * lib/freadable.c (freadable): Likewise.
56087         * lib/freadahead.c (freadahead): Likewise.
56088         * lib/freading.c (freading): Likewise.
56089         * lib/freadptr.c (freadptr): Likewise.
56090         * lib/freadseek.c (freadptrinc): Likewise.
56091         * lib/fseeko.c (rpl_fseeko): Likewise.
56092         * lib/fseterr.c (fseterr): Likewise.
56093         * lib/fwritable.c (fwritable): Likewise.
56094         * lib/fwriting.c (fwriting): Likewise.
56095         Reported by Alain Guibert <alguibert+bts@free.fr>.
56096
56097 2008-04-15  Bruno Haible  <bruno@clisp.org>
56098
56099         * modules/mathl (configure.ac): Define module indicator.
56100
56101 2008-04-15  Bruno Haible  <bruno@clisp.org>
56102
56103         * lib/logl.c (logl): Remove unused variables.
56104
56105 2008-04-15  Bruno Haible  <bruno@clisp.org>
56106
56107         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56108         fails.
56109
56110 2008-04-15  Bruno Haible  <bruno@clisp.org>
56111
56112         * lib/trim.c (trim2): Fix argument of isspace() macro.
56113
56114 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56115
56116         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56117         to 0.
56118         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56119
56120 2008-04-14  Bruno Haible  <bruno@clisp.org>
56121
56122         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56123         AC_LANG_PROGRAM argument.
56124         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56125         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56126         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56127         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56128         * m4/math_h.m4 (gl_MATH_H): Likewise.
56129         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56130         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56131         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56132         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56133         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56134         * m4/regex.m4 (gl_REGEX): Likewise.
56135         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56136         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56138         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56139         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56140         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56141         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56142         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56143
56144 2008-04-14  Jim Meyering  <meyering@redhat.com>
56145
56146         test-strtod: fix typos: s/abs/fabs/
56147         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56148
56149 2008-04-13  Bruno Haible  <bruno@clisp.org>
56150
56151         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56152         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56153         module is also used and while not building the reloc-wrapper.
56154
56155 2008-04-13  Bruno Haible  <bruno@clisp.org>
56156
56157         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56158
56159 2008-04-13  Bruno Haible  <bruno@clisp.org>
56160
56161         Fix AIX compilation failure introduced on 2008-04-02.
56162         * tests/test-frexp.c (exp): Undefine before redefining.
56163         * tests/test-frexpl.c (exp): Likewise.
56164
56165 2008-04-13  Bruno Haible  <bruno@clisp.org>
56166
56167         Work around a HP-UX stdio bug.
56168         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56169         * tests/test-ftello.c (main): Likewise.
56170         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56171         * doc/posix-functions/ftello.texi: Likewise.
56172
56173 2008-04-13  Bruno Haible  <bruno@clisp.org>
56174
56175         Make test-signbit pass on HP-UX/hppa.
56176         * tests/test-signbit.c (minus_zerol): New variable.
56177         (test_signbitl): Use it.
56178
56179 2008-04-13  Bruno Haible  <bruno@clisp.org>
56180
56181         Make truncl work on OSF/1 4.0.
56182         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56183         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56184         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56186         HAVE_DECL_TRUNCL.
56187         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56188         HAVE_DECL_TRUNCL.
56189         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56190
56191 2008-04-13  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56194
56195 2008-04-13  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56198         expression, so as to avoid HP-UX 11 cc compiler bug.
56199
56200 2008-04-13  Bruno Haible  <bruno@clisp.org>
56201
56202         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56203
56204 2008-04-13  Bruno Haible  <bruno@clisp.org>
56205
56206         * lib/git-merge-changelog.c: Remove empty declaration outside of
56207         functions.
56208
56209 2008-04-13  Bruno Haible  <bruno@clisp.org>
56210
56211         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56212
56213 2008-04-13  Bruno Haible  <bruno@clisp.org>
56214
56215         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56216         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56218         also if it exists but lacks definitions of the SHUT_* macros.
56219         * modules/sys_socket (Description): Update.
56220         Reported by Elbert Pol <e.pol@chello.nl>.
56221
56222 2008-04-13  Bruno Haible  <bruno@clisp.org>
56223
56224         * lib/localcharset.c (OS2): Don't redefine if already defined.
56225         Reported by Elbert Pol <e.pol@chello.nl>.
56226
56227 2008-04-13  Bruno Haible  <bruno@clisp.org>
56228
56229         * lib/binary-io.h [__EMX__]: Include <io.h>.
56230         Reported by Elbert Pol <e.pol@chello.nl>.
56231
56232 2008-04-12  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/fpucw.h: Enable the definitions also for x86_64.
56235         Needed for NetBSD/x86_64.
56236         Reported by Thomas Klausner <tk@giga.or.at>.
56237
56238 2008-04-12  Bruno Haible  <bruno@clisp.org>
56239
56240         * tests/test-strtod.c: Include isnand.h.
56241         (main): Use isnand instead of isnan.
56242         Reported by Jim Meyering.
56243
56244 2008-04-12  Bruno Haible  <bruno@clisp.org>
56245
56246         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56247         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56248
56249 2008-04-12  Jim Meyering  <meyering@redhat.com>
56250
56251         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56252
56253 2008-04-12  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56256         Reported by Elbert Pol <e.pol@chello.nl>.
56257
56258 2008-04-12  Eric Blake  <ebb9@byu.net>
56259
56260         Work around Solaris 10 math.h bug.
56261         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56262         (gl_MATH_H_DEFAULTS): Set up default.
56263         * modules/math (Makefile.am): Replace new indicators.
56264         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56265         * tests/test-math.c (main): Test this.
56266         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56267         * doc/posix-headers/math.texi (math.h): Mention bug.
56268         Reported by Nelson H. F. Beebe and Jim Meyering.
56269
56270 2008-04-11  Bruno Haible  <bruno@clisp.org>
56271
56272         Adapt to future versions of Apple GCC.
56273         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56274         Reported by Peter O'Gorman <peter@pogma.com>.
56275
56276 2008-04-11  Bruno Haible  <bruno@clisp.org>
56277
56278         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56279
56280 2008-04-11  Bruno Haible  <bruno@clisp.org>
56281
56282         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56283
56284         * modules/getaddrinfo-tests (Makefile.am): Define
56285         test_getaddrinfo_LDADD.
56286
56287 2008-04-11  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56290         (init): Fix syntax error.
56291         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56292         is declared.
56293
56294 2008-04-11  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56297         * modules/glob (Depends-on): Add stdbool.
56298
56299 2008-04-11  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/trim.c: Include <string.h>.
56302
56303 2008-04-11  Eric Blake  <ebb9@byu.net>
56304
56305         Avoid compile failure on OS/2.
56306         * lib/regex_internal.h (internal_function): Disable optimization
56307         on OS/2 (__EMX__), where it caused compiler error.
56308         Reported by Elbert Pol.
56309
56310 2008-04-11  Bruno Haible  <bruno@clisp.org>
56311
56312         Flush the standard error stream before aborting. Needed on mingw.
56313         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56314         * tests/test-array_list.c (ASSERT): Likewise.
56315         * tests/test-array_oset.c (ASSERT): Likewise.
56316         * tests/test-avltree_list.c (ASSERT): Likewise.
56317         * tests/test-avltree_oset.c (ASSERT): Likewise.
56318         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56319         * tests/test-binary-io.c (ASSERT): Likewise.
56320         * tests/test-byteswap.c (ASSERT): Likewise.
56321         * tests/test-c-ctype.c (ASSERT): Likewise.
56322         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56323         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56324         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56325         * tests/test-c-strstr.c (ASSERT): Likewise.
56326         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56327         * tests/test-canonicalize.c (ASSERT): Likewise.
56328         * tests/test-carray_list.c (ASSERT): Likewise.
56329         * tests/test-ceilf1.c (ASSERT): Likewise.
56330         * tests/test-ceilf2.c (ASSERT): Likewise.
56331         * tests/test-ceill.c (ASSERT): Likewise.
56332         * tests/test-count-one-bits.c (ASSERT): Likewise.
56333         * tests/test-fbufmode.c (ASSERT): Likewise.
56334         * tests/test-fflush2.c (ASSERT): Likewise.
56335         * tests/test-floorf1.c (ASSERT): Likewise.
56336         * tests/test-floorf2.c (ASSERT): Likewise.
56337         * tests/test-floorl.c (ASSERT): Likewise.
56338         * tests/test-fopen.c (ASSERT): Likewise.
56339         * tests/test-fpending.c (ASSERT): Likewise.
56340         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56341         * tests/test-fpurge.c (ASSERT): Likewise.
56342         * tests/test-freadable.c (ASSERT): Likewise.
56343         * tests/test-freadahead.c (ASSERT): Likewise.
56344         * tests/test-freading.c (ASSERT): Likewise.
56345         * tests/test-freadptr.c (ASSERT): Likewise.
56346         * tests/test-freadptr2.c (ASSERT): Likewise.
56347         * tests/test-freadseek.c (ASSERT): Likewise.
56348         * tests/test-freopen.c (ASSERT): Likewise.
56349         * tests/test-frexp.c (ASSERT): Likewise.
56350         * tests/test-frexpl.c (ASSERT): Likewise.
56351         * tests/test-fseek.c (ASSERT): Likewise.
56352         * tests/test-fseeko.c (ASSERT): Likewise.
56353         * tests/test-fstrcmp.c (ASSERT): Likewise.
56354         * tests/test-ftell.c (ASSERT): Likewise.
56355         * tests/test-ftello.c (ASSERT): Likewise.
56356         * tests/test-func.c (ASSERT): Likewise.
56357         * tests/test-fwritable.c (ASSERT): Likewise.
56358         * tests/test-fwriting.c (ASSERT): Likewise.
56359         * tests/test-getdelim.c (ASSERT): Likewise.
56360         * tests/test-getline.c (ASSERT): Likewise.
56361         * tests/test-i-ring.c (ASSERT): Likewise.
56362         * tests/test-iconv-utf.c (ASSERT): Likewise.
56363         * tests/test-iconv.c (ASSERT): Likewise.
56364         * tests/test-isfinite.c (ASSERT): Likewise.
56365         * tests/test-isnand.c (ASSERT): Likewise.
56366         * tests/test-isnanf.c (ASSERT): Likewise.
56367         * tests/test-isnanl.h (ASSERT): Likewise.
56368         * tests/test-ldexpl.c (ASSERT): Likewise.
56369         * tests/test-linked_list.c (ASSERT): Likewise.
56370         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56371         * tests/test-localename.c (ASSERT): Likewise.
56372         * tests/test-lseek.c (ASSERT): Likewise.
56373         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56374         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56375         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56376         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56377         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56378         * tests/test-mbschr.c (ASSERT): Likewise.
56379         * tests/test-mbscspn.c (ASSERT): Likewise.
56380         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56381         * tests/test-mbspbrk.c (ASSERT): Likewise.
56382         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56383         * tests/test-mbsrchr.c (ASSERT): Likewise.
56384         * tests/test-mbsspn.c (ASSERT): Likewise.
56385         * tests/test-mbsstr1.c (ASSERT): Likewise.
56386         * tests/test-mbsstr2.c (ASSERT): Likewise.
56387         * tests/test-mbsstr3.c (ASSERT): Likewise.
56388         * tests/test-memchr2.c (ASSERT): Likewise.
56389         * tests/test-memmem.c (ASSERT): Likewise.
56390         * tests/test-open.c (ASSERT): Likewise.
56391         * tests/test-printf-frexp.c (ASSERT): Likewise.
56392         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56393         * tests/test-printf-posix.c (ASSERT): Likewise.
56394         * tests/test-quotearg.c (ASSERT): Likewise.
56395         * tests/test-rbtree_list.c (ASSERT): Likewise.
56396         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56397         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56398         * tests/test-round1.c (ASSERT): Likewise.
56399         * tests/test-roundf1.c (ASSERT): Likewise.
56400         * tests/test-roundl.c (ASSERT): Likewise.
56401         * tests/test-signbit.c (ASSERT): Likewise.
56402         * tests/test-sleep.c (ASSERT): Likewise.
56403         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56404         * tests/test-snprintf.c (ASSERT): Likewise.
56405         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56406         * tests/test-stat-time.c (ASSERT): Likewise.
56407         * tests/test-strcasestr.c (ASSERT): Likewise.
56408         * tests/test-strerror.c (ASSERT): Likewise.
56409         * tests/test-striconv.c (ASSERT): Likewise.
56410         * tests/test-striconveh.c (ASSERT): Likewise.
56411         * tests/test-striconveha.c (ASSERT): Likewise.
56412         * tests/test-strsignal.c (ASSERT): Likewise.
56413         * tests/test-strstr.c (ASSERT): Likewise.
56414         * tests/test-strtod.c (ASSERT): Likewise.
56415         * tests/test-trunc1.c (ASSERT): Likewise.
56416         * tests/test-trunc2.c (ASSERT): Likewise.
56417         * tests/test-truncf1.c (ASSERT): Likewise.
56418         * tests/test-truncf2.c (ASSERT): Likewise.
56419         * tests/test-truncl.c (ASSERT): Likewise.
56420         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56421         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56422         * tests/test-vasnprintf.c (ASSERT): Likewise.
56423         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56424         * tests/test-vasprintf.c (ASSERT): Likewise.
56425         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56426         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56427         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56428         * tests/test-vsnprintf.c (ASSERT): Likewise.
56429         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56430         * tests/test-wcwidth.c (ASSERT): Likewise.
56431         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56432         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56433         * tests/test-xvasprintf.c (ASSERT): Likewise.
56434         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56435         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56436         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56437         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56438         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56439         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56440         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56441         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56442         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56443         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56444         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56445         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56446         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56447         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56448         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56449         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56450         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56451         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56452         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56453         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56454         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56455         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56456         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56457         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56458         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56459         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56460         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56461         * tests/unictype/test-combining.c (ASSERT): Likewise.
56462         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56463         * tests/unictype/test-digit.c (ASSERT): Likewise.
56464         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56465         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56466         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56467         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56468         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56469         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56470         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56471         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56472         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56473         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56474         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56475         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56476         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56477         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56478         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56479         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56480         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56481         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56482         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56483         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56484         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56485         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56486         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56487         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56488         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56489         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56490         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56491         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56492         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56493         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56494         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56495         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56496         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56497         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56498         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56499         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56500         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56501         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56502         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56503         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56504         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56505         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56506         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56507         Reported by Eric Blake.
56508
56509 2008-04-11  Bruno Haible  <bruno@clisp.org>
56510
56511         * lib/wchar.in.h: Tweak comment.
56512
56513 2008-04-11  Bruno Haible  <bruno@clisp.org>
56514
56515         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56516         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56517         gl_COMMON.
56518         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56519
56520 2008-04-11  Bruno Haible  <bruno@clisp.org>
56521
56522         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56523
56524 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56525
56526         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56527         of attempting to use non-existing /dev/*random.  Based on patch
56528         from Adam Strzelecki <ono@java.pl> in
56529         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56530
56531 2008-04-08  Bruno Haible  <bruno@clisp.org>
56532
56533         Add tentative support for emx+gcc.
56534         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56535         * lib/fpurge.c (fpurge): Likewise.
56536         * lib/freadable.c (freadable): Likewise.
56537         * lib/freadahead.c (freadahead): Likewise.
56538         * lib/freading.c (freading): Likewise.
56539         * lib/freadptr.c (freadptr): Likewise.
56540         * lib/freadseek.c (freadptrinc): Likewise.
56541         * lib/fseeko.c (rpl_fseeko): Likewise.
56542         * lib/fseterr.c (fseterr): Likewise.
56543         * lib/fwritable.c (fwritable): Likewise.
56544         * lib/fwriting.c (fwriting): Likewise.
56545         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56546
56547 2008-04-09  Eric Blake  <ebb9@byu.net>
56548
56549         Avoid some autoconf warnings.
56550         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56551         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56552         * m4/afs.m4 (gl_AFS): Likewise.
56553         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56554         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56555         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56556         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56557         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56558         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56559         (AC_CHECK_DECLS_ONCE): Likewise.
56560         Rename file...
56561         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56562         gnulib-tool requires autoconf 2.59 or better.
56563         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56564
56565 2008-04-08  Eric Blake  <ebb9@byu.net>
56566
56567         Use 'git describe --match' if present (added in git 1.5.5).
56568         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56569         if possible.
56570
56571 2008-04-08  Bruno Haible  <bruno@clisp.org>
56572
56573         Add tentative support for OpenServer.
56574         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56575         _ptr, _cnt.
56576         * lib/fpurge.c (fpurge): Likewise.
56577         * lib/freadable.c (freadable): Likewise.
56578         * lib/freadahead.c (freadahead): Likewise.
56579         * lib/freading.c (freading): Likewise.
56580         * lib/freadptr.c (freadptr): Likewise.
56581         * lib/freadseek.c (freadptrinc): Likewise.
56582         * lib/fseeko.c (rpl_fseeko): Likewise.
56583         * lib/fseterr.c (fseterr): Likewise.
56584         * lib/fwritable.c (fwritable): Likewise.
56585         * lib/fwriting.c (fwriting): Likewise.
56586         Reported by Roger Cornelius <rac@tenzing.org> and
56587         Brian K. White <brian@aljex.com>.
56588
56589 2008-04-06  Jim Meyering  <meyering@redhat.com>
56590
56591         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56592
56593 2008-04-06  Bruno Haible  <bruno@clisp.org>
56594
56595         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56596         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56597         * tests/test-printf-posix.sh: Likewise.
56598         * tests/test-vfprintf-posix.sh: Likewise.
56599         * tests/test-vprintf-posix.sh: Likewise.
56600         * tests/test-xprintf-posix.sh: Likewise.
56601
56602 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56603
56604         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56605         hide error from 'ls', needed on OS/2.
56606         Report by Elbert Pol <elbert.pol@gmail.com>.
56607
56608 2008-04-04  Eric Blake  <ebb9@byu.net>
56609
56610         Make test-fseeko.c failures meaningful.
56611         * tests/test-fseeko.c: Print line number on failure.
56612         * tests/test-fseek.c: Likewise.
56613         Reported by Nelson H. F. Beebe.
56614
56615         Improve strtod bug detection check.
56616         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56617         required for Solaris 10.
56618         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56619
56620 2008-04-04  Bruno Haible  <bruno@clisp.org>
56621
56622         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56623         by m4/setenv.m4.
56624
56625 2008-04-03  Eric Blake  <ebb9@byu.net>
56626
56627         Ensure sane .version contents.
56628         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56629         version string.
56630         * build-aux/git-version-gen: Improve documentation.
56631
56632         Make GNU make output nicer.
56633         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56634         MAKECMDGOALS to enforce message for all command line targets.  Set
56635         srcdir for use in maint.mk.
56636
56637         Another maintainer tweak.
56638         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56639         a target that regenerates version.
56640
56641 2008-04-03  Jim Meyering  <meyering@redhat.com>
56642
56643         vc-list-files: don't cause coreutils "make po-check" failure
56644         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56645
56646 2008-04-03  Eric Blake  <ebb9@byu.net>
56647
56648         Allow VPATH usage of vc-list-files.
56649         * build-aux/vc-list-files (scriptversion): Add timestamp.
56650         (options): Add --help, --version, -C.
56651         (CVS): Support installed cvsu.
56652
56653 2008-04-02  Bruno Haible  <bruno@clisp.org>
56654
56655         Avoid some "statement with no effect" warnings from gcc.
56656         * tests/test-wctype.c (main): Explicitly ignore unused values.
56657         Reported by Jim Meyering.
56658
56659 2008-04-02  Jim Meyering  <meyering@redhat.com>
56660
56661         Avoid some warnings from "gcc -Wshadow".
56662         * tests/test-frexp.c (exp): Define to a different identifier.
56663         * tests/test-frexpl.c (exp): Likewise.
56664
56665 2008-04-03  Jim Meyering  <meyering@redhat.com>
56666
56667         bootstrap: remove dangling *.[ch] symlinks from lib
56668         * build-aux/bootstrap [dangling symlink removal]: Move find's
56669         -depth option to precede all others, to avoid a warning.
56670         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56671
56672 2008-04-02  Bruno Haible  <bruno@clisp.org>
56673
56674         Avoid some warnings from "gcc -Wshadow".
56675         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56676         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56677         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56678         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56679         Reported by Jim Meyering.
56680
56681 2008-04-01  Bruno Haible  <bruno@clisp.org>
56682
56683         Fix test to work on IRIX 6.5 with cc.
56684         * tests/test-math.c (numeric_equal): New function.
56685         (main): Use it.
56686
56687 2008-04-01  Bruno Haible  <bruno@clisp.org>
56688
56689         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56690
56691 2008-04-01  Bruno Haible  <bruno@clisp.org>
56692
56693         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56694         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56695         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56696         (Depends-on): Remove math.
56697
56698         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56699         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56700         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56701         (Depends-on): Remove math.
56702
56703         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56704         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56705         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56706         (Depends-on): Remove math.
56707         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56708         (Depends-on): Remove math.
56709
56710         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56711         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56712         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56713         (Depends-on): Remove math.
56714         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56715         (Depends-on): Remove math.
56716
56717         * tests/test-round1.c: Include nan.h.
56718         (main): Use NaNd instead of NAN.
56719         * modules/round-tests (Files): Add tests/nan.h.
56720
56721         * tests/test-trunc1.c: Include nan.h.
56722         (main): Use NaNd instead of NAN.
56723         * modules/trunc-tests (Files): Add tests/nan.h.
56724
56725         * tests/test-roundf1.c: Include nan.h.
56726         (main): Use NaNf instead of NAN.
56727         * modules/roundf-tests (Files): Add tests/nan.h.
56728
56729         * tests/test-truncf1.c: Include nan.h.
56730         (main): Use NaNf instead of NAN.
56731         * modules/truncf-tests (Files): Add tests/nan.h.
56732
56733         * tests/test-ceilf1.c: Include nan.h.
56734         (main): Use NaNf instead of NAN.
56735         * modules/ceilf-tests (Files): Add tests/nan.h.
56736
56737         * tests/test-floorf1.c: Include nan.h.
56738         (main): Use NaNf instead of NAN.
56739         * modules/floorf-tests (Files): Add tests/nan.h.
56740
56741         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56742         (main): Use NaNf instead of NAN.
56743         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56744
56745         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56746         (main): Use NaNd instead of NAN.
56747         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56748
56749         * tests/test-frexp.c: Include nan.h.
56750         (main): Use NaNd instead of NAN.
56751         * modules/frexp-tests (Files): Add tests/nan.h.
56752
56753         * lib/isnan.c: Don't include <math.h>.
56754         (FUNC): Don't use NAN macro.
56755         * modules/isnand-nolibm (Depends-on): Remove math.
56756         * modules/isnanf-nolibm (Depends-on): Remove math.
56757         * modules/isnanl (Depends-on): Remove math.
56758         * modules/isnanl-nolibm (Depends-on): Remove math.
56759
56760         * tests/nan.h: New file.
56761
56762 2008-04-01  Eric Blake  <ebb9@byu.net>
56763
56764         Fix typos.
56765         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56766         values to be the right type.
56767
56768         For now, cater to gnulib strtod inaccuracies.
56769         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56770         fractional results.  While not as nice from a QoI perspective, it
56771         is a quicker patch than correctly implementing decimal to binary
56772         rounding.
56773
56774 2008-03-31  Eric Blake  <ebb9@byu.net>
56775
56776         Guarantee a definition of NAN.
56777         * lib/math.in.h (NAN): Define if missing.
56778         * tests/test-math.c (main): Test it.
56779         * doc/posix-headers/math.texi (math.h): Document this.
56780         * lib/isnan.c (rpl_isnand): Use it.
56781         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56782         * tests/test-floorf1.c (NaN): Likewise.
56783         * tests/test-frexp.c (NaN): Likewise.
56784         * tests/test-isnand.c (NaN): Likewise.
56785         * tests/test-isnanf.c (NaN): Likewise.
56786         * tests/test-round1.c (NaN): Likewise.
56787         * tests/test-roundf1.c (NaN): Likewise.
56788         * tests/test-snprintf-posix.h (NaN): Likewise.
56789         * tests/test-sprintf-posix.h (NaN): Likewise.
56790         * tests/test-trunc1.c (NaN): Likewise.
56791         * tests/test-truncf1.c (NaN): Likewise.
56792         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56793         * tests/test-vasprintf-posix.c (NaN): Likewise.
56794         * modules/isnand-nolibm (Depends-on): Add math.
56795         * modules/isnanf-nolibm (Depends-on): Likewise.
56796         * modules/isnanl (Depends-on): Likewise.
56797         * modules/isnanl-nolibm (Depends-on): Likewise.
56798         * modules/snprintf-posix-tests (Depends-on): Likewise.
56799         * modules/sprintf-posix-tests (Depends-on): Likewise.
56800         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56801         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56802         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56803         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56804
56805 2008-03-31  Bruno Haible  <bruno@clisp.org>
56806
56807         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56808         * doc/posix-functions/strtod.texi: Likewise.
56809
56810 2008-03-31  Bruno Haible  <bruno@clisp.org>
56811
56812         * tests/test-strtod.c (main): Don't use C99 syntax.
56813
56814 2008-03-31  Bruno Haible  <bruno@clisp.org>
56815
56816         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56817         Reported by Eric Blake.
56818
56819 2008-03-31  Jim Meyering  <meyering@redhat.com>
56820
56821         Don't compare actual signbit return values.
56822         * tests/test-strtod.c (main): Rather, compare only their
56823         zero/non-zero nature.
56824
56825 2008-03-31  Eric Blake  <ebb9@byu.net>
56826
56827         More strtod documentation.
56828         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56829         failures as distinct bugs.
56830
56831 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56832
56833         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56834         Problem reported by Erik Benada in
56835         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56836
56837 2008-03-30  Bruno Haible  <bruno@clisp.org>
56838
56839         * tests/test-strtod.c: Add comments about which assertion fails on which
56840         platform.
56841         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56842
56843 2008-03-30  Eric Blake  <ebb9@byu.net>
56844
56845         Test signbit behavior on zeros.
56846         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56847         (test_signbitd, test_signbitl): Likewise.
56848
56849         More strtod touchups.
56850         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56851         sign of negative underflow, for now.  Use .5, not .1.
56852         * doc/posix-functions/strtod.texi (strtod): Mention these
56853         limitations.
56854         Reported by Jim Meyering.
56855
56856 2008-03-30  Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56859         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56860
56861 2008-03-30  Bruno Haible  <bruno@clisp.org>
56862
56863         Avoid failure when attempting to return empty iconv results on some
56864         platforms.
56865         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56866         allocation, don't report ENOMEM when the resulting string is empty.
56867
56868 2008-03-30  Bruno Haible  <bruno@clisp.org>
56869
56870         Fix buffer overrun.
56871         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56872         Don't consider the width for tmp_length. Check count against tmp_length
56873         before doing the padding. Ensure enough allocation during padding.
56874
56875 2008-03-30  Eric Blake  <ebb9@byu.net>
56876
56877         strtod touchups.
56878         * lib/strtod.c (strtod): Avoid compiler warnings.
56879         Reported by Jim Meyering.
56880
56881 2008-03-30  Bruno Haible  <bruno@clisp.org>
56882
56883         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56884         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56885         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56886         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56887         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56888         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56889         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56890         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56891
56892         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56893         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56894         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56895         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56896         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56897         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56898         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56899         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56900
56901         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56902         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56903         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56904         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56905         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56906         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56907         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56908         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56909
56910         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56911         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56912
56913         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56914         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56915
56916         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56917         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56918
56919         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56920         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56921         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56922
56923         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56925         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56926
56927         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56928         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56929         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56930
56931         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56933         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56934
56935         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56936         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56937         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56938         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56939         (Depends-on): Add EOVERFLOW.
56940         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56941         (Depends-on): Add EOVERFLOW.
56942         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56943         (Depends-on): Add EOVERFLOW.
56944         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56945         (Depends-on): Add EOVERFLOW.
56946         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56947         (Depends-on): Add EOVERFLOW.
56948         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56949         (Depends-on): Add EOVERFLOW.
56950         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56951         (Depends-on): Add EOVERFLOW.
56952         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56953         (Depends-on): Add EOVERFLOW.
56954
56955         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56957         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56958
56959         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56961         * modules/snprintf (Depends-on): Add EOVERFLOW.
56962
56963         * lib/poll.c (EOVERFLOW): Remove fallback.
56964         * modules/poll (Depends-on): Add EOVERFLOW.
56965
56966         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56967         * modules/getugroups (Depends-on): Add EOVERFLOW.
56968
56969         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56970         * modules/getdelim (Depends-on): Add EOVERFLOW.
56971
56972         * lib/ftell.c (EOVERFLOW): Remove fallback.
56973         * modules/ftell (Depends-on): Add EOVERFLOW.
56974
56975         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56976         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56977         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56978
56979         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56980
56981         * modules/EOVERFLOW-tests: New file.
56982         * tests/test-EOVERFLOW.c: New file.
56983
56984         * modules/EOVERFLOW: New file.
56985         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56986
56987 2008-03-30  Bruno Haible  <bruno@clisp.org>
56988
56989         Fix bug introduced on 2007-06-10.
56990         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56991         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56992
56993 2008-03-30  Bruno Haible  <bruno@clisp.org>
56994
56995         Improve freadseek's efficiency after ungetc.
56996         * lib/freadseek.c: Include freadahead.h.
56997         (freadptrinc): New function, extracted from freadseek.
56998         (freadseek): Use it in a loop. Use freadahead to determine the number
56999         of loop iterations.
57000         * modules/freadseek (Depends-on): Add freadahead.
57001         (configure.ac): Require AC_C_INLINE.
57002
57003 2008-03-30  Bruno Haible  <bruno@clisp.org>
57004
57005         * lib/freadseek.c (freadseek): Don't ignore the return value of
57006         freadptr.
57007
57008 2008-03-29  Eric Blake  <ebb9@byu.net>
57009
57010         Add hex float support.
57011         * modules/strtod (Depends-on): Add c-ctype.
57012         (Link): Mention POW_LIB.
57013         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57014         whitespace between 'e' and exponent.
57015         * tests/test-strtod.c (main): Enable hex float tests.
57016         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57017         now provides.
57018
57019         Document various strtod bugs, with some fixes.
57020         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57021         "-0x", "inf", "nan", and hex constants.
57022         * doc/posix-functions/atof.texi (atof): Likewise.
57023         * modules/stdlib (Makefile.am): Support strtod.
57024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57025         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57026         detect additional strtod bugs.
57027         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57028         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57029         bool where appropriate.  Parse 'inf' and 'nan'.
57030         * tests/test-strtod.c: New file.
57031         * modules/strtod (Depends-on): Add stdbool, stdlib.
57032         (configure.ac): Turn on module indicator.
57033         * modules/strtod-tests: New module.
57034
57035 2008-03-29  Eric Blake  <ebb9@byu.net>
57036
57037         Fix ftell on mingw.
57038         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57039         * modules/ftell-tests (Depends-on): Add binary-io.
57040         * modules/ftello-tests (Depends-on): Likewise.
57041         * tests/test-ftell.c (main): Enhance test to cover behavior after
57042         ungetc.  Enforce binary mode.
57043         * tests/test-ftello.c (main): Likewise.
57044
57045         Pass test-freadseek on cygwin.
57046         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57047         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57048         ungetc buffer.
57049
57050         * tests/test-fflush2.c (main): Fix typo.
57051
57052 2008-03-29  Bruno Haible  <bruno@clisp.org>
57053
57054         * tests/test-fflush2.c (main): Temporarily disable the contents of
57055         this test.
57056         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57057         Reported by Eric Blake.
57058
57059 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57060
57061         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57062         (GC_SHA224_DIGEST_SIZE): Add.
57063
57064         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57065         (gc_hash_digest_length): Likewise.
57066         (gc_hash_buffer): Likewise.
57067
57068 2008-03-25  Bruno Haible  <bruno@clisp.org>
57069
57070         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57071         detail which gettext release to use.
57072         Reported by Simon Josefsson.
57073
57074 2008-03-26  Jim Meyering  <meyering@redhat.com>
57075
57076         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57077         * modules/gnumakefile (clean-GNUmakefile): Also, use
57078         test ... && ... || : syntax rather than if-then ... fi.
57079
57080         gnumakefile: Don't double-quote-expand $(VPATH) value.
57081         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57082
57083 2008-03-24  Eric Blake  <ebb9@byu.net>
57084
57085         Alter GNUmakefile to install into top directory.
57086         * modules/maintainer-makefile: Split, and add dependency...
57087         * modules/gnumakefile: to this new module.
57088         * build-aux/GNUmakefile: Move...
57089         * top/GNUmakefile: ...here.
57090         * build-aux/maint.mk: Move...
57091         * top/maint.mk: ...here.
57092         * MODULES.html.sh (Support for maintaining...): Document new
57093         module.
57094
57095 2008-03-23  Bruno Haible  <bruno@clisp.org>
57096
57097         * gnulib-tool: New options --vc-files, --no-vc-files.
57098         (func_usage): Document them.
57099         (vc_files): New variable.
57100         (func_import): Consider vc_files.
57101         (func_create_testdir): Set vc_files to empty.
57102         Suggested by Jim Meyering and Karl Berry.
57103
57104 2008-03-23  Bruno Haible  <bruno@clisp.org>
57105
57106         Fix regex compilation error on HP-UX 11.
57107         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57108         * modules/regex (Files): Add m4/mbstate_t.m4.
57109         Reported by Ton Voon <ton.voon@altinity.com>.
57110
57111 2008-03-23  Bruno Haible  <bruno@clisp.org>
57112
57113         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57114
57115 2008-03-23  Eric Blake  <ebb9@byu.net>
57116             Bruno Haible  <bruno@clisp.org>
57117
57118         Install files from top/ in the destination directory.
57119         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57120         augmentation also for the files from top/.
57121         (func_import, func_create_testdir): Rewrite file names:
57122         top/filename -> filename.
57123
57124 2008-03-23  Bruno Haible  <bruno@clisp.org>
57125
57126         Tweak "gnulib --version" output.
57127         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57128
57129 2008-03-23  Bruno Haible  <bruno@clisp.org>
57130
57131         Tweak "gnulib --version" output.
57132         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57133         rather than contents of ChangeLog, when possible.
57134
57135 2008-03-21  Eric Blake  <ebb9@byu.net>
57136
57137         More --version tweaks.
57138         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57139         date of last ChangeLog entry.
57140
57141 2008-03-21  Jim Meyering  <meyering@redhat.com>
57142
57143         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57144
57145 2008-03-20  Eric Blake  <ebb9@byu.net>
57146
57147         VPATH fix.
57148         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57149
57150 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57151
57152         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57153         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57154
57155 2008-03-20  Eric Blake  <ebb9@byu.net>
57156
57157         Sync GNUmakefile with coreutils.
57158         * build-aux/GNUmakefile (have-Makefile): Rename...
57159         (_have-Makefile): ...to this, for namespace consideration.
57160         (GNUmakefile.cfg): Include, if present.
57161         (_autoreconf): Define a default.
57162         (_is-dist-target): New rule for rebuilds to pick up intra-release
57163         version.
57164         (maint-cfg.mk): Rename...
57165         (cfg.mk): ...to this.
57166
57167 2008-03-18  Jim Meyering  <meyering@redhat.com>
57168
57169         New script and module: mktempd
57170         * MODULES.html.sh (maint+release support): Add mktempd.
57171         * build-aux/mktempd: New file.
57172         * modules/mktempd: New file.
57173
57174 2008-03-15  Jim Meyering  <meyering@redhat.com>
57175
57176         Undo last change.
57177         * lib/sha1.c, lib/md5.c: 63 != ~63.
57178         Reported by Andreas Schwab.
57179
57180         sha1.c, md5.c: Hoist a redundant expression.
57181         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57182         "ctx->buflen" only once, before calling *_process_block.
57183         * lib/md5.c (md5_process_bytes): Likewise.
57184
57185 2008-03-14  Eric Blake  <ebb9@byu.net>
57186
57187         Bump copyright year in files generated by gnulib-tool.
57188         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57189         gnulib-tool, rather than hard-coding it.
57190
57191         Fix 'gnulib-tool --version' output to work with git.
57192         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57193         (startup): ...here.
57194         (func_version): Use it to invoke git-version-gen, rather than
57195         relying on CVS keyword expansion.  Modernize wording.
57196         (cvsdatestamp, last_checkin_date, version): Kill unused
57197         variables.
57198
57199 2008-03-12  Jim Meyering  <meyering@redhat.com>
57200
57201         Recognize optional cast of the argument to free.
57202         * build-aux/useless-if-before-free: Update regexps.
57203
57204         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57205
57206 2008-03-11  Bruno Haible  <bruno@clisp.org>
57207
57208         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57209         by a single package.
57210         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57211         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57212         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57213         Reported by Sam Steingold <sds@gnu.org>.
57214
57215 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57216
57217         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57218         repositories.
57219
57220 2008-03-11  Bruno Haible  <bruno@clisp.org>
57221
57222         Avoid conflicts between local macro definitions.
57223         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57224         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57225
57226 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57227             Bruno Haible  <bruno@clisp.org>
57228
57229         Make va_copy work with some version of xlc on AIX 5.1.
57230         * lib/stdarg.in.h: New file.
57231         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57232         On AIX, use a <stdarg.h> file substitute.
57233         * modules/stdarg (Files): Add lib/stdarg.in.h.
57234         (Depends-on): Add include_next.
57235         (Makefile.am): Build a stdarg.h substitute if requested.
57236         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57237
57238 2008-03-10  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57241         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57242         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57243
57244 2008-03-10  Bruno Haible  <bruno@clisp.org>
57245
57246         * modules/stdlib (Depends-on): Add include_next, remove
57247         absolute-header.
57248
57249 2008-03-09  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/freadahead.h (freadahead): Document more precisely.
57252         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57253         the sum of both buffer sizes.
57254         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57255         * NEWS: Document the change.
57256
57257 2008-03-09  Bruno Haible  <bruno@clisp.org>
57258
57259         Extend freadptr to return also the buffer size.
57260         * lib/freadptr.h (freadptr): Add sizep argument.
57261         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57262         (freadptr): Add sizep argument. Determine buffer size like freadahead
57263         does.
57264         * tests/test-freadptr.c: Don't include freadahead.h.
57265         (main): Adapt for new calling convention of freadptr.
57266         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57267         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57268         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57269         tests/test-freadptr2.sh.
57270         (Depends): Remove freadahead.
57271         (TESTS): Add test-freadptr2.sh.
57272         (check_PROGRAMS): Add test-freadptr2.
57273
57274 2008-03-09  Bruno Haible  <bruno@clisp.org>
57275
57276         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57277         Report and solution by Simon Josefsson.
57278
57279 2008-03-06  Bruno Haible  <bruno@clisp.org>
57280
57281         Make fflush after ungetc work on BSD platforms.
57282         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57283         * tests/test-fflush2.c: New file.
57284         * tests/test-fflush2.sh: New file.
57285         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57286         tests/test-fflush2.c.
57287         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57288         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57289
57290 2008-03-06  Eric Blake  <ebb9@byu.net>
57291
57292         Likewise for ftello.
57293         * modules/ftello (Dependencies): Add extensions.
57294         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57295
57296 2008-03-06  Bruno Haible  <bruno@clisp.org>
57297
57298         * modules/fseeko (Dependencies): Add extensions.
57299         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57300         Needed on glibc systems.
57301
57302 2008-03-06  Bruno Haible  <bruno@clisp.org>
57303
57304         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57305         email address.
57306         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57307
57308 2008-03-06  Bruno Haible  <bruno@clisp.org>
57309
57310         * users.txt: Add libgnupdf.
57311
57312 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57313
57314         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57315         (Header File Substitutes, Function Substitutes,
57316         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57317         (Build robot for gnulib): Fix typo.
57318
57319 2008-03-06  Bruno Haible  <bruno@clisp.org>
57320
57321         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57322         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57323
57324 2008-03-06  Bruno Haible  <bruno@clisp.org>
57325
57326         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57327         * doc/gnulib.texi: Include it.
57328
57329 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57330
57331         * modules/func (License): Change license to unlimited; there was
57332         no LGPL parts in the module anyway.
57333
57334 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57335
57336         * modules/__func__: Renamed to modules/func.
57337         * modules/__func__-tests: Renamed to modules/func-tests.
57338         * tests/test-__func__.c: Renamed to tests/test-func.c.
57339         * m4/__func__.m4: Renamed to m4/func.m4.
57340         * doc/gnulib.texi (__func__): Section renamed to func.
57341         Suggested by Eric Blake <ebb9@byu.net>.
57342
57343 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57344
57345         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57346         about __func__.  Make example self-contained.  Suggested by Eric
57347         Blake <ebb9@byu.net>.
57348
57349         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57350         Suggested by Eric Blake <ebb9@byu.net>.
57351
57352 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57353
57354         * modules/__func__: New file.
57355         * modules/__func__-tests: New file.
57356         * tests/test-__func__.c: New file.
57357         * m4/__func__.m4: New file.
57358         * doc/gnulib.texi (__func__): Document __func__ module.
57359
57360 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57361
57362         * modules/byteswap (License): Re-license as LGPLv2+.
57363
57364 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57365
57366         * doc/Makefile: Add pdf target.
57367
57368 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57369
57370         * modules/inline (License): Use 'unlimited', since there are only
57371         *.m4 files in this module.
57372
57373 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57374             Bruno Haible  <bruno@clisp.org>
57375
57376         Add support for HP C 7.1 on OpenVMS 8.3.
57377         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57378
57379 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57380
57381         Update VMS specifics.
57382         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57383
57384 2008-03-02  Jim Meyering  <meyering@redhat.com>
57385
57386         Remove the last dependency on the "free" module.
57387         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57388         Reported by Bob Proulx.
57389
57390         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57391
57392         Remove useless "if" tests before free.  Deprecate "free" module.
57393         * doc/posix-functions/free.texi: Mention that this
57394         module is no longer useful.
57395         * modules/free (Notice): Say this module is obsolete.
57396         * modules/readutmp (Depends-on): Remove free.
57397         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57398         * lib/putenv.c (putenv): Likewise.
57399         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57400         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57401         * tests/test-c-strcasestr.c (main): Likewise.
57402         * tests/test-c-strstr.c (main): Likewise.
57403         * tests/test-mbscasestr1.c (main): Likewise.
57404         * tests/test-mbscasestr2.c (main): Likewise.
57405         * tests/test-mbsstr1.c (main): Likewise.
57406         * tests/test-mbsstr2.c (main): Likewise.
57407         * tests/test-memmem.c (main): Likewise.
57408         * tests/test-strcasestr.c (main): Likewise.
57409         * tests/test-striconv.c (main): Likewise.
57410         * tests/test-striconveh.c (main): Likewise.
57411         * tests/test-striconveha.c (main): Likewise.
57412         * tests/test-strstr.c (main): Likewise.
57413
57414         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57415
57416         bootstrap: sync from coreutils again
57417         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57418
57419 2008-03-01  Jim Meyering  <meyering@redhat.com>
57420
57421         bootstrap: sync from coreutils
57422         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57423         also when the target doesn't exist.
57424
57425 2008-03-01  Eric Blake  <ebb9@byu.net>
57426
57427         Fix bugs in last patch.
57428         * lib/memchr2.c (memchr2): Fix typo.
57429         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57430         extension.
57431         Reported by Bruce Korb.
57432
57433         New module 'memchr2'.
57434         * modules/memchr2: New file.
57435         * modules/memchr2-tests: Likewise.
57436         * lib/memchr2.h: Likewise.
57437         * lib/memchr2.c: Likewise, based on memchr.c.
57438         * tests/test-memchr2.c: New test.
57439         * MODULES.html.sh (String handling): Add memchr2.
57440
57441 2008-02-29  Bruno Haible  <bruno@clisp.org>
57442
57443         * modules/freadseek-tests: New file.
57444         * tests/test-freadseek.sh: New file.
57445         * tests/test-freadseek.c: New file.
57446
57447         New module 'freadseek'.
57448         * modules/freadseek: New file.
57449         * lib/freadseek.h: New file.
57450         * lib/freadseek.c: New file.
57451         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57452
57453 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57454
57455         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57456         wydawca.
57457
57458         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57459         program_invocation_name and program_invocation_short_name are
57460         present.
57461
57462 2008-02-28  Bruno Haible  <bruno@clisp.org>
57463
57464         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57465         * tests/test-freadptr.sh: Also test non-seekable stdin.
57466
57467 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57468
57469         * build-aux/bootstrap (source_base, m4_base)
57470         (doc_base, tests_base): New variables.
57471         (gnulib_tool_options): Do not hardcode base directories, use
57472         the above variables instead.
57473
57474 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57475
57476         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57477
57478 2008-02-28  Bruno Haible  <bruno@clisp.org>
57479
57480         * modules/freadptr-tests: New file.
57481         * tests/test-freadptr.sh: New file.
57482         * tests/test-freadptr.c: New file.
57483
57484         New module 'freadptr'.
57485         * modules/freadptr: New file.
57486         * lib/freadptr.h: New file.
57487         * lib/freadptr.c: New file.
57488         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57489
57490 2008-02-26  Karl Berry  <karl@freefriends.org>
57491
57492         Sync from Libtool:
57493         * libltdl/argz.c (argz_add, argz_count): New functions.
57494         * libltdl/argz.in.h: Declare them.
57495         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57496
57497 2008-02-22  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57500         is a pointer type.  Needed for HP-UX 10.
57501         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57502         * doc/posix-functions/gmtime_r.texi: Likewise.
57503         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57504
57505 2008-02-24  Bruno Haible  <bruno@clisp.org>
57506
57507         * modules/environ-tests: New file.
57508         * tests/test-environ.c: New file.
57509
57510         New module 'environ'.
57511         * modules/environ: New file.
57512         * lib/unistd.in.h (environ): New declaration.
57513         * m4/environ.m4: New file.
57514         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57515         after use.
57516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57517         HAVE_DECL_ENVIRON.
57518         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57519         HAVE_DECL_ENVIRON.
57520         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57521         wrong claim that 'environ' is missing on some systems.
57522         * modules/execute (Depends-on): Add environ.
57523         * lib/execute.c (environ): Remove fallback declaration.
57524         * modules/pipe (Depends-on): Add environ.
57525         * lib/pipe.c (environ): Remove fallback declaration.
57526         * modules/setenv (Depends-on): Add environ.
57527         * lib/setenv.c (environ): Remove fallback declaration.
57528         * modules/unsetenv (Depends-on): Add environ.
57529         * lib/unsetenv.c (environ): Remove fallback declaration.
57530         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57531         m4/environ.m4.
57532         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57533         (gl_PREREQ_UNSETENV): Likewise.
57534
57535 2008-02-24  Bruno Haible  <bruno@clisp.org>
57536
57537         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57538
57539 2008-02-20  Bob Proulx  <bob@proulx.com>
57540
57541         Enable use of older two part flavor 'git describe'.
57542         * build-aux/git-version-gen: If using the older two part flavor of
57543         git version then recreate the third part now present in the
57544         newer three part flavor of git describe.
57545
57546 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57547
57548         * lib/fts.c (fts_build): Typo correction to comment.
57549
57550 2008-02-17  Bruno Haible  <bruno@clisp.org>
57551
57552         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57553         generating no-op conflicts.
57554
57555 2008-02-17  Bruno Haible  <bruno@clisp.org>
57556
57557         Speed up by 10%.
57558         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57559         result_entries, rather than an index-based loop.
57560
57561 2008-02-17  Bruno Haible  <bruno@clisp.org>
57562
57563         Speed up by 25%.
57564         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57565         'hashcode_cached'.
57566         (entry_create): New function.
57567         (entry_hashcode): Use the cached hashcode if possible.
57568         (read_changelog_file, try_split_merged_entry): Use entry_create.
57569
57570 2008-02-17  Bruno Haible  <bruno@clisp.org>
57571
57572         Speed up from O(n^2) to O(n) for long ChangeLog files.
57573         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57574         (read_changelog_file): Change implementation of entries_reversed list
57575         to rbtreehash.
57576         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57577
57578 2008-02-17  Bruno Haible  <bruno@clisp.org>
57579
57580         New option --split-merged-entry.
57581         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57582         (find_paragraph_end, try_split_merged_entry): New functions.
57583         (long_options): Add option --split-merged-entry.
57584         (usage): Document option --split-merged-entry.
57585         (main): Implement option --split-merged-entry.
57586         Reported by Eric Blake.
57587
57588 2008-02-17  Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/git-merge-changelog.c: Include c-strstr.h.
57591         (main): Support the "git pull --rebase" situation.
57592         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57593         Reported by Eric Blake.
57594
57595 2008-02-16  Eric Blake  <ebb9@byu.net>
57596
57597         Avoid doubling \ in common case of "c-maybe" quoting style.
57598         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57599         eliding outer quotes.
57600         * lib/quotearg.h: Document this.
57601         * tests/test-quotearg.c (result_strings, inputs, results_g)
57602         (flag_results, locale_results): Test it by adding a new string to
57603         each test group.
57604         (compare_strings): Test new string.
57605
57606 2008-02-13  Eric Blake  <ebb9@byu.net>
57607
57608         Avoid trigraph quoting in default output.
57609         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57610         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57611         unless explicitly requested.
57612         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57613
57614 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57615
57616         Don't rely on signed integer overflowing to negative value.
57617         * lib/getugroups.c (getugroups): Include <limits.h>.
57618         Instead, compare against INT_MAX, and increment only if the test passes.
57619
57620 2008-02-13  Jim Meyering  <meyering@redhat.com>
57621         and Eric Blake  <ebb9@byu.net>
57622
57623         Avoid shadowing warning and compile errors on Linux.
57624         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57625         forwarding macros on Linux.
57626         (dcgettext): Define a stub, for Linux.
57627         (results_g, main): Avoid warnings.
57628
57629 2008-02-12  Eric Blake  <ebb9@byu.net>
57630
57631         Silence warning in last patch.
57632         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57633
57634         Quotearg part 4: add tests, fix c-maybe colon quoting.
57635         * lib/quotearg.h: Improve documentation.
57636         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57637         escapes when adding outer quotes.  When quoting trigraphs, use
57638         valid C notation.  When quoting NUL, omit extra characters if next
57639         character is not digit.  Alter prototype.
57640         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57641         callers.
57642         * modules/quotearg-tests: New module.
57643         * tests/test-quotearg.c: New test.
57644
57645 2008-02-07  Eric Blake  <ebb9@byu.net>
57646
57647         Quotearg part 3: add flag to control outer quote elision.
57648         * lib/quotearg.h (c_maybe_quoting_style): New style.
57649         (enum quoting_flags): Better documentation of flags.
57650         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57651         c-maybe style.
57652         (quotearg_buffer_restyled): Handle new flag to elide outer
57653         quotes.
57654
57655         Quotearg part 2: add flag that can control NUL elision.
57656         * lib/quotearg.h (set_quoting_flags): New prototype.
57657         * lib/quotearg.c (struct quoting_options): Add flag field.
57658         (set_quoting_flags): New function.
57659         (quotearg_buffer_restyled): Add flags parameter.
57660         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57661         (quotearg_n_options): Set the flag, since length cannot be
57662         returned.
57663         (quoting_options_from_style): Default flags correctly.
57664
57665         Quotearg part 1: more wrappers, restore quotearg_char state.
57666         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57667         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57668         (quotearg_colon_mem): New wrappers.
57669         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57670         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57671         functions.
57672         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57673         (quotearg_colon_mem): New functions.
57674
57675 2008-02-11  Bruno Haible  <bruno@clisp.org>
57676
57677         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57678         library in the current directory: it does not work with parallel make.
57679         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57680
57681 2008-02-11  Bruno Haible  <bruno@clisp.org>
57682
57683         * .gitattributes: New file.
57684
57685 2008-02-11  Jim Meyering  <meyering@redhat.com>
57686
57687         useless-if-before-free: Fix reversed exit values.
57688         * build-aux/useless-if-before-free: Use correct values
57689         for EXIT_MATCH and EXIT_NO_MATCH.
57690
57691         * build-aux/useless-if-before-free: Close stdout carefully.
57692
57693 2008-02-10  Bruno Haible  <bruno@clisp.org>
57694
57695         New module 'git-merge-changelog'.
57696         * modules/git-merge-changelog: New file.
57697         * lib/git-merge-changelog.c: New file.
57698
57699 2008-02-10  Jim Meyering  <meyering@redhat.com>
57700
57701         useless-if-before-free: New option: --list (-l).
57702
57703         useless-if-before-free: Don't exit immediately upon open failure.
57704         * build-aux/useless-if-before-free: Exit 2 for errors.
57705         Upon failure to open a file, don't exit immediately.
57706         Rather, just warn and continue with any remaining files.
57707
57708 2008-02-10  Bruno Haible  <bruno@clisp.org>
57709
57710         New abstract list operation 'node_set_value'.
57711         * lib/gl_list.h (gl_list_node_set_value): New function.
57712         (struct gl_list_implementation): New field node_set_value.
57713         * lib/gl_list.c (gl_list_node_set_value): New function.
57714         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57715         (gl_array_list_implementation): Update.
57716         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57717         (gl_carray_list_implementation): Update.
57718         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57719         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57720         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57721         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57722         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57723         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57724         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57725         Update.
57726         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57727         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57728         (gl_sublist_list_implementation): Update.
57729
57730 2008-02-10  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57733         Needed when ELEMENT is #defined to 'some_type *'.
57734
57735 2008-02-10  Jim Meyering  <meyering@redhat.com>
57736
57737         New script and module: useless-if-before-free
57738         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57739         * build-aux/useless-if-before-free: New file.
57740         * modules/useless-if-before-free: New file.
57741
57742         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57743
57744         xstrtol_error: Fix typo.
57745         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57746         s/exit_failure/exit_status/.
57747
57748 2008-02-09  Jim Meyering  <meyering@redhat.com>
57749
57750         New script and module: gitlog-to-changelog
57751         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57752         * modules/gitlog-to-changelog: New file.
57753         * build-aux/gitlog-to-changelog: New file.
57754
57755 2008-02-08  Jim Meyering  <meyering@redhat.com>
57756
57757         Avoid two "parameter unused" warnings.
57758         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57759         Mark "st" as used.
57760
57761         Use "git COMMAND", not "git-COMMAND".
57762         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57763         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57764         * build-aux/git-version-gen: Use "git status", not "git-status".
57765
57766 2008-02-07  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57769         Avoids a crash on Windows Vista.
57770         Reported by Adam Strzelecki <ono@java.pl> via
57771         Simon Josefsson <simon@josefsson.org>.
57772
57773 2008-02-06  Bruno Haible  <bruno@clisp.org>
57774
57775         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57776         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57777         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57779         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57780         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57781         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57782         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57783         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57784         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57785         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57786         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57787         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57790         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57791         left-adjust flag.
57792         * tests/test-snprintf-posix.h (test_function): Likewise.
57793         * tests/test-sprintf-posix.h (test_function): Likewise.
57794         * tests/test-vasprintf-posix.c (test_function): Likewise.
57795         * doc/posix-functions/fprintf.texi: Update.
57796         * doc/posix-functions/printf.texi: Update.
57797         * doc/posix-functions/snprintf.texi: Update.
57798         * doc/posix-functions/sprintf.texi: Update.
57799         * doc/posix-functions/vfprintf.texi: Update.
57800         * doc/posix-functions/vprintf.texi: Update.
57801         * doc/posix-functions/vsnprintf.texi: Update.
57802         * doc/posix-functions/vsprintf.texi: Update.
57803         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57804
57805 2008-02-06  Bruno Haible  <bruno@clisp.org>
57806
57807         Fix bug introduced on 2008-01-26.
57808         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57809
57810 2008-02-06  Bruno Haible  <bruno@clisp.org>
57811
57812         Fix bug introduced on 2007-06-10.
57813         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57814         !NEED_PRINTF_FLAG_ZERO.
57815
57816 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57817
57818         getloadavg: use libperfstat on AIX5
57819         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57820
57821 2008-02-03  Bruno Haible  <bruno@clisp.org>
57822
57823         * lib/diffseq.h: Add comments about required #includes.
57824         Reported by Michael Biggs <gnulib@doubleplum.net>.
57825
57826 2008-02-01  Bruno Haible  <bruno@clisp.org>
57827
57828         * users.txt: Add gnuit.
57829
57830 2008-01-31  Bruno Haible  <bruno@clisp.org>
57831
57832         * lib/md4.c (set_uint32): Mark as inline.
57833         * lib/md5.c (set_uint32): Likewise.
57834         * lib/sha1.c (set_uint32): Likewise.
57835         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57836         * m4/md5.m4 (gl_MD5): Likewise.
57837         * m4/sha1.m4 (gl_SHA1): Likewise.
57838
57839 2008-01-31  Jim Meyering  <meyering@redhat.com>
57840
57841         Use "sizeof VAR", rather than a literal "4".
57842         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57843         * lib/md4.c (md4_read_ctx): Likewise.
57844         * lib/sha1.c (sha1_read_ctx): Likewise.
57845
57846 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57847
57848         * tests/test-sha1.c: New file, based on test-md5.c.
57849
57850         * modules/crypto/sha1-tests: New file.
57851
57852 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57853
57854         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57855
57856 2008-01-31  Jim Meyering  <meyering@redhat.com>
57857
57858         Prefer "sizeof v" over the equivalent "4".
57859         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57860         * lib/md5.c (set_uint32): Likewise.
57861         * lib/sha1.c (set_uint32): Likewise.
57862
57863 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57864
57865         * lib/sha1.c (set_uint32): Mark function as static.
57866
57867 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57868
57869         md2: clarify comments to say that alignment is not required.
57870         * lib/md2.h: Remove warning about alignment in comment.
57871         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57872         never been required.
57873
57874 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57875
57876         md4: adapt alignment constraint fix from sha1.
57877         * lib/md4.c (set_uint32): New function, from sha1.c
57878         (md4_read_ctx): Use it.
57879         (md4_finish_ctx): Doc fix.
57880         * lib/md4.h: Doc fix.
57881
57882 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57883
57884         md5: adapt alignment constraint fix from sha1.
57885         * lib/md5.c (set_uint32): New function, from sha1.c
57886         (md5_read_ctx): Use it.
57887         (md5_finish_ctx): Doc fix.
57888         * lib/md5.h: Doc fix.
57889
57890 2008-01-30  Peter Palfrader  <weasel@debian.org>
57891
57892         sha1: remove the result buffer alignment constraint
57893         * lib/sha1.c (set_uint32): New function.
57894         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57895         constraint.
57896         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57897         * lib/sha1.h: Likewise.
57898
57899 2008-01-30  Andreas Schwab  <schwab@suse.de>
57900             Bruno Haible  <bruno@clisp.org>
57901
57902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57903         correct definition of LDBL_MIN_EXP.
57904
57905 2008-01-30  Karl Berry  <karl@gnu.org>
57906
57907         * config/srclist-update: try to preserve x bit on updates.
57908         * config/srclistvars.sh: update for karl.
57909
57910 2008-01-29  Jim Meyering  <meyering@redhat.com>
57911
57912         vasnprintf.c: Avoid warning about unused label
57913         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57914         "overflow" label definition and associated code with the
57915         same cpp condition that guards the sole use of that label.
57916
57917 2008-01-26  Bruno Haible  <bruno@clisp.org>
57918
57919         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57920         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57921         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57922         * lib/isnanl-nolibm.h (isnanl): Likewise.
57923         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57924
57925 2008-01-26  Bruno Haible  <bruno@clisp.org>
57926
57927         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57928         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57929
57930 2008-01-26  Bruno Haible  <bruno@clisp.org>
57931
57932         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57933         GCC >= 4.0 built-in.
57934         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57935
57936 2008-01-26  Bruno Haible  <bruno@clisp.org>
57937
57938         Rename isnan, applicable to 'double' only, to isnand.
57939         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57940         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57941         (configure.ac): Update.
57942         (Include): Replace "isnan.h" with "isnand.h".
57943         * m4/isnand.m4: Renamed from m4/isnan.m4.
57944         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57945         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57946         instead of isnan.c.
57947         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57948         instead of HAVE_ISNAN_IN_LIBC.
57949         (isnand): Renamed from isnan.
57950         * lib/isnand.c: New file.
57951         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57952         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57953         (Makefile.am): Update.
57954         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57955         Include isnand.h instead of isnan.h.
57956         (main): Test isnand instead of isnan.
57957         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57958         isnan-nolibm.
57959         * modules/frexp (Depends-on): Likewise.
57960         * modules/frexp-tests (Depends-on): Likewise.
57961         * modules/frexp-nolibm (Depends-on): Likewise.
57962         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57963         * modules/isfinite (Depends-on): Likewise.
57964         * modules/round-tests (Depends-on): Likewise.
57965         * modules/signbit (Depends-on): Likewise.
57966         * modules/signbit-tests (Depends-on): Likewise.
57967         * modules/snprintf-posix (Depends-on): Likewise.
57968         * modules/sprintf-posix (Depends-on): Likewise.
57969         * modules/trunc-tests (Depends-on): Likewise.
57970         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57971         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57972         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57973         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57974         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57975         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57976         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57977         * modules/vasnprintf-posix (Depends-on): Likewise.
57978         * modules/vasprintf-posix (Depends-on): Likewise.
57979         * modules/vfprintf-posix (Depends-on): Likewise.
57980         * modules/vsnprintf-posix (Depends-on): Likewise.
57981         * modules/vsprintf-posix (Depends-on): Likewise.
57982         * lib/frexp.c: Include isnand.h instead of isnan.h.
57983         (ISNAN): Set to isnand instead of isnan.
57984         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57985         (gl_isfinited): Use isnand instead of isnan.
57986         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57987         (gl_signbitd): Use isnand instead of isnan.
57988         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57989         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57990         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57991         (main): Use isnand instead of isnan.
57992         * tests/test-round1.c: Include isnand.h.
57993         (main): Use isnand instead of isnan.
57994         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57995         (ISNAN): Set to isnand instead of isnan.
57996         * tests/test-trunc1.c: Include isnand.h.
57997         (main): Use isnand instead of isnan.
57998         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57999         (equal): Use isnand instead of isnan.
58000         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58001         isnand-nolibm.
58002         * NEWS: Mention the change.
58003
58004 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58005             Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58008         the GCC builtins for signbits are present and set
58009         REPLACE_SIGNBIT_USING_GCC if so.
58010         * lib/math.in.h (signbit): Define using GCC builtins if
58011         REPLACE_SIGNBIT_USING_GCC is set.
58012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58013         REPLACE_SIGNBIT_USING_GCC.
58014         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58015
58016 2008-01-25  Jim Meyering  <meyering@redhat.com>
58017
58018         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58019         * lib/poll.c: Include <config.h>, not "config.h".
58020         * tests/test-getaddrinfo.c: Likewise.
58021
58022 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58023
58024         * modules/sockets-tests: New file.
58025
58026 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58027
58028         * modules/sockets: New module, can be used to call WSA_Startup and
58029         WSA_Cleanup when needed.
58030
58031         * lib/sockets.h, lib/sockets.c: New files.
58032
58033         * m4/sockets.m4: New file.
58034
58035         * tests/test-sockets.c: New file.
58036
58037 2008-01-19  Bruno Haible  <bruno@clisp.org>
58038
58039         * doc/posix-headers: Renamed from doc/headers.
58040         * doc/posix-functions: Renamed from doc/functions.
58041         * doc/gnulib.texi: Update.
58042
58043 2008-01-19  Bruno Haible  <bruno@clisp.org>
58044
58045         * doc/glibc-functions/strcasestr.texi: Include contents of
58046         doc/functions/strcasestr.texi, fixing the list of platforms.
58047         * doc/functions/strcasestr.texi: Remove file.
58048
58049 2008-01-19  Bruno Haible  <bruno@clisp.org>
58050
58051         * doc/glibc-functions/memmem.texi: Include contents of
58052         doc/functions/memmem.texi.
58053         * doc/functions/memmem.texi: Remove file.
58054
58055 2008-01-18  Bruno Haible  <bruno@clisp.org>
58056
58057         * doc/glibc-functions/*.texi: New files.
58058         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58059         to use the new files.
58060
58061 2008-01-17  Bruno Haible  <bruno@clisp.org>
58062
58063         * tests/test-gethostname.c (main): Fix printf statement.
58064
58065 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58066
58067         * modules/gethostname-tests: New file.
58068
58069         * tests/test-gethostname.c: New file.
58070
58071 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58072
58073         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58074         used by the UNAME case.  Reported by Bruno Haible
58075         <bruno@clisp.org>.
58076
58077 2008-01-17  Eric Blake  <ebb9@byu.net>
58078
58079         Convert c-strcasestr to be more efficient.
58080         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58081         (Depends-on): Add c-strcase, remove malloca, strnlen.
58082         * tests/test-c-strcasestr.c (main): Enhance test.
58083         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58084
58085 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58086
58087         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58088         Use it in creating po/Makevars.
58089
58090 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58091
58092         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58093         Applications that requires it should initialize libgcrypt
58094         manually.
58095
58096 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58097
58098         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58099
58100 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         Fix problem with getdate on mingw32 reported by Simon Josefsson
58103         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58104         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58105         tzname", when deciding whether to declare tzname.
58106         * lib/strftime.c (tzname): Likewise.
58107
58108 2008-01-15  Bruno Haible  <bruno@clisp.org>
58109
58110         Work around a MacOS X 10.5 bug in frexpl().
58111         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58112         * doc/functions/frexpl.texi: Document the bug.
58113         Reported by Elias Pipping <pipping@gentoo.org>.
58114
58115 2008-01-14  Eric Blake  <ebb9@byu.net>
58116
58117         Touch up previous patch.
58118         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58119         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58120
58121         Convert strcasestr module to use Two-Way algorithm.
58122         * modules/strcasestr-simple: New module, based on the old
58123         strcasestr, but with Two-Way rather than KMP.
58124         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58125         * lib/string.in.h (rpl_strcasestr): Declare.
58126         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58127         performance.
58128         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58129         * modules/string (Makefile.am): Support strcasestr.
58130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58131         * modules/strcasestr-tests (Depends-on): Check for alarm.
58132         * tests/test-strcasestr.c: Augment test.
58133         * lib/str-two-way.h: Clean up stray macro.
58134         * NEWS: Document new module.
58135         * MODULES.html.sh (string handling): Likewise.
58136         * doc/functions/strcasestr.texi: New file.
58137         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58138         here, since it is not a POSIX function.
58139
58140 2008-01-14  Colin Watson  <cjwatson@debian.org>
58141             Bruno Haible  <bruno@clisp.org>
58142
58143         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58144         works fine; if not, set REPLACE_STRSIGNAL.
58145         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58147         REPLACE_STRSIGNAL.
58148         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58149         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58150         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58151
58152 2008-01-14  Bruno Haible  <bruno@clisp.org>
58153
58154         * modules/strsignal (Include): Change to <string.h>.
58155
58156 2008-01-14  Colin Watson  <cjwatson@debian.org>
58157
58158         * modules/argp (Notice): Add a notice recommending to change
58159         XGETTEXT_OPTIONS.
58160         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58161
58162 2008-01-13  Colin Watson  <cjwatson@debian.org>
58163
58164         * modules/strsignal-tests: New file.
58165         * tests/test-strsignal.c: New file.
58166
58167         * lib/strsignal.c: New file, from glibc with modifications.
58168         * lib/siglist.h: New file, from glibc with modifications.
58169         * lib/string.in.h (strsignal): New declaration.
58170         * m4/strsignal.m4: New file.
58171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58172         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58173         * modules/strsignal: New file.
58174         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58175         HAVE_DECL_STRSIGNAL.
58176
58177 2008-01-13  Bruno Haible  <bruno@clisp.org>
58178
58179         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58180         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58181         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58182         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58183
58184 2008-01-13  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58187         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58188         * lib/argp.h (__attribute__): Likewise.
58189         * lib/c-stack.c (__attribute__): Likewise.
58190         * lib/error.h (__attribute__): Likewise.
58191         * lib/fts.c (__attribute__): Likewise.
58192         * lib/openat.h (__attribute__): Likewise.
58193         * lib/stdio.in.h (__attribute__): Likewise.
58194         * lib/string.in.h (__attribute__): Likewise.
58195         * lib/utimens.c (__attribute__): Likewise.
58196         * lib/vasnprintf.h (__attribute__): Likewise.
58197         * lib/xalloc.h (__attribute__): Likewise.
58198         * lib/xprintf.h (__attribute__): Likewise.
58199         * lib/xstrtol.h (__attribute__): Likewise.
58200         * lib/xvasprintf.h (__attribute__): Likewise.
58201
58202 2008-01-12  Bruno Haible  <bruno@clisp.org>
58203
58204         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58205         * doc/glibc-headers/a.out.texi: New file.
58206         * doc/glibc-headers/aliases.texi: New file.
58207         * doc/glibc-headers/alloca.texi: New file.
58208         * doc/glibc-headers/ar.texi: New file.
58209         * doc/glibc-headers/argp.texi: New file.
58210         * doc/glibc-headers/argz.texi: New file.
58211         * doc/glibc-headers/byteswap.texi: New file.
58212         * doc/glibc-headers/crypt.texi: New file.
58213         * doc/glibc-headers/endian.texi: New file.
58214         * doc/glibc-headers/envz.texi: New file.
58215         * doc/glibc-headers/err.texi: New file.
58216         * doc/glibc-headers/error.texi: New file.
58217         * doc/glibc-headers/execinfo.texi: New file.
58218         * doc/glibc-headers/fpu_control.texi: New file.
58219         * doc/glibc-headers/fstab.texi: New file.
58220         * doc/glibc-headers/fts.texi: New file.
58221         * doc/glibc-headers/getopt.texi: New file.
58222         * doc/glibc-headers/ieee754.texi: New file.
58223         * doc/glibc-headers/ifaddrs.texi: New file.
58224         * doc/glibc-headers/libintl.texi: New file.
58225         * doc/glibc-headers/mcheck.texi: New file.
58226         * doc/glibc-headers/mntent.texi: New file.
58227         * doc/glibc-headers/obstack.texi: New file.
58228         * doc/glibc-headers/paths.texi: New file.
58229         * doc/glibc-headers/printf.texi: New file.
58230         * doc/glibc-headers/pty.texi: New file.
58231         * doc/glibc-headers/resolv.texi: New file.
58232         * doc/glibc-headers/shadow.texi: New file.
58233         * doc/glibc-headers/sysexits.texi: New file.
58234         * doc/glibc-headers/ttyent.texi: New file.
58235
58236 2008-01-12  Jim Meyering  <meyering@redhat.com>
58237
58238         announce-gen: emit Gnulib's git-based version string.
58239         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58240         New option --gnulib-version=V, where V is expected to be
58241         the output of running git describe in the gnulib directory.
58242         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58243         not useful, and plan to stop publishing an xdelta file with each
58244         coreutils release.
58245
58246         * build-aux/announce-gen: Also check for lzma-compressed files.
58247
58248 2008-01-11  Bruno Haible  <bruno@clisp.org>
58249
58250         * tests/test-memmem.c (main): Increase maximum allowed time.
58251         * tests/test-strstr.c (main): Likewise.
58252
58253 2008-01-11  Bruno Haible  <bruno@clisp.org>
58254
58255         * doc/functions/memmem.texi: Add more precisions about platforms.
58256         * doc/functions/strstr.texi: Likewise.
58257
58258 2008-01-10  Eric Blake  <ebb9@byu.net>
58259
58260         * m4/strstr.m4: Delete cruft from copy-n-paste.
58261         Reported by Bruno Haible.
58262
58263 2008-01-10  Bruno Haible  <bruno@clisp.org>
58264
58265         Make c-strstr rely on strstr.
58266         * lib/c-strstr.c: Don't include str-kmp.h.
58267         (c_strstr): Define in terms of strstr.
58268         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58269         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58270
58271 2008-01-10  Bruno Haible  <bruno@clisp.org>
58272
58273         * doc/gnulib.texi (String Functions in C Locale): New section.
58274         * doc/c-ctype.texi: New file.
58275         * doc/c-strcase.texi: New file.
58276         * doc/c-strcaseeq.texi: New file.
58277         * doc/c-strcasestr.texi: New file.
58278         * doc/c-strstr.texi: New file.
58279         * doc/c-strtod.texi: New file.
58280         * doc/c-strtold.texi: New file.
58281
58282 2008-01-10  Eric Blake  <ebb9@byu.net>
58283
58284         * lib/relocatable.h: Fix a comment.
58285
58286 2008-01-10  Eric Blake  <ebb9@byu.net>
58287
58288         Share two-way algorithm.
58289         * lib/str-two-way.h: New file, merged from...
58290         * lib/memmem.c: ...here...
58291         * lib/strstr.c: ...and here.
58292         * modules/memmem (Files): Use it.
58293         * modules/strstr (Files): Likewise.
58294
58295         Avoid quadratic strstr implementations.
58296         * lib/strstr.c: New file.
58297         * m4/strstr.m4: Likewise.
58298         * modules/strstr: Likewise.
58299         * modules/strstr-tests: Likewise.
58300         * tests/test-strstr.c: Likewise.
58301         * lib/string.in.h (rpl_strstr): Declare.
58302         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58304         * modules/string (Makefile.am): Likewise.
58305         * MODULES.html.sh (string handling): Mention new module.
58306         * doc/functions/strstr.texi (strstr): Document the bug.
58307
58308 2008-01-10  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/relocatable.h (relocate): State whether result is freshly
58311         allocated or not.
58312         * lib/relocatable.c (relocate): Return a freshly allocated string
58313         instead of a pointer to a privately held string.
58314         Reported by Sylvain Beucler <beuc@gnu.org>.
58315
58316 2008-01-10  Colin Watson  <cjwatson@debian.org>
58317
58318         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58319         s/S_ISNLK/S_ISLNK/.
58320
58321 2008-01-09  Bruno Haible  <bruno@clisp.org>
58322
58323         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58324         and other files.
58325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58326         if it's only a guess.
58327         * modules/memmem: Simplify by depending on memmem-simple.
58328
58329 2008-01-09  Bruno Haible  <bruno@clisp.org>
58330
58331         Work around OpenBSD 4.0 tdelete() bug.
58332         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58333         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58334         macros and don't redefine the enum values.
58335         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58336         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58337         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58338
58339 2008-01-09  Bruno Haible  <bruno@clisp.org>
58340
58341         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58342         (main): Don't perform the tests if setlocale did not install a UTF-8
58343         locale. Needed on OpenBSD 4.0.
58344         * modules/wcwidth-tests (Depends-on): Add localcharset.
58345
58346 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58347
58348         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58349         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58350         * NEWS: announce this.
58351         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58352
58353 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58354         and Eric Blake  <ebb9@byu.net>
58355
58356         Add memmem-simple module.
58357         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58358         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58359         * modules/memmem-simple: New file.
58360         * modules/memmem (Description): Tweak.
58361         * MODULES.html.sh (string handling): Mention new module.
58362         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58363         addressed by memmem-simple.
58364         * NEWS: Document the difference.
58365
58366 2008-01-09  Eric Blake  <ebb9@byu.net>
58367
58368         Give gcc some memmem optimization hints.
58369         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58370         (strcasestr): Declare as pure.
58371         * modules/memmem (Maintainer): Claim my implementation.
58372
58373 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58374
58375         Support AIX 6.1 and higher.
58376         * build-aux/config.libpath: Likewise.
58377         * build-aux/config.rpath: Likewise.
58378
58379 2008-01-08  Jim Meyering  <meyering@redhat.com>
58380             Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58383         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58384         Reported by Peter Fales in
58385         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58386
58387 2008-01-08  Bruno Haible  <bruno@clisp.org>
58388
58389         * modules/unictype/category-of (Depends-on): Add
58390         unictype/category-none.
58391         * modules/unictype/category-and-tests (Depends-on): Add
58392         unictype/category-{L,N,Lu,Nd}.
58393         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58394         * modules/unictype/category-or-tests (Depends-on): Add
58395         unictype/category-{L,N}.
58396         * modules/unictype/category-name-tests (Depends-on): Add
58397         unictype/category-{Z,Nl}.
58398         Reported by Simon Josefsson.
58399
58400 2008-01-08  Bruno Haible  <bruno@clisp.org>
58401
58402         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58403         convention better.
58404         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58405         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58406         Reported by Peter Miller <millerp@canb.auug.org.au>.
58407
58408 2008-01-08  Eric Blake  <ebb9@byu.net>
58409
58410         Rewrite memmem to guarantee linear complexity without malloc.
58411         * lib/memmem.c (memmem): Use Two-Way rather than
58412         Knuth-Morris-Pratt, to allow O(1) space usage.
58413         (critical_factorization, two_way_short_needle)
58414         (two_way_long_needle): New functions.
58415         (knuth_morris_pratt): Delete.
58416         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58417         Add stdint.
58418         * tests/test-memmem.c (main): Add tests for periodic needle and
58419         sublinear performance.
58420         * doc/functions/memmem.texi (memmem): Document other deficiencies
58421         in cygwin and older glibc.
58422
58423 2008-01-08  Bruno Haible  <bruno@clisp.org>
58424
58425         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58426         augmentation.
58427
58428 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58429
58430         Add a configure time option: --disable-acl.
58431         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58432         AC_ARG_ENABLE(acl).
58433
58434 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58435
58436         * tests/test-localename.c: Don't include obsolete "setenv.h".
58437
58438         * modules/localename-tests (Depends-on): Need unsetenv.
58439
58440 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58441
58442         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58443
58444 2008-01-06  Colin Watson  <cjwatson@debian.org>
58445
58446         * users.txt: Add man-db.
58447
58448 2008-01-07  Bruno Haible  <bruno@clisp.org>
58449
58450         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58451         previous section name.
58452
58453 2008-01-07  Bruno Haible  <bruno@clisp.org>
58454
58455         * lib/progname.c (set_program_name): Don't strip off a leading
58456         "lt-" prefix outside a .libs directory.
58457         Suggested by Paul Eggert.
58458
58459 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58460             Bruno Haible  <bruno@clisp.org>
58461
58462         Improve memory cleanup in 'relocatable' module.
58463         * lib/relocatable.h (compute_curr_prefix): Change return type to
58464         'char *'.
58465         * lib/relocatable.c (compute_curr_prefix): Change return type to
58466         'char *'. Free curr_installdir after use.
58467         (relocate): Free curr_prefix_better after use.
58468         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58469
58470 2008-01-01  Bruno Haible  <bruno@clisp.org>
58471
58472         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58473         failure on older glibc systems.
58474         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58475
58476 2008-01-05  Eric Blake  <ebb9@byu.net>
58477
58478         Avoid quadratic system memmem.
58479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58480         Reported by Ralf Wildenhues.
58481
58482         Fix memmem test for mingw.
58483         * modules/memmem-tests (configure.ac): Check for alarm.
58484         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58485         it.
58486         * doc/functions/memmem.texi: New file.
58487         * doc/gnulib.texi (Function Substitutes): Add memmem.
58488         Reported by Bruno Haible.
58489
58490 2008-01-04  Bruno Haible  <bruno@clisp.org>
58491
58492         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58493         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58494         gl_HEADER_STRING_H_DEFAULTS.
58495
58496 2008-01-04  Eric Blake  <ebb9@byu.net>
58497
58498         Shorten duration of memmem test.
58499         * tests/test-memmem.c (main): Use alarm to declare failure if test
58500         is taking too long.
58501         Reported by Ralf Wildenhues.
58502
58503 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58504
58505         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58506         string, needed by strerror.
58507
58508 2008-01-03  Colin Watson  <cjwatson@debian.org>
58509             Bruno Haible  <bruno@clisp.org>
58510
58511         * doc/gnulib-tool.texi (Localization): New section.
58512
58513 2008-01-02  Bruno Haible  <bruno@clisp.org>
58514
58515         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58516         variables to 'unsigned char *' type.
58517         Reported by Paul Eggert.
58518
58519 2008-01-02  Jim Meyering  <jim@meyering.net>
58520
58521         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58522
58523 2007-12-31  Jim Meyering  <jim@meyering.net>
58524
58525         Avoid use of private FTS type name.
58526         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58527
58528 2007-12-30  Karl Berry  <karl@gnu.org>
58529
58530         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58531         work around defect in Texinfo and/or the standalone Info browser.
58532
58533 2007-12-30  Bruno Haible  <bruno@clisp.org>
58534
58535         Unify 5 copies of the KMP code.
58536         * lib/str-kmp.h: New file.
58537         * lib/c-strcasestr.c: Include str-kmp.h.
58538         (knuth_morris_pratt): Remove function.
58539         (c_strcasestr): Update.
58540         * lib/c-strstr.c: Include str-kmp.h.
58541         (knuth_morris_pratt): Remove function.
58542         (c_strcasestr): Update.
58543         * lib/mbscasestr.c: Include str-kmp.h.
58544         (knuth_morris_pratt_unibyte): Remove function.
58545         * lib/mbsstr.c: Include str-kmp.h.
58546         (knuth_morris_pratt_unibyte): Remove function.
58547         * lib/strcasestr.c: Include str-kmp.h.
58548         (knuth_morris_pratt): Remove function.
58549         (strcasestr): Update.
58550         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58551         * modules/c-strstr (Files): Likewise.
58552         * modules/mbscasestr (Files): Likewise.
58553         * modules/mbsstr (Files): Likewise.
58554         * modules/strcasestr (Files): Likewise.
58555         Suggested by Paul Eggert.
58556
58557 2007-12-30  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58560         defined.
58561
58562 2007-12-30  Bruno Haible  <bruno@clisp.org>
58563
58564         * lib/xmalloca.h: Include xalloc.h.
58565         (xnmalloca): New macro.
58566
58567 2007-12-30  Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/malloca.h (nmalloca): New macro.
58570         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58571         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58572         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58573         knuth_morris_pratt_multibyte): Likewise.
58574         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58575         knuth_morris_pratt_multibyte): Likewise.
58576         * lib/memmem.c (knuth_morris_pratt): Likewise.
58577         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58578
58579 2007-12-25  Bruno Haible  <bruno@clisp.org>
58580
58581         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58582         * lib/glob.c: Don't include openat.h.
58583         (link_exists2_p): Add back the code that deals with the
58584         !GLOB_ALTDIRFUNC case.
58585         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58586         let it do the filename concatenation.
58587         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58588         * modules/glob (Depends-on): Remove openat.
58589
58590 2007-12-31  Bruno Haible  <bruno@clisp.org>
58591
58592         * modules/dirfd (License): Change to LGPLv2+.
58593         Approved by Jim Meyering.
58594
58595 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58598         when multiplying M by sizeof (size_t).
58599
58600 2007-12-10  Martin Lambers  <marlam@marlam.de>
58601
58602         Override getpagesize on mingw.
58603         * lib/getpagesize.c: New file.
58604         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58605         * modules/getpagesize (Files): Add lib/getpagesize.c.
58606         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58608         REPLACE_GETPAGESIZE.
58609         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58610
58611 2007-12-25  Bruno Haible  <bruno@clisp.org>
58612
58613         * modules/localcharset (Notice): New field.
58614         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58615         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58616
58617 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58618             Bruno Haible  <bruno@clisp.org>
58619
58620         Avoid using the syntax symbol() in formatted documentation.
58621         * MODULES.html.sh (func_module): When replacing symbol() with a
58622         hyperlink, remove the parentheses. Show an error if some remain.
58623         Recognize and render the '...' syntax.
58624         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58625         Rework. Add paragraph about GCC's inlining.
58626         * doc/alloca.texi: Likewise.
58627         * doc/error.texi: Remove parentheses from symbol reference.
58628         * doc/gnulib-intro.texi: Likewise.
58629         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58630         * modules/fnmatch (Description): Reword to say "the ... function".
58631         * modules/full-read (Description): Likewise.
58632         * modules/full-write (Description): Likewise.
58633         * modules/safe-read (Description): Likewise.
58634         * modules/safe-write (Description): Likewise.
58635         * modules/strchrnul (Description): Likewise.
58636         * modules/trim (Description): Likewise.
58637         * modules/error (Description): Remove parentheses from symbol
58638         references.
58639         * modules/verror (Description): Likewise.
58640         Reported by Karl Berry.
58641
58642 2007-12-25  Bruno Haible  <bruno@clisp.org>
58643
58644         Fixup after 2007-10-16 commit.
58645         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58646
58647 2007-12-24  Bruno Haible  <bruno@clisp.org>
58648
58649         Make --enable-relocatable work with DESTDIR.
58650         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58651         to compute installdir from destprog.
58652         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58653         also set the RELOC_DESTDIR variable.
58654         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58655
58656 2007-12-24  Bruno Haible  <bruno@clisp.org>
58657
58658         Fix link error due to xalloc_die().
58659         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58660         of xreadlink.
58661         * lib/relocwrapper.c: Update comments.
58662         * build-aux/install-reloc: Remove xreadlink.c from file list.
58663         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58664         xreadlink.c.
58665         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58666
58667 2007-12-24  Bruno Haible  <bruno@clisp.org>
58668
58669         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58670         * lib/setenv.h: Remove file.
58671         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58672         lib/setenv.h.
58673         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58674         (Depends-on): Add stdlib.
58675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58676         gl_FUNC_UNSETENV.
58677         (Include): Replace setenv.h with <stdlib.h>.
58678         * modules/unsetenv: New file.
58679         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58680         * lib/unsetenv.c: Include <stdlib.h> first.
58681         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58682         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58683         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58684         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58685         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58686         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58688         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58689         * doc/functions/unsetenv.texi: Update.
58690         * modules/xsetenv (Depends-on): Add unsetenv.
58691         * modules/getdate (Depends-on): Likewise.
58692         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58693         * lib/xsetenv.c: Don't include setenv.h.
58694         * lib/getdate.y: Likewise.
58695         * lib/relocwrapper.c: Likewise.
58696         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58697         (Depends-on): Add stdlib.
58698         * NEWS: Mention the changes.
58699         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58700
58701 2007-12-23  Bruno Haible  <bruno@clisp.org>
58702
58703         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58704         indentation.
58705
58706 2007-12-23  Bruno Haible  <bruno@clisp.org>
58707
58708         * lib/c-strcasestr.c: Add more comments.
58709         * lib/c-strstr.c: Likewise.
58710         * lib/mbscasestr.c: Likewise.
58711         * lib/mbsstr.c: Likewise.
58712         * lib/strcasestr.c: Likewise.
58713         * lib/memmem.c: Likewise.
58714
58715 2007-12-23  Bruno Haible  <bruno@clisp.org>
58716
58717         * tests/test-memmem.c: Include <string.h> first.
58718
58719 2007-12-22  Bruno Haible  <bruno@clisp.org>
58720
58721         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58722         the contents of $testsbase.
58723         Reported by Ralf Wildenhues.
58724
58725 2007-12-22  Bruno Haible  <bruno@clisp.org>
58726
58727         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58728         two variables local_ldadd_before, local_ldadd_last.
58729
58730 2007-12-20  Eric Blake  <ebb9@byu.net>
58731
58732         Work around circular library issue when cross-compiling.
58733         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58734         that progname.o does not need to pull in rpl_memcmp.
58735
58736 2007-12-19  Eric Blake  <ebb9@byu.net>
58737
58738         Fix memmem to avoid O(n^2) worst-case complexity.
58739         * lib/memmem.c (knuth_morris_pratt): New function.
58740         (memmem): Use it if first few naive iterations fail.
58741         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58742         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58743         * modules/memchr (License): Likewise.
58744         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58745         malloca.
58746         * tests/test-memmem.c: Rewrite, borrowing ideas from
58747         test-mbsstr1.c; the old version wouldn't even compile!
58748         * modules/memmem-tests: New file.
58749         * lib/string.in.h (rpl_memmem): Add declaration.
58750         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58752         REPLACE_MEMMEM.
58753
58754 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58755
58756         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58757         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58758         before any system include files, and undef after them all.  This
58759         should fix a problem on VMS reported by John E. Malmberg in
58760         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58761
58762 2007-12-17  Eric Blake  <ebb9@byu.net>
58763
58764         Revert addition of verify, for BSD/OS.
58765         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58766         can't handle large files, for the sake of obsolete platforms.
58767         * modules/fseeko (Depends-on): Remove verify.
58768         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58769         * doc/functions/ftello.texi (ftello): Likewise.
58770         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58771         Reported by Larry Jones.
58772
58773 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58774
58775         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58776         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58777
58778 2007-12-17  Jim Meyering  <meyering@redhat.com>
58779
58780         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58781         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58782         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58783         * modules/getcwd (Depends-on): Add openat.
58784         Reported by Petr Salinger.
58785
58786 2007-12-17  Bruno Haible  <bruno@clisp.org>
58787
58788         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58789         avoid a segmentation fault of the configure test on x86_64 systems.
58790
58791 2007-12-15  Jim Meyering  <meyering@redhat.com>
58792
58793         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58794
58795 2007-12-13  Eric Blake  <ebb9@byu.net>
58796
58797         Another fseek test.
58798         * tests/test-fseek.c (main): Also test ungetc handling.
58799         * tests/test-fseeko.c (main): Likewise.
58800         * modules/fseeko (Depends-on): Add verify.
58801         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58802         large.
58803         Reported by Larry Jones.
58804
58805         Fix fseeko on mingw.
58806         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58807         seek.
58808
58809         Beef up fseek tests.
58810         * tests/test-fseek.c (main): Also test eof handling.
58811         * tests/test-fseeko.c (main): Likewise.
58812         Reported by Larry Jones.
58813
58814 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58815
58816         Fix fseeko on BSD-based platforms.
58817         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58818         successful seek.
58819
58820 2007-12-12  Eric Blake  <ebb9@byu.net>
58821
58822         Allow circular dependency of separate libtests.a
58823         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58824         when use_libtests.
58825
58826 2007-12-11  Eric Blake  <ebb9@byu.net>
58827
58828         Fix bug with -0.0L in previous patch.
58829         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58830         * tests/test-isnan.c (main): Also test on zeroes.
58831         * tests/test-isnanf.c (main): Likewise.
58832         * tests/test-isnanl.h (main): Likewise.
58833
58834         Detect pseudo-denormals on x86 even when cross-compiling.
58835         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58836         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58837         invalid bit patterns that happen to satisfy ==.
58838
58839         Avoid link failures with separate libtests.a.
58840         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58841         last, to satisfy circular dependencies.
58842
58843 2007-12-11  Eric Blake  <ebb9@byu.net>
58844         and Bruno Haible  <bruno@clisp.org>
58845
58846         Fix OpenBSD 4.0 <float.h> handling of long double.
58847         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58848         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58849         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58850
58851 2007-12-11  Jim Meyering  <meyering@redhat.com>
58852
58853         * users.txt: Add libvirt.
58854
58855         Support versions of autoconf prior to 2.59c.
58856         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58857         if it is not already defined.
58858
58859 2007-12-09  Bruno Haible  <bruno@clisp.org>
58860
58861         Let 'gnulib-tool --import' collect sources needed for the tests in
58862         tests/ rather than in lib/.
58863         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58864         argument. If true, add rules to generate libtests.a, and put libtests.a
58865         into $(LDADD). Consider source files in subdirectories and set
58866         uses_subdirs.
58867         (func_emit_initmacro_start, func_emit_initmacro_end,
58868         func_emit_initmacro_done): Pass all arguments explicitly.
58869         (func_import): Determine two module lists main_modules,
58870         testsrelated_modules. Determine use_libtests. Determine two variables
58871         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58872         instead of just sed_transform_lib_file. Determine two variables
58873         main_files and testsrelated_files. Compute 'files' as the union of
58874         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58875         func_add_or_update. In the generated gnulib-comp.m4, collect the
58876         object files for tests/ in different variables than those for lib/.
58877         Substitute LIBTESTS_LIBDEPS.
58878         (func_create_testdir): Combine the uses_subdirs results from
58879         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58880
58881 2007-12-09  Bruno Haible  <bruno@clisp.org>
58882
58883         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58884         the build-aux directory.
58885
58886 2007-12-09  Bruno Haible  <bruno@clisp.org>
58887
58888         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58889         introduced on 2006-09-09.
58890
58891 2007-12-07  Jim Meyering  <meyering@redhat.com>
58892
58893         Let these macros work also with autoconf-2.59.
58894         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58895         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58896         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58897
58898 2007-12-06  Jim Meyering  <meyering@redhat.com>
58899
58900         Avoid a configure-time syntax error in gl_FUNC_ACL.
58901         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58902         function in each branch, before testing the cache variable.
58903
58904 2007-12-04  Eric Blake  <ebb9@byu.net>
58905
58906         Make scripts executable.
58907         * build-aux/config.guess: Add execute permissions.
58908         * build-aux/config.sub: Likewise.
58909         * build-aux/gendocs.sh: Likewise.
58910
58911         Fix frexp on mingw.
58912         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58913         cross-compiling.
58914         * doc/functions/frexp.texi (frexp): Document the bug.
58915
58916         Make cygwin fseeko check more reliable.
58917         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58918         version numbers, rather than unrelated feature check.
58919         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58920         * doc/functions/ftello.texi (ftello): Likewise.
58921         Reported by Bruno Haible.
58922
58923         * m4/strerror.m4: Bump version number.
58924
58925 2007-12-03  Bruno Haible  <bruno@clisp.org>
58926
58927         * doc/functions/mprotect.texi: Mention the mingw problem.
58928
58929 2007-12-03  Eric Blake  <ebb9@byu.net>
58930
58931         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58932         REPLACE_STRERROR is initialized before this macro.
58933
58934 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58935
58936         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58937         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58938         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58939         put -lsec in even for programs other than 'ls'.  This fixes a problem
58940         for gettext reported by Bruno Haible in
58941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58942         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58943         Add support for Solaris 10.  This isn't efficient, but should get the
58944         job done for now.
58945
58946 2007-12-03  James Youngman  <jay@gnu.org>
58947
58948         * doc/regexprops-generic.texi: change "an close-group" to "a
58949         close-group" and "illegal" to "not allowed".
58950
58951 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58952
58953         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58954         pr_byname.h. Needed for the rare case when the maintainer has done
58955         "make maintainer-clean" in the source directory and then attempts a
58956         build outside the source directory.
58957         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58958         scripts_byname.h.
58959
58960 2007-12-02  Martin Lambers <marlam@marlam.de>
58961             Bruno Haible  <bruno@clisp.org>
58962
58963         * lib/getpagesize.h: Remove file.
58964         * lib/unistd.in.h: Include declaration of getpagesize here.
58965         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58966         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58967         HAVE_SYS_PARAM_H.
58968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58969         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58970         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58971         (Depends-on): Add unistd.
58972         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58973         (Include): Use <unistd.h> instead of getpagesize.h.
58974         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58975         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58976         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58977         gl_GETPAGESIZE invocation, already handled by module dependency.
58978         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58979
58980 2007-12-02  Bruno Haible  <bruno@clisp.org>
58981
58982         * modules/strings-tests: New file.
58983         * tests/test-strings.c: New file.
58984
58985         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58986         * lib/strings.in.h: New file.
58987         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58988         * m4/strings_h.m4: New file.
58989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58990         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58991         * modules/strings: New file.
58992         * modules/string (Makefile.am): Update.
58993         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58994         Reported by Karl Berry.
58995
58996 2007-12-01  Eric Blake  <ebb9@byu.net>
58997
58998         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58999         accomodate fix in cygwin 1.5.25.
59000
59001 2007-12-01  Jim Meyering  <meyering@redhat.com>
59002
59003         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59004         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59005         that would inhibit utf8-optimization of a regexp containing line-
59006         or buffer-anchors, e.g., `^', `$'.
59007
59008 2007-11-30  Bruno Haible  <bruno@clisp.org>
59009
59010         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59011         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59012         glthread_recursive_lock_init.
59013         * lib/lock.c (glthread_recursive_lock_init)
59014         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59015         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59016
59017 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59018
59019         New function qset_acl, like set_acl but with syscall semantics.
59020         * lib/acl.h (qset_acl): New decl.
59021         * lib/acl.c (qset_acl): New function.
59022         (set_acl): Use new function.  Use more-consistent diagnostics.
59023
59024 2007-11-28  Jim Meyering  <meyering@redhat.com>
59025
59026         * modules/physmem (License): Change from GPL to LGPLv2+.
59027
59028 2007-11-26  Bruno Haible  <bruno@clisp.org>
59029
59030         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59031         'long double' type has excess precision.
59032         Reported by Jim Meyering in
59033         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59034
59035 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59036
59037         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59038         Sync from <http://gnu.org/licenses>.
59039         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59040         with license text from same location.
59041         * doc/maintain.texi, doc/standards.texi:  Sync from
59042         <http://savannah.gnu.org/projects/gnustandards>.
59043
59044 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59045         and Jim Meyering  <meyering@redhat.com>
59046
59047         Adjust getdate' grammar to accept a slightly more regular language.
59048         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59049         Before, the former was rejected.
59050         * lib/getdate.y (digits_to_date_time): New function, factored
59051         out of ...
59052         (number): ...here.  Just call digits_to_date_time.
59053         (hybrid): New non-terminal to handle an <unsigned number,
59054         signed relative offset> sequence consistently.
59055
59056 2007-11-18  Jim Meyering  <meyering@redhat.com>
59057
59058         Pull my changes from coreutils:
59059         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59060         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59061         use of $gnulib_tool_option_extras, so that it's separated from the
59062         preceding argument.
59063
59064         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59065         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59066         parent destination directories before copying a file into place.
59067
59068 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59069
59070         bootstrap: work also with 4-argument variant of AC_INIT
59071         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59072
59073 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59074
59075         Port test-getaddrinfo to Solaris.
59076         Problem reported by Bruno Haible in
59077         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59078         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59079         explanation of setting 'hints'.
59080         Don't reject an implementation merely because it returns EAI_SERVICE.
59081         (EAI_SERVICE): Define to 0 if not defined.
59082
59083 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         The license of gnu-make and posix-shell is now "GPLed build tool".
59086         * modules/gnu-make (License): Likewise.
59087         * modules/posix-shell (License): Likewise.
59088
59089         New module posix-shell, for determining a POSIX shell
59090         or perhaps something that is close enough to a POSIX shell.
59091         * m4/posix-shell.m4: New file.
59092         * modules/posix-shell: New file.
59093
59094         * MODULES.html.sh: Mention new module.
59095
59096         New module gnu-make, for determining whether we're using GNU Make.
59097         * m4/gnu-make.m4: New file.
59098         * modules/gnu-make: New file.
59099         * MODULES.html.sh: Mention new module.
59100
59101 2007-11-14  Jim Meyering  <meyering@redhat.com>
59102
59103         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59104         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59105         use this macro to create a function _definition_.
59106         Remove useless "#undef ARGMATCH_DIE".
59107
59108 2007-11-14  Bruno Haible  <bruno@clisp.org>
59109
59110         * lib/config.charset: Update for OpenBSD 4.1.
59111         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59112
59113 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59114
59115         Document 64-bit #if problems in stdint.texi.
59116         * doc/headers/stdint.texi (stdint.h): Mention problems with
59117         64-bit-#if, and how to work around them.
59118
59119         Don't insist on 'long long int' support in the preprocessor.  It
59120         breaks too many things.  For example, PRIdMAX still uses a 'long
59121         long int' format with the latest Sun compiler, even though
59122         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59123         preprocessor problem.  This causes the latest coreutils to dump
59124         core on Solaris 10 sparc with the Sun C compiler.
59125         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59126         the troublesome expressions at configure-time, not at #if-time.
59127         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59128         preprocessor.
59129         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59130         compile-time C checks, done at 'configure'-time.
59131         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59132         * modules/inttypes (Makefile): Substitute the new symbols that
59133         gl_INTTYPES_H now generates.
59134         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59135
59136 2007-11-12  Bruno Haible  <bruno@clisp.org>
59137
59138         Tests for Unicode character classification functions.
59139
59140         * modules/unictype/bidicategory-byname-tests: New file.
59141         * modules/unictype/bidicategory-name-tests: New file.
59142         * modules/unictype/bidicategory-of-tests: New file.
59143         * modules/unictype/bidicategory-test-tests: New file.
59144         * modules/unictype/block-list-tests: New file.
59145         * modules/unictype/block-of-tests: New file.
59146         * modules/unictype/block-test-tests: New file.
59147         * modules/unictype/category-C-tests: New file.
59148         * modules/unictype/category-Cc-tests: New file.
59149         * modules/unictype/category-Cf-tests: New file.
59150         * modules/unictype/category-Cn-tests: New file.
59151         * modules/unictype/category-Co-tests: New file.
59152         * modules/unictype/category-Cs-tests: New file.
59153         * modules/unictype/category-L-tests: New file.
59154         * modules/unictype/category-Ll-tests: New file.
59155         * modules/unictype/category-Lm-tests: New file.
59156         * modules/unictype/category-Lo-tests: New file.
59157         * modules/unictype/category-Lt-tests: New file.
59158         * modules/unictype/category-Lu-tests: New file.
59159         * modules/unictype/category-M-tests: New file.
59160         * modules/unictype/category-Mc-tests: New file.
59161         * modules/unictype/category-Me-tests: New file.
59162         * modules/unictype/category-Mn-tests: New file.
59163         * modules/unictype/category-N-tests: New file.
59164         * modules/unictype/category-Nd-tests: New file.
59165         * modules/unictype/category-Nl-tests: New file.
59166         * modules/unictype/category-No-tests: New file.
59167         * modules/unictype/category-P-tests: New file.
59168         * modules/unictype/category-Pc-tests: New file.
59169         * modules/unictype/category-Pd-tests: New file.
59170         * modules/unictype/category-Pe-tests: New file.
59171         * modules/unictype/category-Pf-tests: New file.
59172         * modules/unictype/category-Pi-tests: New file.
59173         * modules/unictype/category-Po-tests: New file.
59174         * modules/unictype/category-Ps-tests: New file.
59175         * modules/unictype/category-S-tests: New file.
59176         * modules/unictype/category-Sc-tests: New file.
59177         * modules/unictype/category-Sk-tests: New file.
59178         * modules/unictype/category-Sm-tests: New file.
59179         * modules/unictype/category-So-tests: New file.
59180         * modules/unictype/category-Z-tests: New file.
59181         * modules/unictype/category-Zl-tests: New file.
59182         * modules/unictype/category-Zp-tests: New file.
59183         * modules/unictype/category-Zs-tests: New file.
59184         * modules/unictype/category-and-not-tests: New file.
59185         * modules/unictype/category-and-tests: New file.
59186         * modules/unictype/category-byname-tests: New file.
59187         * modules/unictype/category-name-tests: New file.
59188         * modules/unictype/category-none-tests: New file.
59189         * modules/unictype/category-of-tests: New file.
59190         * modules/unictype/category-or-tests: New file.
59191         * modules/unictype/category-test-withtable-tests: New file.
59192         * modules/unictype/combining-class-tests: New file.
59193         * modules/unictype/ctype-alnum-tests: New file.
59194         * modules/unictype/ctype-alpha-tests: New file.
59195         * modules/unictype/ctype-blank-tests: New file.
59196         * modules/unictype/ctype-cntrl-tests: New file.
59197         * modules/unictype/ctype-digit-tests: New file.
59198         * modules/unictype/ctype-graph-tests: New file.
59199         * modules/unictype/ctype-lower-tests: New file.
59200         * modules/unictype/ctype-print-tests: New file.
59201         * modules/unictype/ctype-punct-tests: New file.
59202         * modules/unictype/ctype-space-tests: New file.
59203         * modules/unictype/ctype-upper-tests: New file.
59204         * modules/unictype/ctype-xdigit-tests: New file.
59205         * modules/unictype/decimal-digit-tests: New file.
59206         * modules/unictype/digit-tests: New file.
59207         * modules/unictype/mirror-tests: New file.
59208         * modules/unictype/numeric-tests: New file.
59209         * modules/unictype/property-alphabetic-tests: New file.
59210         * modules/unictype/property-ascii-hex-digit-tests: New file.
59211         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59212         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59213         * modules/unictype/property-bidi-block-separator-tests: New file.
59214         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59215         * modules/unictype/property-bidi-common-separator-tests: New file.
59216         * modules/unictype/property-bidi-control-tests: New file.
59217         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59218         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59219         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59220         * modules/unictype/property-bidi-european-digit-tests: New file.
59221         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59222         * modules/unictype/property-bidi-left-to-right-tests: New file.
59223         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59224         * modules/unictype/property-bidi-other-neutral-tests: New file.
59225         * modules/unictype/property-bidi-pdf-tests: New file.
59226         * modules/unictype/property-bidi-segment-separator-tests: New file.
59227         * modules/unictype/property-bidi-whitespace-tests: New file.
59228         * modules/unictype/property-byname-tests: New file.
59229         * modules/unictype/property-combining-tests: New file.
59230         * modules/unictype/property-composite-tests: New file.
59231         * modules/unictype/property-currency-symbol-tests: New file.
59232         * modules/unictype/property-dash-tests: New file.
59233         * modules/unictype/property-decimal-digit-tests: New file.
59234         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59235         * modules/unictype/property-deprecated-tests: New file.
59236         * modules/unictype/property-diacritic-tests: New file.
59237         * modules/unictype/property-extender-tests: New file.
59238         * modules/unictype/property-format-control-tests: New file.
59239         * modules/unictype/property-grapheme-base-tests: New file.
59240         * modules/unictype/property-grapheme-extend-tests: New file.
59241         * modules/unictype/property-grapheme-link-tests: New file.
59242         * modules/unictype/property-hex-digit-tests: New file.
59243         * modules/unictype/property-hyphen-tests: New file.
59244         * modules/unictype/property-id-continue-tests: New file.
59245         * modules/unictype/property-id-start-tests: New file.
59246         * modules/unictype/property-ideographic-tests: New file.
59247         * modules/unictype/property-ids-binary-operator-tests: New file.
59248         * modules/unictype/property-ids-trinary-operator-tests: New file.
59249         * modules/unictype/property-ignorable-control-tests: New file.
59250         * modules/unictype/property-iso-control-tests: New file.
59251         * modules/unictype/property-join-control-tests: New file.
59252         * modules/unictype/property-left-of-pair-tests: New file.
59253         * modules/unictype/property-line-separator-tests: New file.
59254         * modules/unictype/property-logical-order-exception-tests: New file.
59255         * modules/unictype/property-lowercase-tests: New file.
59256         * modules/unictype/property-math-tests: New file.
59257         * modules/unictype/property-non-break-tests: New file.
59258         * modules/unictype/property-not-a-character-tests: New file.
59259         * modules/unictype/property-numeric-tests: New file.
59260         * modules/unictype/property-other-alphabetic-tests: New file.
59261         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59262         * modules/unictype/property-other-grapheme-extend-tests: New file.
59263         * modules/unictype/property-other-id-continue-tests: New file.
59264         * modules/unictype/property-other-id-start-tests: New file.
59265         * modules/unictype/property-other-lowercase-tests: New file.
59266         * modules/unictype/property-other-math-tests: New file.
59267         * modules/unictype/property-other-uppercase-tests: New file.
59268         * modules/unictype/property-paired-punctuation-tests: New file.
59269         * modules/unictype/property-paragraph-separator-tests: New file.
59270         * modules/unictype/property-pattern-syntax-tests: New file.
59271         * modules/unictype/property-pattern-white-space-tests: New file.
59272         * modules/unictype/property-private-use-tests: New file.
59273         * modules/unictype/property-punctuation-tests: New file.
59274         * modules/unictype/property-quotation-mark-tests: New file.
59275         * modules/unictype/property-radical-tests: New file.
59276         * modules/unictype/property-sentence-terminal-tests: New file.
59277         * modules/unictype/property-soft-dotted-tests: New file.
59278         * modules/unictype/property-space-tests: New file.
59279         * modules/unictype/property-terminal-punctuation-tests: New file.
59280         * modules/unictype/property-test-tests: New file.
59281         * modules/unictype/property-titlecase-tests: New file.
59282         * modules/unictype/property-unassigned-code-value-tests: New file.
59283         * modules/unictype/property-unified-ideograph-tests: New file.
59284         * modules/unictype/property-uppercase-tests: New file.
59285         * modules/unictype/property-variation-selector-tests: New file.
59286         * modules/unictype/property-white-space-tests: New file.
59287         * modules/unictype/property-xid-continue-tests: New file.
59288         * modules/unictype/property-xid-start-tests: New file.
59289         * modules/unictype/property-zero-width-tests: New file.
59290         * modules/unictype/scripts-tests: New file.
59291         * modules/unictype/syntax-c-ident-tests: New file.
59292         * modules/unictype/syntax-c-whitespace-tests: New file.
59293         * modules/unictype/syntax-java-ident-tests: New file.
59294         * modules/unictype/syntax-java-whitespace-tests: New file.
59295         * tests/unictype/test-bidi_byname.c: New file.
59296         * tests/unictype/test-bidi_name.c: New file.
59297         * tests/unictype/test-bidi_of.c: New file.
59298         * tests/unictype/test-bidi_test.c: New file.
59299         * tests/unictype/test-block_list.c: New file.
59300         * tests/unictype/test-block_of.c: New file.
59301         * tests/unictype/test-block_test.c: New file.
59302         * tests/unictype/test-categ_and.c: New file.
59303         * tests/unictype/test-categ_and_not.c: New file.
59304         * tests/unictype/test-categ_byname.c: New file.
59305         * tests/unictype/test-categ_name.c: New file.
59306         * tests/unictype/test-categ_none.c: New file.
59307         * tests/unictype/test-categ_of.c: New file.
59308         * tests/unictype/test-categ_or.c: New file.
59309         * tests/unictype/test-categ_test_withtable.c: New file.
59310         * tests/unictype/test-combining.c: New file.
59311         * tests/unictype/test-decdigit.c: New file.
59312         * tests/unictype/test-digit.c: New file.
59313         * tests/unictype/test-mirror.c: New file.
59314         * tests/unictype/test-numeric.c: New file.
59315         * tests/unictype/test-pr_byname.c: New file.
59316         * tests/unictype/test-pr_test.c: New file.
59317         * tests/unictype/test-predicate-part1.h: New file.
59318         * tests/unictype/test-predicate-part2.h: New file.
59319         * tests/unictype/test-scripts.c: New file.
59320         * tests/unictype/test-sy_c_ident.c: New file.
59321         * tests/unictype/test-sy_java_ident.c: New file.
59322
59323         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59324         for Unicode 5.0.0.
59325         * tests/unictype/test-categ_Cc.c: Likewise.
59326         * tests/unictype/test-categ_Cf.c: Likewise.
59327         * tests/unictype/test-categ_Cn.c: Likewise.
59328         * tests/unictype/test-categ_Co.c: Likewise.
59329         * tests/unictype/test-categ_Cs.c: Likewise.
59330         * tests/unictype/test-categ_L.c: Likewise.
59331         * tests/unictype/test-categ_Ll.c: Likewise.
59332         * tests/unictype/test-categ_Lm.c: Likewise.
59333         * tests/unictype/test-categ_Lo.c: Likewise.
59334         * tests/unictype/test-categ_Lt.c: Likewise.
59335         * tests/unictype/test-categ_Lu.c: Likewise.
59336         * tests/unictype/test-categ_M.c: Likewise.
59337         * tests/unictype/test-categ_Mc.c: Likewise.
59338         * tests/unictype/test-categ_Me.c: Likewise.
59339         * tests/unictype/test-categ_Mn.c: Likewise.
59340         * tests/unictype/test-categ_N.c: Likewise.
59341         * tests/unictype/test-categ_Nd.c: Likewise.
59342         * tests/unictype/test-categ_Nl.c: Likewise.
59343         * tests/unictype/test-categ_No.c: Likewise.
59344         * tests/unictype/test-categ_P.c: Likewise.
59345         * tests/unictype/test-categ_Pc.c: Likewise.
59346         * tests/unictype/test-categ_Pd.c: Likewise.
59347         * tests/unictype/test-categ_Pe.c: Likewise.
59348         * tests/unictype/test-categ_Pf.c: Likewise.
59349         * tests/unictype/test-categ_Pi.c: Likewise.
59350         * tests/unictype/test-categ_Po.c: Likewise.
59351         * tests/unictype/test-categ_Ps.c: Likewise.
59352         * tests/unictype/test-categ_S.c: Likewise.
59353         * tests/unictype/test-categ_Sc.c: Likewise.
59354         * tests/unictype/test-categ_Sk.c: Likewise.
59355         * tests/unictype/test-categ_Sm.c: Likewise.
59356         * tests/unictype/test-categ_So.c: Likewise.
59357         * tests/unictype/test-categ_Z.c: Likewise.
59358         * tests/unictype/test-categ_Zl.c: Likewise.
59359         * tests/unictype/test-categ_Zp.c: Likewise.
59360         * tests/unictype/test-categ_Zs.c: Likewise.
59361         * tests/unictype/test-ctype_alnum.c: Likewise.
59362         * tests/unictype/test-ctype_alpha.c: Likewise.
59363         * tests/unictype/test-ctype_blank.c: Likewise.
59364         * tests/unictype/test-ctype_cntrl.c: Likewise.
59365         * tests/unictype/test-ctype_digit.c: Likewise.
59366         * tests/unictype/test-ctype_graph.c: Likewise.
59367         * tests/unictype/test-ctype_lower.c: Likewise.
59368         * tests/unictype/test-ctype_print.c: Likewise.
59369         * tests/unictype/test-ctype_punct.c: Likewise.
59370         * tests/unictype/test-ctype_space.c: Likewise.
59371         * tests/unictype/test-ctype_upper.c: Likewise.
59372         * tests/unictype/test-ctype_xdigit.c: Likewise.
59373         * tests/unictype/test-decdigit.h: Likewise.
59374         * tests/unictype/test-digit.h: Likewise.
59375         * tests/unictype/test-numeric.h: Likewise.
59376         * tests/unictype/test-pr_alphabetic.c: Likewise.
59377         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59378         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59379         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59380         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59381         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59382         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59383         * tests/unictype/test-pr_bidi_control.c: Likewise.
59384         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59385         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59386         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59387         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59388         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59389         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59390         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59391         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59392         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59393         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59394         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59395         * tests/unictype/test-pr_combining.c: Likewise.
59396         * tests/unictype/test-pr_composite.c: Likewise.
59397         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59398         * tests/unictype/test-pr_dash.c: Likewise.
59399         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59400         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59401         * tests/unictype/test-pr_deprecated.c: Likewise.
59402         * tests/unictype/test-pr_diacritic.c: Likewise.
59403         * tests/unictype/test-pr_extender.c: Likewise.
59404         * tests/unictype/test-pr_format_control.c: Likewise.
59405         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59406         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59407         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59408         * tests/unictype/test-pr_hex_digit.c: Likewise.
59409         * tests/unictype/test-pr_hyphen.c: Likewise.
59410         * tests/unictype/test-pr_id_continue.c: Likewise.
59411         * tests/unictype/test-pr_id_start.c: Likewise.
59412         * tests/unictype/test-pr_ideographic.c: Likewise.
59413         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59414         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59415         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59416         * tests/unictype/test-pr_iso_control.c: Likewise.
59417         * tests/unictype/test-pr_join_control.c: Likewise.
59418         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59419         * tests/unictype/test-pr_line_separator.c: Likewise.
59420         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59421         * tests/unictype/test-pr_lowercase.c: Likewise.
59422         * tests/unictype/test-pr_math.c: Likewise.
59423         * tests/unictype/test-pr_non_break.c: Likewise.
59424         * tests/unictype/test-pr_not_a_character.c: Likewise.
59425         * tests/unictype/test-pr_numeric.c: Likewise.
59426         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59427         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59428         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59429         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59430         * tests/unictype/test-pr_other_id_start.c: Likewise.
59431         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59432         * tests/unictype/test-pr_other_math.c: Likewise.
59433         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59434         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59435         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59436         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59437         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59438         * tests/unictype/test-pr_private_use.c: Likewise.
59439         * tests/unictype/test-pr_punctuation.c: Likewise.
59440         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59441         * tests/unictype/test-pr_radical.c: Likewise.
59442         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59443         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59444         * tests/unictype/test-pr_space.c: Likewise.
59445         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59446         * tests/unictype/test-pr_titlecase.c: Likewise.
59447         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59448         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59449         * tests/unictype/test-pr_uppercase.c: Likewise.
59450         * tests/unictype/test-pr_variation_selector.c: Likewise.
59451         * tests/unictype/test-pr_white_space.c: Likewise.
59452         * tests/unictype/test-pr_xid_continue.c: Likewise.
59453         * tests/unictype/test-pr_xid_start.c: Likewise.
59454         * tests/unictype/test-pr_zero_width.c: Likewise.
59455         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59456         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59457
59458 2007-11-12  Bruno Haible  <bruno@clisp.org>
59459
59460         Unicode character classification functions.
59461         * lib/unictype.h: New file.
59462         * modules/unictype/base: New file.
59463         * modules/unictype/category-L: New file.
59464         * modules/unictype/category-Lu: New file.
59465         * modules/unictype/category-Ll: New file.
59466         * modules/unictype/category-Lt: New file.
59467         * modules/unictype/category-Lm: New file.
59468         * modules/unictype/category-Lo: New file.
59469         * modules/unictype/category-M: New file.
59470         * modules/unictype/category-Mn: New file.
59471         * modules/unictype/category-Mc: New file.
59472         * modules/unictype/category-Me: New file.
59473         * modules/unictype/category-N: New file.
59474         * modules/unictype/category-Nd: New file.
59475         * modules/unictype/category-Nl: New file.
59476         * modules/unictype/category-No: New file.
59477         * modules/unictype/category-P: New file.
59478         * modules/unictype/category-Pc: New file.
59479         * modules/unictype/category-Pd: New file.
59480         * modules/unictype/category-Ps: New file.
59481         * modules/unictype/category-Pe: New file.
59482         * modules/unictype/category-Pi: New file.
59483         * modules/unictype/category-Pf: New file.
59484         * modules/unictype/category-Po: New file.
59485         * modules/unictype/category-S: New file.
59486         * modules/unictype/category-Sm: New file.
59487         * modules/unictype/category-Sc: New file.
59488         * modules/unictype/category-Sk: New file.
59489         * modules/unictype/category-So: New file.
59490         * modules/unictype/category-Z: New file.
59491         * modules/unictype/category-Zs: New file.
59492         * modules/unictype/category-Zl: New file.
59493         * modules/unictype/category-Zp: New file.
59494         * modules/unictype/category-C: New file.
59495         * modules/unictype/category-Cc: New file.
59496         * modules/unictype/category-Cf: New file.
59497         * modules/unictype/category-Cs: New file.
59498         * modules/unictype/category-Co: New file.
59499         * modules/unictype/category-Cn: New file.
59500         * modules/unictype/category-or: New file.
59501         * modules/unictype/category-of: New file.
59502         * modules/unictype/category-test: New file.
59503         * modules/unictype/category-test-withtable: New file.
59504         * modules/unictype/category-byname: New file.
59505         * modules/unictype/category-none: New file.
59506         * modules/unictype/category-and: New file.
59507         * modules/unictype/category-and-not: New file.
59508         * modules/unictype/category-name: New file.
59509         * modules/unictype/combining-class: New file.
59510         * modules/unictype/category-all: New file.
59511         * modules/unictype/bidicategory-all: New file.
59512         * modules/unictype/bidicategory-byname: New file.
59513         * modules/unictype/bidicategory-name: New file.
59514         * modules/unictype/bidicategory-of: New file.
59515         * modules/unictype/bidicategory-test: New file.
59516         * modules/unictype/decimal-digit: New file.
59517         * modules/unictype/digit: New file.
59518         * modules/unictype/numeric: New file.
59519         * modules/unictype/mirror: New file.
59520         * modules/unictype/property-white-space: New file.
59521         * modules/unictype/property-alphabetic: New file.
59522         * modules/unictype/property-other-alphabetic: New file.
59523         * modules/unictype/property-not-a-character: New file.
59524         * modules/unictype/property-default-ignorable-code-point: New file.
59525         * modules/unictype/property-other-default-ignorable-code-point: New
59526         file.
59527         * modules/unictype/property-deprecated: New file.
59528         * modules/unictype/property-logical-order-exception: New file.
59529         * modules/unictype/property-variation-selector: New file.
59530         * modules/unictype/property-private-use: New file.
59531         * modules/unictype/property-unassigned-code-value: New file.
59532         * modules/unictype/property-uppercase: New file.
59533         * modules/unictype/property-other-uppercase: New file.
59534         * modules/unictype/property-lowercase: New file.
59535         * modules/unictype/property-other-lowercase: New file.
59536         * modules/unictype/property-titlecase: New file.
59537         * modules/unictype/property-soft-dotted: New file.
59538         * modules/unictype/property-id-start: New file.
59539         * modules/unictype/property-other-id-start: New file.
59540         * modules/unictype/property-id-continue: New file.
59541         * modules/unictype/property-other-id-continue: New file.
59542         * modules/unictype/property-xid-start: New file.
59543         * modules/unictype/property-xid-continue: New file.
59544         * modules/unictype/property-pattern-white-space: New file.
59545         * modules/unictype/property-pattern-syntax: New file.
59546         * modules/unictype/property-join-control: New file.
59547         * modules/unictype/property-grapheme-base: New file.
59548         * modules/unictype/property-grapheme-extend: New file.
59549         * modules/unictype/property-other-grapheme-extend: New file.
59550         * modules/unictype/property-grapheme-link: New file.
59551         * modules/unictype/property-bidi-control: New file.
59552         * modules/unictype/property-bidi-left-to-right: New file.
59553         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59554         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59555         * modules/unictype/property-bidi-european-digit: New file.
59556         * modules/unictype/property-bidi-eur-num-separator: New file.
59557         * modules/unictype/property-bidi-eur-num-terminator: New file.
59558         * modules/unictype/property-bidi-arabic-digit: New file.
59559         * modules/unictype/property-bidi-common-separator: New file.
59560         * modules/unictype/property-bidi-block-separator: New file.
59561         * modules/unictype/property-bidi-segment-separator: New file.
59562         * modules/unictype/property-bidi-whitespace: New file.
59563         * modules/unictype/property-bidi-non-spacing-mark: New file.
59564         * modules/unictype/property-bidi-boundary-neutral: New file.
59565         * modules/unictype/property-bidi-pdf: New file.
59566         * modules/unictype/property-bidi-embedding-or-override: New file.
59567         * modules/unictype/property-bidi-other-neutral: New file.
59568         * modules/unictype/property-hex-digit: New file.
59569         * modules/unictype/property-ascii-hex-digit: New file.
59570         * modules/unictype/property-ideographic: New file.
59571         * modules/unictype/property-unified-ideograph: New file.
59572         * modules/unictype/property-radical: New file.
59573         * modules/unictype/property-ids-binary-operator: New file.
59574         * modules/unictype/property-ids-trinary-operator: New file.
59575         * modules/unictype/property-zero-width: New file.
59576         * modules/unictype/property-space: New file.
59577         * modules/unictype/property-non-break: New file.
59578         * modules/unictype/property-iso-control: New file.
59579         * modules/unictype/property-format-control: New file.
59580         * modules/unictype/property-dash: New file.
59581         * modules/unictype/property-hyphen: New file.
59582         * modules/unictype/property-punctuation: New file.
59583         * modules/unictype/property-line-separator: New file.
59584         * modules/unictype/property-paragraph-separator: New file.
59585         * modules/unictype/property-quotation-mark: New file.
59586         * modules/unictype/property-sentence-terminal: New file.
59587         * modules/unictype/property-terminal-punctuation: New file.
59588         * modules/unictype/property-currency-symbol: New file.
59589         * modules/unictype/property-math: New file.
59590         * modules/unictype/property-other-math: New file.
59591         * modules/unictype/property-paired-punctuation: New file.
59592         * modules/unictype/property-left-of-pair: New file.
59593         * modules/unictype/property-combining: New file.
59594         * modules/unictype/property-composite: New file.
59595         * modules/unictype/property-decimal-digit: New file.
59596         * modules/unictype/property-numeric: New file.
59597         * modules/unictype/property-diacritic: New file.
59598         * modules/unictype/property-extender: New file.
59599         * modules/unictype/property-ignorable-control: New file.
59600         * modules/unictype/property-test: New file.
59601         * modules/unictype/property-byname: New file.
59602         * modules/unictype/property-all: New file.
59603         * modules/unictype/scripts: New file.
59604         * modules/unictype/scripts-all: New file.
59605         * modules/unictype/block-of: New file.
59606         * modules/unictype/block-test: New file.
59607         * modules/unictype/block-list: New file.
59608         * modules/unictype/block-all: New file.
59609         * modules/unictype/syntax-c-whitespace: New file.
59610         * modules/unictype/syntax-java-whitespace: New file.
59611         * modules/unictype/syntax-c-ident: New file.
59612         * modules/unictype/syntax-java-ident: New file.
59613         * modules/unictype/ctype-alnum: New file.
59614         * modules/unictype/ctype-alpha: New file.
59615         * modules/unictype/ctype-cntrl: New file.
59616         * modules/unictype/ctype-digit: New file.
59617         * modules/unictype/ctype-graph: New file.
59618         * modules/unictype/ctype-lower: New file.
59619         * modules/unictype/ctype-print: New file.
59620         * modules/unictype/ctype-punct: New file.
59621         * modules/unictype/ctype-space: New file.
59622         * modules/unictype/ctype-upper: New file.
59623         * modules/unictype/ctype-xdigit: New file.
59624         * modules/unictype/ctype-blank: New file.
59625         * lib/unictype/bidi_byname.c: New file.
59626         * lib/unictype/bidi_name.c: New file.
59627         * lib/unictype/bidi_of.c: New file.
59628         * lib/unictype/bidi_test.c: New file.
59629         * lib/unictype/bitmap.h: New file.
59630         * lib/unictype/block_test.c: New file.
59631         * lib/unictype/blocks.c: New file.
59632         * lib/unictype/categ_C.c: New file.
59633         * lib/unictype/categ_Cc.c: New file.
59634         * lib/unictype/categ_Cf.c: New file.
59635         * lib/unictype/categ_Cn.c: New file.
59636         * lib/unictype/categ_Co.c: New file.
59637         * lib/unictype/categ_Cs.c: New file.
59638         * lib/unictype/categ_L.c: New file.
59639         * lib/unictype/categ_Ll.c: New file.
59640         * lib/unictype/categ_Lm.c: New file.
59641         * lib/unictype/categ_Lo.c: New file.
59642         * lib/unictype/categ_Lt.c: New file.
59643         * lib/unictype/categ_Lu.c: New file.
59644         * lib/unictype/categ_M.c: New file.
59645         * lib/unictype/categ_Mc.c: New file.
59646         * lib/unictype/categ_Me.c: New file.
59647         * lib/unictype/categ_Mn.c: New file.
59648         * lib/unictype/categ_N.c: New file.
59649         * lib/unictype/categ_Nd.c: New file.
59650         * lib/unictype/categ_Nl.c: New file.
59651         * lib/unictype/categ_No.c: New file.
59652         * lib/unictype/categ_P.c: New file.
59653         * lib/unictype/categ_Pc.c: New file.
59654         * lib/unictype/categ_Pd.c: New file.
59655         * lib/unictype/categ_Pe.c: New file.
59656         * lib/unictype/categ_Pf.c: New file.
59657         * lib/unictype/categ_Pi.c: New file.
59658         * lib/unictype/categ_Po.c: New file.
59659         * lib/unictype/categ_Ps.c: New file.
59660         * lib/unictype/categ_S.c: New file.
59661         * lib/unictype/categ_Sc.c: New file.
59662         * lib/unictype/categ_Sk.c: New file.
59663         * lib/unictype/categ_Sm.c: New file.
59664         * lib/unictype/categ_So.c: New file.
59665         * lib/unictype/categ_Z.c: New file.
59666         * lib/unictype/categ_Zl.c: New file.
59667         * lib/unictype/categ_Zp.c: New file.
59668         * lib/unictype/categ_Zs.c: New file.
59669         * lib/unictype/categ_and.c: New file.
59670         * lib/unictype/categ_and_not.c: New file.
59671         * lib/unictype/categ_byname.c: New file.
59672         * lib/unictype/categ_name.c: New file.
59673         * lib/unictype/categ_none.c: New file.
59674         * lib/unictype/categ_of.c: New file.
59675         * lib/unictype/categ_or.c: New file.
59676         * lib/unictype/categ_test.c: New file.
59677         * lib/unictype/combining.c: New file.
59678         * lib/unictype/ctype_alnum.c: New file.
59679         * lib/unictype/ctype_alpha.c: New file.
59680         * lib/unictype/ctype_blank.c: New file.
59681         * lib/unictype/ctype_cntrl.c: New file.
59682         * lib/unictype/ctype_digit.c: New file.
59683         * lib/unictype/ctype_graph.c: New file.
59684         * lib/unictype/ctype_lower.c: New file.
59685         * lib/unictype/ctype_print.c: New file.
59686         * lib/unictype/ctype_punct.c: New file.
59687         * lib/unictype/ctype_space.c: New file.
59688         * lib/unictype/ctype_upper.c: New file.
59689         * lib/unictype/ctype_xdigit.c: New file.
59690         * lib/unictype/decdigit.c: New file.
59691         * lib/unictype/digit.c: New file.
59692         * lib/unictype/identsyntaxmap.h: New file.
59693         * lib/unictype/mirror.c: New file.
59694         * lib/unictype/numeric.c: New file.
59695         * lib/unictype/pr_alphabetic.c: New file.
59696         * lib/unictype/pr_ascii_hex_digit.c: New file.
59697         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59698         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59699         * lib/unictype/pr_bidi_block_separator.c: New file.
59700         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59701         * lib/unictype/pr_bidi_common_separator.c: New file.
59702         * lib/unictype/pr_bidi_control.c: New file.
59703         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59704         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59705         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59706         * lib/unictype/pr_bidi_european_digit.c: New file.
59707         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59708         * lib/unictype/pr_bidi_left_to_right.c: New file.
59709         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59710         * lib/unictype/pr_bidi_other_neutral.c: New file.
59711         * lib/unictype/pr_bidi_pdf.c: New file.
59712         * lib/unictype/pr_bidi_segment_separator.c: New file.
59713         * lib/unictype/pr_bidi_whitespace.c: New file.
59714         * lib/unictype/pr_byname.c: New file.
59715         * lib/unictype/pr_byname.gperf: New file.
59716         * lib/unictype/pr_combining.c: New file.
59717         * lib/unictype/pr_composite.c: New file.
59718         * lib/unictype/pr_currency_symbol.c: New file.
59719         * lib/unictype/pr_dash.c: New file.
59720         * lib/unictype/pr_decimal_digit.c: New file.
59721         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59722         * lib/unictype/pr_deprecated.c: New file.
59723         * lib/unictype/pr_diacritic.c: New file.
59724         * lib/unictype/pr_extender.c: New file.
59725         * lib/unictype/pr_format_control.c: New file.
59726         * lib/unictype/pr_grapheme_base.c: New file.
59727         * lib/unictype/pr_grapheme_extend.c: New file.
59728         * lib/unictype/pr_grapheme_link.c: New file.
59729         * lib/unictype/pr_hex_digit.c: New file.
59730         * lib/unictype/pr_hyphen.c: New file.
59731         * lib/unictype/pr_id_continue.c: New file.
59732         * lib/unictype/pr_id_start.c: New file.
59733         * lib/unictype/pr_ideographic.c: New file.
59734         * lib/unictype/pr_ids_binary_operator.c: New file.
59735         * lib/unictype/pr_ids_trinary_operator.c: New file.
59736         * lib/unictype/pr_ignorable_control.c: New file.
59737         * lib/unictype/pr_iso_control.c: New file.
59738         * lib/unictype/pr_join_control.c: New file.
59739         * lib/unictype/pr_left_of_pair.c: New file.
59740         * lib/unictype/pr_line_separator.c: New file.
59741         * lib/unictype/pr_logical_order_exception.c: New file.
59742         * lib/unictype/pr_lowercase.c: New file.
59743         * lib/unictype/pr_math.c: New file.
59744         * lib/unictype/pr_non_break.c: New file.
59745         * lib/unictype/pr_not_a_character.c: New file.
59746         * lib/unictype/pr_numeric.c: New file.
59747         * lib/unictype/pr_other_alphabetic.c: New file.
59748         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59749         * lib/unictype/pr_other_grapheme_extend.c: New file.
59750         * lib/unictype/pr_other_id_continue.c: New file.
59751         * lib/unictype/pr_other_id_start.c: New file.
59752         * lib/unictype/pr_other_lowercase.c: New file.
59753         * lib/unictype/pr_other_math.c: New file.
59754         * lib/unictype/pr_other_uppercase.c: New file.
59755         * lib/unictype/pr_paired_punctuation.c: New file.
59756         * lib/unictype/pr_paragraph_separator.c: New file.
59757         * lib/unictype/pr_pattern_syntax.c: New file.
59758         * lib/unictype/pr_pattern_white_space.c: New file.
59759         * lib/unictype/pr_private_use.c: New file.
59760         * lib/unictype/pr_punctuation.c: New file.
59761         * lib/unictype/pr_quotation_mark.c: New file.
59762         * lib/unictype/pr_radical.c: New file.
59763         * lib/unictype/pr_sentence_terminal.c: New file.
59764         * lib/unictype/pr_soft_dotted.c: New file.
59765         * lib/unictype/pr_space.c: New file.
59766         * lib/unictype/pr_terminal_punctuation.c: New file.
59767         * lib/unictype/pr_test.c: New file.
59768         * lib/unictype/pr_titlecase.c: New file.
59769         * lib/unictype/pr_unassigned_code_value.c: New file.
59770         * lib/unictype/pr_unified_ideograph.c: New file.
59771         * lib/unictype/pr_uppercase.c: New file.
59772         * lib/unictype/pr_variation_selector.c: New file.
59773         * lib/unictype/pr_white_space.c: New file.
59774         * lib/unictype/pr_xid_continue.c: New file.
59775         * lib/unictype/pr_xid_start.c: New file.
59776         * lib/unictype/pr_zero_width.c: New file.
59777         * lib/unictype/scripts.c: New file.
59778         * lib/unictype/sy_c_ident.c: New file.
59779         * lib/unictype/sy_c_whitespace.c: New file.
59780         * lib/unictype/sy_java_ident.c: New file.
59781         * lib/unictype/sy_java_whitespace.c: New file.
59782
59783         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59784         Unicode 5.0.0.
59785         * lib/unictype/blocks.h: Likewise.
59786         * lib/unictype/categ_C.h: Likewise.
59787         * lib/unictype/categ_Cc.h: Likewise.
59788         * lib/unictype/categ_Cf.h: Likewise.
59789         * lib/unictype/categ_Cn.h: Likewise.
59790         * lib/unictype/categ_Co.h: Likewise.
59791         * lib/unictype/categ_Cs.h: Likewise.
59792         * lib/unictype/categ_L.h: Likewise.
59793         * lib/unictype/categ_Ll.h: Likewise.
59794         * lib/unictype/categ_Lm.h: Likewise.
59795         * lib/unictype/categ_Lo.h: Likewise.
59796         * lib/unictype/categ_Lt.h: Likewise.
59797         * lib/unictype/categ_Lu.h: Likewise.
59798         * lib/unictype/categ_M.h: Likewise.
59799         * lib/unictype/categ_Mc.h: Likewise.
59800         * lib/unictype/categ_Me.h: Likewise.
59801         * lib/unictype/categ_Mn.h: Likewise.
59802         * lib/unictype/categ_N.h: Likewise.
59803         * lib/unictype/categ_Nd.h: Likewise.
59804         * lib/unictype/categ_Nl.h: Likewise.
59805         * lib/unictype/categ_No.h: Likewise.
59806         * lib/unictype/categ_P.h: Likewise.
59807         * lib/unictype/categ_Pc.h: Likewise.
59808         * lib/unictype/categ_Pd.h: Likewise.
59809         * lib/unictype/categ_Pe.h: Likewise.
59810         * lib/unictype/categ_Pf.h: Likewise.
59811         * lib/unictype/categ_Pi.h: Likewise.
59812         * lib/unictype/categ_Po.h: Likewise.
59813         * lib/unictype/categ_Ps.h: Likewise.
59814         * lib/unictype/categ_S.h: Likewise.
59815         * lib/unictype/categ_Sc.h: Likewise.
59816         * lib/unictype/categ_Sk.h: Likewise.
59817         * lib/unictype/categ_Sm.h: Likewise.
59818         * lib/unictype/categ_So.h: Likewise.
59819         * lib/unictype/categ_Z.h: Likewise.
59820         * lib/unictype/categ_Zl.h: Likewise.
59821         * lib/unictype/categ_Zp.h: Likewise.
59822         * lib/unictype/categ_Zs.h: Likewise.
59823         * lib/unictype/categ_of.h: Likewise.
59824         * lib/unictype/combining.h: Likewise.
59825         * lib/unictype/ctype_alnum.h: Likewise.
59826         * lib/unictype/ctype_alpha.h: Likewise.
59827         * lib/unictype/ctype_blank.h: Likewise.
59828         * lib/unictype/ctype_cntrl.h: Likewise.
59829         * lib/unictype/ctype_digit.h: Likewise.
59830         * lib/unictype/ctype_graph.h: Likewise.
59831         * lib/unictype/ctype_lower.h: Likewise.
59832         * lib/unictype/ctype_print.h: Likewise.
59833         * lib/unictype/ctype_punct.h: Likewise.
59834         * lib/unictype/ctype_space.h: Likewise.
59835         * lib/unictype/ctype_upper.h: Likewise.
59836         * lib/unictype/ctype_xdigit.h: Likewise.
59837         * lib/unictype/decdigit.h: Likewise.
59838         * lib/unictype/digit.h: Likewise.
59839         * lib/unictype/mirror.h: Likewise.
59840         * lib/unictype/numeric.h: Likewise.
59841         * lib/unictype/pr_alphabetic.h: Likewise.
59842         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59843         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59844         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59845         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59846         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59847         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59848         * lib/unictype/pr_bidi_control.h: Likewise.
59849         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59850         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59851         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59852         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59853         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59854         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59855         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59856         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59857         * lib/unictype/pr_bidi_pdf.h: Likewise.
59858         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59859         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59860         * lib/unictype/pr_combining.h: Likewise.
59861         * lib/unictype/pr_composite.h: Likewise.
59862         * lib/unictype/pr_currency_symbol.h: Likewise.
59863         * lib/unictype/pr_dash.h: Likewise.
59864         * lib/unictype/pr_decimal_digit.h: Likewise.
59865         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59866         * lib/unictype/pr_deprecated.h: Likewise.
59867         * lib/unictype/pr_diacritic.h: Likewise.
59868         * lib/unictype/pr_extender.h: Likewise.
59869         * lib/unictype/pr_format_control.h: Likewise.
59870         * lib/unictype/pr_grapheme_base.h: Likewise.
59871         * lib/unictype/pr_grapheme_extend.h: Likewise.
59872         * lib/unictype/pr_grapheme_link.h: Likewise.
59873         * lib/unictype/pr_hex_digit.h: Likewise.
59874         * lib/unictype/pr_hyphen.h: Likewise.
59875         * lib/unictype/pr_id_continue.h: Likewise.
59876         * lib/unictype/pr_id_start.h: Likewise.
59877         * lib/unictype/pr_ideographic.h: Likewise.
59878         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59879         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59880         * lib/unictype/pr_ignorable_control.h: Likewise.
59881         * lib/unictype/pr_iso_control.h: Likewise.
59882         * lib/unictype/pr_join_control.h: Likewise.
59883         * lib/unictype/pr_left_of_pair.h: Likewise.
59884         * lib/unictype/pr_line_separator.h: Likewise.
59885         * lib/unictype/pr_logical_order_exception.h: Likewise.
59886         * lib/unictype/pr_lowercase.h: Likewise.
59887         * lib/unictype/pr_math.h: Likewise.
59888         * lib/unictype/pr_non_break.h: Likewise.
59889         * lib/unictype/pr_not_a_character.h: Likewise.
59890         * lib/unictype/pr_numeric.h: Likewise.
59891         * lib/unictype/pr_other_alphabetic.h: Likewise.
59892         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59893         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59894         * lib/unictype/pr_other_id_continue.h: Likewise.
59895         * lib/unictype/pr_other_id_start.h: Likewise.
59896         * lib/unictype/pr_other_lowercase.h: Likewise.
59897         * lib/unictype/pr_other_math.h: Likewise.
59898         * lib/unictype/pr_other_uppercase.h: Likewise.
59899         * lib/unictype/pr_paired_punctuation.h: Likewise.
59900         * lib/unictype/pr_paragraph_separator.h: Likewise.
59901         * lib/unictype/pr_pattern_syntax.h: Likewise.
59902         * lib/unictype/pr_pattern_white_space.h: Likewise.
59903         * lib/unictype/pr_private_use.h: Likewise.
59904         * lib/unictype/pr_punctuation.h: Likewise.
59905         * lib/unictype/pr_quotation_mark.h: Likewise.
59906         * lib/unictype/pr_radical.h: Likewise.
59907         * lib/unictype/pr_sentence_terminal.h: Likewise.
59908         * lib/unictype/pr_soft_dotted.h: Likewise.
59909         * lib/unictype/pr_space.h: Likewise.
59910         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59911         * lib/unictype/pr_titlecase.h: Likewise.
59912         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59913         * lib/unictype/pr_unified_ideograph.h: Likewise.
59914         * lib/unictype/pr_uppercase.h: Likewise.
59915         * lib/unictype/pr_variation_selector.h: Likewise.
59916         * lib/unictype/pr_white_space.h: Likewise.
59917         * lib/unictype/pr_xid_continue.h: Likewise.
59918         * lib/unictype/pr_xid_start.h: Likewise.
59919         * lib/unictype/pr_zero_width.h: Likewise.
59920         * lib/unictype/scripts.h: Likewise.
59921         * lib/unictype/scripts_byname.gperf: Likewise.
59922         * lib/unictype/sy_c_ident.h: Likewise.
59923         * lib/unictype/sy_c_whitespace.h: Likewise.
59924         * lib/unictype/sy_java_ident.h: Likewise.
59925         * lib/unictype/sy_java_whitespace.h: Likewise.
59926
59927         * lib/unictype/Makefile: New file.
59928         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59929         glibc.
59930         * lib/unictype/3level.h: New file, copied from glibc.
59931         * lib/unictype/3levelbit.h: New file.
59932
59933 2007-11-11  Bruno Haible  <bruno@clisp.org>
59934
59935         * modules/gperf: New file.
59936         * modules/iconv_open (Depends-on): Add it.
59937         (Makefile.am): Remove the GPERF definition.
59938
59939 2007-11-11  Bruno Haible  <bruno@clisp.org>
59940
59941         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59942         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59943
59944 2007-11-11  Bruno Haible  <bruno@clisp.org>
59945
59946         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59947         (usage): Remove function.
59948
59949 2007-11-11  Bruno Haible  <bruno@clisp.org>
59950
59951         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59952         gl_FUNC_CEILF_LIBS.
59953         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59954         gl_FUNC_CEIL_LIBS.
59955         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59956         gl_FUNC_CEILL_LIBS.
59957         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59958         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59959         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59960
59961 2007-11-11  Bruno Haible  <bruno@clisp.org>
59962
59963         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59964         roundf were declared but do not exist on functions.
59965         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59966         roundl were declared but do not exist on functions.
59967         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59968         HAVE_FLOORL_AND_CEILL, respectively.
59969         Needed for Sun C on Solaris 10.
59970
59971 2007-11-11  Bruno Haible  <bruno@clisp.org>
59972
59973         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59974         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59975         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59976         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59977         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59978         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59979         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59980         HAVE_DECL_ROUNDF.
59981         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59982         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59984         of HAVE_DECL_ROUND*.
59985         * modules/math (Makefile.am): Update.
59986
59987 2007-11-10  Bruno Haible  <bruno@clisp.org>
59988
59989         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59990         ptrdiff_t as m4/intl.m4.
59991
59992 2007-11-10  Jim Meyering  <meyering@redhat.com>
59993
59994         Avoid link failure for the argmatch test.
59995         * tests/test-argmatch.c (usage): Define function to avoid a link
59996         failure: argmatch_die requires a usage function.
59997
59998 2007-11-09  Bruno Haible  <bruno@clisp.org>
59999
60000         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60001         * doc/functions/vsnprintf.texi: Likewise.
60002         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60003         with a size argument < 2.
60004
60005 2007-11-09  Bruno Haible  <bruno@clisp.org>
60006
60007         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60008         buffer. Fixes an inefficiency introduced on 2007-11-03.
60009
60010 2007-11-09  Bruno Haible  <bruno@clisp.org>
60011
60012         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60013         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60014
60015 2007-11-08  Jim Meyering  <meyering@redhat.com>
60016
60017         Change cache variable name prefix "jm_" to "gl_" everywhere.
60018         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60019         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60020         * m4/uptime.m4: s/gl_/jm_/
60021
60022 2007-11-07  Bruno Haible  <bruno@clisp.org>
60023
60024         Update to GNU gettext 0.17.
60025         * m4/intl.m4: Update to GNU gettext 0.17.
60026         * m4/po.m4: Likewise.
60027         * modules/gettext (Files): Remove m4/ulonglong.m4.
60028         (configure.ac): Require gettext infrastructure from version 0.17.
60029
60030 2007-11-06  Bruno Haible  <bruno@clisp.org>
60031
60032         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60033         symbolic values are not defined in a public header.
60034         * lib/freadable.c (freadable) [QNX]: Likewise.
60035         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60036         * lib/freading.c (freading) [QNX]: Likewise.
60037         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60038         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60039         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60040         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60041         Reported by Alain Magloire.
60042
60043         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60044
60045 2007-11-05  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60048         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60049         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60050         Reported by Eric Blake.
60051
60052 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60053             Bruno Haible  <bruno@clisp.org>
60054
60055         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60056         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60057         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60058         (malloc): Undefine also before including <stdlib.h>.
60059         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60060         Needed on OSF/1 4.0.
60061
60062 2007-11-05  Jim Meyering  <meyering@redhat.com>
60063
60064         git-version-gen: sync from coreutils.
60065         * build-aux/git-version-gen: Add comments.
60066         Change the first '-' to '.' in the snapshot version string,
60067         e.g., 6.9-377-08144 -> 6.9.377-08144
60068         Remove first parameter.
60069         Don't declare a version "-dirty" merely because a time
60070         stamp has changed.
60071
60072 2007-11-04  Bruno Haible  <bruno@clisp.org>
60073
60074         * lib/lock.h: Protect all macro definitions containing an 'if'
60075         statement through a "do { ... } while (0)".
60076         * lib/tls.h: Likewise.
60077
60078 2007-11-04  Bruno Haible  <bruno@clisp.org>
60079
60080         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60081
60082 2007-11-04  Bruno Haible  <bruno@clisp.org>
60083
60084         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60085         * modules/fprintf-posix (Depends-on): Add nocrash.
60086         * modules/snprintf-posix (Depends-on): Likewise.
60087         * modules/sprintf-posix (Depends-on): Likewise.
60088         * modules/vasnprintf-posix (Depends-on): Likewise.
60089         * modules/vasprintf-posix (Depends-on): Likewise.
60090         * modules/vfprintf-posix (Depends-on): Likewise.
60091         * modules/vsnprintf-posix (Depends-on): Likewise.
60092         * modules/vsprintf-posix (Depends-on): Likewise.
60093         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60094         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60095         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60096         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60097         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60098         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60099         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60100
60101 2007-11-04  Bruno Haible  <bruno@clisp.org>
60102
60103         * modules/nocrash: New file.
60104         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60105         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60106
60107 2007-11-04  Bruno Haible  <bruno@clisp.org>
60108
60109         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60110         precision handling.
60111         * tests/test-vasprintf-posix.c (test_function): Likewise.
60112         * tests/test-snprintf-posix.h (test_function): Likewise.
60113         * tests/test-sprintf-posix.h (test_function): Likewise.
60114
60115         Fix *printf behaviour for large precisions on mingw and BeOS.
60116         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60117         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60119         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60120         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60121         gl_PRINTF_PRECISION and test its result. Invoke
60122         gl_PREREQ_VASNPRINTF_PRECISION.
60123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60124         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60125         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60126         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60127         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60128         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60129         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60130         * doc/functions/fprintf.texi: Update.
60131         * doc/functions/printf.texi: Update.
60132         * doc/functions/snprintf.texi: Update.
60133         * doc/functions/sprintf.texi: Update.
60134         * doc/functions/vfprintf.texi: Update.
60135         * doc/functions/vprintf.texi: Update.
60136         * doc/functions/vsnprintf.texi: Update.
60137         * doc/functions/vsprintf.texi: Update.
60138
60139 2007-11-04  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60142
60143 2007-11-04  Bruno Haible  <bruno@clisp.org>
60144
60145         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60146         Reported by Sylvain Beucler <beuc@gnu.org>.
60147
60148 2007-11-03  Bruno Haible  <bruno@clisp.org>
60149
60150         * tests/test-fprintf-posix2.sh: New file.
60151         * tests/test-fprintf-posix2.c: New file.
60152         * modules/fprintf-posix-tests (Files): Add them.
60153         (TESTS): Add test-fprintf-posix2.sh.
60154         (configure.ac): Check for getrlimit and setrlimit.
60155         (check_PROGRAMS): Add test-fprintf-posix2.
60156
60157         * tests/test-printf-posix2.sh: New file.
60158         * tests/test-printf-posix2.c: New file.
60159         * modules/printf-posix-tests (Files): Add them.
60160         (TESTS): Add test-printf-posix2.sh.
60161         (configure.ac): Check for getrlimit and setrlimit.
60162         (check_PROGRAMS): Add test-printf-posix2.
60163
60164         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60165         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60166         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60167         (decode_double): New function, copied from decode_long_double.
60168         (scale10_round_decimal_decoded): New function, extracted from
60169         scale10_round_decimal_long_double.
60170         (scale10_round_decimal_long_double): Use it.
60171         (scale10_round_decimal_double): New function.
60172         (floorlog10): New function.
60173         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60174         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60175         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60177         gl_PRINTF_ENOMEM and test its result. Invoke
60178         gl_PREREQ_VASNPRINTF_ENOMEM.
60179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60183         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60186         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60187         * modules/snprintf-posix (Depends-on): Likewise.
60188         * modules/sprintf-posix (Depends-on): Likewise.
60189         * modules/vasnprintf-posix (Depends-on): Likewise.
60190         * modules/vasprintf-posix (Depends-on): Likewise.
60191         * modules/vfprintf-posix (Depends-on): Likewise.
60192         * modules/vsnprintf-posix (Depends-on): Likewise.
60193         * modules/vsprintf-posix (Depends-on): Likewise.
60194         * doc/functions/fprintf.texi: Update.
60195         * doc/functions/printf.texi: Update.
60196         * doc/functions/snprintf.texi: Update.
60197         * doc/functions/sprintf.texi: Update.
60198         * doc/functions/vfprintf.texi: Update.
60199         * doc/functions/vprintf.texi: Update.
60200         * doc/functions/vsnprintf.texi: Update.
60201         * doc/functions/vsprintf.texi: Update.
60202
60203 2007-11-03  Bruno Haible  <bruno@clisp.org>
60204
60205         * modules/frexp-nolibm-tests: New file.
60206
60207         * modules/frexp-nolibm: New file.
60208         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60209
60210 2007-11-03  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60213         value is C99 compliant.
60214         Needed for OSF/1 5.1.
60215
60216 2007-11-03  Bruno Haible  <bruno@clisp.org>
60217
60218         Fix out-of-memory handling of vasnprintf.
60219         * lib/printf-parse.c: Include <errno.h>.
60220         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60221         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60222         is already set.
60223
60224 2007-11-02  Eric Blake  <ebb9@byu.net>
60225
60226         Fix tests on cygwin.
60227         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60228
60229 2007-11-01  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60232         warning.
60233         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60234         needed for POSIX compatibility.
60235
60236 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60237
60238         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60239         for compatibility with GNU.
60240
60241 2007-11-01  Bruno Haible  <bruno@clisp.org>
60242
60243         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60244         (putenv): Renamed from rpl_putenv. Change argument type from
60245         'const char *' to 'char *'.
60246         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60247         of defining putenv in config.h, just set REPLACE_PUTENV.
60248         * modules/putenv (Depends-on): Add stdlib.
60249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60250         (Include): Use <stdlib.h>.
60251         * lib/stdlib.in.h (putenv): New declaration.
60252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60253         REPLACE_PUTENV.
60254         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60255         REPLACE_PUTENV.
60256         Needed for MacOS X 10.5.0.
60257         Reported by Peter O'Gorman <peter@pogma.com>.
60258
60259 2007-11-01  Jim Meyering  <meyering@redhat.com>
60260
60261         Treat an empty date string exactly like "0".
60262         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60263         if the remaining date string (to be parsed) is empty, use "0".
60264         Reported by Mischa Molhoek and discussed in this thread:
60265         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60266
60267 2007-10-31  Bruno Haible  <bruno@clisp.org>
60268
60269         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60270         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60271         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60272         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60273         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60274         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60275
60276 2007-10-31  Bruno Haible  <bruno@clisp.org>
60277
60278         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60279         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60280         (AC_TYPE_LONG_LONG_INT): Use it.
60281         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60282         it as well.
60283         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60284         to m4/longlong.m4.
60285         * modules/stdint (Files): Remove m4/ulonglong.m4.
60286         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60287         m4/ulonglong.m4.
60288         * modules/strtoumax (Files): Likewise.
60289
60290 2007-10-30  Bruno Haible  <bruno@clisp.org>
60291
60292         * modules/xvasprintf-posix: New file.
60293         Suggested by Eric Blake.
60294
60295 2007-10-30  Bruno Haible  <bruno@clisp.org>
60296
60297         * modules/xprintf-posix-tests: New file.
60298         * tests/test-xprintf-posix.sh: New file.
60299         * tests/test-xprintf-posix.c: New file.
60300         * tests/test-xfprintf-posix.c: New file.
60301
60302         * modules/xprintf-posix: New file.
60303
60304 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60305
60306         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60307         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60308         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60309
60310 2007-10-29  Bruno Haible  <bruno@clisp.org>
60311
60312         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60313         contain the special marker '_cv_'.
60314         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60315         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60316         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60317         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60318         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60319         Reported by Ralf Wildenhues.
60320
60321 2007-10-29  Bruno Haible  <bruno@clisp.org>
60322
60323         * gnulib-tool (func_import): When --lgpl is not specified, set
60324         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60325         GPLv3.
60326         Reported by Simon Josefsson.
60327
60328 2007-10-28  Bruno Haible  <bruno@clisp.org>
60329
60330         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60331         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60332         HAVE_DECL_ISFINITE.
60333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60334         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60335         HAVE_DECL_ISFINITE.
60336
60337 2007-10-28  Bruno Haible  <bruno@clisp.org>
60338
60339         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60340         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60341
60342 2007-10-28  Bruno Haible  <bruno@clisp.org>
60343
60344         Fix link errors with Sun C 5.0 on Solaris 10.
60345         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60346         function is declared but not present in the compiler's libm.
60347         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60348         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60349         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60350         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60351         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60352         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60353         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60355         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60356         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60357         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60358         HAVE_DECL_FLOORL.
60359
60360 2007-10-28  Bruno Haible  <bruno@clisp.org>
60361
60362         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60363         gl_FUNC_FLOORL. Cache the result.
60364         (gl_FUNC_FLOORL): Use it.
60365         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60366         gl_FUNC_CEILL. Cache the result.
60367         (gl_FUNC_CEILL): Use it.
60368
60369         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60370         gl_FUNC_FLOOR. Cache the result.
60371         (gl_FUNC_FLOOR): Use it.
60372         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60373         gl_FUNC_CEIL. Cache the result.
60374         (gl_FUNC_CEIL): Use it.
60375
60376         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60377         gl_FUNC_FLOORF. Cache the result.
60378         (gl_FUNC_FLOORF): Use it.
60379         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60380         gl_FUNC_CEILF. Cache the result.
60381         (gl_FUNC_CEILF): Use it.
60382
60383 2007-10-28  Bruno Haible  <bruno@clisp.org>
60384
60385         * gnulib-tool: Allow specifying the LGPL version number through
60386         --lgpl=2 or --lgpl=3.
60387         (func_usage): Document --lgpl with argument.
60388         Handle --lgpl=... arguments.
60389         (func_import): Recognize also gl_LGPL calls with an argument. When
60390         --lgpl=2 is used and the module's license is just LGPL, report an
60391         error. Set sed_transform_lib_file according to the lgpl variable. In
60392         the generated files, use --lgpl or gl_LGPL invocations with argument,
60393         if necessary.
60394         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60395         an LGPv2+ license.
60396         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60397         gl_LGPL macro.
60398
60399 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60400             Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60403         (u16_uctomb_aux): Likewise.
60404         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60405         !HAVE_INLINE.
60406         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60407
60408 2007-10-28  Bruno Haible  <bruno@clisp.org>
60409
60410         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60411         Invoke AM_GETTEXT_OPTION if it exists.
60412         * modules/vasprintf: Likewise.
60413         * modules/verror: Likewise.
60414         * modules/xprintf: Likewise.
60415         * modules/xvasprintf: Likewise.
60416
60417 2007-10-27  Ben Pfaff  <blp@gnu.org>
60418
60419         * lib/math.in.h: Define isfinite macro and prototypes for
60420         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60421         implementations.
60422         * m4/math_h.m4: New substitutions for isfinite module.
60423         * lib/isfinite.c: New file.
60424         * m4/isfinite.m4: New file.
60425         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60426         * modules/isfinite: New file.
60427         * modules/isfinite-tests: New file.
60428         * tests/tests-isfinite.c: New file.
60429         * doc/functions/isfinite.texi: Mention isfinite module.
60430         * MODULES.html.sh: Mention new module.
60431
60432 2007-10-27  Ben Pfaff  <blp@gnu.org>
60433
60434         Ralf Wildenhues reported that Tru64 4.0D declares the round
60435         functions but does not have definitions.
60436         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60437         cannot be found in any library, set the output variable to
60438         "missing" instead of "".
60439         * m4/round.m4: Also use our substitute if we cannot find round in
60440         any library, even if it is declared.
60441         * m4/roundf.m4: Likewise for roundf.
60442         * m4/roundl.m4: Likewise for roundl.
60443         * lib/math.in.h: Undefine roundf, round, roundl before defining
60444         their replacements, to allow for hypothetical systems where these
60445         may be defined as macros but not available in libraries.
60446
60447 2007-10-27  Bruno Haible  <bruno@clisp.org>
60448
60449         * doc/gnulib.texi: Invoke @firstparagraphindent.
60450         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60451         changes in gnulib.
60452         (Source changes): New section.
60453
60454 2007-10-26  Bruno Haible  <bruno@clisp.org>
60455
60456         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60457         borrowed from autoconf.
60458
60459 2007-10-26  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60462         strerror returned the empty string. Needed on HP-UX 11.00.
60463
60464 2007-10-24  Micah Cowan  <micah@cowan.name>
60465
60466         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60467         * build-aux/bootstrap: Remove support for now-unnecessary option,
60468         --cvs-user, and envvars CVS_USER, CVS_RSH.
60469
60470 2007-10-24  Jim Meyering  <meyering@redhat.com>
60471
60472         Avoid diagnostics from sha1sum when there is no cached checksum.
60473         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60474         if the po.s1 file hasn't been created yet.
60475
60476         * build-aux/bootstrap: Sync from coreutils:
60477         2007-10-24  Jim Meyering  <meyering@redhat.com>
60478         Get gnulib from the git repository, not from an obsolete cvs one.
60479         * build-aux/bootstrap: Suggestion from Micah Cowan.
60480         2007-10-04  Jim Meyering  <jim@meyering.net>
60481         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60482         (update_po_files): Work also when there are no .po files in po/.
60483
60484 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * README: Append ".git" to git and cg examples.
60487         Problem reported by Benoit Sigoure.
60488
60489 2007-10-23  Micah Cowan  <micah@cowan.name>
60490
60491         * users.txt: Add wget.
60492
60493 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60494
60495         Fix linking of some unistdio tests on FreeBSD.
60496         * modules/unistdio/u16-vsnprintf-tests
60497         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60498         * modules/unistdio/u16-vsprintf-tests
60499         (test_u16_vsnprintf1_LDADD): Likewise.
60500         * modules/unistdio/u32-vsnprintf-tests
60501         (test_u32_vsnprintf1_LDADD): Likewise.
60502         * modules/unistdio/u32-vsprintf-tests
60503         (test_u32_vsprintf1_LDADD): Likewise.
60504         * modules/unistdio/u8-vsnprintf-tests
60505         (test_u8_vsnprintf1_LDADD): Likewise.
60506         * modules/unistdio/u8-vsprintf-tests
60507         (test_u8_vsprintf1_LDADD): Likewise.
60508         * modules/unistdio/ulc-vsnprintf-tests
60509         (test_ulc_vsnprintf1_LDADD): Likewise.
60510         * modules/unistdio/ulc-vsprintf-tests
60511         (test_ulc_vsprintf1_LDADD): Likewise.
60512
60513         Fix linking of some uniconv tests on FreeBSD.
60514         * modules/uniconv/u16-conv-from-enc-tests
60515         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60516         * modules/uniconv/u16-conv-to-enc-tests
60517         (test_u16_conv_to_enc_LDADD): Likewise.
60518         * modules/uniconv/u16-strconv-from-enc-tests
60519         (test_u16_strconv_from_enc_LDADD): Likewise.
60520         * modules/uniconv/u16-strconv-to-enc-tests
60521         (test_u16_strconv_to_enc_LDADD): Likewise.
60522         * modules/uniconv/u32-conv-from-enc-tests
60523         (test_u32_conv_from_enc_LDADD): Likewise.
60524         * modules/uniconv/u32-conv-to-enc-tests
60525         (test_u32_conv_to_enc_LDADD): Likewise.
60526         * modules/uniconv/u32-strconv-from-enc-tests
60527         (test_u32_strconv_from_enc_LDADD): Likewise.
60528         * modules/uniconv/u32-strconv-to-enc-tests
60529         (test_u32_strconv_to_enc_LDADD): Likewise.
60530         * modules/uniconv/u8-conv-from-enc-tests
60531         (test_u8_conv_from_enc_LDADD): Likewise.
60532         * modules/uniconv/u8-conv-to-enc-tests
60533         (test_u8_conv_to_enc_LDADD): Likewise.
60534         * modules/uniconv/u8-strconv-from-enc-tests
60535         (test_u8_strconv_from_enc_LDADD): Likewise.
60536         * modules/uniconv/u8-strconv-to-enc-tests
60537         (test_u8_strconv_to_enc_LDADD): Likewise.
60538
60539 2007-10-22  Bruno Haible  <bruno@clisp.org>
60540
60541         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60542         size.
60543
60544 2007-10-22  Eric Blake  <ebb9@byu.net>
60545
60546         Tweak x*printf documentation.
60547         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60548         variable name and comments.
60549         Suggested by Bruno Haible.
60550
60551 2007-10-22  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/acl.c (copy_acl): Fix file name in comment.
60554
60555 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         Fix Tru64 problem with stdbool.h.
60558         * lib/stdbool.in.h (false, true):
60559         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60560         Don't declare as an enum in this situation; it runs afoul of Tru64.
60561         Problem reported by Steven M. Schweda in
60562         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60563
60564 2007-10-22  Eric Blake  <ebb9@byu.net>
60565
60566         Also wrap vf?printf.
60567         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60568         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60569         (xvprintf, xvfprintf): New functions.
60570
60571 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60572
60573         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60574         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60575
60576         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60577         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60578
60579 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60582         by Bruno Haible.
60583
60584 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60585
60586         * lib/getloadavg.c
60587         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60588         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60589
60590         * tests/test-i-ring.c: Work for C89.
60591
60592 2007-10-22  Bruno Haible  <bruno@clisp.org>
60593
60594         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60595         -1u, in preprocessor expression, so that we don't test for the bug
60596         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60598
60599 2007-10-22  Eric Blake  <ebb9@byu.net>
60600
60601         * tests/test-yesno.sh: Silence stderr during test.
60602
60603 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60604
60605         * modules/crypto/gc-camellia: New file.
60606
60607         * m4/gc-camellia.m4: New file.
60608
60609         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60610
60611         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60612
60613 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60614
60615         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60616         --help to stdout.  Reported by sms@antinode.org (Steven
60617         M. Schweda).
60618
60619 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60620
60621         * users.txt: Fix link to libksba.
60622
60623 2007-10-21  Ben Pfaff  <blp@gnu.org>
60624
60625         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60626         round.c roundf implementation that depends on floorf and ceilf to
60627         be tested unconditionally.
60628
60629 2007-10-21  Ben Pfaff  <blp@gnu.org>
60630
60631         * m4/check-libm-func.m4: Removed.
60632         * m4/check-math-lib.m4: New file.
60633         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60634         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60635         definition and lack of AC_LIBOBJ([roundf]).
60636         * m4/roundl.m4: Ditto, and similarly for roundl.
60637         * modules/round: Reference new m4 file.
60638         * modules/roundf: Ditto.
60639         * modules/roundl: Ditto.
60640         * tests/test-round2.c (main): Use ROUND instead of round.
60641         Bug report from Bruno Haible.
60642
60643 2007-10-21  Bruno Haible  <bruno@clisp.org>
60644
60645         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60646         context.
60647
60648 2007-10-21  Bruno Haible  <bruno@clisp.org>
60649
60650         * tests/test-wcwidth.c (main): Allow negative result for some control
60651         characters.
60652
60653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60654         Needed on OSF/1 5.1.
60655
60656 2007-10-21  Bruno Haible  <bruno@clisp.org>
60657
60658         * tests/test-floorf1.c: Include isnanf.h.
60659         (main): Use isnanf() instead of isnan().
60660         * tests/test-ceilf1.c: Include isnanf.h.
60661         (main): Use isnanf() instead of isnan().
60662         * tests/test-truncf1.c: Include isnanf.h.
60663         (main): Use isnanf() instead of isnan().
60664         * tests/test-roundf1.c: Include isnanf.h.
60665         (main): Use isnanf() instead of isnan().
60666
60667 2007-10-21  Eric Blake  <ebb9@byu.net>
60668
60669         * users.txt: Update URL for m4.
60670
60671 2007-10-21  Bruno Haible  <bruno@clisp.org>
60672
60673         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60674
60675 2007-10-21  Bruno Haible  <bruno@clisp.org>
60676
60677         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60678         Git's management files if the CVS files are not present.
60679
60680 2007-10-20  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60683         gcc-3.4.x.
60684
60685 2007-10-20  Ben Pfaff  <blp@gnu.org>
60686
60687         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60688         implementations.
60689         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60690         * lib/round.c: New file.
60691         * lib/roundf.c: New file.
60692         * lib/roundl.c: New file.
60693         * m4/round.m4: New file.
60694         * m4/roundf.m4: New file.
60695         * m4/roundl.m4: New file.
60696         * m4/check-libm-func-m4: New file.
60697         * modules/math: Replace round, roundf, roundl related @VARS@ in
60698         math.in.h.
60699         * modules/round: New file.
60700         * modules/round-tests: New file.
60701         * modules/roundf: New file.
60702         * modules/roundf-tests: New file.
60703         * modules/roundl: New file.
60704         * modules/roundl-tests: New file.
60705         * tests/test-round1.c: New file.
60706         * tests/test-round2.c: New file.
60707         * tests/test-roundf1.c: New file.
60708         * tests/test-roundf2.c: New file.
60709         * tests/test-roundl.c: New file.
60710         * doc/functions/round.texi: Mention round module.
60711         * doc/functions/roundf.texi: Mention roundf module.
60712         * doc/functions/roundl.texi: Mention roundl module.
60713         * MODULES.html.sh: Mention new modules.
60714         Thanks to Bruno Haible for suggestions.
60715
60716 2007-10-20  Jim Meyering  <meyering@redhat.com>
60717
60718         * lib/xprintf.c: Include <config.h> unconditionally.
60719
60720         Change xprintf's license to GPL.
60721         * modules/xprintf (License): s/LGPL/GPL/, since this module
60722         depends on modules (exit and exitfail) which are GPL.
60723         Suggestion from Bruno Haible.
60724
60725         xprintf fixes.
60726         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60727         Use a clearer diagnostic.
60728         Patch from Bruno Haible.
60729
60730 2007-10-20  Bruno Haible  <bruno@clisp.org>
60731
60732         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60733         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60735
60736 2007-10-20  Bruno Haible  <bruno@clisp.org>
60737
60738         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60739         precision in the comparison result > x - 1 or similar.
60740         * tests/test-ceilf2.c (correct_result_p): Likewise.
60741         * tests/test-truncf2.c (correct_result_p): Likewise.
60742         * tests/test-trunc2.c (correct_result_p): Likewise.
60743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60744
60745 2007-10-20  Bruno Haible  <bruno@clisp.org>
60746
60747         * modules/ceil: New file.
60748         * m4/ceil.m4: New file.
60749         * doc/functions/ceil.texi: Mention the 'ceil' module.
60750
60751 2007-10-20  Bruno Haible  <bruno@clisp.org>
60752
60753         * modules/floor: New file.
60754         * m4/floor.m4: New file.
60755         * doc/functions/floor.texi: Mention the 'floor' module.
60756
60757 2007-10-20  Bruno Haible  <bruno@clisp.org>
60758
60759         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60760         of %a.
60761         * modules/floorf-tests (Depends-on): Likewise.
60762         * modules/truncf-tests (Depends-on): Likewise.
60763         * modules/trunc-tests (Depends-on): Likewise.
60764         Reported by Ben Pfaff.
60765
60766 2007-10-19  Jim Meyering  <meyering@redhat.com>
60767
60768         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60769         Don't bother testing specific errno values.  Just test ferror.
60770
60771         New module: xprintf
60772         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60773
60774 2007-10-19  Bruno Haible  <bruno@clisp.org>
60775
60776         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60777         syntax.
60778         * modules/javaexec (Makefile.am): Likewise.
60779         * modules/relocatable-prog (Makefile.am): Likewise.
60780         Suggested by Jim Meyering.
60781
60782 2007-10-18  Bruno Haible  <bruno@clisp.org>
60783
60784         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60785         Reported by Jim Meyering.
60786
60787 2007-10-18  Eric Blake  <ebb9@byu.net>
60788
60789         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60790
60791 2007-10-18  Bruno Haible  <bruno@clisp.org>
60792
60793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60794         the format string into writable memory. Needed in Fortify conditions.
60795
60796 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60797             Bruno Haible  <bruno@clisp.org>
60798
60799         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60800         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60801         * modules/trim (Depends-on): Add mbchar.
60802         (configure.ac): Add gl_FUNC_MBRTOWC.
60803         (Makefile.am): Augment lib_SOURCES.
60804
60805 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60806
60807         Modify glob.c to use fstatat and dirfd, to simplify it.
60808         Suggested by Eric Blake.
60809         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60810         Don't include <stdbool.h>; not used.
60811         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60812         (link_exists_p): Simplify implementation, since we can now assume
60813         dirfd and fstatat.
60814         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60815
60816 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60817
60818         * gnulib-tool (func_get_dependencies): Fix sed script to
60819         match only tests.
60820
60821 2007-10-17  Bruno Haible  <bruno@clisp.org>
60822
60823         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60824         allow locale names without encoding suffix.
60825         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60826         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60827
60828 2007-10-16  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60831         * lib/getgroups.c (getgroups): Likewise.
60832         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60833
60834 2007-10-16  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60837         * modules/malloc-posix (License): Likewise.
60838         * modules/realloc-posix (License): Likewise.
60839         * modules/calloc-posix (License): Likewise.
60840         * modules/intprops (License): Change from GPL to LGPL, with
60841         Paul Eggert's approval.
60842
60843 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60844
60845         Merge glibc changes into lib/glob.c.
60846
60847         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60848         2007-10-15 04:59:03 UTC.  Here are the changes:
60849
60850         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60851
60852         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60853
60854         * lib/glob.c: Add some branch prediction throughout.
60855
60856         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60857
60858         [BZ #5103]
60859         * lib/glob.c (glob): Recognize patterns starting \/.
60860
60861         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60862
60863         [BZ #3996]
60864         * lib/glob.c (attribute_hidden): Define if not defined.
60865         (glob): Unescape dirname, filename or username when needed and not
60866         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60867         is NULL.  Handle unescaped [ in pattern without closing ].
60868         Don't pass GLOB_CHECK down to recursive glob for directories.
60869         (__glob_pattern_type): New function.
60870         (__glob_pattern_p): Implement using __glob_pattern_type.
60871         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60872         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60873         Remove unreachable code.
60874
60875         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60876
60877         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60878         explain why there are no leaks.
60879
60880         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60881
60882         [BZ #3253]
60883         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60884         time, rather allocate increasingly bigger arrays of pointers, if
60885         possible with alloca, if too large with malloc.
60886
60887 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60890         Problem reported by H.Merijn Brand in
60891         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60892         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60893         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60894
60895 2007-10-15  Bruno Haible  <bruno@clisp.org>
60896
60897         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60898         with explicit rpl_ prefix.
60899         * lib/fopen.c (fopen): Likewise.
60900         * lib/freopen.c (freopen): Likewise.
60901         * lib/iconv.c (iconv): Likewise.
60902         * lib/iconv_close.c (iconv_close): Likewise.
60903
60904 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60905
60906         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60907
60908 2007-10-15  Bruno Haible  <bruno@clisp.org>
60909
60910         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60911         <stddef.h> instead of <stdlib.h> since we only need NULL.
60912         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60913
60914 2007-10-15  Bruno Haible  <bruno@clisp.org>
60915
60916         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60917         Replace paragraph talking about LIBOBJS.
60918         Reported by Colin Watson <cjwatson@debian.org>.
60919
60920 2007-10-15  Bruno Haible  <bruno@clisp.org>
60921
60922         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60923         <stdlib.h> before using NULL.
60924
60925 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60926
60927         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60928         Reported by Albert Chin <china@thewrittenword.com>.
60929
60930 2007-10-14  Bruno Haible  <bruno@clisp.org>
60931
60932         * modules/iconv_open-utf-tests: New file.
60933         * tests/test-iconv-utf.c: New file.
60934
60935         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60936         * modules/iconv_open-utf: New file.
60937         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60938         (iconv, iconv_close): New declarations.
60939         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60940         be defined.
60941         (iconv_open): Add special handling of conversion between UTF-8 and
60942         UTF-{16,32}{BE,LE}.
60943         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60944         * lib/iconv_close.c: New file.
60945         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60946         gl_FUNC_ICONV_OPEN.
60947         (gl_FUNC_ICONV_OPEN): Use it.
60948         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60949         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60950         and REPLACE_ICONV_UTF.
60951         * modules/iconv_open (Depends-on): Add c-strcase.
60952         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60953         ICONV_CONST.
60954         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60955
60956 2007-10-13  Albert Chin  <china@thewrittenword.com>
60957             Bruno Haible  <bruno@clisp.org>
60958
60959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60960         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60961
60962 2007-10-13  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60965         defined, use the ISO C99 inline semantics.
60966         * lib/argp.h (ARGP_EI): Likewise.
60967
60968 2007-10-13  Bruno Haible  <bruno@clisp.org>
60969
60970         Handle 'inline' change in gcc 4.3.0.
60971         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60972         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60973         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60974         argp_fmtstream_point): Disable 'extern' declaration if the function
60975         definition is going to be provided inline.
60976         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60977         semantics, not the ISO C99 inline semantics.
60978         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60979         'extern' declaration if the function definition is going to be provided
60980         inline.
60981         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60982         the GNU C inline semantics, not the ISO C99 inline semantics. With
60983         GCC 4.2, avoid a warning.
60984
60985 2007-10-13  Bruno Haible  <bruno@clisp.org>
60986
60987         * lib/freading.h (freading): Enable the use of __freading for
60988         glibc >= 2.7.
60989         * lib/freading.c (freading): Likewise.
60990
60991 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60994         "warning: C99 inline functions are not supported; using GNU89".
60995
60996 2007-10-12  Bruno Haible  <bruno@clisp.org>
60997
60998         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60999         of 2.
61000         * tests/test-ceilf2.c: New file.
61001         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61002
61003         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61004         * modules/ceilf-tests: Update.
61005
61006 2007-10-12  Bruno Haible  <bruno@clisp.org>
61007
61008         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61009         of 2.
61010         * tests/test-floorf2.c: New file.
61011         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61012
61013         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61014         * modules/floorf-tests: Update.
61015
61016 2007-10-12  Bruno Haible  <bruno@clisp.org>
61017
61018         * tests/test-trunc2.c: New file.
61019         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61020
61021         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61022         * modules/trunc-tests: Update.
61023
61024 2007-10-12  Bruno Haible  <bruno@clisp.org>
61025
61026         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61027         of 2.
61028         * tests/test-truncf2.c: New file.
61029         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61030
61031         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61032         * modules/truncf-tests: Update.
61033
61034 2007-10-11  Eric Blake  <ebb9@byu.net>
61035
61036         Don't claim strerror is broken on Interix.
61037         * doc/functions/strerror.texi (strerror): Known broken systems are
61038         now Solaris 8, and not Interix.
61039         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61040         Interix on cross-compile.
61041         Reported by Martin Koeppe in
61042         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61043
61044 2007-10-11  Bruno Haible  <bruno@clisp.org>
61045
61046         * modules/i-ring-tests: New file.
61047         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61048         instead of assert.
61049
61050 2007-10-11  Bruno Haible  <bruno@clisp.org>
61051
61052         * modules/filenamecat-tests: New file.
61053         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61054         * lib/filenamecat.c: Remove test code.
61055
61056 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61057
61058         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61059
61060         * lib/strerror.c: Include <string.h> always, to test interface,
61061         and to remove the need for the dummy.
61062         Include intprops.h to compute width instead of doing it ourselves
61063         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61064         (strerror): Define it to return NULL if there's no system strerror.
61065         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61066         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61067         ancient pre-strerror Unix systems well any more.  Saying "unknown
61068         system error" is enough.
61069         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61070         simpler strerror.c implementation.
61071         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61072         Simplify the tests to reflect the simpler strerror implementation.
61073         * modules/strerror (Depends-on): Add intprops.
61074
61075 2007-10-09  Eric Blake  <ebb9@byu.net>
61076
61077         Silence test-fpending.
61078         * modules/fpending-tests (Files): Add wrapper script.
61079         * tests/test-fpending.sh: New file.
61080
61081 2007-10-09  Bruno Haible  <bruno@clisp.org>
61082
61083         * MODULES.html.sh (func_module): Don't create a hyperlink for
61084         function names like 'printf_frexp'.
61085         (Misc): Add crc, memxor.
61086         (Characteristics of floating types): New section.
61087         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61088         isnanf-nolibm, signbit, trunc, truncf, truncl.
61089         (Enhancements for ISO C 99 functions): New subsection Input/output.
61090         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61091         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61092         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61093         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61094         (Enhancements for POSIX:2001 functions): Add chdir-long.
61095         (File system functions): Add areadlink, chdir-safer, read-file.
61096         Remove cycle-check.
61097         (File system as inode set): New section.
61098         (Date and time): Add gethrxtime.
61099         (Multithreading): Add openmp.
61100         (Internationalization functions): Add localename.
61101         (Unicode string functions): Add unistr/u*-mbsnlen.
61102         (Support for maintaining and releasing projects): Add git-version-gen.
61103         (Lone files): Remove directories.
61104
61105 2007-10-08  Ben Pfaff  <blp@gnu.org>
61106
61107         * lib/xmalloca.h: Fix typo in comment.
61108
61109 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61110
61111         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61112         when avoiding problems with integer overflow.  Use a portable test
61113         instead.
61114
61115 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61116
61117         * modules/dummy (License): Change to LGPLv2+.
61118         * modules/float (License): Likewise
61119         * modules/realloc (License): Likewise
61120         * modules/stdlib (License): Likewise
61121
61122 2007-10-07  Bruno Haible  <bruno@clisp.org>
61123
61124         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61125         * floor.c (TWO_MANT_DIG): Likewise.
61126         * ceil.c (TWO_MANT_DIG): Likewise.
61127         Reported by Ben Pfaff.
61128
61129 2007-10-07  Bruno Haible  <bruno@clisp.org>
61130
61131         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61132         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61133         * lib/frexp.c (FUNC): Likewise.
61134         * lib/printf-frexp.h (printf_frexp): Likewise.
61135         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61136         * lib/printf-frexp.c (FUNC): Likewise.
61137         Suggested by Jim Meyering.
61138
61139 2007-10-07  Jim Meyering  <meyering@redhat.com>
61140
61141         Make xnanosleep's integer overflow test more robust.
61142         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61143         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61144
61145 2007-10-07  Bruno Haible  <bruno@clisp.org>
61146
61147         * NEWS: Mention the license change.
61148
61149         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61150         abbreviations in the modules files.
61151
61152         Change copyright notice from GPLv2+ to GPLv3+.
61153         * README: Change copyright notice.
61154         * MODULES.html.sh: Likewise.
61155         * build-aux/bootstrap.conf: Likewise.
61156         * build-aux/config.libpath: Likewise.
61157         * build-aux/csharpcomp.sh.in: Likewise.
61158         * build-aux/csharpexec.sh.in: Likewise.
61159         * build-aux/install-reloc: Likewise.
61160         * build-aux/javacomp.sh.in: Likewise.
61161         * build-aux/javaexec.sh.in: Likewise.
61162         * build-aux/ldd.sh.in: Likewise.
61163         * build-aux/reloc-ldflags: Likewise.
61164         * build-aux/relocatable.sh.in: Likewise.
61165         * build-aux/x-to-1.in: Likewise.
61166         * check-module: Likewise.
61167         * config/srclistvars.sh: Likewise.
61168         * gnulib-tool: Likewise.
61169         * lib/acl-internal.h: Likewise.
61170         * lib/acl.c: Likewise.
61171         * lib/acl.h: Likewise.
61172         * lib/acl_entries.c: Likewise.
61173         * lib/areadlink-with-size.c: Likewise.
61174         * lib/areadlink.c: Likewise.
61175         * lib/areadlink.h: Likewise.
61176         * lib/argmatch.c: Likewise.
61177         * lib/argmatch.h: Likewise.
61178         * lib/argp-ba.c: Likewise.
61179         * lib/argp-eexst.c: Likewise.
61180         * lib/argp-fmtstream.c: Likewise.
61181         * lib/argp-fmtstream.h: Likewise.
61182         * lib/argp-fs-xinl.c: Likewise.
61183         * lib/argp-help.c: Likewise.
61184         * lib/argp-namefrob.h: Likewise.
61185         * lib/argp-parse.c: Likewise.
61186         * lib/argp-pin.c: Likewise.
61187         * lib/argp-pv.c: Likewise.
61188         * lib/argp-pvh.c: Likewise.
61189         * lib/argp-xinl.c: Likewise.
61190         * lib/argp.h: Likewise.
61191         * lib/at-func.c: Likewise.
61192         * lib/atanl.c: Likewise.
61193         * lib/backupfile.c: Likewise.
61194         * lib/backupfile.h: Likewise.
61195         * lib/basename.c: Likewise.
61196         * lib/binary-io.h: Likewise.
61197         * lib/byteswap.in.h: Likewise.
61198         * lib/c-stack.c: Likewise.
61199         * lib/c-stack.h: Likewise.
61200         * lib/c-strcasestr.c: Likewise.
61201         * lib/c-strcasestr.h: Likewise.
61202         * lib/c-strstr.c: Likewise.
61203         * lib/c-strstr.h: Likewise.
61204         * lib/c-strtod.c: Likewise.
61205         * lib/calloc.c: Likewise.
61206         * lib/canon-host.c: Likewise.
61207         * lib/canon-host.h: Likewise.
61208         * lib/canonicalize-lgpl.c: Likewise.
61209         * lib/canonicalize.c: Likewise.
61210         * lib/canonicalize.h: Likewise.
61211         * lib/ceil.c: Likewise.
61212         * lib/ceilf.c: Likewise.
61213         * lib/ceill.c: Likewise.
61214         * lib/chdir-long.c: Likewise.
61215         * lib/chdir-long.h: Likewise.
61216         * lib/chdir-safer.c: Likewise.
61217         * lib/chdir-safer.h: Likewise.
61218         * lib/chown.c: Likewise.
61219         * lib/classpath.c: Likewise.
61220         * lib/classpath.h: Likewise.
61221         * lib/clean-temp.c: Likewise.
61222         * lib/clean-temp.h: Likewise.
61223         * lib/cloexec.c: Likewise.
61224         * lib/close-stream.c: Likewise.
61225         * lib/closein.c: Likewise.
61226         * lib/closein.h: Likewise.
61227         * lib/closeout.c: Likewise.
61228         * lib/closeout.h: Likewise.
61229         * lib/concat-filename.c: Likewise.
61230         * lib/copy-file.c: Likewise.
61231         * lib/copy-file.h: Likewise.
61232         * lib/count-one-bits.h: Likewise.
61233         * lib/crc.c: Likewise.
61234         * lib/crc.h: Likewise.
61235         * lib/creat-safer.c: Likewise.
61236         * lib/csharpcomp.c: Likewise.
61237         * lib/csharpcomp.h: Likewise.
61238         * lib/csharpexec.c: Likewise.
61239         * lib/csharpexec.h: Likewise.
61240         * lib/cycle-check.c: Likewise.
61241         * lib/cycle-check.h: Likewise.
61242         * lib/diacrit.c: Likewise.
61243         * lib/diacrit.h: Likewise.
61244         * lib/diffseq.h: Likewise.
61245         * lib/dirchownmod.c: Likewise.
61246         * lib/dirent.in.h: Likewise.
61247         * lib/dirfd.c: Likewise.
61248         * lib/dirfd.h: Likewise.
61249         * lib/dirname.c: Likewise.
61250         * lib/dirname.h: Likewise.
61251         * lib/dummy.c: Likewise.
61252         * lib/dup-safer.c: Likewise.
61253         * lib/dup2.c: Likewise.
61254         * lib/eealloc.h: Likewise.
61255         * lib/error.c: Likewise.
61256         * lib/error.h: Likewise.
61257         * lib/euidaccess.c: Likewise.
61258         * lib/exclude.c: Likewise.
61259         * lib/exclude.h: Likewise.
61260         * lib/execute.c: Likewise.
61261         * lib/execute.h: Likewise.
61262         * lib/exitfail.c: Likewise.
61263         * lib/exitfail.h: Likewise.
61264         * lib/expl.c: Likewise.
61265         * lib/fatal-signal.c: Likewise.
61266         * lib/fatal-signal.h: Likewise.
61267         * lib/fbufmode.c: Likewise.
61268         * lib/fbufmode.h: Likewise.
61269         * lib/fchdir.c: Likewise.
61270         * lib/fchmodat.c: Likewise.
61271         * lib/fchownat.c: Likewise.
61272         * lib/fcntl--.h: Likewise.
61273         * lib/fcntl-safer.h: Likewise.
61274         * lib/fcntl.in.h: Likewise.
61275         * lib/fd-safer.c: Likewise.
61276         * lib/fflush.c: Likewise.
61277         * lib/file-has-acl.c: Likewise.
61278         * lib/file-set.c: Likewise.
61279         * lib/file-type.c: Likewise.
61280         * lib/file-type.h: Likewise.
61281         * lib/fileblocks.c: Likewise.
61282         * lib/filemode.c: Likewise.
61283         * lib/filemode.h: Likewise.
61284         * lib/filename.h: Likewise.
61285         * lib/filenamecat.c: Likewise.
61286         * lib/filenamecat.h: Likewise.
61287         * lib/findprog.c: Likewise.
61288         * lib/findprog.h: Likewise.
61289         * lib/float.in.h: Likewise.
61290         * lib/floor.c: Likewise.
61291         * lib/floorf.c: Likewise.
61292         * lib/floorl.c: Likewise.
61293         * lib/fopen-safer.c: Likewise.
61294         * lib/fopen.c: Likewise.
61295         * lib/fpending.c: Likewise.
61296         * lib/fpending.h: Likewise.
61297         * lib/fprintf.c: Likewise.
61298         * lib/fprintftime.h: Likewise.
61299         * lib/fpucw.h: Likewise.
61300         * lib/fpurge.c: Likewise.
61301         * lib/fpurge.h: Likewise.
61302         * lib/freadable.c: Likewise.
61303         * lib/freadable.h: Likewise.
61304         * lib/freadahead.c: Likewise.
61305         * lib/freadahead.h: Likewise.
61306         * lib/freading.c: Likewise.
61307         * lib/freading.h: Likewise.
61308         * lib/free.c: Likewise.
61309         * lib/freopen.c: Likewise.
61310         * lib/frexp.c: Likewise.
61311         * lib/frexpl.c: Likewise.
61312         * lib/fseek.c: Likewise.
61313         * lib/fseterr.c: Likewise.
61314         * lib/fseterr.h: Likewise.
61315         * lib/fstatat.c: Likewise.
61316         * lib/fstrcmp.c: Likewise.
61317         * lib/fstrcmp.h: Likewise.
61318         * lib/fsusage.c: Likewise.
61319         * lib/fsusage.h: Likewise.
61320         * lib/ftell.c: Likewise.
61321         * lib/ftello.c: Likewise.
61322         * lib/fts-cycle.c: Likewise.
61323         * lib/fts.c: Likewise.
61324         * lib/fts_.h: Likewise.
61325         * lib/full-read.c: Likewise.
61326         * lib/full-read.h: Likewise.
61327         * lib/full-write.c: Likewise.
61328         * lib/full-write.h: Likewise.
61329         * lib/fwritable.c: Likewise.
61330         * lib/fwritable.h: Likewise.
61331         * lib/fwriteerror.c: Likewise.
61332         * lib/fwriteerror.h: Likewise.
61333         * lib/fwriting.c: Likewise.
61334         * lib/fwriting.h: Likewise.
61335         * lib/gcd.c: Likewise.
61336         * lib/gcd.h: Likewise.
61337         * lib/getcwd.c: Likewise.
61338         * lib/getdate.h: Likewise.
61339         * lib/getdate.y: Likewise.
61340         * lib/getdomainname.c: Likewise.
61341         * lib/getdomainname.h: Likewise.
61342         * lib/getgroups.c: Likewise.
61343         * lib/gethostname.c: Likewise.
61344         * lib/gethrxtime.c: Likewise.
61345         * lib/gethrxtime.h: Likewise.
61346         * lib/getloadavg.c: Likewise.
61347         * lib/getndelim2.c: Likewise.
61348         * lib/getndelim2.h: Likewise.
61349         * lib/getnline.c: Likewise.
61350         * lib/getnline.h: Likewise.
61351         * lib/getopt.c: Likewise.
61352         * lib/getopt.in.h: Likewise.
61353         * lib/getopt1.c: Likewise.
61354         * lib/getopt_int.h: Likewise.
61355         * lib/getpagesize.h: Likewise.
61356         * lib/getsubopt.c: Likewise.
61357         * lib/gettime.c: Likewise.
61358         * lib/getugroups.c: Likewise.
61359         * lib/getugroups.h: Likewise.
61360         * lib/getusershell.c: Likewise.
61361         * lib/gl_anyavltree_list1.h: Likewise.
61362         * lib/gl_anyavltree_list2.h: Likewise.
61363         * lib/gl_anyhash_list1.h: Likewise.
61364         * lib/gl_anyhash_list2.h: Likewise.
61365         * lib/gl_anylinked_list1.h: Likewise.
61366         * lib/gl_anylinked_list2.h: Likewise.
61367         * lib/gl_anyrbtree_list1.h: Likewise.
61368         * lib/gl_anyrbtree_list2.h: Likewise.
61369         * lib/gl_anytree_list1.h: Likewise.
61370         * lib/gl_anytree_list2.h: Likewise.
61371         * lib/gl_anytree_oset.h: Likewise.
61372         * lib/gl_anytreehash_list1.h: Likewise.
61373         * lib/gl_anytreehash_list2.h: Likewise.
61374         * lib/gl_array_list.c: Likewise.
61375         * lib/gl_array_list.h: Likewise.
61376         * lib/gl_array_oset.c: Likewise.
61377         * lib/gl_array_oset.h: Likewise.
61378         * lib/gl_avltree_list.c: Likewise.
61379         * lib/gl_avltree_list.h: Likewise.
61380         * lib/gl_avltree_oset.c: Likewise.
61381         * lib/gl_avltree_oset.h: Likewise.
61382         * lib/gl_avltreehash_list.c: Likewise.
61383         * lib/gl_avltreehash_list.h: Likewise.
61384         * lib/gl_carray_list.c: Likewise.
61385         * lib/gl_carray_list.h: Likewise.
61386         * lib/gl_linked_list.c: Likewise.
61387         * lib/gl_linked_list.h: Likewise.
61388         * lib/gl_linkedhash_list.c: Likewise.
61389         * lib/gl_linkedhash_list.h: Likewise.
61390         * lib/gl_list.c: Likewise.
61391         * lib/gl_list.h: Likewise.
61392         * lib/gl_oset.c: Likewise.
61393         * lib/gl_oset.h: Likewise.
61394         * lib/gl_rbtree_list.c: Likewise.
61395         * lib/gl_rbtree_list.h: Likewise.
61396         * lib/gl_rbtree_oset.c: Likewise.
61397         * lib/gl_rbtree_oset.h: Likewise.
61398         * lib/gl_rbtreehash_list.c: Likewise.
61399         * lib/gl_rbtreehash_list.h: Likewise.
61400         * lib/gl_sublist.c: Likewise.
61401         * lib/gl_sublist.h: Likewise.
61402         * lib/group-member.c: Likewise.
61403         * lib/group-member.h: Likewise.
61404         * lib/hard-locale.c: Likewise.
61405         * lib/hard-locale.h: Likewise.
61406         * lib/hash-pjw.c: Likewise.
61407         * lib/hash-pjw.h: Likewise.
61408         * lib/hash-triple.c: Likewise.
61409         * lib/hash.c: Likewise.
61410         * lib/hash.h: Likewise.
61411         * lib/human.c: Likewise.
61412         * lib/human.h: Likewise.
61413         * lib/i-ring.c: Likewise.
61414         * lib/i-ring.h: Likewise.
61415         * lib/idcache.c: Likewise.
61416         * lib/imaxabs.c: Likewise.
61417         * lib/imaxdiv.c: Likewise.
61418         * lib/inet_pton.c: Likewise.
61419         * lib/inet_pton.h: Likewise.
61420         * lib/intprops.h: Likewise.
61421         * lib/inttostr.c: Likewise.
61422         * lib/inttostr.h: Likewise.
61423         * lib/inttypes.in.h: Likewise.
61424         * lib/isapipe.c: Likewise.
61425         * lib/isdir.c: Likewise.
61426         * lib/isnan.c: Likewise.
61427         * lib/isnan.h: Likewise.
61428         * lib/isnanf.c: Likewise.
61429         * lib/isnanf.h: Likewise.
61430         * lib/isnanl-nolibm.h: Likewise.
61431         * lib/isnanl.c: Likewise.
61432         * lib/isnanl.h: Likewise.
61433         * lib/javacomp.c: Likewise.
61434         * lib/javacomp.h: Likewise.
61435         * lib/javaexec.c: Likewise.
61436         * lib/javaexec.h: Likewise.
61437         * lib/javaversion.c: Likewise.
61438         * lib/javaversion.h: Likewise.
61439         * lib/javaversion.java: Likewise.
61440         * lib/lbrkprop.h: Likewise.
61441         * lib/lchmod.h: Likewise.
61442         * lib/lchown.c: Likewise.
61443         * lib/ldexpl.c: Likewise.
61444         * lib/linebreak.c: Likewise.
61445         * lib/linebreak.h: Likewise.
61446         * lib/linebuffer.c: Likewise.
61447         * lib/linebuffer.h: Likewise.
61448         * lib/locale.in.h: Likewise.
61449         * lib/logl.c: Likewise.
61450         * lib/long-options.c: Likewise.
61451         * lib/long-options.h: Likewise.
61452         * lib/lstat.c: Likewise.
61453         * lib/lstat.h: Likewise.
61454         * lib/math.in.h: Likewise.
61455         * lib/mbchar.c: Likewise.
61456         * lib/mbchar.h: Likewise.
61457         * lib/mbfile.h: Likewise.
61458         * lib/mbiter.h: Likewise.
61459         * lib/mbscasecmp.c: Likewise.
61460         * lib/mbscasestr.c: Likewise.
61461         * lib/mbschr.c: Likewise.
61462         * lib/mbscspn.c: Likewise.
61463         * lib/mbslen.c: Likewise.
61464         * lib/mbsncasecmp.c: Likewise.
61465         * lib/mbsnlen.c: Likewise.
61466         * lib/mbspbrk.c: Likewise.
61467         * lib/mbspcasecmp.c: Likewise.
61468         * lib/mbsrchr.c: Likewise.
61469         * lib/mbssep.c: Likewise.
61470         * lib/mbsspn.c: Likewise.
61471         * lib/mbsstr.c: Likewise.
61472         * lib/mbstok_r.c: Likewise.
61473         * lib/mbswidth.c: Likewise.
61474         * lib/mbswidth.h: Likewise.
61475         * lib/mbuiter.h: Likewise.
61476         * lib/memcasecmp.c: Likewise.
61477         * lib/memcasecmp.h: Likewise.
61478         * lib/memchr.c: Likewise.
61479         * lib/memcmp.c: Likewise.
61480         * lib/memcoll.c: Likewise.
61481         * lib/memcoll.h: Likewise.
61482         * lib/memcpy.c: Likewise.
61483         * lib/memrchr.c: Likewise.
61484         * lib/mkancesdirs.c: Likewise.
61485         * lib/mkdir-p.c: Likewise.
61486         * lib/mkdir-p.h: Likewise.
61487         * lib/mkdir.c: Likewise.
61488         * lib/mkdirat.c: Likewise.
61489         * lib/mkdtemp.c: Likewise.
61490         * lib/mkstemp-safer.c: Likewise.
61491         * lib/mkstemp.c: Likewise.
61492         * lib/modechange.c: Likewise.
61493         * lib/modechange.h: Likewise.
61494         * lib/mountlist.c: Likewise.
61495         * lib/mountlist.h: Likewise.
61496         * lib/mpsort.c: Likewise.
61497         * lib/nanosleep.c: Likewise.
61498         * lib/obstack.c: Likewise.
61499         * lib/obstack.h: Likewise.
61500         * lib/open-safer.c: Likewise.
61501         * lib/open.c: Likewise.
61502         * lib/openat-die.c: Likewise.
61503         * lib/openat-priv.h: Likewise.
61504         * lib/openat-proc.c: Likewise.
61505         * lib/openat.c: Likewise.
61506         * lib/openat.h: Likewise.
61507         * lib/pagealign_alloc.c: Likewise.
61508         * lib/pagealign_alloc.h: Likewise.
61509         * lib/physmem.c: Likewise.
61510         * lib/physmem.h: Likewise.
61511         * lib/pipe-safer.c: Likewise.
61512         * lib/pipe.c: Likewise.
61513         * lib/pipe.h: Likewise.
61514         * lib/posixtm.c: Likewise.
61515         * lib/posixtm.h: Likewise.
61516         * lib/posixver.c: Likewise.
61517         * lib/printf-frexp.c: Likewise.
61518         * lib/printf-frexp.h: Likewise.
61519         * lib/printf-frexpl.c: Likewise.
61520         * lib/printf-frexpl.h: Likewise.
61521         * lib/printf.c: Likewise.
61522         * lib/progname.c: Likewise.
61523         * lib/progname.h: Likewise.
61524         * lib/progreloc.c: Likewise.
61525         * lib/putenv.c: Likewise.
61526         * lib/quote.c: Likewise.
61527         * lib/quote.h: Likewise.
61528         * lib/quotearg.c: Likewise.
61529         * lib/quotearg.h: Likewise.
61530         * lib/raise.c: Likewise.
61531         * lib/readline.c: Likewise.
61532         * lib/readline.h: Likewise.
61533         * lib/readlink.c: Likewise.
61534         * lib/readtokens.c: Likewise.
61535         * lib/readtokens.h: Likewise.
61536         * lib/readtokens0.c: Likewise.
61537         * lib/readtokens0.h: Likewise.
61538         * lib/readutmp.c: Likewise.
61539         * lib/readutmp.h: Likewise.
61540         * lib/realloc.c: Likewise.
61541         * lib/relocwrapper.c: Likewise.
61542         * lib/rename-dest-slash.c: Likewise.
61543         * lib/rename.c: Likewise.
61544         * lib/rmdir.c: Likewise.
61545         * lib/rpmatch.c: Likewise.
61546         * lib/safe-read.c: Likewise.
61547         * lib/safe-read.h: Likewise.
61548         * lib/safe-write.c: Likewise.
61549         * lib/safe-write.h: Likewise.
61550         * lib/same-inode.h: Likewise.
61551         * lib/same.c: Likewise.
61552         * lib/same.h: Likewise.
61553         * lib/save-cwd.c: Likewise.
61554         * lib/save-cwd.h: Likewise.
61555         * lib/savedir.c: Likewise.
61556         * lib/savedir.h: Likewise.
61557         * lib/savewd.c: Likewise.
61558         * lib/savewd.h: Likewise.
61559         * lib/search.in.h: Likewise.
61560         * lib/setenv.c: Likewise.
61561         * lib/setenv.h: Likewise.
61562         * lib/settime.c: Likewise.
61563         * lib/sh-quote.c: Likewise.
61564         * lib/sh-quote.h: Likewise.
61565         * lib/sig2str.c: Likewise.
61566         * lib/sig2str.h: Likewise.
61567         * lib/signal.in.h: Likewise.
61568         * lib/signbitd.c: Likewise.
61569         * lib/signbitf.c: Likewise.
61570         * lib/signbitl.c: Likewise.
61571         * lib/sigprocmask.c: Likewise.
61572         * lib/sincosl.c: Likewise.
61573         * lib/sleep.c: Likewise.
61574         * lib/sprintf.c: Likewise.
61575         * lib/sqrtl.c: Likewise.
61576         * lib/stat-time.h: Likewise.
61577         * lib/stdio--.h: Likewise.
61578         * lib/stdio-safer.h: Likewise.
61579         * lib/stdlib--.h: Likewise.
61580         * lib/stdlib-safer.h: Likewise.
61581         * lib/stdlib.in.h: Likewise.
61582         * lib/stpcpy.c: Likewise.
61583         * lib/stpncpy.c: Likewise.
61584         * lib/strchrnul.c: Likewise.
61585         * lib/strcspn.c: Likewise.
61586         * lib/strerror.c: Likewise.
61587         * lib/strftime.c: Likewise.
61588         * lib/strftime.h: Likewise.
61589         * lib/striconveh.c: Likewise.
61590         * lib/striconveh.h: Likewise.
61591         * lib/striconveha.c: Likewise.
61592         * lib/striconveha.h: Likewise.
61593         * lib/stripslash.c: Likewise.
61594         * lib/strnlen1.c: Likewise.
61595         * lib/strnlen1.h: Likewise.
61596         * lib/strtod.c: Likewise.
61597         * lib/strtoimax.c: Likewise.
61598         * lib/strtok_r.c: Likewise.
61599         * lib/strtol.c: Likewise.
61600         * lib/strtoll.c: Likewise.
61601         * lib/strtoul.c: Likewise.
61602         * lib/strtoull.c: Likewise.
61603         * lib/sysexits.in.h: Likewise.
61604         * lib/tempname.c: Likewise.
61605         * lib/tempname.h: Likewise.
61606         * lib/timespec.h: Likewise.
61607         * lib/tls.c: Likewise.
61608         * lib/tls.h: Likewise.
61609         * lib/tmpdir.c: Likewise.
61610         * lib/tmpdir.h: Likewise.
61611         * lib/tmpfile-safer.c: Likewise.
61612         * lib/tmpfile.c: Likewise.
61613         * lib/trigl.c: Likewise.
61614         * lib/trigl.h: Likewise.
61615         * lib/trim.c: Likewise.
61616         * lib/trim.h: Likewise.
61617         * lib/trunc.c: Likewise.
61618         * lib/truncf.c: Likewise.
61619         * lib/truncl.c: Likewise.
61620         * lib/tsearch.c: Likewise.
61621         * lib/unicodeio.c: Likewise.
61622         * lib/unicodeio.h: Likewise.
61623         * lib/unistd--.h: Likewise.
61624         * lib/unistd-safer.h: Likewise.
61625         * lib/unistdio/ulc-fprintf.c: Likewise.
61626         * lib/unistdio/ulc-vfprintf.c: Likewise.
61627         * lib/unlinkdir.c: Likewise.
61628         * lib/unlinkdir.h: Likewise.
61629         * lib/unlocked-io.h: Likewise.
61630         * lib/unsetenv.c: Likewise.
61631         * lib/userspec.c: Likewise.
61632         * lib/utime.c: Likewise.
61633         * lib/utimecmp.c: Likewise.
61634         * lib/utimecmp.h: Likewise.
61635         * lib/utimens.c: Likewise.
61636         * lib/verify.h: Likewise.
61637         * lib/verror.c: Likewise.
61638         * lib/verror.h: Likewise.
61639         * lib/version-etc-fsf.c: Likewise.
61640         * lib/version-etc.c: Likewise.
61641         * lib/version-etc.h: Likewise.
61642         * lib/vfprintf.c: Likewise.
61643         * lib/vprintf.c: Likewise.
61644         * lib/vsprintf.c: Likewise.
61645         * lib/w32spawn.h: Likewise.
61646         * lib/wait-process.c: Likewise.
61647         * lib/wait-process.h: Likewise.
61648         * lib/wcwidth.c: Likewise.
61649         * lib/write-any-file.c: Likewise.
61650         * lib/xalloc-die.c: Likewise.
61651         * lib/xalloc.h: Likewise.
61652         * lib/xasprintf.c: Likewise.
61653         * lib/xgetcwd.c: Likewise.
61654         * lib/xgetcwd.h: Likewise.
61655         * lib/xgetdomainname.c: Likewise.
61656         * lib/xgetdomainname.h: Likewise.
61657         * lib/xgethostname.c: Likewise.
61658         * lib/xmalloc.c: Likewise.
61659         * lib/xmalloca.c: Likewise.
61660         * lib/xmalloca.h: Likewise.
61661         * lib/xmemcoll.c: Likewise.
61662         * lib/xnanosleep.c: Likewise.
61663         * lib/xreadlink.c: Likewise.
61664         * lib/xreadlink.h: Likewise.
61665         * lib/xsetenv.c: Likewise.
61666         * lib/xsetenv.h: Likewise.
61667         * lib/xstriconv.c: Likewise.
61668         * lib/xstriconv.h: Likewise.
61669         * lib/xstrndup.c: Likewise.
61670         * lib/xstrndup.h: Likewise.
61671         * lib/xstrtod.c: Likewise.
61672         * lib/xstrtod.h: Likewise.
61673         * lib/xstrtol-error.c: Likewise.
61674         * lib/xstrtol.c: Likewise.
61675         * lib/xstrtol.h: Likewise.
61676         * lib/xtime.h: Likewise.
61677         * lib/xvasprintf.c: Likewise.
61678         * lib/xvasprintf.h: Likewise.
61679         * lib/yesno.c: Likewise.
61680         * lib/yesno.h: Likewise.
61681         * posix-modules: Likewise.
61682         * tests/test-alloca-opt.c: Likewise.
61683         * tests/test-arcfour.c: Likewise.
61684         * tests/test-arctwo.c: Likewise.
61685         * tests/test-argmatch.c: Likewise.
61686         * tests/test-argp-2.sh: Likewise.
61687         * tests/test-argp.c: Likewise.
61688         * tests/test-arpa_inet.c: Likewise.
61689         * tests/test-array_list.c: Likewise.
61690         * tests/test-array_oset.c: Likewise.
61691         * tests/test-atexit.c: Likewise.
61692         * tests/test-avltree_list.c: Likewise.
61693         * tests/test-avltree_oset.c: Likewise.
61694         * tests/test-avltreehash_list.c: Likewise.
61695         * tests/test-base64.c: Likewise.
61696         * tests/test-binary-io.c: Likewise.
61697         * tests/test-byteswap.c: Likewise.
61698         * tests/test-c-ctype.c: Likewise.
61699         * tests/test-c-strcasecmp.c: Likewise.
61700         * tests/test-c-strcasestr.c: Likewise.
61701         * tests/test-c-strncasecmp.c: Likewise.
61702         * tests/test-c-strstr.c: Likewise.
61703         * tests/test-canonicalize-lgpl.c: Likewise.
61704         * tests/test-canonicalize.c: Likewise.
61705         * tests/test-carray_list.c: Likewise.
61706         * tests/test-ceilf.c: Likewise.
61707         * tests/test-ceill.c: Likewise.
61708         * tests/test-count-one-bits.c: Likewise.
61709         * tests/test-crc.c: Likewise.
61710         * tests/test-dirname.c: Likewise.
61711         * tests/test-fbufmode.c: Likewise.
61712         * tests/test-fcntl.c: Likewise.
61713         * tests/test-fflush.c: Likewise.
61714         * tests/test-floorf.c: Likewise.
61715         * tests/test-floorl.c: Likewise.
61716         * tests/test-fopen.c: Likewise.
61717         * tests/test-fprintf-posix.c: Likewise.
61718         * tests/test-fprintf-posix.h: Likewise.
61719         * tests/test-fpurge.c: Likewise.
61720         * tests/test-freadable.c: Likewise.
61721         * tests/test-freadahead.c: Likewise.
61722         * tests/test-freading.c: Likewise.
61723         * tests/test-freopen.c: Likewise.
61724         * tests/test-frexp.c: Likewise.
61725         * tests/test-frexpl.c: Likewise.
61726         * tests/test-fseek.c: Likewise.
61727         * tests/test-fseeko.c: Likewise.
61728         * tests/test-fseterr.c: Likewise.
61729         * tests/test-fstrcmp.c: Likewise.
61730         * tests/test-ftell.c: Likewise.
61731         * tests/test-ftello.c: Likewise.
61732         * tests/test-fwritable.c: Likewise.
61733         * tests/test-fwriting.c: Likewise.
61734         * tests/test-getaddrinfo.c: Likewise.
61735         * tests/test-getpass.c: Likewise.
61736         * tests/test-gettimeofday.c: Likewise.
61737         * tests/test-hmac-md5.c: Likewise.
61738         * tests/test-hmac-sha1.c: Likewise.
61739         * tests/test-iconv.c: Likewise.
61740         * tests/test-iconvme.c: Likewise.
61741         * tests/test-inttypes.c: Likewise.
61742         * tests/test-isnan.c: Likewise.
61743         * tests/test-isnanf.c: Likewise.
61744         * tests/test-isnanl-nolibm.c: Likewise.
61745         * tests/test-isnanl.c: Likewise.
61746         * tests/test-isnanl.h: Likewise.
61747         * tests/test-ldexpl.c: Likewise.
61748         * tests/test-linked_list.c: Likewise.
61749         * tests/test-linkedhash_list.c: Likewise.
61750         * tests/test-locale.c: Likewise.
61751         * tests/test-localename.c: Likewise.
61752         * tests/test-lock.c: Likewise.
61753         * tests/test-lseek.c: Likewise.
61754         * tests/test-malloca.c: Likewise.
61755         * tests/test-math.c: Likewise.
61756         * tests/test-mbscasecmp.c: Likewise.
61757         * tests/test-mbscasestr1.c: Likewise.
61758         * tests/test-mbscasestr2.c: Likewise.
61759         * tests/test-mbscasestr3.c: Likewise.
61760         * tests/test-mbscasestr4.c: Likewise.
61761         * tests/test-mbschr.c: Likewise.
61762         * tests/test-mbscspn.c: Likewise.
61763         * tests/test-mbsncasecmp.c: Likewise.
61764         * tests/test-mbspbrk.c: Likewise.
61765         * tests/test-mbspcasecmp.c: Likewise.
61766         * tests/test-mbsrchr.c: Likewise.
61767         * tests/test-mbsspn.c: Likewise.
61768         * tests/test-mbsstr1.c: Likewise.
61769         * tests/test-mbsstr2.c: Likewise.
61770         * tests/test-mbsstr3.c: Likewise.
61771         * tests/test-md5.c: Likewise.
61772         * tests/test-memmem.c: Likewise.
61773         * tests/test-netinet_in.c: Likewise.
61774         * tests/test-open.c: Likewise.
61775         * tests/test-printf-frexp.c: Likewise.
61776         * tests/test-printf-frexpl.c: Likewise.
61777         * tests/test-printf-posix.c: Likewise.
61778         * tests/test-printf-posix.h: Likewise.
61779         * tests/test-rbtree_list.c: Likewise.
61780         * tests/test-rbtree_oset.c: Likewise.
61781         * tests/test-rbtreehash_list.c: Likewise.
61782         * tests/test-read-file.c: Likewise.
61783         * tests/test-rijndael.c: Likewise.
61784         * tests/test-search.c: Likewise.
61785         * tests/test-signbit.c: Likewise.
61786         * tests/test-sleep.c: Likewise.
61787         * tests/test-snprintf-posix.c: Likewise.
61788         * tests/test-snprintf-posix.h: Likewise.
61789         * tests/test-snprintf.c: Likewise.
61790         * tests/test-sprintf-posix.c: Likewise.
61791         * tests/test-sprintf-posix.h: Likewise.
61792         * tests/test-stat-time.c: Likewise.
61793         * tests/test-stdbool.c: Likewise.
61794         * tests/test-stdint.c: Likewise.
61795         * tests/test-stdio.c: Likewise.
61796         * tests/test-stdlib.c: Likewise.
61797         * tests/test-stpncpy.c: Likewise.
61798         * tests/test-strcasestr.c: Likewise.
61799         * tests/test-striconv.c: Likewise.
61800         * tests/test-striconveh.c: Likewise.
61801         * tests/test-striconveha.c: Likewise.
61802         * tests/test-string.c: Likewise.
61803         * tests/test-sys_select.c: Likewise.
61804         * tests/test-sys_socket.c: Likewise.
61805         * tests/test-sys_stat.c: Likewise.
61806         * tests/test-sys_time.c: Likewise.
61807         * tests/test-sysexits.c: Likewise.
61808         * tests/test-time.c: Likewise.
61809         * tests/test-tls.c: Likewise.
61810         * tests/test-trunc.c: Likewise.
61811         * tests/test-truncf.c: Likewise.
61812         * tests/test-truncl.c: Likewise.
61813         * tests/test-unistd.c: Likewise.
61814         * tests/test-vasnprintf-posix.c: Likewise.
61815         * tests/test-vasnprintf-posix2.c: Likewise.
61816         * tests/test-vasnprintf.c: Likewise.
61817         * tests/test-vasprintf-posix.c: Likewise.
61818         * tests/test-vasprintf.c: Likewise.
61819         * tests/test-verify.c: Likewise.
61820         * tests/test-vfprintf-posix.c: Likewise.
61821         * tests/test-vprintf-posix.c: Likewise.
61822         * tests/test-vsnprintf-posix.c: Likewise.
61823         * tests/test-vsnprintf.c: Likewise.
61824         * tests/test-vsprintf-posix.c: Likewise.
61825         * tests/test-wchar.c: Likewise.
61826         * tests/test-wctype.c: Likewise.
61827         * tests/test-wcwidth.c: Likewise.
61828         * tests/test-xstrtol.c: Likewise.
61829         * tests/test-xvasprintf.c: Likewise.
61830         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61831         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61832         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61833         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61834         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61835         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61836         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61837         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61838         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61839         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61840         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61841         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61842         * tests/uniname/test-uninames.c: Likewise.
61843         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61844         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61845         * tests/unistdio/test-u16-printf1.h: Likewise.
61846         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61847         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61848         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61849         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61850         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61851         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61852         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61853         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61854         * tests/unistdio/test-u32-printf1.h: Likewise.
61855         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61856         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61857         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61858         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61859         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61860         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61861         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61862         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61863         * tests/unistdio/test-u8-printf1.h: Likewise.
61864         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61865         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61866         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61867         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61868         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61869         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61870         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61871         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61872         * tests/unistdio/test-ulc-printf1.h: Likewise.
61873         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61874         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61875         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61876         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61877         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61878         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61879         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61880         * tests/uniwidth/test-u16-width.c: Likewise.
61881         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61882         * tests/uniwidth/test-u32-width.c: Likewise.
61883         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61884         * tests/uniwidth/test-u8-width.c: Likewise.
61885         * tests/uniwidth/test-uc_width.c: Likewise.
61886         * config/srclist-update: Likewise.
61887         (fixlicense): Update to GPLv3+.
61888
61889         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61890         * tests/test-tsearch.c: Change copyright notice.
61891
61892         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61893         * lib/c-strcaseeq.h: Change copyright notice.
61894         * lib/streq.h: Likewise.
61895         * lib/uniconv.h: Likewise.
61896         * lib/uniconv/u-conv-from-enc.h: Likewise.
61897         * lib/uniconv/u-conv-to-enc.h: Likewise.
61898         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61899         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61900         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61901         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61902         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61903         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61904         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61905         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61906         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61907         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61908         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61909         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61910         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61911         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61912         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61913         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61914         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61915         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61916         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61917         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61918         * lib/uniname.h: Likewise.
61919         * lib/uniname/uniname.c: Likewise.
61920         * lib/unistdio.h: Likewise.
61921         * lib/unistdio/u-asnprintf.h: Likewise.
61922         * lib/unistdio/u-asprintf.h: Likewise.
61923         * lib/unistdio/u-printf-args.c: Likewise.
61924         * lib/unistdio/u-printf-args.h: Likewise.
61925         * lib/unistdio/u-printf-parse.h: Likewise.
61926         * lib/unistdio/u-snprintf.h: Likewise.
61927         * lib/unistdio/u-sprintf.h: Likewise.
61928         * lib/unistdio/u-vasprintf.h: Likewise.
61929         * lib/unistdio/u-vsnprintf.h: Likewise.
61930         * lib/unistdio/u-vsprintf.h: Likewise.
61931         * lib/unistdio/u16-asnprintf.c: Likewise.
61932         * lib/unistdio/u16-asprintf.c: Likewise.
61933         * lib/unistdio/u16-printf-parse.c: Likewise.
61934         * lib/unistdio/u16-snprintf.c: Likewise.
61935         * lib/unistdio/u16-sprintf.c: Likewise.
61936         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61937         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61938         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61939         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61940         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61941         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61942         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61943         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61944         * lib/unistdio/u16-vasnprintf.c: Likewise.
61945         * lib/unistdio/u16-vasprintf.c: Likewise.
61946         * lib/unistdio/u16-vsnprintf.c: Likewise.
61947         * lib/unistdio/u16-vsprintf.c: Likewise.
61948         * lib/unistdio/u32-asnprintf.c: Likewise.
61949         * lib/unistdio/u32-asprintf.c: Likewise.
61950         * lib/unistdio/u32-printf-parse.c: Likewise.
61951         * lib/unistdio/u32-snprintf.c: Likewise.
61952         * lib/unistdio/u32-sprintf.c: Likewise.
61953         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61954         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61955         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61956         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61957         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61958         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61959         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61960         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61961         * lib/unistdio/u32-vasnprintf.c: Likewise.
61962         * lib/unistdio/u32-vasprintf.c: Likewise.
61963         * lib/unistdio/u32-vsnprintf.c: Likewise.
61964         * lib/unistdio/u32-vsprintf.c: Likewise.
61965         * lib/unistdio/u8-asnprintf.c: Likewise.
61966         * lib/unistdio/u8-asprintf.c: Likewise.
61967         * lib/unistdio/u8-printf-parse.c: Likewise.
61968         * lib/unistdio/u8-snprintf.c: Likewise.
61969         * lib/unistdio/u8-sprintf.c: Likewise.
61970         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61971         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61972         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61973         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61974         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61975         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61976         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61977         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61978         * lib/unistdio/u8-vasnprintf.c: Likewise.
61979         * lib/unistdio/u8-vasprintf.c: Likewise.
61980         * lib/unistdio/u8-vsnprintf.c: Likewise.
61981         * lib/unistdio/u8-vsprintf.c: Likewise.
61982         * lib/unistdio/ulc-asnprintf.c: Likewise.
61983         * lib/unistdio/ulc-asprintf.c: Likewise.
61984         * lib/unistdio/ulc-printf-parse.c: Likewise.
61985         * lib/unistdio/ulc-snprintf.c: Likewise.
61986         * lib/unistdio/ulc-sprintf.c: Likewise.
61987         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61988         * lib/unistdio/ulc-vasprintf.c: Likewise.
61989         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61990         * lib/unistdio/ulc-vsprintf.c: Likewise.
61991         * lib/unistr.h: Likewise.
61992         * lib/unistr/u-cpy-alloc.h: Likewise.
61993         * lib/unistr/u-cpy.h: Likewise.
61994         * lib/unistr/u-endswith.h: Likewise.
61995         * lib/unistr/u-move.h: Likewise.
61996         * lib/unistr/u-set.h: Likewise.
61997         * lib/unistr/u-startswith.h: Likewise.
61998         * lib/unistr/u-stpcpy.h: Likewise.
61999         * lib/unistr/u-stpncpy.h: Likewise.
62000         * lib/unistr/u-strcat.h: Likewise.
62001         * lib/unistr/u-strcpy.h: Likewise.
62002         * lib/unistr/u-strcspn.h: Likewise.
62003         * lib/unistr/u-strdup.h: Likewise.
62004         * lib/unistr/u-strlen.h: Likewise.
62005         * lib/unistr/u-strncat.h: Likewise.
62006         * lib/unistr/u-strncpy.h: Likewise.
62007         * lib/unistr/u-strnlen.h: Likewise.
62008         * lib/unistr/u-strpbrk.h: Likewise.
62009         * lib/unistr/u-strspn.h: Likewise.
62010         * lib/unistr/u-strstr.h: Likewise.
62011         * lib/unistr/u-strtok.h: Likewise.
62012         * lib/unistr/u16-check.c: Likewise.
62013         * lib/unistr/u16-chr.c: Likewise.
62014         * lib/unistr/u16-cmp.c: Likewise.
62015         * lib/unistr/u16-cpy-alloc.c: Likewise.
62016         * lib/unistr/u16-cpy.c: Likewise.
62017         * lib/unistr/u16-endswith.c: Likewise.
62018         * lib/unistr/u16-mblen.c: Likewise.
62019         * lib/unistr/u16-mbsnlen.c: Likewise.
62020         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62021         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62022         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62023         * lib/unistr/u16-mbtouc.c: Likewise.
62024         * lib/unistr/u16-mbtoucr.c: Likewise.
62025         * lib/unistr/u16-move.c: Likewise.
62026         * lib/unistr/u16-next.c: Likewise.
62027         * lib/unistr/u16-prev.c: Likewise.
62028         * lib/unistr/u16-set.c: Likewise.
62029         * lib/unistr/u16-startswith.c: Likewise.
62030         * lib/unistr/u16-stpcpy.c: Likewise.
62031         * lib/unistr/u16-stpncpy.c: Likewise.
62032         * lib/unistr/u16-strcat.c: Likewise.
62033         * lib/unistr/u16-strchr.c: Likewise.
62034         * lib/unistr/u16-strcmp.c: Likewise.
62035         * lib/unistr/u16-strcpy.c: Likewise.
62036         * lib/unistr/u16-strcspn.c: Likewise.
62037         * lib/unistr/u16-strdup.c: Likewise.
62038         * lib/unistr/u16-strlen.c: Likewise.
62039         * lib/unistr/u16-strmblen.c: Likewise.
62040         * lib/unistr/u16-strmbtouc.c: Likewise.
62041         * lib/unistr/u16-strncat.c: Likewise.
62042         * lib/unistr/u16-strncmp.c: Likewise.
62043         * lib/unistr/u16-strncpy.c: Likewise.
62044         * lib/unistr/u16-strnlen.c: Likewise.
62045         * lib/unistr/u16-strpbrk.c: Likewise.
62046         * lib/unistr/u16-strrchr.c: Likewise.
62047         * lib/unistr/u16-strspn.c: Likewise.
62048         * lib/unistr/u16-strstr.c: Likewise.
62049         * lib/unistr/u16-strtok.c: Likewise.
62050         * lib/unistr/u16-to-u32.c: Likewise.
62051         * lib/unistr/u16-to-u8.c: Likewise.
62052         * lib/unistr/u16-uctomb-aux.c: Likewise.
62053         * lib/unistr/u16-uctomb.c: Likewise.
62054         * lib/unistr/u32-check.c: Likewise.
62055         * lib/unistr/u32-chr.c: Likewise.
62056         * lib/unistr/u32-cmp.c: Likewise.
62057         * lib/unistr/u32-cpy-alloc.c: Likewise.
62058         * lib/unistr/u32-cpy.c: Likewise.
62059         * lib/unistr/u32-endswith.c: Likewise.
62060         * lib/unistr/u32-mblen.c: Likewise.
62061         * lib/unistr/u32-mbsnlen.c: Likewise.
62062         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62063         * lib/unistr/u32-mbtouc.c: Likewise.
62064         * lib/unistr/u32-mbtoucr.c: Likewise.
62065         * lib/unistr/u32-move.c: Likewise.
62066         * lib/unistr/u32-next.c: Likewise.
62067         * lib/unistr/u32-prev.c: Likewise.
62068         * lib/unistr/u32-set.c: Likewise.
62069         * lib/unistr/u32-startswith.c: Likewise.
62070         * lib/unistr/u32-stpcpy.c: Likewise.
62071         * lib/unistr/u32-stpncpy.c: Likewise.
62072         * lib/unistr/u32-strcat.c: Likewise.
62073         * lib/unistr/u32-strchr.c: Likewise.
62074         * lib/unistr/u32-strcmp.c: Likewise.
62075         * lib/unistr/u32-strcpy.c: Likewise.
62076         * lib/unistr/u32-strcspn.c: Likewise.
62077         * lib/unistr/u32-strdup.c: Likewise.
62078         * lib/unistr/u32-strlen.c: Likewise.
62079         * lib/unistr/u32-strmblen.c: Likewise.
62080         * lib/unistr/u32-strmbtouc.c: Likewise.
62081         * lib/unistr/u32-strncat.c: Likewise.
62082         * lib/unistr/u32-strncmp.c: Likewise.
62083         * lib/unistr/u32-strncpy.c: Likewise.
62084         * lib/unistr/u32-strnlen.c: Likewise.
62085         * lib/unistr/u32-strpbrk.c: Likewise.
62086         * lib/unistr/u32-strrchr.c: Likewise.
62087         * lib/unistr/u32-strspn.c: Likewise.
62088         * lib/unistr/u32-strstr.c: Likewise.
62089         * lib/unistr/u32-strtok.c: Likewise.
62090         * lib/unistr/u32-to-u16.c: Likewise.
62091         * lib/unistr/u32-to-u8.c: Likewise.
62092         * lib/unistr/u32-uctomb.c: Likewise.
62093         * lib/unistr/u8-check.c: Likewise.
62094         * lib/unistr/u8-chr.c: Likewise.
62095         * lib/unistr/u8-cmp.c: Likewise.
62096         * lib/unistr/u8-cpy-alloc.c: Likewise.
62097         * lib/unistr/u8-cpy.c: Likewise.
62098         * lib/unistr/u8-endswith.c: Likewise.
62099         * lib/unistr/u8-mblen.c: Likewise.
62100         * lib/unistr/u8-mbsnlen.c: Likewise.
62101         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62102         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62103         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62104         * lib/unistr/u8-mbtouc.c: Likewise.
62105         * lib/unistr/u8-mbtoucr.c: Likewise.
62106         * lib/unistr/u8-move.c: Likewise.
62107         * lib/unistr/u8-next.c: Likewise.
62108         * lib/unistr/u8-prev.c: Likewise.
62109         * lib/unistr/u8-set.c: Likewise.
62110         * lib/unistr/u8-startswith.c: Likewise.
62111         * lib/unistr/u8-stpcpy.c: Likewise.
62112         * lib/unistr/u8-stpncpy.c: Likewise.
62113         * lib/unistr/u8-strcat.c: Likewise.
62114         * lib/unistr/u8-strchr.c: Likewise.
62115         * lib/unistr/u8-strcmp.c: Likewise.
62116         * lib/unistr/u8-strcpy.c: Likewise.
62117         * lib/unistr/u8-strcspn.c: Likewise.
62118         * lib/unistr/u8-strdup.c: Likewise.
62119         * lib/unistr/u8-strlen.c: Likewise.
62120         * lib/unistr/u8-strmblen.c: Likewise.
62121         * lib/unistr/u8-strmbtouc.c: Likewise.
62122         * lib/unistr/u8-strncat.c: Likewise.
62123         * lib/unistr/u8-strncmp.c: Likewise.
62124         * lib/unistr/u8-strncpy.c: Likewise.
62125         * lib/unistr/u8-strnlen.c: Likewise.
62126         * lib/unistr/u8-strpbrk.c: Likewise.
62127         * lib/unistr/u8-strrchr.c: Likewise.
62128         * lib/unistr/u8-strspn.c: Likewise.
62129         * lib/unistr/u8-strstr.c: Likewise.
62130         * lib/unistr/u8-strtok.c: Likewise.
62131         * lib/unistr/u8-to-u16.c: Likewise.
62132         * lib/unistr/u8-to-u32.c: Likewise.
62133         * lib/unistr/u8-uctomb-aux.c: Likewise.
62134         * lib/unistr/u8-uctomb.c: Likewise.
62135         * lib/unitypes.h: Likewise.
62136         * lib/uniwidth.h: Likewise.
62137         * lib/uniwidth/cjk.h: Likewise.
62138         * lib/uniwidth/u16-strwidth.c: Likewise.
62139         * lib/uniwidth/u16-width.c: Likewise.
62140         * lib/uniwidth/u32-strwidth.c: Likewise.
62141         * lib/uniwidth/u32-width.c: Likewise.
62142         * lib/uniwidth/u8-strwidth.c: Likewise.
62143         * lib/uniwidth/u8-width.c: Likewise.
62144         * lib/uniwidth/width.c: Likewise.
62145
62146 2007-10-07  Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62149         The file is still under LGPL (see modules/inttypes).
62150
62151 2007-10-06  Bruno Haible  <bruno@clisp.org>
62152
62153         * modules/trunc (Dependencies): Add 'extensions'.
62154         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62155         Reported by Ben Pfaff <blp@gnu.org>.
62156
62157 2007-10-06  Bruno Haible  <bruno@clisp.org>
62158
62159         * modules/freopen-tests: New file.
62160         * tests/test-freopen.c: New file.
62161
62162         * modules/fopen-tests: New file.
62163         * tests/test-fopen.c: New file.
62164
62165         * modules/fopen: New file.
62166         * lib/fopen.c: New file.
62167         * m4/fopen.m4: New file.
62168         * modules/freopen: New file.
62169         * lib/freopen.c: New file.
62170         * m4/freopen.m4: New file.
62171         * lib/stdio.in.h (fopen, freopen): New declarations.
62172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62173         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62174         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62175         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62176         * doc/functions/fopen.texi: Mention the 'fopen' module.
62177         * doc/functions/freopen.texi: Mention the 'freopen' module.
62178
62179 2007-10-06  Bruno Haible  <bruno@clisp.org>
62180
62181         * modules/open-tests: New file.
62182         * tests/test-open.c: New file.
62183
62184         * modules/open: New file.
62185         * lib/open.c: New file.
62186         * m4/open.m4: New file.
62187         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62188         lib/open.c does.
62189         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62190         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62191         macros.
62192         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62193         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62194         REPLACE_OPEN.
62195         * doc/functions/open.texi: Mention the 'open' module.
62196
62197 2007-10-04  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/ceill-tests: New file.
62200         * tests/test-ceill.c: New file.
62201
62202         * modules/ceill: New file.
62203         * lib/ceill.c: Replace entire file.
62204         * m4/ceill.m4: New file.
62205         * lib/math.in.h (ceill): Replace declaration.
62206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62207         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62208         * doc/functions/ceill.texi: Mention the 'ceill' module.
62209         * modules/mathl (Files): Remove lib/ceill.c.
62210         (Depends-on): Add ceill.
62211
62212 2007-10-04  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/ceilf-tests: New file.
62215         * tests/test-ceilf.c: New file.
62216
62217         * modules/ceilf: New file.
62218         * lib/ceil.c: New file.
62219         * lib/ceilf.c: New file.
62220         * m4/ceilf.m4: New file.
62221         * lib/math.in.h (ceilf): New declaration.
62222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62223         HAVE_DECL_CEILF.
62224         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62225         HAVE_DECL_CEILF.
62226         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62227
62228 2007-10-04  Bruno Haible  <bruno@clisp.org>
62229
62230         * modules/floorl-tests: New file.
62231         * tests/test-floorl.c: New file.
62232
62233         * modules/floorl: New file.
62234         * lib/floorl.c: Replace entire file.
62235         * m4/floorl.m4: New file.
62236         * lib/math.in.h (floorl): Replace declaration.
62237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62238         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62239         * doc/functions/floorl.texi: Mention the 'floorl' module.
62240         * modules/mathl (Files): Remove lib/floorl.c.
62241         (Depends-on): Add floorl.
62242
62243 2007-10-04  Bruno Haible  <bruno@clisp.org>
62244
62245         * modules/floorf-tests: New file.
62246         * tests/test-floorf.c: New file.
62247
62248         * modules/floorf: New file.
62249         * lib/floor.c: New file.
62250         * lib/floorf.c: New file.
62251         * m4/floorf.m4: New file.
62252         * lib/math.in.h (floorf): New declaration.
62253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62254         HAVE_DECL_FLOORF.
62255         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62256         HAVE_DECL_FLOORF.
62257         * doc/functions/floorf.texi: Mention the 'floorf' module.
62258
62259 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62260             Bruno Haible  <bruno@clisp.org>
62261
62262         Advertise for the Git server instead of the CVS server.
62263         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62264         repository instead of the CVS one.
62265         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62266         about all VCS systems generically.
62267         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62268
62269 2007-10-04  Bruno Haible  <bruno@clisp.org>
62270
62271         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62272         means.
62273         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62274
62275 2007-10-04  Bruno Haible  <bruno@clisp.org>
62276
62277         * modules/truncl-tests: New file.
62278         * tests/test-truncl.c: New file.
62279
62280         * modules/truncl: New file.
62281         * lib/truncl.c: New file.
62282         * m4/truncl.m4: New file.
62283         * lib/math.in.h (truncl): New declaration.
62284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62285         HAVE_DECL_TRUNCL.
62286         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62287         HAVE_DECL_TRUNCL.
62288         * doc/functions/truncl.texi: Mention the 'truncl' module.
62289
62290 2007-10-04  Bruno Haible  <bruno@clisp.org>
62291
62292         * modules/truncf-tests: New file.
62293         * tests/test-truncf.c: New file.
62294
62295         * modules/truncf: New file.
62296         * lib/trunc.c: Make paramerizable through USE_* macros.
62297         * lib/truncf.c: New file.
62298         * m4/truncf.m4: New file.
62299         * lib/math.in.h (truncf): New declaration.
62300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62301         HAVE_DECL_TRUNCF.
62302         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62303         HAVE_DECL_TRUNCF.
62304         * doc/functions/truncf.texi: Mention the 'truncf' module.
62305
62306 2007-10-03  Bruno Haible  <bruno@clisp.org>
62307
62308         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62309         augmentation also for tests modules.
62310         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62311         * modules/atexit-tests (Makefile.am): Likewise.
62312         * modules/binary-io-tests (Makefile.am): Likewise.
62313         * modules/c-strcase-tests (Makefile.am): Likewise.
62314         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62315         * modules/canonicalize-tests (Makefile.am): Likewise.
62316         * modules/closein-tests (Makefile.am): Likewise.
62317         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62318         * modules/freadahead-tests (Makefile.am): Likewise.
62319         * modules/fseek-tests (Makefile.am): Likewise.
62320         * modules/fseeko-tests (Makefile.am): Likewise.
62321         * modules/ftell-tests (Makefile.am): Likewise.
62322         * modules/ftello-tests (Makefile.am): Likewise.
62323         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62324         * modules/isnanl-tests (Makefile.am): Likewise.
62325         * modules/lseek-tests (Makefile.am): Likewise.
62326         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62327         * modules/mbscasestr-tests (Makefile.am): Likewise.
62328         * modules/mbschr-tests (Makefile.am): Likewise.
62329         * modules/mbscspn-tests (Makefile.am): Likewise.
62330         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62331         * modules/mbspbrk-tests (Makefile.am): Likewise.
62332         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62333         * modules/mbsrchr-tests (Makefile.am): Likewise.
62334         * modules/mbsspn-tests (Makefile.am): Likewise.
62335         * modules/mbsstr-tests (Makefile.am): Likewise.
62336         * modules/printf-posix-tests (Makefile.am): Likewise.
62337         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62338         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62339         * modules/tsearch-tests (Makefile.am): Likewise.
62340         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62341         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62342         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62343         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62344         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62345         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62346         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62347         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62348         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62349         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62350         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62351         * modules/xstrtol-tests (Makefile.am): Likewise.
62352         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62353         * modules/yesno-tests (Makefile.am): Likewise.
62354
62355 2007-10-03  Bruno Haible  <bruno@clisp.org>
62356
62357         * modules/trunc-tests: New file.
62358         * tests/test-trunc.c: New file.
62359
62360         * modules/trunc: New file.
62361         * lib/trunc.c: New file.
62362         * m4/trunc.m4: New file.
62363         * lib/math.in.h (trunc): New declaration.
62364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62365         HAVE_DECL_TRUNC.
62366         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62367         HAVE_DECL_TRUNC.
62368         * doc/functions/trunc.texi: Mention the 'trunc' module.
62369
62370 2007-10-03  Bruno Haible  <bruno@clisp.org>
62371
62372         * tests/test-fpending.c: New file, mostly copied
62373         from coreutils/lib/t-fpending.c.
62374         * modules/fpending-tests: New file.
62375
62376 2007-10-03  Bruno Haible  <bruno@clisp.org>
62377
62378         Port the stdio extensions to QNX (untested).
62379         * lib/fseterr.c (fseterr): Add support for QNX.
62380         * lib/fbufmode.c (fbufmode): Likewise.
62381         * lib/freadable.c (freadable): Likewise.
62382         * lib/fwritable.c (fwritable): Likewise.
62383         * lib/freading.c (freading): Likewise.
62384         * lib/fwriting.c (fwriting): Likewise.
62385         * lib/freadahead.c (freadahed): Likewise.
62386         * lib/fpurge.c (fpurge): Likewise.
62387         * lib/fseeko.c (rpl_fseeko): Likewise.
62388
62389 2007-10-03  Bruno Haible  <bruno@clisp.org>
62390             Jim Meyering  <jim@meyering.net>
62391             Eric Blake  <ebb9@byu.net>
62392
62393         * doc/relocatable.texi: Use @command instead of @program.
62394
62395 2007-10-02  Jim Meyering  <jim@meyering.net>
62396
62397         Perform one more "_.h" -> ".in.h" substitution.
62398         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62399         instead of unistd_.h here, too.
62400
62401 2007-10-01  Bruno Haible  <bruno@clisp.org>
62402
62403         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62404         Needed for the alloca-opt module.
62405
62406 2007-09-30  Bruno Haible  <bruno@clisp.org>
62407
62408         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62409         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62410         alloca_.h.
62411         * lib/argz.in.h: Renamed from lib/argz_.h.
62412         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62413         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62414         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62415         byteswap_.h.
62416         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62417         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62418         dirent_.h.
62419         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62420         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62421         fcntl_.h.
62422         * lib/float.in.h: Renamed from lib/float_.h.
62423         * modules/float (Files, Makefile.am): Use float.in.h instead of
62424         float_.h.
62425         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62426         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62427         fnmatch_.h.
62428         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62429         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62430         getopt_.h.
62431         * lib/glob.in.h: Renamed from lib/glob_.h.
62432         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62433         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62434         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62435         iconv_.h.
62436         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62437         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62438         inttypes_.h.
62439         * lib/locale.in.h: Renamed from lib/locale_.h.
62440         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62441         locale_.h.
62442         * lib/math.in.h: Renamed from lib/math_.h.
62443         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62444         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62445         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62446         of netinet_in_.h. Add dependency.
62447         * lib/poll.in.h: Renamed from lib/poll_.h.
62448         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62449         * lib/search.in.h: Renamed from lib/search_.h.
62450         * modules/search (Files, Makefile.am): Use search.in.h instead of
62451         search_.h.
62452         * lib/signal.in.h: Renamed from lib/signal_.h.
62453         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62454         _signal.h.
62455         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62456         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62457         stdbool_.h.
62458         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62459         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62460         stdint_.h.
62461         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62462         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62463         stdio_.h.
62464         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62465         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62466         stdlib_.h.
62467         * lib/string.in.h: Renamed from lib/string_.h.
62468         * modules/string (Files, Makefile.am): Use string.in.h instead of
62469         string_.h.
62470         * doc/gnulib-tool.texi (Initial import): Update.
62471         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62472         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62473         of sys_select_.h. Add dependency.
62474         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62475         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62476         of sys_socket_.h.
62477         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62478         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62479         sys_stat_.h.
62480         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62481         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62482         sys_time_.h.
62483         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62484         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62485         sysexits_.h.
62486         * lib/time.in.h: Renamed from lib/time_.h.
62487         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62488         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62489         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62490         unistd_.h.
62491         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62492         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62493         wchar_.h.
62494         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62495         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62496         wctype_.h.
62497         * build-aux/bootstrap (slurp): Update.
62498         * lib/.cppi-disable: Update.
62499
62500 2007-09-30  Bruno Haible  <bruno@clisp.org>
62501
62502         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62503         Needed on BeOS.
62504
62505 2007-09-30  Bruno Haible  <bruno@clisp.org>
62506
62507         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62508
62509 2007-09-29  Bruno Haible  <bruno@clisp.org>
62510
62511         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62512
62513 2007-09-29  Bruno Haible  <bruno@clisp.org>
62514
62515         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62516         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62517         * build-aux/install-reloc: Compile also areadlink.c.
62518         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62519
62520 2007-09-29  Bruno Haible  <bruno@clisp.org>
62521
62522         * gnulib-tool (func_emit_initmacro_done): Indentation.
62523
62524 2007-09-29  Bruno Haible  <bruno@clisp.org>
62525
62526         * README: Add CVS checkout update instructions.
62527         Info from Bob Proulx <bob@proulx.com>.
62528
62529 2007-09-28  Eric Blake  <ebb9@byu.net>
62530
62531         Provide move-if-change.
62532         * build-aux/move-if-change: New file, based on best practice
62533         rather than any canonical upstream location.
62534
62535 2007-09-28  Jim Meyering  <jim@meyering.net>
62536
62537         Fix canonicalize loop-detection corner case.
62538         Do not attempt to stat the symlink values stored via seen_triple.
62539         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62540         on linux-2.6.18, (but not 2.6.22).
62541         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62542         triple_compare.  The former compares dev,ino,filename, while the latter
62543         would actually stat dirname(filename) when dev and ino were equal.
62544         * lib/hash-triple.c: Install <string.h>.
62545         (STREQ): Define.
62546         (triple_compare_ino_str): New function.
62547         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62548
62549 2007-09-28  Eric Blake  <ebb9@byu.net>
62550
62551         Enforce that AC_REPLACE_FUNCS files exist.
62552         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62553         override check for typos.
62554
62555         Fix test-closein on Solaris 10.
62556         * tests/test-closein.c (main): Don't assume stdin can be inherited
62557         closed on all systems.
62558         * tests/test-closein.sh: Likewise.
62559         Reported by Piotr Tarnowski.
62560
62561 2007-09-28  Jim Meyering  <jim@meyering.net>
62562
62563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62564
62565 2007-09-27  Jim Meyering  <jim@meyering.net>
62566
62567         canonicalize: Avoid a false-positive cycle failure.
62568         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62569         Sort.  Remove cycle-check.
62570         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62571         not cycle-check.h.
62572         (seen_triple): New function.
62573         (canonicalize_filename_mode): Use it instead of cycle-check.
62574         * tests/test-canonicalize.c: Add a test for this bug.
62575         * tests/test-canonicalize.sh: Set up and run the test.
62576
62577         New module, file-set, from coreutils.
62578         * modules/file-set: Define it.
62579         * lib/file-set.c, lib/file-set.h: Implement.
62580
62581         New module, hash-triple, from coreutils.
62582         * modules/hash-triple: Define it.
62583         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62584
62585 2007-09-25  Eric Blake  <ebb9@byu.net>
62586
62587         Fix strerror on Interix.
62588         * lib/string_.h (strerror): Declare replacement.
62589         * doc/functions/strerror.texi (strerror): Document the Interix
62590         shortcoming.
62591         * modules/string (Makefile.am): Support new hooks.
62592         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62593         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62594         gl_FUNC_STRERROR_SEPARATE.
62595         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62596         * lib/strerror.c (rpl_strerror): Provide replacement.
62597         * modules/strerror (Depends-on): Add string.
62598         (configure.ac): Detect use of module.
62599         * tests/test-strerror.c: New file.
62600         * modules/strerror-tests: New test module.
62601         * modules/argp (Depends-on): Add strerror.
62602         * modules/error (Depends-on): Likewise.
62603         Reported by Martin Koeppe.
62604
62605 2007-09-24  Bruno Haible  <bruno@clisp.org>
62606
62607         * README: Update git instructions.
62608
62609 2007-09-24  Eric Blake  <ebb9@byu.net>
62610
62611         Revert fpending breakage from 2007-09-08.
62612         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62613         __fpending.c.
62614
62615 2007-09-24  Jim Meyering  <jim@meyering.net>
62616
62617         filenamecat.c: Add a test.
62618         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62619         showing how the function works when DIR is the empty string.
62620
62621 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62622
62623         * tests/test-canonicalize.sh: Turn on executable bit.
62624
62625 2007-09-19  Eric Blake  <ebb9@byu.net>
62626
62627         * README: Update CVS instructions.
62628
62629 2007-09-18  Bruno Haible  <bruno@clisp.org>
62630
62631         * modules/areadlink: New file.
62632         * lib/areadlink.h (areadlink): New declaration.
62633         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62634
62635 2007-09-17  Jim Meyering  <jim@meyering.net>
62636
62637         * lib/savewd.c (ESTALE) [!defined]: Define.
62638         Reported to be required on Interix by Martin Koeppe.
62639
62640 2007-09-17  Bruno Haible  <bruno@clisp.org>
62641
62642         * gnulib-tool (func_version): Use $version.
62643
62644 2007-09-16  Bruno Haible  <bruno@clisp.org>
62645
62646         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62647         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62648         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62649         Reported by Greg Schafer <gschafer@zip.com.au>.
62650
62651 2007-09-15  Bruno Haible  <bruno@clisp.org>
62652
62653         * gnulib-tool (sed): Try a little harder to make bash understand the
62654         alias.
62655         Reported by Bruce Korb <bruce.korb@gmail.com>.
62656
62657 2007-09-13  Eric Blake  <ebb9@byu.net>
62658
62659         * ChangeLog: Remove conflict markers.
62660
62661 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62662
62663         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62664         Reported by Bruno Haible <bruno@clisp.org>.
62665
62666 2007-09-12  Bruno Haible  <bruno@clisp.org>
62667
62668         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62669         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62670         is not defined.
62671
62672 2007-09-12  Eric Blake  <ebb9@byu.net>
62673
62674         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62675         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62676         Autoconf definition.
62677         * modules/euidaccess (Depends-on): Add extensions, for
62678         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62679         * modules/fnmatch (Depends-on): Likewise.
62680         * modules/getaddrinfo (Depends-on): Likewise.
62681         * modules/getdelim (Depends-on): Likewise.
62682         * modules/getline (Depends-on): Likewise.
62683         * modules/getsubopt (Depends-on): Likewise.
62684         * modules/gettext (Depends-on): Likewise.
62685         * modules/group-member (Depends-on): Likewise.
62686         * modules/mbchar (Depends-on): Likewise.
62687         * modules/memmem (Depends-on): Likewise.
62688         * modules/mempcpy (Depends-on): Likewise.
62689         * modules/memrchr (Depends-on): Likewise.
62690         * modules/pagealign_alloc (Depends-on): Likewise.
62691         * modules/readutmp (Depends-on): Likewise.
62692         * modules/stpcpy (Depends-on): Likewise.
62693         * modules/stpncpy (Depends-on): Likewise.
62694         * modules/strchrnul (Depends-on): Likewise.
62695         * modules/strndup (Depends-on): Likewise.
62696         * modules/strsep (Depends-on): Likewise.
62697         * modules/strverscmp (Depends-on): Likewise.
62698         * modules/vasprintf (Depends-on): Likewise.
62699         * modules/wcwidth (Depends-on): Likewise.
62700         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62701         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62702         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62703         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62704         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62705         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62706         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62707         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62708         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62709         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62711         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62712         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62713         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62714         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62715         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62716         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62717         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62721         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62722         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62723         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62724         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62726         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62727         so that lock.m4 can be used in gettext without extensions module.
62728
62729 2007-09-11  Bruno Haible  <bruno@clisp.org>
62730
62731         * m4/isc-posix.m4: Remove file.
62732         Suggested by Eric Blake.
62733
62734 2007-09-11  Eric Blake  <ebb9@byu.net>
62735
62736         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62737
62738 2007-09-10  Bruno Haible  <bruno@clisp.org>
62739
62740         * posix-modules: Fix typo in error message.
62741         Reported by Matt <mkraai@beckman.com>.
62742
62743 2007-09-09  Bruno Haible  <bruno@clisp.org>
62744
62745         * doc/functions/getdelim.texi: Update list of platforms lacking the
62746         function.
62747         * doc/functions/getline.texi: Likewise.
62748
62749 2007-09-09  Jim Meyering  <jim@meyering.net>
62750
62751         * lib/hash.c (hash_initialize): Detect calloc failure.
62752         Reported by Bruno Haible.
62753
62754 2007-09-09  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62757         malloc or realloc fails.
62758
62759 2007-09-09  Bruno Haible  <bruno@clisp.org>
62760
62761         * modules/getcwd (Depends-on): Add malloc-posix.
62762         * modules/glob (Depends-on): Likewise.
62763         * modules/putenv (Depends-on): Likewise.
62764         * modules/strdup (Depends-on): Likewise.
62765         * modules/getdelim (Depends-on): Add realloc-posix.
62766         * modules/read-file (Depends-on): Likewise.
62767
62768 2007-09-09  Bruno Haible  <bruno@clisp.org>
62769
62770         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62771         (gl_FUNC_MALLOC_POSIX): Require it.
62772         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62773         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62774         * modules/realloc (Files): Add m4/malloc.m4.
62775         * modules/calloc (Files): Likewise.
62776
62777 2007-09-09  Bruno Haible  <bruno@clisp.org>
62778
62779         * modules/malloc-posix: New file.
62780         * modules/malloc (Depends-on): Add malloc-posix.
62781         * lib/malloc.c: Include errno.h.
62782         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62783         and a POSIX-compatible malloc into a single function. Set ENOMEM
62784         when returning NULL.
62785         * m4/malloc.m4: New file.
62786         * doc/functions/malloc.texi: Mention the malloc-posix module.
62787         * lib/stdlib_.h (malloc): New declaration.
62788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62789         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62790         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62791         and HAVE_MALLOC_POSIX.
62792
62793 2007-09-09  Bruno Haible  <bruno@clisp.org>
62794
62795         * modules/realloc-posix: New file.
62796         * modules/realloc (Depends-on): Add realloc-posix.
62797         * lib/realloc.c: Include errno.h.
62798         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62799         and a POSIX-compatible realloc into a single function. Set ENOMEM
62800         when returning NULL.
62801         * m4/realloc.m4: New file.
62802         * doc/functions/realloc.texi: Mention the realloc-posix module.
62803         * lib/stdlib_.h (realloc): New declaration.
62804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62805         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62806         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62807         and HAVE_REALLOC_POSIX.
62808
62809 2007-09-09  Bruno Haible  <bruno@clisp.org>
62810
62811         * modules/calloc-posix: New file.
62812         * modules/calloc (Depends-on): Add calloc-posix.
62813         * lib/calloc.c: Include errno.h.
62814         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62815         and a POSIX-compatible calloc into a single function. Set ENOMEM
62816         when returning NULL.
62817         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62818         * doc/functions/calloc.texi: Mention the calloc-posix module.
62819         * lib/stdlib_.h (calloc): New declaration.
62820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62821         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62822         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62823         and HAVE_CALLOC_POSIX.
62824
62825 2007-09-09  Bruno Haible  <bruno@clisp.org>
62826
62827         Allow for modules to show an arbitrary notice.
62828         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62829         * gnulib-tool: New option --extract-notice.
62830         (func_usage): Document it.
62831         (sed_extract_prog): Update.
62832         (func_get_notice): New function.
62833         (func_modules_notice): New function.
62834         (func_import, func_create_testdir): Invoke it.
62835         Suggested by Jim Meyering.
62836
62837 2007-09-09  Bruno Haible  <bruno@clisp.org>
62838
62839         * gnulib-tool: New options --verbose, --quiet.
62840         (func_usage): Document them.
62841         (verbose): New variable.
62842         (func_execute_command): New function.
62843         (func_import): Don't show the module list and the file list if
62844         $verbose < 0.
62845         (func_create_testdir): Likewise. Use func_execute_command.
62846         (func_create_megatestdir): Use func_execute_command.
62847
62848 2007-09-08  Bruno Haible  <bruno@clisp.org>
62849
62850         * gnulib-tool (func_import): Prefer rsync over wget when available,
62851         for fetching the PO files.
62852
62853 2007-09-08  Bruno Haible  <bruno@clisp.org>
62854
62855         * posix-modules: New file. Portions copied from gnulib-tool.
62856         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62857
62858 2007-09-08  Jim Meyering  <jim@meyering.net>
62859
62860         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62861         * lib/fpending.h: Rename from __fpending.h.
62862         * lib/fpending.c: Rename from __fpending.c.
62863         Include "fpending.h", not "__fpending.h".
62864         * lib/__fpending.h, lib/__fpending.c: Remove files.
62865         * modules/fpending (Files): Reflect new file names.
62866         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62867
62868 2007-09-08  Bruno Haible  <bruno@clisp.org>
62869
62870         * m4/inttypes-h.m4: Remove stub file.
62871
62872 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62873
62874         * doc/headers/stdint.texi: Discuss #include_next issue.
62875
62876 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62879
62880 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62881
62882         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62883         in variable name.
62884
62885 2007-09-03  Jim Meyering  <jim@meyering.net>
62886
62887         New module: git-version-gen.
62888         * modules/git-version-gen: New file.
62889
62890         Import changes from coreutils for bootstrap script.
62891
62892         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62893
62894         bootstrap: uses rsync to download the .po files
62895         * build-aux/bootstrap (po_download_command_format): New global.
62896         (download_po_files): Use rsync.
62897         (update_po_files): Don't remove .po files after download,
62898         so future rsync runs can take advantage of the copies.
62899
62900         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62901
62902         Solve the unnecessary-.po-file-regeneration problem once and for all.
62903         * build-aux/bootstrap (download_po_files): New function, renamed from
62904         get_translations.  Now, downloads, but doesn't update LINGUAS.
62905         (update_po_files): New function.
62906
62907         bootstrap: Ignore more.
62908         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62909         uniwidth to e.g., lib/.gitignore.
62910         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62911
62912         * build-aux/bootstrap: New setting: vc_ignore.
62913         (insert_sorted_if_absent): Create $file if absent.
62914         Adapt to new, possibly empty, list: $vc_ignore.
62915
62916         bootstrap: generate more ignorable names
62917         * build-aux/bootstrap (slurp): When generating ignorable names,
62918         also map .sin to .sed, .gperf to .c, and .y to .c.
62919
62920 2007-09-03  Jim Meyering  <jim@meyering.net>
62921
62922         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62923         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62924
62925 2007-09-02  Bruno Haible  <bruno@clisp.org>
62926
62927         Fix mis-recognition of 'mcs' on QNX 6.
62928         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62929         output contains the string "Mono".
62930         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62931         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62932
62933 2007-09-01  Bruno Haible  <bruno@clisp.org>
62934
62935         Fix collision between uniwidth/* and linebreak modules.
62936         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62937         u32_width): Remove declarations.
62938         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62939         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62940         streq3, streq2, streq1, streq0): Remove functions.
62941         (STREQ): Remove macro.
62942         (is_cjk_encoding): Remove function.
62943         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62944         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62945         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62946         * NEWS: Document the change.
62947
62948 2007-09-01  Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/streq.h: Add double-inclusion guard.
62951
62952 2007-09-01  Karl Berry  <karl@gnu.org>
62953
62954         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62955
62956 2007-08-28  Jim Meyering  <jim@meyering.net>
62957
62958         Rename mreadlink_with_size to areadlink_with_size.
62959         * NEWS: Document the change.
62960         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62961         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62962         * lib/mreadlink.h: Rename this to...
62963         * lib/areadlink.h: ...this.
62964         * modules/mreadlink-with-size: Rename this to...
62965         * modules/areadlink-with-size: ...this.
62966         * lib/canonicalize.c: Reflect the renaming.
62967         * modules/canonicalize: Likewise.
62968
62969 2007-08-26  Bruno Haible  <bruno@clisp.org>
62970
62971         * gnulib-tool (func_import): When deciding which files to remove,
62972         consider also dangling symbolic links.
62973         Reported by Eric Blake.
62974
62975 2007-08-26  Bruno Haible  <bruno@clisp.org>
62976
62977         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62978
62979 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62980
62981         * lib/readline.c: Don't include getline.h, the prototype is now
62982         found in stdio.h.
62983
62984 2007-08-23  Jim Meyering  <jim@meyering.net>
62985
62986         Getdelim touchup.
62987         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62988         around the funlockfile call, since funlockfile never sets errno.
62989         Don't set errno upon failed realloc.
62990
62991 2007-08-22  Eric Blake  <ebb9@byu.net>
62992
62993         Getline touchups.
62994         * lib/getdelim.c (getdelim): Revert regression that required *n to
62995         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62996         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62997         getdelim, rather than whether implementation is missing.
62998         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62999         * lib/stdio_.h (getline): Also declare if replacement is
63000         required.
63001         * doc/functions/getdelim.texi: New file.
63002         * doc/functions/getline.texi: Likewise.
63003         * doc/gnulib.texi (Function Substitutes): Add new files.
63004         Reported by Bruno Haible.
63005
63006 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63007
63008         * users.txt: Add Guile.
63009
63010 2007-08-22  Eric Blake  <ebb9@byu.net>
63011
63012         * tests/test-getdelim.c (main): Use remove, not unlink.
63013         * tests/test-getline.c (main): Likewise.
63014
63015         Move getline and getdelim into stdio.h, per POSIX 200x.
63016         * modules/getline (Files): Remove getline.h.
63017         (Depends-on): Add stdio.
63018         (configure.ac): Add module indicator.
63019         * modules/getdelim (Files): Remove getdelim.h.
63020         (Depends-on): Add stdio.
63021         (configure.ac): Add module indicator.
63022         * modules/stdio (Makefile.am): Work with new indicators.
63023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63024         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63025         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63026         * lib/getdelim.h: Delete.
63027         * lib/getline.h: Delete.
63028         * lib/stdio_.h (getdelim, getline): Declare.
63029         * modules/getdelim-tests: New module.
63030         * modules/getline-tests: Likewise.
63031         * tests/test-getdelim.c: New file.
63032         * tests/test-getline.c: Likewise.
63033         * NEWS: Document the change.
63034         * lib/getline.c: Update choice of header.
63035         * lib/csharpcomp.c: Likewise.
63036         * lib/getpass.c: Likewise.
63037         * lib/javacomp.c: Likewise.
63038         * lib/javaversion.c: Likewise.
63039         * lib/yesno.c: Likewise.
63040         * lib/getdelim.c: Likewise.
63041         (getdelim): Set errno on failure, and avoid memory leak.
63042
63043 2007-08-19  Bruno Haible  <bruno@clisp.org>
63044
63045         * modules/closein (Depends-on): Add freadahead.
63046         * lib/closein.c: Include freadahead.h.
63047         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63048         is zero.
63049
63050 2007-08-19  Bruno Haible  <bruno@clisp.org>
63051
63052         * modules/freadahead-tests: New file.
63053         * tests/test-freadahead.sh: New file.
63054         * tests/test-freadahead.c: New file.
63055
63056         * modules/freadahead: New file.
63057         * lib/freadahead.h: New file.
63058         * lib/freadahead.c: New file.
63059         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63060         fbufmode, fpurge, freadable, fwritable.
63061
63062 2007-08-19  Eric Blake  <ebb9@byu.net>
63063
63064         Test yesno in combination with closein.
63065         * lib/yesno.c (yesno): Document use of stdin.
63066         * modules/yesno-tests (Files): New module.
63067         * tests/test-yesno.c (main): New file.
63068         * tests/test-yesno.sh: Likewise.
63069
63070 2007-08-19  Bruno Haible  <bruno@clisp.org>
63071
63072         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63073         * lib/fseeko.c (rpl_fseeko): Likewise.
63074         * lib/fseterr.c (fseterr): Likewise.
63075
63076 2007-08-19  Bruno Haible  <bruno@clisp.org>
63077
63078         * tests/test-lseek.c (main): Disable a test for BeOS.
63079         * doc/functions/lseek.texi: Document the BeOS bug.
63080
63081 2007-08-19  Bruno Haible  <bruno@clisp.org>
63082             Eric Blake  <ebb9@byu.net>
63083
63084         * lib/lseek.c: Include <sys/stat.h>.
63085         (rpl_lseek): Add workaround code also for Unix platforms.
63086         Needed for BeOS.
63087         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63088         * doc/functions/lseek.texi: Document BeOS definiency.
63089
63090 2007-08-18  Bruno Haible  <bruno@clisp.org>
63091
63092         * modules/fstrcmp-tests: New file.
63093         * tests/test-fstrcmp.c: New file.
63094
63095 2007-08-18  Bruno Haible  <bruno@clisp.org>
63096
63097         * modules/fstrcmp: New file, from GNU gettext with modifications.
63098         * lib/fstrcmp.h: New file, from GNU gettext.
63099         * lib/fstrcmp.c: New file, from GNU gettext.
63100         * MODULES.html.sh (String handling): Add fstrcmp.
63101
63102 2007-08-18  Bruno Haible  <bruno@clisp.org>
63103
63104         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63105         'bool'.
63106         (diag, compareseq): Remove const from the ctxt argument.
63107         (USE_HEURISTIC): Undefine at the end.
63108
63109 2007-08-18  Jim Meyering  <jim@meyering.net>
63110
63111         New file: lib/idcache.h
63112         * NEWS: Mention the addition.
63113         * modules/idcache (Files): Add lib/idcache.h
63114         * lib/idcache.c: Include "idcache.h".
63115         Don't include <sys/types.h>.
63116         Add a FIXME comment.
63117         Move file-scoped "static" declarations to the top.
63118         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63119
63120 2007-08-17  Bruno Haible  <bruno@clisp.org>
63121         and Paul Eggert  <eggert@cs.ucla.edu>
63122
63123         * MODULES.html.sh: Add diffseq.
63124         * modules/diffseq: New file.
63125         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63126         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63127
63128 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63129
63130         Import changes from coreutils for bootstrap script.
63131
63132         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63133
63134         * build-aux/bootstrap (slurp): Work even in environments where
63135         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63136         current code does not slurp files whose names start with ".", and
63137         this looks like it might be a troublesome area.
63138
63139         2007-07-11  Jim Meyering  <jim@meyering.net>
63140
63141         If there's a GPL vN copyright comment, require that N == 3.
63142
63143         2007-07-08  Jim Meyering  <jim@meyering.net>
63144
63145         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63146         * build-aux/bootstrap (mam_template): Move definition out of loop.
63147
63148         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63149
63150         * build-aux/bootstrap (symlink_to_dir): Rename function from
63151         symlink_to_gnulib.  Add a directory parameter.  Update all
63152         callers.
63153         (cp_mark_as_generated): Also check for -- and link to -- files in
63154         gl/.
63155
63156         2007-07-08  Jim Meyering  <jim@meyering.net>
63157
63158         Adapt to deeper hierarchy in gnulib.
63159         * build-aux/bootstrap (symlink_to_dir): If the destination
63160         directory doesn't exist, create it. This is required at least for
63161         "lib/uniwidth/cjk.h".
63162
63163         2007-05-15  Jim Meyering  <jim@meyering.net>
63164
63165         * build-aux/bootstrap: Now that generated Makefile.am files
63166         are no longer under version control, they must be created at
63167         bootstrap time.
63168
63169 2007-08-14  Ben Pfaff  <blp@gnu.org>
63170
63171         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63172
63173 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63176         given the changes below.
63177         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63178         even on hosts that have padding bits beyond the supported 64.
63179
63180 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63181
63182         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63183         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63184         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63185         depends on it.
63186         (xstrtol_error): Remove.
63187         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63188         but with a different signature.
63189         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63190         * lib/xstrtol-error.c: Include exitfail.h.
63191         (xstrtol_fatal): New function, with a different signature from the
63192         old xstrtol_error, so that the caller need not worry about passing
63193         in an exit status, or about storage management of the option argument.
63194         (xstrtol_error): Now a static function.  Redo signature to
63195         implement xstrtol_fatal.  Output the correct number of hyphens in
63196         front of the option so that the caller need not worry about
63197         storage management.
63198         (N_): New macro.
63199         (_): Remove; not used now.
63200         * modules/xstrtol: Depend on getopt.
63201         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63202         of old STRTOL_FATAL_ERROR macro.
63203         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63204         of test program.
63205         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63206         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63207
63208 2007-08-08  Eric Blake  <ebb9@byu.net>
63209
63210         * lib/xstrtol-error.c: Add missing include.
63211
63212         Move xstrtol messages into gnulib domain, when --pobase is used.
63213         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63214         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63215         * modules/xstrtol (Files): Distribute new file.
63216         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63217         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63218         * tests/test-xstrtol.c: ...into new file.
63219         * tests/test-xstrtoul.c: Also test xstrtoul.
63220         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63221         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63222         * tests/test-xstrtol.sh: Drive the tests.
63223         * tests/test-xstrtoimax.sh: Likewise.
63224         * tests/test-xstrtoumax.sh: Likewise.
63225         * modules/xstrtol-tests: New module.
63226         * modules/xstrtoimax-tests: Likewise.
63227         * modules/xstrtoumax-tests: Likewise.
63228
63229 2007-08-08  Jim Meyering  <jim@meyering.net>
63230
63231         New function: mfile_name_concat.
63232         * lib/filenamecat.c (mfile_name_concat): New function, just like
63233         file_name_concat, but return NULL upon failure rather than exiting
63234         with a diagnostic.
63235         * lib/filenamecat.h: Declare it.
63236
63237 2007-08-07  Bruno Haible  <bruno@clisp.org>
63238
63239         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63240         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63241         warning from gcc.
63242         Reported by Eric Blake.
63243
63244 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63245
63246         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63247         * modules/crypto/arcfour (License): Likewise.
63248         * modules/crypto/des-tests (License): Likewise.
63249         * modules/crypto/gc-arctwo-tests (License): Likewise.
63250         * modules/crypto/gc-des-tests (License): Likewise.
63251         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63252         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63253         * modules/crypto/gc-md2-tests (License): Likewise.
63254         * modules/crypto/gc-md4-tests (License): Likewise.
63255         * modules/crypto/gc-md5-tests (License): Likewise.
63256         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63257         * modules/crypto/gc-rijndael-tests (License): Likewise.
63258         * modules/crypto/gc-sha1-tests (License): Likewise.
63259         * modules/crypto/gc-tests (License): Likewise.
63260         * modules/crypto/hmac-md5 (License): Likewise.
63261         * modules/crypto/hmac-sha1 (License): Likewise.
63262         * modules/crypto/md2-tests (License): Likewise.
63263         * modules/crypto/md4-tests (License): Likewise.
63264         * modules/crypto/md5 (License): Likewise.
63265         * modules/crypto/rijndael (License): Likewise.
63266         * modules/crypto/sha1 (License): Likewise.
63267         * modules/memxor (License): Likewise.
63268
63269 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63270         and Bruno Haible  <bruno@clisp.org>
63271
63272         * NEWS: Describe interface changes to human, xstrtol.
63273         * lib/human.h: Include <xstrtol.h>.
63274         (human_options): Return enum strtol_error, not int.  Remove
63275         bool arg; take int * instead.
63276         * lib/human.c: Don't include "gettext.h".
63277         (_): Remove; no longer used.
63278         Don't include <xstrtol.h>, since human.h does it.
63279         (human_options): Adjust to abovementioned interface changes.
63280         Do not report error to stderr; that's now the caller's
63281         responsibility.
63282         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63283         interface change.
63284         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63285         Str, Argument_type_string.  All uses changed.  Put " argument"
63286         in diagnostics to make them clearer.  Change wording of suffix
63287         message for clarity.
63288         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63289         Argument_type_string.
63290         (STRTOL_FATAL_WARN): Remove; no longer used.
63291         * modules/human (Depends-on): Remove gettext-h.
63292
63293 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63294
63295         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63296
63297 2007-07-31  Bruno Haible  <bruno@clisp.org>
63298
63299         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63300         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63301         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63302
63303 2007-07-31  Bruno Haible  <bruno@clisp.org>
63304
63305         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63306         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63307
63308 2007-07-30  Bruno Haible  <bruno@clisp.org>
63309
63310         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63311         * modules/c-ctype (License): Likewise.
63312         * modules/c-strcase (License): Likewise.
63313         * modules/check-version (License): Likewise.
63314         * modules/iconv (License): Likewise.
63315         * modules/iconv_open (License): Likewise.
63316         * modules/read-file (License): Likewise.
63317         * modules/striconv (License): Likewise.
63318         * modules/strverscmp (License): Likewise.
63319         * modules/vasprintf (License): Likewise.
63320         * modules/crypto/des (License): Likewise.
63321         * modules/crypto/gc (License): Likewise.
63322         * modules/crypto/gc-arcfour (License): Likewise.
63323         * modules/crypto/gc-arctwo (License): Likewise.
63324         * modules/crypto/gc-des (License): Likewise.
63325         * modules/crypto/gc-hmac-md5 (License): Likewise.
63326         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63327         * modules/crypto/gc-md2 (License): Likewise.
63328         * modules/crypto/gc-md4 (License): Likewise.
63329         * modules/crypto/gc-md5 (License): Likewise.
63330         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63331         * modules/crypto/gc-random (License): Likewise.
63332         * modules/crypto/gc-rijndael (License): Likewise.
63333         * modules/crypto/gc-sha1 (License): Likewise.
63334         * modules/crypto/md2 (License): Likewise.
63335         * modules/crypto/md4 (License): Likewise.
63336
63337 2007-07-30  Jim Meyering  <jim@meyering.net>
63338
63339         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63340         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63341         it has valid stat data.  This bug would cause du not to count the
63342         sizes of inaccessible directories.
63343         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63344         in <http://bugzilla.redhat.com/250077>.
63345
63346 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63347             Bruno Haible  <bruno@clisp.org>
63348
63349         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63350         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63351         #include_next, gives a diagnostic about it, but reports no error in
63352         the exit code.
63353         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63354
63355 2007-07-24  Ben Pfaff  <blp@gnu.org>
63356
63357         Improve name: "count-one-bits" is better than "popcount".
63358         * MODULES.html.sh: Update name.
63359         * lib/popcount.h: Renamed lib/count-one-bits.h.
63360         (popcount): Renamed count_one_bits.
63361         (popcountl): Renamed count_one_bits_l.
63362         (popcountll): Renamed count_one_bits_ll.
63363         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63364         * modules/popcount: Renamed module/count-one-bits.
63365         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63366         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63367
63368 2007-07-23  Ben Pfaff  <blp@gnu.org>
63369
63370         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63371         better code generation, and add U to large constants to avoid
63372         warnings, in non-GCC case.
63373         Suggested by Bruno Haible.
63374
63375 2007-07-23  Ben Pfaff  <blp@gnu.org>
63376
63377         * lib/popcount.h: Use verify_true instead of if...abort.
63378         * modules/popcount: Depend on verify module.
63379         Suggested by Jim Meyering.
63380
63381 2007-07-23  Bruno Haible  <bruno@clisp.org>
63382
63383         * gnulib-tool (func_import): Create a .cvsignore file also when the
63384         directory is not yet in CVS but the toplevel directory is. When
63385         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63386         Reported by Karl Berry.
63387
63388 2007-07-22  Ben Pfaff  <blp@gnu.org>
63389
63390         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63391         case.
63392         Suggested by Eric Blake.
63393
63394 2007-07-22  Ben Pfaff  <blp@gnu.org>
63395
63396         New module: popcount.
63397         * MODULES.html.sh: Add popcount.
63398         * modules/popcount: New file.
63399         * modules/popcount-tests: New file.
63400         * tests/test-popcount.c: New file.
63401         * lib/popcount.h: New file.
63402         * m4/popcount.m4: New file.
63403
63404 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63405
63406         * build-aux/announce-gen: Update to GPLv3.
63407
63408         * build-aux/config.guess: Update from config.
63409
63410 2007-07-21  Bruno Haible  <bruno@clisp.org>
63411
63412         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63413         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63414
63415 2007-07-20  Jim Meyering  <jim@meyering.net>
63416
63417         * check-module: Diagnose a self-dependency.
63418
63419 2007-07-19  Bruno Haible  <bruno@clisp.org>
63420
63421         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63422         empty.
63423         Reported by Eric Blake.
63424
63425 2007-07-18  Bruno Haible  <bruno@clisp.org>
63426
63427         * gnulib-tool: New options --po-base, --po-domain.
63428         (func_usage): Document them.
63429         (pobase, po_domain): New variables.
63430         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63431         DEFAULT_TEXT_DOMAIN.
63432         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63433         (func_import): Consider pobase and po_domain. Create a po/ directory.
63434         (func_create_testdir): Set pobase and po_domain to empty.
63435         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63436         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63437
63438 2007-07-18  Bruno Haible  <bruno@clisp.org>
63439
63440         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63441         EXTRA_DIST augmentation for files in build-aux/.
63442
63443 2007-07-16  Bruno Haible  <bruno@clisp.org>
63444
63445         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63446         * modules/getdelim (License): Likewise.
63447
63448 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63449
63450         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63451         * modules/d-type (License): Likewise.
63452         * modules/extensions (License): Likewise.
63453         * modules/fnmatch (License): Likewise.
63454         * modules/fseeko (License): Likewise.
63455         * modules/getaddrinfo (License): Likewise.
63456         * modules/getline (License): Likewise.
63457         * modules/getlogin_r (License): Likewise.
63458         * modules/getpass (License): Likewise.
63459         * modules/gettimeofday (License): Likewise.
63460         * modules/glob (License): Likewise.
63461         * modules/inet_ntop (License): Likewise.
63462         * modules/malloc (License): Likewise.
63463         * modules/malloca (License): Likewise.
63464         * modules/memmem (License): Likewise.
63465         * modules/mempcpy (License): Likewise.
63466         * modules/memset (License): Likewise.
63467         * modules/minmax (License): Likewise.
63468         * modules/mktime (License): Likewise.
63469         * modules/netinet_in (License): Likewise.
63470         * modules/pathmax (License): Likewise.
63471         * modules/poll (License): Likewise.
63472         * modules/regex (License): Likewise.
63473         * modules/snprintf (License): Likewise.
63474         * modules/stdbool (License): Likewise.
63475         * modules/stdint (License): Likewise.
63476         * modules/stdio (License): Likewise.
63477         * modules/strcase (License): Likewise.
63478         * modules/strcasestr (License): Likewise.
63479         * modules/strdup (License): Likewise.
63480         * modules/string (License): Likewise.
63481         * modules/strndup (License): Likewise.
63482         * modules/strnlen (License): Likewise.
63483         * modules/strpbrk (License): Likewise.
63484         * modules/strptime (License): Likewise.
63485         * modules/strsep (License): Likewise.
63486         * modules/sys_select (License): Likewise.
63487         * modules/sys_socket (License): Likewise.
63488         * modules/sys_stat (License): Likewise.
63489         * modules/sys_time (License): Likewise.
63490         * modules/time (License): Likewise.
63491         * modules/time_r (License): Likewise.
63492         * modules/timegm (License): Likewise.
63493         * modules/unistd (License): Likewise.
63494         * modules/vsnprintf (License): Likewise.
63495         * modules/wctype (License): Likewise.
63496
63497 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63498
63499         * modules/argz (License): LGPLv2+.
63500
63501 2007-07-15  Karl Berry  <karl@gnu.org>
63502
63503         * doc/gnulib.texi: revise node structure per new fdl.texi.
63504
63505 2007-07-14  Bruno Haible  <bruno@clisp.org>
63506
63507         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63508         the output file.
63509         * lib/uniname/uninames.h: Regenerated.
63510
63511 2007-07-14  Karl Berry  <karl@gnu.org>
63512
63513         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63514         omitting sectioning and index commands.
63515
63516 2007-07-13  Bruno Haible  <bruno@clisp.org>
63517
63518         New gnulib-tool option --more-symlinks.
63519         * gnulib-tool (func_usage): Document --more-symlinks.
63520         (do_copyrights): New variable.
63521         Recognize option --more-symlinks.
63522         (func_import): Don't add a copyright notice transform to
63523         sed_transform_lib_file if do_copyrights is empty.
63524
63525 2007-07-13  Bruno Haible  <bruno@clisp.org>
63526
63527         * lib/vasnprintf.c (decimal_point_char): Define also if
63528         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63529         && !NEED_PRINTF_DIRECTIVE_A.
63530         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63531         Gary V. Vaughan <gary@gnu.org>.
63532
63533 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63534
63535         * lib/inttypes_.h: Undo previous change, since it was fixed
63536         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63537
63538 2007-07-13  Bruno Haible  <bruno@clisp.org>
63539
63540         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63541         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63542
63543 2007-07-13  Jim Meyering  <jim@meyering.net>
63544
63545         df: Don't fail for Tru64's "file-on-file mount".
63546         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63547         so we fall through and use statfs instead.  Details here:
63548         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63549         Reported by Albert Chin.
63550
63551 2007-07-13  Bruno Haible  <bruno@clisp.org>
63552
63553         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63554         * modules/configmake (License): Likewise.
63555         * modules/gettext (License): Likewise.
63556         * modules/gettext-h (License): Likewise.
63557         * modules/include_next (License): Likewise.
63558         * modules/link-warning (License): Likewise.
63559         * modules/localcharset (License): Likewise.
63560         * modules/localename (License): Likewise.
63561         * modules/lock (License): Likewise.
63562         * modules/relocatable-lib-lgpl (License): Likewise.
63563         * modules/size_max (License): Likewise.
63564         * modules/vasnprintf (License): Likewise.
63565         * modules/wchar (License): Likewise.
63566         * modules/xsize (License): Likewise.
63567
63568 2007-07-13  Bruno Haible  <bruno@clisp.org>
63569
63570         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63571         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63572
63573 2007-07-12  Bruno Haible  <bruno@clisp.org>
63574
63575         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63576         in the modules files.
63577
63578 2007-07-11  Karl Berry  <karl@gnu.org>
63579
63580         * MODULES.html.sh (func_module): use
63581          sed -e '\|^'"${includefile}"'$|d'
63582          instead of /.../d, to avoid errors on $includefile's containing /.
63583
63584 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63585
63586         * gnulib-tool (func_import): Avoid duplication of --avoid
63587         statements
63588         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63589         names to `_' in variable names.
63590
63591 2007-07-10  Eric Blake  <ebb9@byu.net>
63592
63593         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63594         * NEWS: Document this change.
63595
63596 2007-07-08  Bruno Haible  <bruno@clisp.org>
63597
63598         Update to Unicode 5.0.
63599         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63600         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63601         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63602         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63603         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63604         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63605         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63606         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63607         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63608         U+10A3F, U+1D242..U+1D244.
63609         (nonspacing_table_ind): Update.
63610         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63611         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63612
63613 2007-07-08  Bruno Haible  <bruno@clisp.org>
63614
63615         Update to Unicode 5.0.
63616         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63617         code transform. Extend the name index field of unicode_name_to_code and
63618         unicode_code_to_name from 16 to 24 bits.
63619         * lib/uniname/uniname.c (unicode_character_name,
63620         unicode_name_character): Add the range 0x12xxx to the code transform.
63621         * lib/uniname/uninames.h: Regenerated.
63622         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63623
63624 2007-07-07  Bruno Haible  <bruno@clisp.org>
63625
63626         * modules/wcwidth-tests: New file.
63627         * tests/test-wcwidth.c: New file.
63628
63629         Work around MacOS X wcwidth() bug.
63630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63631         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63632         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63633         original wcwidth in non-UTF-8 locales.
63634         * modules/wcwidth (Depends-on): Add localcharset, streq,
63635         uniwidth/width.
63636         * doc/functions/wcwidth.texi: Update.
63637
63638 2007-07-07  Bruno Haible  <bruno@clisp.org>
63639
63640         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63641         (wcwidth): New declaration.
63642         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63643         macros.
63644         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63645         here. Prepare for creating <wchar.h> unconditionally.
63646         * modules/wchar (Depends-on): Add link-warning.
63647         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63648         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63649         * lib/wcwidth.h: Remove file.
63650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63651         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63652         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63653         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63654         (Include): Replace wcwidth.h with <wchar.h>.
63655         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63656         * lib/mbchar.h: Don't include wcwidth.h.
63657         * lib/mbswidth.c: Likewise.
63658         * NEWS: Mention the change.
63659
63660 2007-07-07  Bruno Haible  <bruno@clisp.org>
63661
63662         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63663         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63664         definition with an external declaration.
63665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63666         defined as a function. Remove AC_C_INLINE requirement.
63667         * modules/wcwidth (Files): Add lib/wcwidth.c.
63668         (Makefile.am): Remove redundant statement.
63669
63670 2007-07-07  Bruno Haible  <bruno@clisp.org>
63671
63672         * MODULES.html.sh (Unicode string functions): Add the new modules.
63673
63674         * tests/uniwidth/test-u32-strwidth.c: New file.
63675         * modules/uniwidth/u32-strwidth-tests: New file.
63676
63677         * lib/uniwidth/u32-strwidth.c: New file.
63678         * modules/uniwidth/u32-strwidth: New file.
63679
63680         * tests/uniwidth/test-u16-strwidth.c: New file.
63681         * modules/uniwidth/u16-strwidth-tests: New file.
63682
63683         * lib/uniwidth/u16-strwidth.c: New file.
63684         * modules/uniwidth/u16-strwidth: New file.
63685
63686         * tests/uniwidth/test-u8-strwidth.c: New file.
63687         * modules/uniwidth/u8-strwidth-tests: New file.
63688
63689         * lib/uniwidth/u8-strwidth.c: New file.
63690         * modules/uniwidth/u8-strwidth: New file.
63691
63692         * tests/uniwidth/test-u32-width.c: New file.
63693         * modules/uniwidth/u32-width-tests: New file.
63694
63695         * lib/uniwidth/u32-width.c: New file.
63696         * modules/uniwidth/u32-width: New file.
63697
63698         * tests/uniwidth/test-u16-width.c: New file.
63699         * modules/uniwidth/u16-width-tests: New file.
63700
63701         * lib/uniwidth/u16-width.c: New file.
63702         * modules/uniwidth/u16-width: New file.
63703
63704         * tests/uniwidth/test-u8-width.c: New file.
63705         * modules/uniwidth/u8-width-tests: New file.
63706
63707         * lib/uniwidth/u8-width.c: New file.
63708         * modules/uniwidth/u8-width: New file.
63709
63710         * tests/uniwidth/test-uc_width.c: New file.
63711         * modules/uniwidth/width-tests: New file.
63712
63713         * lib/uniwidth/width.c: New file, from GNU libiconv.
63714         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63715         * modules/uniwidth/width: New file.
63716
63717         * lib/uniwidth.h: New file, from GNU libiconv.
63718         * modules/uniwidth/base: New file.
63719
63720 2007-07-07  Bruno Haible  <bruno@clisp.org>
63721
63722         * lib/uniname.h: New file, from GNU gettext.
63723         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63724         * lib/uniname/uninames.h: New file, from GNU gettext.
63725         * lib/uniname/uniname.c: New file, from GNU gettext.
63726         * tests/uniname/test-uninames.sh: New file.
63727         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63728         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63729         * modules/uniname/base: New file.
63730         * modules/uniname/uniname: New file.
63731         * modules/uniname/uniname-tests: New file.
63732         * MODULES.html.sh (Unicode string functions): Add the new modules.
63733
63734 2007-07-06  Bruno Haible  <bruno@clisp.org>
63735
63736         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63737
63738 2007-07-06  Bruno Haible  <bruno@clisp.org>
63739
63740         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63741         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63742         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63743         include <sys/time.h>.
63744         Reported by Eric Blake.
63745
63746 2007-07-06  Eric Blake  <ebb9@byu.net>
63747
63748         Fix testing canonicalize on cygwin.
63749         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63750         Revert patch from 2007-06-19.
63751         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63752         canonicalize module is also in use.
63753         * tests/test-canonicalize.c: New file.
63754         * tests/test-canonicalize.sh: Likewise.
63755         * modules/canonicalize-tests: Likewise.
63756
63757 2007-07-06  Jim Meyering  <jim@meyering.net>
63758
63759         * lib/getugroups.c (getugroups): Detect getgrent failure.
63760         Adjust comment to reflect reality: this function may return -1.
63761
63762 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63763
63764         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63765         the new TP address.
63766         (usage): Fix typo
63767         (gnulib_mk): New variable.
63768
63769 2007-07-05  Jim Meyering  <jim@meyering.net>
63770
63771         Don't let endgrent clobber errno, no matter how improbable.
63772         * lib/getugroups.c (getugroups): Save and restore errno around
63773         endgrent call.
63774
63775         Close the group DB even when failing with 2^31 or more members.
63776         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63777
63778 2007-07-04  Jim Meyering  <jim@meyering.net>
63779
63780         * lib/getugroups.h: New file.
63781         * lib/getugroups.c: Include "getugroups.h".
63782         Remove uses of "register" keyword.
63783         Move local variable, "cp", down into scope where used.
63784         Give "username" parameter the "const" attribute.
63785         * modules/getugroups (Files): Add lib/getugroups.h
63786
63787 2007-07-04  Karl Berry  <karl@gnu.org>
63788
63789         * MODULES.html.sh (func_all_modules): Complete rename of
63790         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63791
63792 2007-07-02  Bruno Haible  <bruno@clisp.org>
63793
63794         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63795         mode, when inttypes.h comes from gnulib.
63796         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63797
63798 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63799
63800         * NEWS: Mention lgpl module name change.
63801
63802         * modules/lgpl-2.1: Renamed from lgpl.
63803
63804         * NEWS: Mention gpl module name change.
63805
63806         * modules/gpl-3.0: New file, based on gpl-2.0.
63807
63808         * modules/gpl-2.0: Renamed from gpl.
63809
63810         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63811         doc/gpl-2.0.texi.
63812
63813 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63814
63815         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63816         #define __STDC_LIMIT_MACROS temporarily while including
63817         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63818         Problem reported by Joel E. Denny in
63819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63820
63821 2007-07-01  Bruno Haible  <bruno@clisp.org>
63822
63823         * lib/unistdio.h: New file.
63824         * lib/unistdio/u-asnprintf.h: New file.
63825         * lib/unistdio/u-asprintf.h: New file.
63826         * lib/unistdio/u-printf-args.c: New file.
63827         * lib/unistdio/u-printf-args.h: New file.
63828         * lib/unistdio/u-printf-parse.h: New file.
63829         * lib/unistdio/u-snprintf.h: New file.
63830         * lib/unistdio/u-sprintf.h: New file.
63831         * lib/unistdio/u-vasprintf.h: New file.
63832         * lib/unistdio/u-vsnprintf.h: New file.
63833         * lib/unistdio/u-vsprintf.h: New file.
63834         * lib/unistdio/ulc-asnprintf.c: New file.
63835         * lib/unistdio/ulc-asprintf.c: New file.
63836         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63837         * lib/unistdio/ulc-printf-parse.c: New file.
63838         * lib/unistdio/ulc-snprintf.c: New file.
63839         * lib/unistdio/ulc-sprintf.c: New file.
63840         * lib/unistdio/ulc-vasnprintf.c: New file.
63841         * lib/unistdio/ulc-vasprintf.c: New file.
63842         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63843         * lib/unistdio/ulc-vsnprintf.c: New file.
63844         * lib/unistdio/ulc-vsprintf.c: New file.
63845         * lib/unistdio/u8-asnprintf.c: New file.
63846         * lib/unistdio/u8-asprintf.c: New file.
63847         * lib/unistdio/u8-printf-parse.c: New file.
63848         * lib/unistdio/u8-snprintf.c: New file.
63849         * lib/unistdio/u8-sprintf.c: New file.
63850         * lib/unistdio/u8-vasnprintf.c: New file.
63851         * lib/unistdio/u8-vasprintf.c: New file.
63852         * lib/unistdio/u8-vsnprintf.c: New file.
63853         * lib/unistdio/u8-vsprintf.c: New file.
63854         * lib/unistdio/u8-u8-asnprintf.c: New file.
63855         * lib/unistdio/u8-u8-asprintf.c: New file.
63856         * lib/unistdio/u8-u8-snprintf.c: New file.
63857         * lib/unistdio/u8-u8-sprintf.c: New file.
63858         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63859         * lib/unistdio/u8-u8-vasprintf.c: New file.
63860         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63861         * lib/unistdio/u8-u8-vsprintf.c: New file.
63862         * lib/unistdio/u16-asnprintf.c: New file.
63863         * lib/unistdio/u16-asprintf.c: New file.
63864         * lib/unistdio/u16-printf-parse.c: New file.
63865         * lib/unistdio/u16-snprintf.c: New file.
63866         * lib/unistdio/u16-sprintf.c: New file.
63867         * lib/unistdio/u16-vasnprintf.c: New file.
63868         * lib/unistdio/u16-vasprintf.c: New file.
63869         * lib/unistdio/u16-vsnprintf.c: New file.
63870         * lib/unistdio/u16-vsprintf.c: New file.
63871         * lib/unistdio/u16-u16-asnprintf.c: New file.
63872         * lib/unistdio/u16-u16-asprintf.c: New file.
63873         * lib/unistdio/u16-u16-snprintf.c: New file.
63874         * lib/unistdio/u16-u16-sprintf.c: New file.
63875         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63876         * lib/unistdio/u16-u16-vasprintf.c: New file.
63877         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63878         * lib/unistdio/u16-u16-vsprintf.c: New file.
63879         * lib/unistdio/u32-asnprintf.c: New file.
63880         * lib/unistdio/u32-asprintf.c: New file.
63881         * lib/unistdio/u32-printf-parse.c: New file.
63882         * lib/unistdio/u32-snprintf.c: New file.
63883         * lib/unistdio/u32-sprintf.c: New file.
63884         * lib/unistdio/u32-vasnprintf.c: New file.
63885         * lib/unistdio/u32-vasprintf.c: New file.
63886         * lib/unistdio/u32-vsnprintf.c: New file.
63887         * lib/unistdio/u32-vsprintf.c: New file.
63888         * lib/unistdio/u32-u32-asnprintf.c: New file.
63889         * lib/unistdio/u32-u32-asprintf.c: New file.
63890         * lib/unistdio/u32-u32-snprintf.c: New file.
63891         * lib/unistdio/u32-u32-sprintf.c: New file.
63892         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63893         * lib/unistdio/u32-u32-vasprintf.c: New file.
63894         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63895         * lib/unistdio/u32-u32-vsprintf.c: New file.
63896         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63897         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63898         * tests/unistdio/test-ulc-printf1.h: New file.
63899         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63900         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63901         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63902         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63903         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63904         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63905         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63906         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63907         * tests/unistdio/test-u8-asnprintf1.c: New file.
63908         * tests/unistdio/test-u8-asnprintf1.h: New file.
63909         * tests/unistdio/test-u8-printf1.h: New file.
63910         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63911         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63912         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63913         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63914         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63915         * tests/unistdio/test-u8-vasprintf1.c: New file.
63916         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63917         * tests/unistdio/test-u8-vsprintf1.c: New file.
63918         * tests/unistdio/test-u16-asnprintf1.c: New file.
63919         * tests/unistdio/test-u16-asnprintf1.h: New file.
63920         * tests/unistdio/test-u16-printf1.h: New file.
63921         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63922         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63923         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63924         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63925         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63926         * tests/unistdio/test-u16-vasprintf1.c: New file.
63927         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63928         * tests/unistdio/test-u16-vsprintf1.c: New file.
63929         * tests/unistdio/test-u32-asnprintf1.c: New file.
63930         * tests/unistdio/test-u32-asnprintf1.h: New file.
63931         * tests/unistdio/test-u32-printf1.h: New file.
63932         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63933         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63934         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63935         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63936         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63937         * tests/unistdio/test-u32-vasprintf1.c: New file.
63938         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63939         * tests/unistdio/test-u32-vsprintf1.c: New file.
63940         * modules/unistdio/base: New file.
63941         * modules/unistdio/u-printf-args: New file.
63942         * modules/unistdio/ulc-asnprintf: New file.
63943         * modules/unistdio/ulc-asprintf: New file.
63944         * modules/unistdio/ulc-fprintf: New file.
63945         * modules/unistdio/ulc-printf-parse: New file.
63946         * modules/unistdio/ulc-snprintf: New file.
63947         * modules/unistdio/ulc-sprintf: New file.
63948         * modules/unistdio/ulc-vasnprintf: New file.
63949         * modules/unistdio/ulc-vasprintf: New file.
63950         * modules/unistdio/ulc-vfprintf: New file.
63951         * modules/unistdio/ulc-vsnprintf: New file.
63952         * modules/unistdio/ulc-vsprintf: New file.
63953         * modules/unistdio/u8-asnprintf: New file.
63954         * modules/unistdio/u8-asprintf: New file.
63955         * modules/unistdio/u8-printf-parse: New file.
63956         * modules/unistdio/u8-snprintf: New file.
63957         * modules/unistdio/u8-sprintf: New file.
63958         * modules/unistdio/u8-vasnprintf: New file.
63959         * modules/unistdio/u8-vasprintf: New file.
63960         * modules/unistdio/u8-vsnprintf: New file.
63961         * modules/unistdio/u8-vsprintf: New file.
63962         * modules/unistdio/u8-u8-asnprintf: New file.
63963         * modules/unistdio/u8-u8-asprintf: New file.
63964         * modules/unistdio/u8-u8-snprintf: New file.
63965         * modules/unistdio/u8-u8-sprintf: New file.
63966         * modules/unistdio/u8-u8-vasnprintf: New file.
63967         * modules/unistdio/u8-u8-vasprintf: New file.
63968         * modules/unistdio/u8-u8-vsnprintf: New file.
63969         * modules/unistdio/u8-u8-vsprintf: New file.
63970         * modules/unistdio/u16-asnprintf: New file.
63971         * modules/unistdio/u16-asprintf: New file.
63972         * modules/unistdio/u16-printf-parse: New file.
63973         * modules/unistdio/u16-snprintf: New file.
63974         * modules/unistdio/u16-sprintf: New file.
63975         * modules/unistdio/u16-vasnprintf: New file.
63976         * modules/unistdio/u16-vasprintf: New file.
63977         * modules/unistdio/u16-vsnprintf: New file.
63978         * modules/unistdio/u16-vsprintf: New file.
63979         * modules/unistdio/u16-u16-asnprintf: New file.
63980         * modules/unistdio/u16-u16-asprintf: New file.
63981         * modules/unistdio/u16-u16-snprintf: New file.
63982         * modules/unistdio/u16-u16-sprintf: New file.
63983         * modules/unistdio/u16-u16-vasnprintf: New file.
63984         * modules/unistdio/u16-u16-vasprintf: New file.
63985         * modules/unistdio/u16-u16-vsnprintf: New file.
63986         * modules/unistdio/u16-u16-vsprintf: New file.
63987         * modules/unistdio/u32-asnprintf: New file.
63988         * modules/unistdio/u32-asprintf: New file.
63989         * modules/unistdio/u32-printf-parse: New file.
63990         * modules/unistdio/u32-snprintf: New file.
63991         * modules/unistdio/u32-sprintf: New file.
63992         * modules/unistdio/u32-vasnprintf: New file.
63993         * modules/unistdio/u32-vasprintf: New file.
63994         * modules/unistdio/u32-vsnprintf: New file.
63995         * modules/unistdio/u32-vsprintf: New file.
63996         * modules/unistdio/u32-u32-asnprintf: New file.
63997         * modules/unistdio/u32-u32-asprintf: New file.
63998         * modules/unistdio/u32-u32-snprintf: New file.
63999         * modules/unistdio/u32-u32-sprintf: New file.
64000         * modules/unistdio/u32-u32-vasnprintf: New file.
64001         * modules/unistdio/u32-u32-vasprintf: New file.
64002         * modules/unistdio/u32-u32-vsnprintf: New file.
64003         * modules/unistdio/u32-u32-vsprintf: New file.
64004         * modules/unistdio/ulc-asnprintf-tests: New file.
64005         * modules/unistdio/ulc-vasnprintf-tests: New file.
64006         * modules/unistdio/ulc-vasprintf-tests: New file.
64007         * modules/unistdio/ulc-vsnprintf-tests: New file.
64008         * modules/unistdio/ulc-vsprintf-tests: New file.
64009         * modules/unistdio/u8-asnprintf-tests: New file.
64010         * modules/unistdio/u8-vasnprintf-tests: New file.
64011         * modules/unistdio/u8-vasprintf-tests: New file.
64012         * modules/unistdio/u8-vsnprintf-tests: New file.
64013         * modules/unistdio/u8-vsprintf-tests: New file.
64014         * modules/unistdio/u16-asnprintf-tests: New file.
64015         * modules/unistdio/u16-vasnprintf-tests: New file.
64016         * modules/unistdio/u16-vasprintf-tests: New file.
64017         * modules/unistdio/u16-vsnprintf-tests: New file.
64018         * modules/unistdio/u16-vsprintf-tests: New file.
64019         * modules/unistdio/u32-asnprintf-tests: New file.
64020         * modules/unistdio/u32-vasnprintf-tests: New file.
64021         * modules/unistdio/u32-vasprintf-tests: New file.
64022         * modules/unistdio/u32-vsnprintf-tests: New file.
64023         * modules/unistdio/u32-vsprintf-tests: New file.
64024         * MODULES.html.sh (Unicode string functions): Add the new modules.
64025
64026 2007-07-01  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/sprintf.c (sprintf): Limit the available length estimation,
64029         to avoid address wraparound.
64030         * lib/vsprintf.c (vsprintf): Likewise.
64031         * modules/sprintf-posix (Dependencies): Add stdint.
64032         * modules/vsprintf-posix (Dependencies): Likewise.
64033
64034 2007-07-01  Bruno Haible  <bruno@clisp.org>
64035
64036         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64037         Windows PATH as well. Conservative double-quoting. Comments.
64038
64039 2007-07-01  Bruno Haible  <bruno@clisp.org>
64040             Eric Blake  <ebb9@byu.net>
64041             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64042
64043         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64044         empty components in $PATH, denoting '.'.
64045
64046 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64047
64048         * gnulib-tool: Fix indentation.
64049         (func_create_megatestdir): Likewise.
64050         Report by Bruno Haible.
64051
64052 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64053
64054         Sync from Automake.
64055         * build-aux/gnupload: Fix shell portability issues with for loops.
64056         Report by Karl Berry.
64057
64058 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64059
64060         * build-aux/maint.mk (POURL): Use translationproject.org.
64061
64062 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64063             Bruno Haible  <bruno@clisp.org>
64064
64065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64066         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64067         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64068         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64069         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64070
64071 2007-06-27  Bruno Haible  <bruno@clisp.org>
64072
64073         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64074         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64075
64076 2007-06-26  Karl Berry  <karl@gnu.org>
64077
64078         * MODULES.html.sh: remove xreadlink-with-size.
64079
64080 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64081
64082         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64083         method that I hope also handles the double-include problem noted
64084         by Bruno Haible in
64085         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64086
64087 2007-06-23  Bruno Haible  <bruno@clisp.org>
64088
64089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64090         Don't let the 'mostlyclean' target fail if the last subdirectory could
64091         not be removed.
64092         Reported by Karl Berry.
64093
64094 2007-06-23  Bruno Haible  <bruno@clisp.org>
64095
64096         * gnulib-tool (echo): Add a speedier workaround for ksh.
64097         * tests/test-echo.sh: Likewise.
64098
64099 2007-06-23  Bruno Haible  <bruno@clisp.org>
64100
64101         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64102         * tests/test-echo.sh: Likewise.
64103
64104 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64105
64106         * gnulib-tool (IFS): Initialize early, so we don't set it to
64107         empty later.
64108         (self_abspathname): Rewrite algorithm to set it, reindent.
64109         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64110         (func_create_megatestdir): Merge some sed scripts.
64111
64112 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64115         exposed by Sun Studio 11 cc on Solaris 8.
64116
64117 2007-06-22  Bruno Haible  <bruno@clisp.org>
64118
64119         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64120         backslashes.
64121         * tests/test-echo.sh: New file.
64122
64123 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64124
64125         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64126         simplify `sed_replace_build_aux' scripts, they are portable but
64127         echoing them with `echo' is not.
64128         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64129
64130 2007-06-21  Karl Berry  <karl@gnu.org>
64131
64132         * config/srclist.txt: guess we can't handle the licenses via
64133         srclist at the moment.
64134
64135 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         * MODULES.html.sh: Add include_next.
64138         * modules/include_next: New file.
64139
64140 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64143         INCLUDE_NEXT.
64144         (gl_CHECK_NEXT_HEADERS): New macro.
64145         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64146         the obsolescent gl_ABSOLUTE_HEADER.
64147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64148         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64149         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64150         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64151         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64152         * m4/math_h.m4 (gl_MATH_H): Likewise.
64153         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64154         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64155         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64156         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64157         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64158         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64159         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64160         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64163         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64164         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64165         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64166         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64167         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64168         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64169         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64170         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64171         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64172         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64173         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64174         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64175         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64176         * lib/float_.h: Likewise.
64177         * lib/inttypes_.h: Likewise.
64178         * lib/math_.h: Likewise.
64179         * lib/search_.h: Likewise.
64180         * lib/signal_.h: Likewise.
64181         * lib/stdint_.h: Likewise.
64182         * lib/stdio_.h: Likewise.
64183         * lib/stdlib_.h: Likewise.
64184         * lib/string_.h: Likewise.
64185         * lib/sys_stat_.h: Likewise.
64186         * lib/sys_time_.h: Likewise.
64187         * lib/time_.h: Likewise.
64188         * lib/unistd_.h: Likewise.
64189         * lib/wchar_.h: Likewise.
64190         * lib/wctype_.h: Likewise.
64191         * lib/dirent_.h: Likewise.
64192         * lib/iconv_.h: Likewise.
64193         * lib/locale_.h: Likewise.
64194         * lib/netinet_in_.h: Likewise.
64195         * lib/sys_select_.h: Likewise.
64196         * lib/sys_socket_.h: Likewise.
64197         * lib/sysexits_.h: Likewise.
64198         * modules/fcntl (Depends-on): Depend on include_next, not
64199         absolute_header.
64200         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64201         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64202         * modules/fchdir: Likewise.
64203         * modules/float: Likewise.
64204         * modules/iconv_open: Likewise.
64205         * modules/inttypes: Likewise.
64206         * modules/locale: Likewise.
64207         * modules/math: Likewise.
64208         * modules/netinet_in: Likewise.
64209         * modules/search: Likewise.
64210         * modules/signal: Likewise.
64211         * modules/stdint: Likewise.
64212         * modules/stdio: Likewise.
64213         * modules/stdlib: Likewise.
64214         * modules/string: Likewise.
64215         * modules/sys_select: Likewise.
64216         * modules/sys_socket: Likewise.
64217         * modules/sys_stat: Likewise.
64218         * modules/sys_time: Likewise.
64219         * modules/sysexits: Likewise.
64220         * modules/time: Likewise.
64221         * modules/unistd: Likewise.
64222         * modules/wchar: Likewise.
64223         * modules/wctype: Likewise.
64224         * modules/sys_stat: Change maintainer to "all".
64225         * modules/unistd: Likewise.
64226
64227 2007-06-20  Karl Berry  <karl@gnu.org>
64228
64229         * config/srclist.txt: track www changes in license files.
64230
64231 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64232
64233         * build-aux/bootstrap: Remove stray dot.
64234         Make sure build_aux settings are honored when linking
64235         gnulib_extra_files.
64236
64237 2007-06-19  Eric Blake  <ebb9@byu.net>
64238
64239         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64240         Allow compilation on cygwin.
64241
64242 2007-06-19  Jim Meyering  <jim@meyering.net>
64243
64244         xreadlink-with-size: Remove module.  No longer used.
64245         Ex-callers now use xreadlink or mreadlink-with-size.
64246         * modules/xreadlink-with-size: Remove module.
64247         * lib/xreadlink-with-size.c: Remove file.
64248         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64249         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64250         just before the function definition *is* accurate.
64251
64252         Eliminate one way canonicalize_filename_mode could exit.
64253         * lib/canonicalize.c (canonicalize_filename_mode):
64254         Use mreadlink_with_size, not xreadlink_with_size.
64255
64256 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         Detect porting problems to FreeBSD/arm, which has time_t wider than
64259         long int.  Original problem reported for GNU diff by Xin Li in
64260         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64261         * modules/getdate (Depends-on): Add intprops, verify.
64262         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64263         is an integer type no wider than long int.
64264
64265 2007-06-18  Jim Meyering  <jim@meyering.net>
64266
64267         New module: mreadlink-with-size.
64268         * MODULES.html.sh: Add mreadlink-with-size.
64269         * modules/mreadlink-with-size: New module
64270         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64271         not xreadlink-with-size.
64272         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64273
64274 2007-06-16  Bruno Haible  <bruno@clisp.org>
64275
64276         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64277         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64278         Reported by Gary V. Vaughan <gary@gnu.org>.
64279
64280 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         Revamp lchown so that it lives in unistd.h where it belongs.
64283         * lib/lchown.h: Remove.
64284         * lib/dirchownmod.c: Don't include lib/lchown.h.
64285         * lib/fchownat.c: Likewise.
64286         * lib/openat.c: Likewise.
64287         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64288         does not follow symlinks.
64289         (EOPNOTSUPP): Define if not defined.
64290         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64291         is defined to 0.
64292         (lchown): New decl.
64293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64294         Do not check for lchown decl.
64295         Set REPLACE_LCHOWN.
64296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64297         REPLACE_LCHOWN.
64298         * modules/chown: Make it clear it follows symlinks.
64299         * modules/lchown: Make it clear it doesn't follow symlinks.
64300         (Files): Remove lib/lchown.h
64301         (Depends-on): Add unistd.
64302         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64303         (Include): Include <unistd.h>, not "lchown.h".
64304         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64305         REPLACE_LCHOWN.
64306
64307 2007-06-15  Jim Meyering  <jim@meyering.net>
64308
64309         Change license (GPL to LGPL) of fsusage and dependents.
64310         * modules/fsusage (License): Change to LGPL.
64311         * modules/full-read (License): Likewise.
64312         * modules/full-write (License): Likewise.
64313         * modules/safe-read (License): Likewise.
64314         * modules/safe-write (License): Likewise.
64315
64316 2007-06-14  Ben Pfaff  <blp@gnu.org>
64317
64318         Missing part of allocsa -> malloca transition.
64319         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64320         gl_MALLOCA.
64321
64322 2007-06-12  Bruno Haible  <bruno@clisp.org>
64323
64324         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64325         to ia64, x86_64, i386.
64326         Reported by Eric Blake.
64327
64328 2007-06-12  Bruno Haible  <bruno@clisp.org>
64329
64330         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64331         cross-compiling to x86_64.
64332
64333 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64334
64335         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64336         glitch reported by Ralf Wildenhues in
64337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64338
64339         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64340         Vin Shelton.
64341
64342 2007-06-11  Bruno Haible  <bruno@clisp.org>
64343
64344         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64345         replacement string.
64346         Reported by Eric Blake.
64347
64348 2007-06-10  Bruno Haible  <bruno@clisp.org>
64349
64350         Prepare vasnprintf code for use with Unicode strings.
64351         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64352         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64353         TYPE_U32_STRING.
64354         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64355         a_u32_string variants.
64356         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64357         * lib/printf-args.c: Don't include config.h and the specification
64358         header if PRINTF_FETCHARGS is already defined.
64359         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64360         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64361         TYPE_U16_STRING, TYPE_U32_STRING.
64362         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64363         u16_directive, u16_directives, u32_directive, u32_directives): New
64364         types.
64365         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64366         New declarations.
64367         * lib/printf-parse.c: Don't include config.h and the specification
64368         header if PRINTF_PARSE is already defined. Eliminate the set of
64369         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64370         them now. Include c-ctype.h.
64371         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64372         directive and CHAR_T_ONLY_ASCII.
64373         * lib/vasnprintf.c: Don't include config.h and the specification header
64374         if VASNPRINTF is already defined.
64375         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64376         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64377         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64378         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64379         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64380         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64381         code accordingly.
64382         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64383         pad_ourselves also in this case, with the 'c' and 's' directives, and
64384         with a different notion of "width".
64385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64386
64387 2007-06-10  Bruno Haible  <bruno@clisp.org>
64388
64389         * modules/unistr/u32-mbsnlen: New file.
64390         * lib/unistr/u32-mbsnlen.c: New file.
64391
64392         * modules/unistr/u16-mbsnlen: New file.
64393         * lib/unistr/u16-mbsnlen.c: New file.
64394
64395         * modules/unistr/u8-mbsnlen: New file.
64396         * lib/unistr/u8-mbsnlen.c: New file.
64397
64398         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64399         declarations.
64400
64401 2007-06-10  Bruno Haible  <bruno@clisp.org>
64402
64403         * lib/string_.h (mbsnlen): New declaration.
64404         * lib/mbsnlen.c: New file.
64405         * m4/mbsnlen.m4: New file.
64406         * modules/mbsnlen: New file.
64407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64408         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64409         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64410
64411 2007-06-10  Bruno Haible  <bruno@clisp.org>
64412
64413         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64414
64415 2007-06-10  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64418         * lib/mbuiter.h: Likewise.
64419
64420 2007-06-10  Bruno Haible  <bruno@clisp.org>
64421
64422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64423         declaration.
64424
64425 2007-06-10  Karl Berry  <karl@gnu.org>
64426
64427         * config/srclist.txt: remove gettext entries, Bruno prefers
64428         to update individually.
64429
64430 2007-06-10  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64433         'maxlen'. Ensure only length + width bytes are allocated, not
64434         length + 1 + width.
64435
64436 2007-06-09  Bruno Haible  <bruno@clisp.org>
64437
64438         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64439         (CHAR_T): Remove macro.
64440         (VASNPRINTF): Update.
64441
64442 2007-06-09  Bruno Haible  <bruno@clisp.org>
64443
64444         * MODULES.html.sh (Unicode string functions): Add the new modules.
64445
64446         * modules/uniconv/u32-conv-to-enc: New file.
64447         * lib/uniconv/u32-conv-to-enc.c: New file.
64448         * modules/uniconv/u32-conv-to-enc-tests: New file.
64449         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64450
64451         * modules/uniconv/u16-conv-to-enc: New file.
64452         * lib/uniconv/u16-conv-to-enc.c: New file.
64453         * lib/uniconv/u-conv-to-enc.h: New file.
64454         * modules/uniconv/u16-conv-to-enc-tests: New file.
64455         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64456
64457         * modules/uniconv/u8-conv-to-enc: New file.
64458         * lib/uniconv/u8-conv-to-enc.c: New file.
64459         * modules/uniconv/u8-conv-to-enc-tests: New file.
64460         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64461
64462         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64463         u32_conv_to_encoding): New declarations.
64464
64465 2007-06-09  Bruno Haible  <bruno@clisp.org>
64466
64467         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64468
64469 2007-06-09  Bruno Haible  <bruno@clisp.org>
64470
64471         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64472         * modules/malloca: Renamed from modules/allocsa, updated.
64473         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64474         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64475         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64476         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64477         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64478         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64479         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64480         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64481         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64482         * modules/c-strcasestr (Depends-on): Update.
64483         * lib/c-strcasestr.c: Update.
64484         * modules/c-strstr (Depends-on): Update.
64485         * lib/c-strstr.c: Update.
64486         * modules/canonicalize-lgpl (Depends-on): Update.
64487         * lib/canonicalize-lgpl.c: Update.
64488         * modules/clean-temp (Depends-on): Update.
64489         * lib/clean-temp.c: Update.
64490         * modules/csharpcomp (Depends-on): Update.
64491         * lib/csharpcomp.c: Update.
64492         * modules/csharpexec (Depends-on): Update.
64493         * lib/csharpexec.c: Update.
64494         * modules/javacomp (Depends-on): Update.
64495         * lib/javacomp.c: Update.
64496         * modules/javaexec (Depends-on): Update.
64497         * lib/javaexec.c: Update.
64498         * modules/mbscasestr (Depends-on): Update.
64499         * lib/mbscasestr.c: Update.
64500         * modules/mbsstr (Depends-on): Update.
64501         * lib/mbsstr.c: Update.
64502         * modules/setenv (Depends-on): Update.
64503         * lib/setenv.c: Update.
64504         * modules/strcasestr (Depends-on): Update.
64505         * lib/strcasestr.c: Update.
64506         * modules/striconveha (Depends-on): Update.
64507         * lib/striconveha.c: Update.
64508         * modules/relocatable-prog-wrapper (Files): Update.
64509         * lib/relocwrapper.c: Update.
64510         * build-aux/install-reloc: Update.
64511         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64512
64513 2007-06-08  Bruno Haible  <bruno@clisp.org>
64514
64515         Port to uClibc.
64516         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64517         * lib/fpurge.c (fpurge): Likewise.
64518         * lib/freading.c (freading): Likewise.
64519         * lib/fseeko.c (rpl_fseeko): Likewise.
64520         * lib/fseterr.c (fseterr): Likewise.
64521         * lib/fwriting.c (fwriting): Likewise.
64522         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64523
64524 2007-06-08  Bruno Haible  <bruno@clisp.org>
64525
64526         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64527         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64528         * modules/gettext (Files): Add m4/intlmacosx.m4.
64529
64530 2007-06-07  Bruno Haible  <bruno@clisp.org>
64531
64532         * modules/localename-tests: New file.
64533         * tests/test-localename.c: New file.
64534
64535         New module 'localename'.
64536         * lib/localename.h: New file.
64537         * lib/localename.c: New file, from GNU gettext.
64538         * m4/localename.m4: New file.
64539         * modules/localename: New file.
64540
64541 2007-06-07  Bruno Haible  <bruno@clisp.org>
64542
64543         Work around the lack of <wchar.h> on some builds of uClibc.
64544         * doc/headers/wchar.texi: Update.
64545         * lib/wchar_.h: Include <wchar.h> only if it exists.
64546         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64547         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64548         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64549         doesn't exist.
64550         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64551         * modules/mbfile (Depends-on): Add wchar.
64552         * modules/mbiter (Depends-on): Likewise.
64553         * modules/mbuiter (Depends-on): Likewise.
64554         Reported by Simon Josefsson.
64555
64556 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         Work around problem reported by Steven M. Schweda in
64559         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64560         Tru64 5.1B with the Compaq compiler environment installed declares
64561         an 'isblank' function but does not define it in the C library.
64562         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64563         * lib/regex_internal.h (isblank): Likewise.
64564         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64565         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64566
64567 2007-06-05  Bruno Haible  <bruno@clisp.org>
64568
64569         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64570         ia64.
64571         * modules/printf-safe: New file.
64572         * modules/fprintf-posix (Depends-on): Add printf-safe.
64573         * modules/printf-posix (Depends-on): Likewise.
64574         * modules/snprintf-posix (Depends-on): Likewise.
64575         * modules/sprintf-posix (Depends-on): Likewise.
64576         * modules/vasnprintf-posix (Depends-on): Likewise.
64577         * modules/vasprintf-posix (Depends-on): Likewise.
64578         * modules/vfprintf-posix (Depends-on): Likewise.
64579         * modules/vprintf-posix (Depends-on): Likewise.
64580         * modules/vsnprintf-posix (Depends-on): Likewise.
64581         * modules/vsprintf-posix (Depends-on): Likewise.
64582         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64583         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64584         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64585         "no" on i386, x86_64, ia64.
64586         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64587         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64588         on i386, x86_64, ia64.
64589         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64590         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64591         on i386, x86_64, ia64.
64592         * tests/test-vasnprintf-posix.c: Include float.h.
64593         (LDBL80_WORDS): New macro.
64594         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64595         on i386, x86_64, ia64.
64596         * tests/test-vasprintf-posix.c: Include float.h.
64597         (LDBL80_WORDS): New macro.
64598         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64599         on i386, x86_64, ia64.
64600         * tests/test-snprintf-posix.c: Include float.h.
64601         * tests/test-sprintf-posix.c: Likewise.
64602         * tests/test-vsnprintf-posix.c: Likewise.
64603         * tests/test-vsprintf-posix.c: Likewise.
64604
64605 2007-06-05  Bruno Haible  <bruno@clisp.org>
64606
64607         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64608         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64609         non-IEEE numbers on i386, x86_64, ia64.
64610         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64611         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64612         * tests/test-isnanl.h: Include float.h.
64613         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64614
64615 2007-06-05  Bruno Haible  <bruno@clisp.org>
64616
64617         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64618         also the %a / %A. Handle the %a / %A code before this extra handling.
64619
64620 2007-06-05  Bruno Haible  <bruno@clisp.org>
64621
64622         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64623         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64624
64625 2007-06-05  Bruno Haible  <bruno@clisp.org>
64626
64627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64628         typo in variable name.
64629
64630 2007-06-05  Eric Blake  <ebb9@byu.net>
64631
64632         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64633         Reported by Simon Josefsson.
64634
64635 2007-06-04  Bruno Haible  <bruno@clisp.org>
64636
64637         Avoid test failures on some PowerPC platforms.
64638         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64639         Define differently for PowerPC.
64640         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64641         Reported by Gary V. Vaughan <gary@gnu.org>.
64642
64643 2007-06-02  Bruno Haible  <bruno@clisp.org>
64644
64645         Fix test-stdint failure on FreeBSD/ia64.
64646         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64647         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64648         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64649         * doc/headers/stdint.texi: Update.
64650
64651 2007-06-01  Bruno Haible  <bruno@clisp.org>
64652
64653         * tests/test-binary-io.c (main): Pass a third argument to open().
64654         Reported by Gary V. Vaughan <gary@gnu.org>.
64655
64656 2007-06-01  Bruno Haible  <bruno@clisp.org>
64657
64658         * doc/functions/frexpl.texi: Update for mingw.
64659
64660 2007-06-01  Bruno Haible  <bruno@clisp.org>
64661
64662         * tests/test-lseek.c (main): Disable test of errno for invalid third
64663         argument.
64664         * doc/functions/lseek.texi: Update.
64665         Reported by Gary V. Vaughan <gary@gnu.org>.
64666
64667 2007-05-28  Bruno Haible  <bruno@clisp.org>
64668
64669         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64670
64671 2007-05-31  Eric Blake  <ebb9@byu.net>
64672
64673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64674         cross compiling.
64675
64676 2007-05-30  Eric Blake  <ebb9@byu.net>
64677         and Bruno Haible  <bruno@clisp.org>
64678
64679         Work around mingw test failures exposed by m4-1.4.9b.
64680         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64681         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64682         moment.
64683
64684 2007-05-30  Bruno Haible  <bruno@clisp.org>
64685
64686         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64687         assuming that they are closed. Needed on HP-UX 11.
64688
64689 2007-05-29  Bruno Haible  <bruno@clisp.org>
64690
64691         Fix a problem with #include_next.
64692         * lib/dirent_.h: Split the double-inclusion guard.
64693         * lib/fcntl_.h: Likewise.
64694         * lib/float_.h: Likewise.
64695         * lib/iconv_.h: Likewise.
64696         * lib/inttypes_.h: Likewise.
64697         * lib/locale_.h: Likewise.
64698         * lib/math_.h: Likewise.
64699         * lib/netinet_in_.h: Likewise.
64700         * lib/search_.h: Likewise.
64701         * lib/signal_.h: Likewise.
64702         * lib/stdint_.h: Likewise.
64703         * lib/stdio_.h: Likewise.
64704         * lib/stdlib_.h: Likewise.
64705         * lib/string_.h: Likewise.
64706         * lib/sys_select_.h: Likewise.
64707         * lib/sys_socket_.h: Likewise.
64708         * lib/sys_stat_.h: Likewise.
64709         * lib/sys_time_.h: Likewise.
64710         * lib/sysexits_.h: Likewise.
64711         * lib/time_.h: Likewise.
64712         * lib/unistd_.h: Likewise.
64713         * lib/wchar_.h: Likewise.
64714         * lib/wctype_.h: Likewise.
64715
64716 2007-05-29  Bruno Haible  <bruno@clisp.org>
64717
64718         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64719         for the moment.
64720
64721 2007-05-29  Bruno Haible  <bruno@clisp.org>
64722
64723         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64724         invocation.
64725         Reported by Eric Blake.
64726
64727 2007-05-29  Bruno Haible  <bruno@clisp.org>
64728
64729         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64730         compiling case.
64731
64732 2007-05-29  Eric Blake  <ebb9@byu.net>
64733             Bruno Haible  <bruno@clisp.org>
64734
64735         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64736         cross compiles.
64737
64738 2007-05-28  Eric Blake  <ebb9@byu.net>
64739
64740         * modules/closein-tests (test_closein_LDADD): Support test on
64741         cygwin with libtool.
64742
64743 2007-05-28  Bruno Haible  <bruno@clisp.org>
64744
64745         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64746         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64747         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64748         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64749         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64750         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64751         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64752         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64753         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64754
64755 2007-05-28  Eric Blake  <ebb9@byu.net>
64756
64757         Unconditionally include <config.h> in unit tests.
64758         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64759         * tests/test-allocsa.c, tests/test-arcfour.c,
64760         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64761         tests/test-array_list.c, tests/test-array_oset.c,
64762         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64763         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64764         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64765         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64766         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64767         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64768         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64769         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64770         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64771         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64772         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64773         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64774         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64775         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64776         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64777         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64778         test-md5.c, test-memmem.c, test-printf-posix.c,
64779         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64780         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64781         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64782         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64783         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64784         test-vasnprintf-posix2.c, test-vasnprintf.c,
64785         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64786         test-vfprintf-posix.c, test-vprintf-posix.c,
64787         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64788         test-xvasprintf.c: Likewise.
64789
64790 2007-05-28  Bruno Haible  <bruno@clisp.org>
64791
64792         * gnulib-tool (func_import): Remember the --with-tests command-line
64793         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64794         Reported by Eric Blake.
64795
64796 2007-05-28  Bruno Haible  <bruno@clisp.org>
64797
64798         * modules/ftell-tests: New file.
64799         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64800         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64801
64802         * lib/ftell.c: New file.
64803         * modules/ftell: New file.
64804         * m4/ftell.m4: New file.
64805         * doc/functions/ftell.texi: Update.
64806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64807         REPLACE_FTELL.
64808         * lib/stdio_.h (rpl_ftell): New declaration.
64809         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64810         REPLACE_FTELL.
64811
64812 2007-05-28  Eric Blake  <ebb9@byu.net>
64813
64814         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64815
64816 2007-05-28  Bruno Haible  <bruno@clisp.org>
64817
64818         * modules/fseek-tests: New file.
64819         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64820         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64821
64822         * lib/fseek.c: New file.
64823         * modules/fseek: New file.
64824         * m4/fseek.m4: New file.
64825         * doc/functions/fseek.texi: Update.
64826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64827         REPLACE_FSEEK.
64828         * lib/stdio_.h (rpl_fseek): New declaration.
64829         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64830         REPLACE_FSEEK.
64831
64832 2007-05-28  Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/stdio_.h (fflush): More comments.
64835
64836 2007-05-28  Bruno Haible  <bruno@clisp.org>
64837
64838         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64839         runtime test.
64840
64841 2007-05-28  Eric Blake  <ebb9@byu.net>
64842
64843         Improve lseek module.
64844         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64845         * lib/unistd_.h (lseek): Scale back link warning message.
64846         * tests/test-lseek.c: Beef up test.
64847         * tests/test-lseek.sh: Exercise more facets of lseek.
64848         Reported by Bruno Haible.
64849
64850 2007-05-28  Bruno Haible  <bruno@clisp.org>
64851
64852         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64853         to define.
64854
64855 2007-05-27  Bruno Haible  <bruno@clisp.org>
64856
64857         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64858
64859 2007-05-27  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/openmp: New file.
64862         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64863         Noah Misch.
64864
64865 2007-05-26  Bruno Haible  <bruno@clisp.org>
64866
64867         * modules/chdir-long (Depends-on): Add fchdir.
64868         * modules/chdir-safer (Depends-on): Likewise.
64869         * modules/fts (Depends-on): Likewise.
64870         * modules/fts-lgpl (Depends-on): Likewise.
64871         * modules/openat (Depends-on): Likewise.
64872         * modules/savewd (Depends-on): Likewise.
64873
64874 2007-05-24  Eric Blake  <ebb9@byu.net>
64875
64876         Fix lseek on mingw.
64877         * modules/lseek: New module.
64878         * m4/lseek.m4: New file.
64879         * lib/lseek.c: New file.
64880         * modules/lseek-tests: New file.
64881         * tests/test-lseek.c: New file.
64882         * tests/test-lseek.sh: New file.
64883         * MODULES.html.sh: Document lseek module.
64884         * modules/fflush (Depends-on): Add lseek, fseeko.
64885         * modules/fseeko (Depends-on): Likewise.
64886         * modules/ftello (Depends-on): Likewise.
64887         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64888         broken.
64889         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64890         broken.
64891         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64892         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64893         * lib/ftello.c (rpl_ftello): Likewise.
64894         * tests/test-fseeko.c (main): Test this.
64895         * tests/test-fseeko.sh: Likewise.
64896         * tests/test-ftello.c (main): Likewise.
64897         * tests/test-ftello.sh: Likewise.
64898         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64899         implies replacing fseek.
64900         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64901         HAVE_FTELLO.
64902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64903         * modules/unistd (Makefile.am): Likewise.
64904         * lib/unistd_.h (lseek): Declare a replacement.
64905         * doc/functions/lseek.texi (lseek): Document this fix.
64906         * doc/functions/fseek.texi (fseek): Likewise.
64907         * doc/functions/ftell.texi (ftell): Likewise.
64908
64909 2007-05-24  Bruno Haible  <bruno@clisp.org>
64910
64911         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64912         in the printed representation of a NaN.
64913         * tests/test-vasprintf-posix.c (test_function): Likewise.
64914         * tests/test-snprintf-posix.h (test_function): Likewise.
64915         * tests/test-sprintf-posix.h (test_function): Likewise.
64916         Reported by Eric Blake.
64917
64918 2007-05-23  Eric Blake  <ebb9@byu.net>
64919
64920         Fix fseeko/ftello on cygwin 1.5.24.
64921         * doc/functions/fseeko.texi (fseeko): Document the fix.
64922         * doc/functions/ftello.texi (ftello): Document the fix.
64923         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64924         * doc/functions/stdout.text (stdout): New file.
64925         * doc/functions/stderr.text (stderr): New file.
64926         * doc/gnulib.texi (Function Substitutes): Use new files.
64927         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64928         prior to 1.7.0.
64929         * tests/test-ftello.c (main): Likewise for ftello.
64930         * tests/test-fseeko.sh: New file.
64931         * tests/test-ftello.sh: New file.
64932         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64933         with seekable stdin.
64934         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64935         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64936         (gl_REPLACE_FSEEKO): New macro.
64937         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64938         * modules/fseeko (Files): Distribute fseeko.c.
64939         * modules/ftello (Files): Distribute ftello.c.
64940         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64941         mode.
64942         * lib/ftello.c (rpl_ftello): New file.
64943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64944         fseeko, ftello.
64945         (gl_STDIN_LARGE_OFFSET): New macro.
64946         * modules/stdio (Makefile.am): Perform the replacement.
64947         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64948
64949 2007-05-23  Bruno Haible  <bruno@clisp.org>
64950
64951         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64952         GNULIB_POSIXCHECK is defined.
64953
64954 2007-05-21  Bruno Haible  <bruno@clisp.org>
64955
64956         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64957         Check also the output for NaN arguments. When cross-compiling, guess
64958         no on IRIX.
64959         * lib/vasnprintf.c: Update comments.
64960         * tests/test-vasnprintf-posix.c (strisnan): New function.
64961         (test_function): Use it.
64962         * tests/test-vasprintf-posix.c (strisnan): New function.
64963         (test_function): Use it.
64964         * tests/test-snprintf-posix.h (strisnan): New function.
64965         (test_function): Use it.
64966         * tests/test-sprintf-posix.h (strisnan): New function.
64967         (test_function): Use it.
64968         Reported by Eric Blake.
64969
64970 2007-05-20  Bruno Haible  <bruno@clisp.org>
64971
64972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64973         numbers that fails on BeOS.
64974         * doc/functions/frexpl.texi: Update.
64975
64976 2007-05-20  Jim Meyering  <jim@meyering.net>
64977
64978         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64979         forced upon us by glibc-2.6.
64980
64981 2007-05-20  Bruno Haible  <bruno@clisp.org>
64982
64983         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64984         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64985         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64986         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64987         NEED_PRINTF_INFINITE.
64988         (is_infinitel): New function.
64989         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64991         gl_PREREQ_VASNPRINTF_INFINITE.
64992         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64994         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64995         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64996         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64997         gl_PREREQ_VASNPRINTF_INFINITE.
64998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65002         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65003         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65004         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65005         * doc/functions/fprintf.texi: Update.
65006         * doc/functions/printf.texi: Update.
65007         * doc/functions/snprintf.texi: Update.
65008         * doc/functions/sprintf.texi: Update.
65009         * doc/functions/vfprintf.texi: Update.
65010         * doc/functions/vprintf.texi: Update.
65011         * doc/functions/vsnprintf.texi: Update.
65012         * doc/functions/vsprintf.texi: Update.
65013
65014 2007-05-20  Bruno Haible  <bruno@clisp.org>
65015
65016         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65017         was not found in libc.
65018         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65019
65020 2007-05-20  Bruno Haible  <bruno@clisp.org>
65021
65022         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65023         printed as "-nan" instead of "nan".
65024         * tests/test-vasprintf-posix.c (test_function): Likewise.
65025         * tests/test-snprintf-posix.h (test_function): Likewise.
65026         * tests/test-sprintf-posix.h (test_function): Likewise.
65027         Needed for HP-UX 11.
65028
65029 2007-05-20  Jim Meyering  <jim@meyering.net>
65030
65031         Fix buggy test for the fchownat-deref bug.
65032         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65033         symlink required for the run-test.  Without it, this test would
65034         always declare that fchownat doesn't work, and client code would
65035         unnecessarily use the replacement function with fixed libc.
65036         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65037         Reported by Greg Schafer.
65038
65039 2007-05-19  Bruno Haible  <bruno@clisp.org>
65040
65041         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65042         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65043         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65044         Needed for IRIX 6.5 and Solaris 2.5.1.
65045
65046 2007-05-19  Bruno Haible  <bruno@clisp.org>
65047
65048         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65049         (test_function): Skip tests involving -0.0 on platforms where
65050         -0.0 = 0.0.
65051         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65052         (test_function): Skip tests involving -0.0 on platforms where
65053         -0.0 = 0.0.
65054         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65055         (test_function): Skip tests involving -0.0 on platforms where
65056         -0.0 = 0.0.
65057         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65058         (test_function): Skip tests involving -0.0 on platforms where
65059         -0.0 = 0.0.
65060         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65061         tests.
65062         * tests/test-printf-posix.h (test_function): Likewise.
65063         * tests/test-printf-posix.output: Remove all -0.0 related results.
65064         Needed for IRIX 6.5.
65065
65066 2007-05-19  Bruno Haible  <bruno@clisp.org>
65067
65068         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65069         printed as "nan0x7fffffff" instead of "nan".
65070         * tests/test-vasprintf-posix.c (test_function): Likewise.
65071         * tests/test-snprintf-posix.h (test_function): Likewise.
65072         * tests/test-sprintf-posix.h (test_function): Likewise.
65073         * tests/test-fprintf-posix.h (NaN): Remove macro.
65074         (test_function): Remove all NaN related tests.
65075         * tests/test-printf-posix.h (NaN): Remove macro.
65076         (test_function): Remove all NaN related tests.
65077         * tests/test-printf-posix.output: Remove all NaN related results.
65078         Needed for IRIX 6.5.
65079
65080 2007-05-19  Bruno Haible  <bruno@clisp.org>
65081
65082         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65084
65085 2007-05-19  Bruno Haible  <bruno@clisp.org>
65086
65087         * lib/float_.h: New file.
65088         * m4/float_h.m4: New file.
65089         * modules/float: New file.
65090         * modules/isnanl (Dependencies): Add float.
65091         * modules/isnanl-nolibm (Dependencies): Likewise.
65092         * modules/mathl (Dependencies): Likewise.
65093         * modules/printf-frexpl (Dependencies): Likewise.
65094         * modules/signbit (Dependencies): Likewise.
65095         * modules/vasnprintf (Dependencies): Likewise.
65096         * doc/headers/float.texi: Update.
65097
65098 2007-05-19  Jim Meyering  <jim@meyering.net>
65099
65100         * lib/utimens.c (gl_futimens): Rename from futimens,
65101         now that glibc-2.6 declares futimens.
65102         * lib/utimens.h: Likewise.
65103
65104 2007-05-19  Bruno Haible  <bruno@clisp.org>
65105
65106         Avoid test failures on mingw.
65107         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65108         * tests/test-printf-posix.sh: Likewise.
65109         * tests/test-vfprintf-posix.sh: Likewise.
65110         * tests/test-vprintf-posix.sh: Likewise.
65111
65112 2007-05-19  Bruno Haible  <bruno@clisp.org>
65113
65114         Fix *printf result for NaN, Inf, -0.0 on mingw.
65115         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65116         * lib/vasnprintf.c: Include math.h and isnan.h.
65117         (is_infinite_or_zero): New function.
65118         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65119         values in the %f, %F, %e, %E, %g, %G directives.
65120         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65121         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65122         gl_PRINTF_INFINITE and test its result. Invoke
65123         gl_PREREQ_VASNPRINTF_INFINITE.
65124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65125         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65128         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65131         * doc/functions/fprintf.texi: Update.
65132         * doc/functions/printf.texi: Update.
65133         * doc/functions/snprintf.texi: Update.
65134         * doc/functions/sprintf.texi: Update.
65135         * doc/functions/vfprintf.texi: Update.
65136         * doc/functions/vprintf.texi: Update.
65137         * doc/functions/vsnprintf.texi: Update.
65138         * doc/functions/vsprintf.texi: Update.
65139
65140 2007-05-19  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65143         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65144         Instead of multiplying with 10^k, set extra_zeroes to k.
65145         (scale10_round_long_double): Remove function.
65146
65147 2007-05-18  Bruno Haible  <bruno@clisp.org>
65148
65149         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65150         introduced on 2007-05-06.
65151
65152 2007-05-18  Bruno Haible  <bruno@clisp.org>
65153
65154         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65155         %g directives.
65156         * tests/test-vasprintf-posix.c (test_function): Likewise.
65157         * tests/test-snprintf-posix.h (test_function): Likewise.
65158         * tests/test-sprintf-posix.h (test_function): Likewise.
65159
65160 2007-05-18  Bruno Haible  <bruno@clisp.org>
65161
65162         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65163         (strmatch): New function.
65164         (test_function): Test the %f directive on numbers of various exponents.
65165         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65166         (strmatch): New function.
65167         (test_function): Test the %f directive on numbers of various exponents.
65168         * tests/test-snprintf-posix.h (strmatch): New function.
65169         (test_function): Test the %f directive on numbers of various exponents.
65170         * tests/test-sprintf-posix.h (strmatch): New function.
65171         (test_function): Test the %f directive on numbers of various exponents.
65172         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65173         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65174         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65175         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65176
65177 2007-05-18  Bruno Haible  <bruno@clisp.org>
65178
65179         Add support for 'long double' number output.
65180         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65181         * lib/vasnprintf.c: Include math.h and float+.h.
65182         (mp_limb_t): New type.
65183         (GMP_LIMB_BITS): New macro.
65184         (mp_twolimb_t): New type.
65185         (GMP_TWOLIMB_BITS): New macro.
65186         (mpn_t): New type.
65187         (multiply, divide, convert_to_decimal, decode_long_double,
65188         scale10_round_long_double, scale10_round_decimal_long_double,
65189         floorlog10l): New functions.
65190         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65191         for the %f, %F, %e, %E, %g, %G directives.
65192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65193         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65194         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65195         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65196         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65197         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65198         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65199         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65200         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65201         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65202         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65203         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65204         * modules/snprintf-posix (Depends-on): Likewise.
65205         * modules/sprintf-posix (Depends-on): Likewise.
65206         * modules/vasnprintf-posix (Depends-on): Likewise.
65207         * modules/vasprintf-posix (Depends-on): Likewise.
65208         * modules/vfprintf-posix (Depends-on): Likewise.
65209         * modules/vsnprintf-posix (Depends-on): Likewise.
65210         * modules/vsprintf-posix (Depends-on): Likewise.
65211         * modules/vasnprintf (Files): Add lib/float+.h.
65212         * doc/functions/fprintf.texi: Update.
65213         * doc/functions/printf.texi: Update.
65214         * doc/functions/snprintf.texi: Update.
65215         * doc/functions/sprintf.texi: Update.
65216         * doc/functions/vfprintf.texi: Update.
65217         * doc/functions/vprintf.texi: Update.
65218         * doc/functions/vsnprintf.texi: Update.
65219         * doc/functions/vsprintf.texi: Update.
65220
65221 2007-05-18  Bruno Haible  <bruno@clisp.org>
65222
65223         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65224
65225 2007-05-18  Bruno Haible  <bruno@clisp.org>
65226
65227         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65228         for printing 64-bit integers. Needed for mingw.
65229
65230 2007-05-18  Bruno Haible  <bruno@clisp.org>
65231
65232         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65233         gl_FUNC_FREXPL_WORKS.
65234         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65235
65236 2007-05-18  Bruno Haible  <bruno@clisp.org>
65237
65238         * modules/frexpl-nolibm-tests: New file.
65239
65240         * modules/frexpl-nolibm: New file.
65241         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65242
65243 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65246         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65247         GCC 4.2, which otherwise issues a lot of warnings.
65248         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65249         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65250         Likewise.
65251         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65252         * modules/iconv_open (iconv.h): Likewise.
65253         * modules/locale (locale.h): Likewise.
65254         * modules/netinet_in (netinet/in.h): Likewise.
65255         * modules/sys_select (sys_select.h): Likewise.
65256         * modules/sys_socket (sys/socket.h): Likewise.
65257         * modules/sys_stat (sys/stat.h): Likewise.
65258         * modules/sysexits (sysexits.h): Likewise.
65259         * modules/unistd (unistd.h): Likewise.
65260
65261 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65262
65263         * modules/closein-tests (Makefile.am): Distribute
65264         `test-closein.sh'.
65265
65266 2007-05-17  Bruno Haible  <bruno@clisp.org>
65267
65268         * tests/test-printf-posix.output: Renamed from
65269         tests/test-fprintf-posix.out.
65270         * modules/fprintf-posix-tests: Update.
65271         * modules/printf-posix-tests: Update.
65272         * modules/vfprintf-posix-tests: Update.
65273         * modules/vprintf-posix-tests: Update.
65274         * tests/test-fprintf-posix.sh: Update.
65275         * tests/test-printf-posix.sh: Update.
65276         * tests/test-vfprintf-posix.sh: Update.
65277         * tests/test-vprintf-posix.sh: Update.
65278         Reported by Ralf Wildenhues.
65279
65280 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65281
65282         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65283         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65284         GCC 4.2, which otherwise issues a lot of warnings.
65285         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65286         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65287         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65288         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65289         it should no longer be needed.
65290         * lib/string_.h: Likewise.
65291         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65292         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65293         * modules/inttypes (inttypes.h): Likewise.
65294         * modules/math (math.h): Likewise.
65295         * modules/search (search.h): Likewise.
65296         * modules/signal (signal.h): Likewise.
65297         * modules/stdint (stdint.h): Likewise.
65298         * modules/stdio (stdio.h): Likewise.
65299         * modules/stdlib (stdlib.h): Likewise.
65300         * modules/string (string.h): Likewise.
65301         * modules/sys_time (sys/time.h): Likewise.
65302         * modules/time (time.h): Likewise.
65303         * modules/wchar (wchar.h): Likewise.
65304         * modules/wctype (wtype.h): Likewise.
65305
65306 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65307
65308         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65309
65310 2007-05-13  Bruno Haible  <bruno@clisp.org>
65311
65312         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65313         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65314         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65315         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65316         (gl_PREREQ_STRTOK_R): Don't require it here.
65317
65318 2007-05-13  Bruno Haible  <bruno@clisp.org>
65319
65320         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65321         when used in C++ mode.
65322
65323 2007-05-12  Bruno Haible  <bruno@clisp.org>
65324
65325         * lib/linebuffer.h: Tweak doc.
65326         * lib/linebuffer.c: Likewise.
65327
65328 2007-05-12  James Youngman  <jay@gnu.org>
65329
65330         * lib/linebuffer.c (readlinebuffer_delim): New function,
65331         like readlinebuffer, but use a caller-specified delimiter.
65332         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65333         as the delimiter.
65334         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65335
65336 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65337
65338         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65339         * modules/openat (Files): Remove openat-die.c.
65340         (Depends-on): Add openat-die.
65341         * modules/openat-die: New module.
65342
65343 2007-05-06  Bruno Haible  <bruno@clisp.org>
65344
65345         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65346         Update with info about Cygwin.
65347         * doc/functions/fprintf.texi: Update.
65348         * doc/functions/printf.texi: Update.
65349         * doc/functions/snprintf.texi: Update.
65350         * doc/functions/sprintf.texi: Update.
65351         * doc/functions/vfprintf.texi: Update.
65352         * doc/functions/vprintf.texi: Update.
65353         * doc/functions/vsnprintf.texi: Update.
65354         * doc/functions/vsprintf.texi: Update.
65355         Reported by Eric Blake.
65356
65357 2007-05-06  Bruno Haible  <bruno@clisp.org>
65358
65359         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65360         padding ourselves for the floating-point directives.
65361         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65363         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65364         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65365         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65366         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65368         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65372         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65373         * tests/test-snprintf-posix.h (test_function): Also check the width
65374         and some flags in the %f directive.
65375         * tests/test-sprintf-posix.h (test_function): Likewise.
65376         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65377         * tests/test-vasprintf-posix.c (test_function): Likewise.
65378         * doc/functions/fprintf.texi: Update.
65379         * doc/functions/printf.texi: Update.
65380         * doc/functions/snprintf.texi: Update.
65381         * doc/functions/sprintf.texi: Update.
65382         * doc/functions/vfprintf.texi: Update.
65383         * doc/functions/vprintf.texi: Update.
65384         * doc/functions/vsnprintf.texi: Update.
65385         * doc/functions/vsprintf.texi: Update.
65386
65387 2007-05-06  Bruno Haible  <bruno@clisp.org>
65388
65389         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65390         pass the ' flag character to sprintf or snprintf.
65391         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65394         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65395         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65397         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65398         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65399         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65400         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65401         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65402         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65403         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65404         flag.
65405         * tests/test-sprintf-posix.h (test_function): Likewise.
65406         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65407         * tests/test-vasprintf-posix.c (test_function): Likewise.
65408         * doc/functions/fprintf.texi: Update.
65409         * doc/functions/printf.texi: Update.
65410         * doc/functions/snprintf.texi: Update.
65411         * doc/functions/sprintf.texi: Update.
65412         * doc/functions/vfprintf.texi: Update.
65413         * doc/functions/vprintf.texi: Update.
65414         * doc/functions/vsnprintf.texi: Update.
65415         * doc/functions/vsprintf.texi: Update.
65416
65417 2007-05-01  Bruno Haible  <bruno@clisp.org>
65418
65419         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65420
65421 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65424         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65425
65426 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65429         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65430         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65431
65432 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65433
65434         * lib/argp-help.c (struct hol_entry): New member `ord'.
65435         (HOL_ENTRY_PTRCMP): Use ord for comparison
65436         (hol_sort): Initialize ord.
65437
65438 2007-05-01  Bruno Haible  <bruno@clisp.org>
65439
65440         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65441         Reported by Eric Blake.
65442         * doc/gnulib.texi (Function Substitutes): Update.
65443
65444 2007-05-01  Bruno Haible  <bruno@clisp.org>
65445
65446         * doc/functions.texi: Remove file, now redundant through
65447         doc/functions/*.texi.
65448
65449 2007-05-01  Bruno Haible  <bruno@clisp.org>
65450
65451         * modules/argp (Depends-on): Add sleep.
65452
65453 2007-05-01  Bruno Haible  <bruno@clisp.org>
65454
65455         * modules/sleep-tests: New file.
65456         * tests/test-sleep.c: New file.
65457
65458         * modules/sleep: New file.
65459         * lib/sleep.c: New file.
65460         * m4/sleep.m4: New file.
65461         * lib/unistd_.h (sleep): New declaration.
65462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65463         HAVE_SLEEP.
65464         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65465         * doc/functions/sleep.texi: Document the sleep module.
65466
65467 2007-05-01  Bruno Haible  <bruno@clisp.org>
65468
65469         * lib/sigprocmask.h: Remove file.
65470         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65471         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65472         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65473         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65474         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65475         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65476         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65477         HAVE_SIGSET_T as a shell variable.
65478         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65479         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65480         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65481         (Depends-on): Add signal. Remove verify.
65482         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65483         (Include): Mention <signal.h> instead of sigprocmask.h.
65484         * NEWS: Mention the change.
65485         * lib/fatal-signal.c: Don't include sigprocmask.h.
65486
65487 2007-05-01  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/signal: New file.
65490         * lib/signal_.h: New file.
65491         * m4/signal_h.m4: New file.
65492
65493 2007-05-01  Bruno Haible  <bruno@clisp.org>
65494
65495         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65496         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65497         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65498         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65499
65500 2007-05-01  Bruno Haible  <bruno@clisp.org>
65501
65502         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65503         configure time.
65504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65505         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65506         * modules/sys_stat (Makefile.am): Substitute their values into
65507         sys/stat.h.
65508
65509 2007-05-01  Bruno Haible  <bruno@clisp.org>
65510
65511         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65512         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65513         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65514
65515 2007-05-01  Bruno Haible  <bruno@clisp.org>
65516
65517         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65518         'assert' module here.
65519
65520 2007-05-01  Bruno Haible  <bruno@clisp.org>
65521
65522         * doc/functions/*.texi: New files.
65523         * doc/functions/google-ranking.txt: New file.
65524         * doc/gnulib.texi (Function Substitutes): New chapter.
65525         (ctime, inet_ntoa): Remove sections.
65526         * doc/ctime.texi: Remove file.
65527         * doc/inet_ntoa.texi: Remove file.
65528         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65529         dependencies.
65530         (%.info): New rule, specifying a --reference-limit.
65531
65532 2007-05-01  Bruno Haible  <bruno@clisp.org>
65533
65534         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65535
65536 2007-05-01  Bruno Haible  <bruno@clisp.org>
65537
65538         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65539         the portability of 'mkdir' to mingw systems.
65540
65541 2007-05-01  Bruno Haible  <bruno@clisp.org>
65542
65543         * doc/headers/google-ranking.txt: New file.
65544
65545 2007-04-30  Eric Blake  <ebb9@byu.net>
65546
65547         Prefer fseeko to fseek.
65548         * modules/getpass (Depends-on): Add fseeko.
65549         * lib/getpass.c (getpass): Use fseeko, not fseek.
65550
65551 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65552
65553         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65554         assumes the sorting is stable, while most qsort implementations
65555         are not.  Use argument addresses to ensure they never compare as
65556         equal.
65557
65558         * tests/test-argp-2.sh (usage-indent test): Fix output
65559         (func_compare): Restore diff options
65560         * tests/test-argp.c: Restore #include "progname.h"
65561
65562 2007-04-29  Bruno Haible  <bruno@clisp.org>
65563
65564         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65565         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65566         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65568         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65569         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65570         (TESTS, check_PROGRAMS): Add test-snprintf.
65571         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65572         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65573         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65574         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65575         assertions that fail on HP-UX, OSF/1, or IRIX.
65576         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65577
65578 2007-04-29  Bruno Haible  <bruno@clisp.org>
65579
65580         * MODULES.html.sh (posix_functions): Remove 'contents'.
65581
65582 2007-04-29  Karl Berry  <karl@gnu.org>
65583
65584         * config/srclist.txt (gendocs_template_min): new entry.
65585
65586 2007-04-29  Bruno Haible  <bruno@clisp.org>
65587
65588         Work around fpurge bug on BSD systems.
65589         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65590         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65591         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65592         fpurge to rpl_fpurge if the system already has this function.
65593         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65594         the case where the system already has this function. Correct invariants
65595         on BSD systems.
65596         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65597         BSD systems.
65598
65599 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65600
65601         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65602         proposed by Sven Verdoolaege.
65603
65604         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65605         options.
65606         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65607         (usage and help tests): Update
65608
65609 2007-04-29  Bruno Haible  <bruno@clisp.org>
65610
65611         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65612         Print more information in case of failure. Disable a test on BeOS.
65613
65614 2007-04-29  Bruno Haible  <bruno@clisp.org>
65615
65616         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65617         This helps debugging on systems on which no gdb is available.
65618
65619 2007-04-29  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/freading.h: Improve comments.
65622         * lib/fwriting.h: Likewise.
65623         * tests/test-freading.c (main): Don't check freading immediately after
65624         repositioning. Needed for glibc.
65625
65626 2007-04-29  Bruno Haible  <bruno@clisp.org>
65627
65628         * lib/freading.c (freading): Trivial simplification.
65629
65630 2007-04-28  Bruno Haible  <bruno@clisp.org>
65631
65632         * tests/test-fwriting.c (main): Also test the interaction between
65633         fflush and fwriting.
65634         * modules/fwriting-tests (Depends-on): Add fflush.
65635
65636         * tests/test-freading.c (main): Also test the interaction between
65637         fflush and freading.
65638         * modules/freading-tests (Depends-on): Add fflush.
65639
65640 2007-04-28  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65643         fseeko and ftello.
65644         Suggested by Eric Blake.
65645
65646 2007-04-28  Jim Meyering  <jim@meyering.net>
65647
65648         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65649         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65650         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65651
65652 2007-04-27  Eric Blake  <ebb9@byu.net>
65653
65654         * doc/headers/assert.texi (assert.h): Document assert module use.
65655
65656 2007-04-27  Bruno Haible  <bruno@clisp.org>
65657
65658         * doc/headers/*.texi: New files.
65659         * doc/gnulib.texi (Header File Substitutes): New chapter.
65660         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65661         dependencies.
65662         (standards.info ,standards.html, standards.dvi): Update dependencies.
65663         (mostlyclean, clean): New targets.
65664
65665 2007-04-27  Bruno Haible  <bruno@clisp.org>
65666
65667         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65668         * modules/sysexits (Files, Makefile.am): Update.
65669
65670         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65671         * modules/sys_socket (Files, Makefile.am): Update.
65672
65673         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65674         * modules/sys_stat (Files, Makefile.am): Update.
65675
65676 2007-04-27  Eric Blake  <ebb9@byu.net>
65677
65678         * lib/freading.h: Improve comments.
65679         * lib/fwriting.h: Likewise.
65680         * lib/fflush.c: Likewise.
65681
65682         Fix closein for mingw.
65683         * modules/closein-tests: Add tests for closein.
65684         * tests/test-closein.c: New file.
65685         * tests/test-closein.sh: Likewise.
65686         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65687         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65688
65689 2007-04-27  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65692         version is < 6.
65693         * lib/math_.h [__DECC]: Likewise.
65694         * lib/stdio_.h [__DECC]: Likewise.
65695         * lib/stdlib_.h [__DECC]: Likewise.
65696         * lib/string_.h [__DECC]: Likewise.
65697         * lib/time_.h [__DECC]: Likewise.
65698         * lib/wchar_.h [__DECC]: Likewise.
65699         * lib/wctype_.h [__DECC]: Likewise.
65700
65701 2007-04-27  Bruno Haible  <bruno@clisp.org>
65702
65703         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65704
65705 2007-04-27  Bruno Haible  <bruno@clisp.org>
65706
65707         * lib/fflush.c: Add comments.
65708         * modules/fpurge-tests (Depends-on): Add fflush.
65709         * modules/freadable-tests (Depends-on): Likewise.
65710         * modules/fwritable-tests (Depends-on): Likewise.
65711
65712 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65713
65714         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65715         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65716         Report by Bruno Haible <bruno@clisp.org>.
65717
65718 2007-04-26  Eric Blake  <ebb9@byu.net>
65719
65720         Fix fflush on mingw.
65721         * modules/fflush (Depends-on): Add freading.
65722         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65723         but unread data.
65724
65725 2007-04-26  Eric Blake  <ebb9@byu.net>
65726         and Bruno Haible  <bruno@clisp.org>
65727
65728         Implement freading and fwriting.
65729         * lib/freading.c: New file.
65730         * lib/freading.h: Likewise.
65731         * m4/freading.m4: Likewise.
65732         * modules/freading: Likewise.
65733         * modules/freading-tests: Likewise.
65734         * tests/test-freading.c: Likewise.
65735         * lib/fwriting.c: New file.
65736         * lib/fwriting.h: Likewise.
65737         * m4/fwriting.m4: Likewise.
65738         * modules/fwriting: Likewise.
65739         * modules/fwriting-tests: Likewise.
65740         * tests/test-fwriting.c: Likewise.
65741         * MODULES.html.sh (File stream based Input/Output): Mention them.
65742
65743 2007-04-26  Bruno Haible  <bruno@clisp.org>
65744
65745         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65746         'long' when we assume it.
65747         Suggested by Eric Blake.
65748
65749 2007-04-26  Bruno Haible  <bruno@clisp.org>
65750
65751         Ensure fseeko, ftello are declared on glibc systems.
65752         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65753         * modules/fseeko (configure.ac-early): Likewise.
65754         * modules/ftello (configure.ac-early): Likewise.
65755         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65756         AC_FUNC_FSEEKO for this.
65757         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65758         (gl_CHECK_FSEEKO): Remove macro.
65759
65760 2007-04-26  Bruno Haible  <bruno@clisp.org>
65761
65762         * tests/test-fflush.c (main): Also check the ftell result after
65763         fflush and fseek/fseeko.
65764         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65765         file descriptor position cache in the stream.
65766         * lib/fseeko.c (rpl_fseeko): Likewise.
65767
65768 2007-04-26  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/fflush-tests (Depends-on): Add fseeko.
65771
65772 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65773             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65774
65775         * lib/argz_.h: ensure error_t definition is obtained in same
65776         mechanism system argz.h would have.
65777         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65778         argz facilities are known bad.  Err on the side of caution if
65779         cross-compiling.
65780
65781 2007-04-25  Eric Blake  <ebb9@byu.net>
65782
65783         * lib/fpurge.c (includes): Use stdlib.h for free.
65784         * tests/test-fflush.c (main): Also test fflush-fseeko.
65785
65786 2007-04-25  Bruno Haible  <bruno@clisp.org>
65787
65788         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65789         * lib/fseeko.c: New file.
65790         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65791         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65792         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65793         gl_FUNC_FSEEKO.
65794         (gl_FUNC_FSEEKO): Invoke it.
65795         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65796         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65797         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65798
65799 2007-04-25  Bruno Haible  <bruno@clisp.org>
65800
65801         * modules/fflush (Depends-on): Add ftello.
65802
65803 2007-04-25  Bruno Haible  <bruno@clisp.org>
65804
65805         * modules/ftello-tests: New file.
65806         * tests/test-ftello.c: New file.
65807
65808         * modules/ftello: New file.
65809         * m4/ftello.m4: New file.
65810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65811         HAVE_FTELLO.
65812         * lib/stdio_.h (ftello): New declaration.
65813         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65814         HAVE_FTELLO.
65815
65816 2007-04-25  Bruno Haible  <bruno@clisp.org>
65817
65818         * modules/fseeko-tests: New file.
65819         * tests/test-fseeko.c: New file.
65820
65821         * modules/fseeko: New file.
65822         * m4/fseeko.m4: New file.
65823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65824         HAVE_FSEEKO.
65825         * lib/stdio_.h (fseeko): New declaration.
65826         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65827         HAVE_FSEEKO.
65828
65829 2007-04-25  Bruno Haible  <bruno@clisp.org>
65830
65831         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65832
65833 2007-04-25  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65836         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65837         * tests/test-unistd.c: Likewise.
65838         * tests/test-fcntl.c: Likewise.
65839
65840 2007-04-23  Eric Blake  <ebb9@byu.net>
65841
65842         * lib/fflush.c: Fix missing include.
65843         Reported by Bruno Haible.
65844
65845 2007-04-23  Bruno Haible  <bruno@clisp.org>
65846
65847         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65848         Reported by Eric Blake.
65849
65850 2007-04-23  Bruno Haible  <bruno@clisp.org>
65851
65852         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65853
65854 2007-04-23  Bruno Haible  <bruno@clisp.org>
65855
65856         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65857
65858 2007-04-23  Bruno Haible  <bruno@clisp.org>
65859
65860         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65861         Needed on HP-UX 11.
65862
65863 2007-04-16  Eric Blake  <ebb9@byu.net>
65864
65865         Make fflush rely on fpurge.
65866         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65867         open coding all variants.
65868         * modules/fflush (Depends-on): Add fpurge and unistd.
65869         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65870         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65871
65872         Fix --with-tests compilation on cygwin.
65873         * modules/argmatch-tests (Makefile.am): List gnulib library first
65874         in LDADD.
65875         * modules/argp-tests (Makefile.am): Likewise.
65876         * modules/array-list-tests (Makefile.am): Likewise.
65877         * modules/array-oset-tests (Makefile.am): Likewise.
65878         * modules/avltree-list-tests (Makefile.am): Likewise.
65879         * modules/avltree-oset-tests (Makefile.am): Likewise.
65880         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65881         * modules/carray-list-tests (Makefile.am): Likewise.
65882         * modules/dirname-tests (Makefile.am): Likewise.
65883         * modules/frexp-tests (Makefile.am): Likewise.
65884         * modules/isnanl-tests (Makefile.am): Likewise.
65885         * modules/linked-list-tests (Makefile.am): Likewise.
65886         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65887         * modules/lock-tests (Makefile.am): Likewise.
65888         * modules/rbtree-list-tests (Makefile.am): Likewise.
65889         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65890         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65891         * modules/tls-tests (Makefile.am): Likewise.
65892         * modules/tsearch-tests (Makefile.am): Likewise.
65893         * modules/xvasprintf-tests (Makefile.am): Likewise.
65894
65895         Fix fpurge for cygwin.
65896         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65897         value.
65898         * modules/fpurge-tests (Depends-on): Clean up trash.
65899
65900 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65901
65902         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65903
65904         * m4/autobuild.m4: Re-indent.
65905
65906 2007-04-13  Bruno Haible  <bruno@clisp.org>
65907
65908         * modules/fpurge-tests: New file.
65909         * tests/test-fpurge.c: New file.
65910
65911         * modules/fpurge: New file.
65912         * lib/fpurge.h: New file.
65913         * lib/fpurge.c: New file.
65914         * m4/fpurge.m4: New file.
65915
65916 2007-04-13  Bruno Haible  <bruno@clisp.org>
65917
65918         * modules/fbufmode-tests: New file.
65919         * tests/test-fbufmode.c: New file.
65920
65921         * modules/fbufmode: New file.
65922         * lib/fbufmode.h: New file.
65923         * lib/fbufmode.c: New file.
65924         * m4/fbufmode.m4: New file.
65925
65926 2007-04-13  Bruno Haible  <bruno@clisp.org>
65927
65928         * modules/fwritable-tests: New file.
65929         * tests/test-fwritable.c: New file.
65930
65931         * modules/fwritable: New file.
65932         * lib/fwritable.h: New file.
65933         * lib/fwritable.c: New file.
65934         * m4/fwritable.m4: New file.
65935
65936 2007-04-13  Bruno Haible  <bruno@clisp.org>
65937
65938         * modules/freadable-tests: New file.
65939         * tests/test-freadable.c: New file.
65940
65941         * modules/freadable: New file.
65942         * lib/freadable.h: New file.
65943         * lib/freadable.c: New file.
65944         * m4/freadable.m4: New file.
65945
65946 2007-04-13  Bruno Haible  <bruno@clisp.org>
65947
65948         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65949         MOSTLYCLEANFILES.
65950
65951 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65952
65953         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65954         gzip bootstrap.conf to avoid dragging in i18n machinery.
65955         (gnulib_tool_option): Use it.
65956
65957 2007-04-13  Bruno Haible  <bruno@clisp.org>
65958
65959         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65960         %F directives.
65961         * tests/test-vasprintf-posix.c (test_function): Likewise.
65962         * tests/test-snprintf-posix.h (test_function): Likewise.
65963         * tests/test-sprintf-posix.h (test_function): Likewise.
65964         * tests/test-fprintf-posix.h (test_function): Likewise.
65965         * tests/test-printf-posix.h (test_function): Likewise.
65966         * tests/test-fprintf-posix.out: Likewise.
65967
65968 2007-04-13  Bruno Haible  <bruno@clisp.org>
65969
65970         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65971         * modules/tls-tests (configure.ac): Likewise.
65972         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65973
65974 2007-04-13  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/tls.c (glthread_tls_get): Fix return type.
65977         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65978
65979 2007-04-12  Eric Blake  <ebb9@byu.net>
65980
65981         * modules/gettime (Depends-on): Remove gettime.
65982         Reported by Dmitry V. Levin.
65983
65984 2007-04-12  Bruno Haible  <bruno@clisp.org>
65985
65986         * modules/fflush (Include): Mention <stdio.h>.
65987         * modules/strtoimax (Include): Mention <inttypes.h>.
65988         * modules/strtoumax (Include): Likewise.
65989
65990 2007-04-12  Eric Blake  <ebb9@byu.net>
65991
65992         * .cvsignore: New file.
65993         * .gitignore: Likewise.
65994
65995 2007-04-12  Bruno Haible  <bruno@clisp.org>
65996
65997         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65998         not before, since $(LDADD) often contains libgnu.a.
65999         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66000         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66001         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66002         Needed on Cygwin.
66003
66004 2007-04-12  Eric Blake  <ebb9@byu.net>
66005
66006         Work around glibc's failure to flush stdin on fclose.
66007         * lib/closein.c (close_stdin): Flush stdin before closing.
66008
66009         Work around glibc's failure to reset seekable stdin on exit.
66010         * modules/closein: New module.
66011         * lib/closein.c: New file.
66012         * lib/closein.h: Likewise.
66013         * m4/closein.m4: Likewise.
66014         * MODULES.html.sh (File stream based Input/Output): Document it.
66015
66016 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66017
66018         * gnulib-tool: Rename generated 'autobuild' script to
66019         'do-autobuild' in --create-megatestdir output.
66020
66021         * doc/gnulib.texi (Build robot for gnulib): Fix.
66022
66023 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66024
66025         * modules/sysexits (Depends-on): Add absolute-header.
66026
66027 2007-04-12  Eric Blake  <ebb9@byu.net>
66028
66029         No need to preserve errno on success.
66030         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66031         Reported by Bruno Haible.
66032
66033 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66034
66035         * MODULES.html.sh (Support for maintaining and releasing
66036         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66037
66038 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66039
66040         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66041
66042 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66043
66044         * modules/autobuild: New module.
66045
66046         * m4/autobuild.m4: New file.
66047
66048 2007-04-11  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66051         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66052         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66055         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66056         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66058         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66059         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66061         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66062         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66063         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66064         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66065         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66066         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66067         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66068         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66070         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66071         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66072         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66073         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66074         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66075         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66076         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66077         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66078         Reported by Eric Blake.
66079
66080 2007-04-11  Bruno Haible  <bruno@clisp.org>
66081
66082         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66083
66084 2007-04-10  Bruno Haible  <bruno@clisp.org>
66085
66086         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66087         for NaN and Infinity. Needed on FreeBSD 6.1.
66088         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66089         regarding results for "%010a" of Infinity and NaN.
66090         * tests/test-vasprintf-posix.c (test_function): Likewise.
66091         * tests/test-snprintf-posix.h (test_function): Likewise.
66092         * tests/test-sprintf-posix.h (test_function): Likewise.
66093         * tests/test-fprintf-posix.h (test_function): Likewise.
66094         * tests/test-printf-posix.h (test_function): Likewise.
66095         * tests/test-fprintf-posix.out: Likewise.
66096
66097 2007-04-10  Bruno Haible  <bruno@clisp.org>
66098
66099         * modules/locale-tests: New file.
66100         * tests/test-locale.c: New file.
66101
66102         * modules/locale: New file.
66103         * lib/locale_.h: New file.
66104         * m4/locale_h.m4: New file.
66105
66106 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66107             Bruno Haible  <bruno@clisp.org>
66108
66109         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66110         be determined, test for availability of the copysignf, copysign,
66111         copysignl functions.
66112         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66113         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66114         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66115
66116 2007-04-09  Eric Blake  <ebb9@byu.net>
66117
66118         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66119         * modules/stdio (Makefile.am): Support fflush.
66120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66121         * modules/fflush: New file.
66122         * lib/fflush.c: Likewise.
66123         * m4/fflush.m4: Likewise.
66124         * modules/fflush-tests: New test.
66125         * tests/test-fflush.c: Likewise.
66126         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66127
66128 2007-04-06  Bruno Haible  <bruno@clisp.org>
66129
66130         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66131         (VASNPRINTF): Use signbit for faster determination whether to print a
66132         minus sign.
66133         * modules/vasnprintf (Files): Remove lib/float+.h.
66134         * modules/fprintf-posix (Depends-on): Add signbit.
66135         * modules/snprintf-posix (Depends-on): Likewise.
66136         * modules/sprintf-posix (Depends-on): Likewise.
66137         * modules/vasnprintf-posix (Depends-on): Likewise.
66138         * modules/vasprintf-posix (Depends-on): Likewise.
66139         * modules/vfprintf-posix (Depends-on): Likewise.
66140         * modules/vsnprintf-posix (Depends-on): Likewise.
66141         * modules/vsprintf-posix (Depends-on): Likewise.
66142
66143 2007-04-06  Bruno Haible  <bruno@clisp.org>
66144
66145         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66146         * tests/test-frexpl.c (main): Likewise.
66147         * tests/test-ldexpl.c (main): Likewise.
66148         * modules/frexp-tests (Depends-on): Add signbit.
66149         * modules/frexpl-tests (Depdends-on): Likewise.
66150         * modules/ldexpl-tests (Depdends-on): Likewise.
66151
66152 2007-04-06  Bruno Haible  <bruno@clisp.org>
66153
66154         * modules/signbit-tests: New file.
66155         * tests/test-signbit.c: New file.
66156
66157         * modules/signbit: New file.
66158         * lib/signbitf.c: New file.
66159         * lib/signbitd.c: New file.
66160         * lib/signbitl.c: New file.
66161         * m4/signbit.m4: New file.
66162         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66163         (signbit): New macro.
66164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66165         REPLACE_SIGNBIT.
66166         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66167         REPLACE_FREXPL into math.h.
66168
66169 2007-04-06  Bruno Haible  <bruno@clisp.org>
66170
66171         * modules/isnanf-nolibm-tests: New file.
66172         * tests/test-isnanf.c: New file.
66173
66174         * modules/isnanf-nolibm: New file.
66175         * lib/isnanf.h: New file.
66176         * lib/isnanf.c: New file.
66177         * lib/isnan.c: Consider the USE_FLOAT macro.
66178         * m4/isnanf.m4: New file.
66179
66180 2007-04-06  Bruno Haible  <bruno@clisp.org>
66181
66182         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66183         (Link): New section.
66184
66185         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66186
66187 2007-04-06  Bruno Haible  <bruno@clisp.org>
66188
66189         Assume the 'long double' type.
66190         * m4/longdouble.m4: Remove file.
66191         * config/srclist.txt: Don't mention longdouble.m4.
66192         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66193         * lib/float+.h: Likewise.
66194         * lib/frexp.c: Likewise.
66195         * lib/printf-args.h: Likewise.
66196         * lib/printf-args.c: Likewise.
66197         * lib/printf-frexp.c: Likewise.
66198         * lib/printf-parse.c: Likewise.
66199         * lib/vasnprintf.c: Likewise.
66200         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66201         * m4/intl.m4: Likewise.
66202         * m4/isnanl.m4: Likewise.
66203         * m4/printf.m4: Likewise.
66204         * m4/printf-frexpl.m4: Likewise.
66205         * m4/vasnprintf.m4: Likewise.
66206         * modules/allocsa (Files): Remove m4/longdouble.m4.
66207         * modules/gettext (Files): Likewise.
66208         * modules/relocatable-prog-wrapper (Files): Likewise.
66209         * modules/vasnprintf (Files): Likewise.
66210         * modules/isnanl (Files): Likewise.
66211         (Include): Simplify.
66212         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66213         (Include): Simplify.
66214         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66215         (Include): Simplify.
66216         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66217         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66218         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66219         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66220         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66221         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66222         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66223         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66224         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66225         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66226         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66227         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66228         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66229         * tests/test-isnanl.c: Likewise.
66230         * tests/test-snprintf-posix.h: Likewise.
66231         * tests/test-sprintf-posix.h: Likewise.
66232         * tests/test-vasnprintf-posix.c: Likewise.
66233         * tests/test-vasnprintf-posix2.c: Likewise.
66234         * tests/test-vasprintf-posix.c: Likewise.
66235
66236 2007-04-06  Bruno Haible  <bruno@clisp.org>
66237
66238         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66239         * lib/math_.h [__DECC]: Include the overridden include file through
66240         #include_next, outside the double-inclusion guard.
66241         * lib/stdio_.h [__DECC]: Likewise.
66242         * lib/stdlib_.h [__DECC]: Likewise.
66243         * lib/string_.h [__DECC]: Likewise.
66244         * lib/time_.h [__DECC]: Likewise.
66245         * lib/wchar_.h [__DECC]: Likewise.
66246         * lib/wctype_.h [__DECC]: Likewise.
66247         * lib/inttypes_.h [__DECC]: Likewise.
66248         Reported by Albert Chin <china@thewrittenword.com> in
66249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66250
66251 2007-04-04  Eric Blake  <ebb9@byu.net>
66252
66253         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66254         1.5.x.
66255
66256 2007-04-04  Bruno Haible  <bruno@clisp.org>
66257
66258         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66259         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66260
66261 2007-04-04  Bruno Haible  <bruno@clisp.org>
66262
66263         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66264         results for "%010a" of Infinity and NaN.
66265         * tests/test-vasprintf-posix.c (test_function): Likewise.
66266         * tests/test-snprintf-posix.h (test_function): Likewise.
66267         * tests/test-sprintf-posix.h (test_function): Likewise.
66268         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66269         * tests/test-printf-posix.h (test_function): Likewise.
66270         * tests/test-fprintf-posix.out: Update.
66271         Needed for FreeBSD 6.1.
66272
66273 2007-04-04  Bruno Haible  <bruno@clisp.org>
66274
66275         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66276         directly used by the gnulib modules nor by gnulib-tool.
66277
66278 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         * DEPENDENCIES: Give overall description of version dependency
66281         desirability.  Use more-typical names for apps.
66282         Add shell, coreutils, diffutils, grep, tar, gzip.
66283
66284 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66285
66286         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66287
66288 2007-04-04  Karl Berry  <karl@gnu.org>
66289
66290         * MODULES.html.sh (func_module): missing '.
66291
66292 2007-04-03  Bruno Haible  <bruno@clisp.org>
66293
66294         * modules/argmatch-tests (Makefile.am): New variable
66295         test_argmatch_LDADD.
66296         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66297         * modules/array-list-tests (Makefile.am): New variable
66298         test_array_list_LDADD.
66299         * modules/array-oset-tests (Makefile.am): New variable
66300         test_array_oset_LDADD.
66301         * modules/avltree-list-tests (Makefile.am): New variable
66302         test_avltree_list_LDADD.
66303         * modules/avltree-oset-tests (Makefile.am): New variable
66304         test_avltree_oset_LDADD.
66305         * modules/avltreehash-list-tests (Makefile.am): New variable
66306         test_avltreehash_list_LDADD.
66307         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66308         test_canonicalize_lgpl_LDADD.
66309         * modules/carray-list-tests (Makefile.am): New variable
66310         test_carray_list_LDADD.
66311         * modules/dirname-tests (Makefile.am): New variable
66312         test_dirname_LDADD.
66313         * modules/linked-list-tests (Makefile.am): New variable
66314         test_linked_list_LDADD.
66315         * modules/linkedhash-list-tests (Makefile.am): New variable
66316         test_linkedhash_list_LDADD.
66317         * modules/rbtree-list-tests (Makefile.am): New variable
66318         test_rbtree_list_LDADD.
66319         * modules/rbtree-oset-tests (Makefile.am): New variable
66320         test_rbtree_oset_LDADD.
66321         * modules/rbtreehash-list-tests (Makefile.am): New variable
66322         test_rbtreehash_list_LDADD.
66323         * modules/xvasprintf-tests (Makefile.am): New variable
66324         test_xvasprintf_LDADD.
66325         Reported by Eric Blake.
66326
66327 2007-04-03  Eric Blake  <ebb9@byu.net>
66328
66329         * DEPENDENCIES: Weaken m4 requirements.
66330
66331 2007-04-03  Bruno Haible  <bruno@clisp.org>
66332
66333         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66334         * modules/isnanl-tests (configure.ac): Likewise.
66335
66336 2007-04-03  Ben Pfaff  <blp@gnu.org>
66337
66338         * modules/iconv_open: Add $(srcdir)/ to source directory
66339         references in Makefile fragments that call gperf, to fix VPATH
66340         builds.
66341
66342 2007-04-03  Bruno Haible  <bruno@clisp.org>
66343
66344         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66345         * lib/ldexpl.c: Undo last change.
66346
66347 2007-04-03  Bruno Haible  <bruno@clisp.org>
66348
66349         * modules/printf-frexpl (Depends-on): Undo last change.
66350         (Files): Add m4/ldexpl.m4.
66351
66352 2007-04-03  Bruno Haible  <bruno@clisp.org>
66353
66354         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66355         * modules/isnanl (Link): New section.
66356
66357         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66358         * modules/frexp (Link): New section.
66359
66360         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66361         * modules/frexpl (Link): New section.
66362
66363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66364         * modules/ldexpl (Link): New section.
66365
66366 2007-04-03  Bruno Haible  <bruno@clisp.org>
66367
66368         * modules/TEMPLATE-EXTENDED: New file.
66369         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66370
66371 2007-04-03  Bruno Haible  <bruno@clisp.org>
66372
66373         * DEPENDENCIES: New file.
66374         Suggested by Simon Josefsson.
66375
66376 2007-04-03  Bruno Haible  <bruno@clisp.org>
66377
66378         * doc/gnulib.texi: Escape @.
66379
66380 2007-04-03  James Youngman  <jay@gnu.org>
66381         and Paul Eggert  <eggert@cs.ucla.edu>
66382
66383         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66384         birthtime on all systems that have birthtime, not just those which
66385         use st_birthtimensec rather than st_birthtim.  Putting zero in
66386         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66387         that the birth time is not available for files on an NFS mount.
66388
66389 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66390
66391         * modules/memxor: Move back from crypto/, suggested by Bruno.
66392         * modules/crypto/hmac-sha1: Fix memxor dependency.
66393
66394         * modules/crypto/gc: Moved from ../.
66395
66396 2007-04-02  Eric Blake  <ebb9@byu.net>
66397
66398         * lib/ldexpl.c (includes): Avoid libm.
66399
66400         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66401
66402 2007-04-02  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66405         on IRIX.
66406
66407 2007-04-02  Bruno Haible  <bruno@clisp.org>
66408
66409         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66410         x86 or x86_64 platforms running MacOS X.
66411         Reported by Ryan Schmidt <@ryandesign.com>.
66412
66413 2007-04-02  Bruno Haible  <bruno@clisp.org>
66414
66415         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66416         i386.
66417
66418 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66419
66420         * modules/crypto/arcfour: Moved from ../.
66421         * modules/crypto/arcfour-tests: Moved from ../.
66422         * modules/crypto/arctwo: Moved from ../.
66423         * modules/crypto/arctwo-tests: Moved from ../.
66424         * modules/crypto/des: Moved from ../.
66425         * modules/crypto/des-tests: Moved from ../.
66426         * modules/crypto/gc-arcfour: Moved from ../.
66427         * modules/crypto/gc-arcfour-tests: Moved from ../.
66428         * modules/crypto/gc-arctwo: Moved from ../.
66429         * modules/crypto/gc-arctwo-tests: Moved from ../.
66430         * modules/crypto/gc-des: Moved from ../.
66431         * modules/crypto/gc-des-tests: Moved from ../.
66432         * modules/crypto/gc-hmac-md5: Moved from ../.
66433         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66434         * modules/crypto/gc-hmac-sha1: Moved from ../.
66435         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66436         * modules/crypto/gc-md2: Moved from ../.
66437         * modules/crypto/gc-md2-tests: Moved from ../.
66438         * modules/crypto/gc-md4: Moved from ../.
66439         * modules/crypto/gc-md4-tests: Moved from ../.
66440         * modules/crypto/gc-md5: Moved from ../.
66441         * modules/crypto/gc-md5-tests: Moved from ../.
66442         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66443         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66444         * modules/crypto/gc-random: Moved from ../.
66445         * modules/crypto/gc-rijndael: Moved from ../.
66446         * modules/crypto/gc-rijndael-tests: Moved from ../.
66447         * modules/crypto/gc-sha1: Moved from ../.
66448         * modules/crypto/gc-sha1-tests: Moved from ../.
66449         * modules/crypto/gc-tests: Moved from ../.
66450         * modules/crypto/hmac-md5: Moved from ../.
66451         * modules/crypto/hmac-md5-tests: Moved from ../.
66452         * modules/crypto/hmac-sha1: Moved from ../.
66453         * modules/crypto/hmac-sha1-tests: Moved from ../.
66454         * modules/crypto/md2: Moved from ../.
66455         * modules/crypto/md2-tests: Moved from ../.
66456         * modules/crypto/md4: Moved from ../.
66457         * modules/crypto/md4-tests: Moved from ../.
66458         * modules/crypto/md5: Moved from ../.
66459         * modules/crypto/md5-tests: Moved from ../.
66460         * modules/crypto/memxor: Moved from ../.
66461         * modules/crypto/rijndael: Moved from ../.
66462         * modules/crypto/rijndael-tests: Moved from ../.
66463         * modules/crypto/sha1: Moved from ../.
66464
66465 2007-03-30  James Youngman  <jay@gnu.org>
66466
66467         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66468         rename() to change the ctime of a file (because ctime is unaffected
66469         by rename on jfs2 on AIX 5.1).
66470         (main): Start by doing cleanup, in case a previous run failed leaving
66471         test files behind.
66472
66473 2007-03-31  Bruno Haible  <bruno@clisp.org>
66474
66475         Support old proprietary implementations of iconv.
66476         * modules/iconv_open: New file.
66477         * lib/iconv_.h: New file.
66478         * m4/iconv_h.m4: New file.
66479         * lib/iconv_open.c: New file.
66480         * lib/iconv_open-aix.gperf: New file.
66481         * lib/iconv_open-hpux.gperf: New file.
66482         * lib/iconv_open-irix.gperf: New file.
66483         * lib/iconv_open-osf.gperf: New file.
66484         * m4/iconv_open.m4: New file.
66485         * modules/linebreak (Depends-on): Add iconv_open.
66486         * modules/striconv (Depends-on): Likewise.
66487         * modules/striconveh (Depends-on): Likewise.
66488         * modules/unicodeio (Depends-on): Likewise.
66489         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66490         (iconv_t)(-1).
66491         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66492         conversion if cd is (iconv_t)(-1).
66493         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66494         is not possible.
66495
66496 2007-03-31  Bruno Haible  <bruno@clisp.org>
66497
66498         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66499         work on Solaris either. Protect also second use of "autodetect_jp".
66500
66501 2007-03-31  Bruno Haible  <bruno@clisp.org>
66502
66503         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66504         the function is not present.
66505
66506 2007-03-31  Bruno Haible  <bruno@clisp.org>
66507
66508         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66509         the function is not present.
66510
66511 2007-03-31  Bruno Haible  <bruno@clisp.org>
66512
66513         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66514         a bug in HP-UX iconv_open().
66515
66516 2007-03-31  Bruno Haible  <bruno@clisp.org>
66517
66518         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66519         (Mathematics <math.h>): New section, add fpieee.
66520         (Input/output <stdio.h>): Add fseterr.
66521         (Mathematics <math.h>): New section, add printf-frexp.
66522         (Container data structures): Add sublist.
66523         (Core language properties): Add fpucw, inline.
66524         (Functions for greatest-width integer types <inttypes.h>): Add
66525         imaxabs, imaxdiv, inttypes.
66526         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66527         isnanl-nolibm, ldexp.
66528         (Mathematics <math.h>): New section, add printf-frexpl.
66529         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66530         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66531         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66532         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66533         (Unicode string functions): Add unistr/u*-mbtoucr.
66534         (Java): Add javacomp-script, javaexec-script.
66535         (C#): Add csharpcomp-script, csharpexec-script.
66536         (Support for building libraries and executables): Add havelib,
66537         relocatable-*.
66538         (Support for maintaining and releasing projects): Renamed from
66539         'Support for maintaining and release projects'. Add announce-gen.
66540
66541 2007-03-31  Bruno Haible  <bruno@clisp.org>
66542
66543         * README: Talk primarily about git.
66544         (git and CVS): Renamed from CVS.
66545         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66546         gnulib is available through git.
66547         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66548
66549 2007-03-30  Bruno Haible  <bruno@clisp.org>
66550
66551         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66552         * lib/poll_.h: Likewise.
66553         * lib/stat_.h: Likewise.
66554         * lib/sys_time_.h: Likewise.
66555         * lib/sysexit_.h: Likewise.
66556         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66557         * lib/stdbool_.h: Likewise.
66558         * lib/byteswap_.h: Add double-inclusion guard.
66559
66560 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66561
66562         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66563
66564 2007-03-30  Karl Berry  <karl@gnu.org>
66565
66566         * config/srclist-update: double space after USA in the license
66567         substitution, since that's how it's usually (?) written.
66568
66569 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66570
66571         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66572         reported by Bruno Haible.
66573
66574 2007-03-29  Bruno Haible  <bruno@clisp.org>
66575
66576         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66577         a bug in AIX iconv().
66578
66579 2007-03-29  Bruno Haible  <bruno@clisp.org>
66580
66581         * modules/ldexpl-tests: New file.
66582         * tests/test-ldexpl.c: New file.
66583
66584 2007-03-29  Bruno Haible  <bruno@clisp.org>
66585
66586         * lib/ldexpl.c: Include fpucw.h.
66587         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66588         multiplication.
66589         * modules/ldexpl (Depends-on): Add fpucw.
66590
66591 2007-03-29  Bruno Haible  <bruno@clisp.org>
66592
66593         * modules/ldexpl: New file.
66594         * m4/ldexpl.m4: New file.
66595         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66596         set.
66597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66598         REPLACE_LDEXPL.
66599         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66600         REPLACE_LDEXPL.
66601         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66602         gl_FUNC_LDEXPL_WORKS.
66603         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66604         * modules/mathl (Files): Remove lib/ldexpl.c.
66605         (Depends-on): Add ldexpl.
66606
66607 2007-03-29  Bruno Haible  <bruno@clisp.org>
66608
66609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66610
66611 2007-03-29  Bruno Haible  <bruno@clisp.org>
66612
66613         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66614         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66615         and possibly also HP-UX.
66616         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66617         work on AIX, IRIX, HP-UX, OSF/1.
66618         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66619         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66620         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66621         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66622         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66623         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66624
66625 2007-03-29  Bruno Haible  <bruno@clisp.org>
66626
66627         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66628
66629 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66632         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66633
66634 2007-03-29  Eric Blake  <ebb9@byu.net>
66635
66636         * lib/acl-internal.h: Remove redundant include.
66637         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66638         Cygwin when a file is locked.
66639
66640 2007-03-29  Bruno Haible  <bruno@clisp.org>
66641
66642         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66643         file.
66644         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66645
66646 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66647
66648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66649         try to remove a parent directory if the child couldn't be removed
66650         (except for the first rmdir, which could fail because the child
66651         doesn't exist).  Problem reported by Jeff Blaine in
66652         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66653
66654 2007-03-28  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/striconveh.c (utf8conv_carefully): New function.
66657         (mem_cd_iconveh_internal): Invoke it.
66658
66659 2007-03-28  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66662         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66663         input.
66664         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66665         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66666         unistr/u8-uctomb.
66667
66668 2007-03-28  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/unistr/u8-mbtoucr: New file.
66671         * lib/unistr/u8-mbtoucr.c: New file.
66672         * modules/unistr/u16-mbtoucr: New file.
66673         * lib/unistr/u16-mbtoucr.c: New file.
66674         * modules/unistr/u16-mbtoucr: New file.
66675         * lib/unistr/u16-mbtoucr.c: New file.
66676         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66677
66678 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66679             Bruno Haible  <bruno@clisp.org>
66680
66681         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66682         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66683         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66684
66685         * m4/stdio_h.m4: Add stubs for vasprintf too.
66686
66687         * modules/stdio: Support vasprintf in sed command.
66688
66689         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66690         vasprintf.h.  Add stdio module indicator.
66691
66692         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66693         vasprintf.h.
66694
66695         * lib/vasprintf.h: File removed.
66696
66697         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66698         * lib/vasprintf.c: Ditto.
66699         * lib/xvasprintf.c: Ditto.
66700         * tests/test-vasprintf-posix.c: Ditto.
66701         * tests/test-vasprintf.c: Ditto.
66702
66703 2007-03-27  Bruno Haible  <bruno@clisp.org>
66704
66705         Make vasnprintf multithread-safe.
66706         * lib/vasnprintf.c (decimal_point_char): New function.
66707         (VASNPRINTF): Use it.
66708         Suggested by Simon Josefsson.
66709
66710 2007-03-27  Eric Blake  <ebb9@byu.net>
66711
66712         Support sub-second birthtime on cygwin.
66713         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66714         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66715         (get_stat_birthtime): Also work with st_birthtim.
66716
66717 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66720         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66721         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66722         (get_stat_birthtime_ns): Simplify compile-time tests.
66723         (get_stat_birthtime): Change the API to look like
66724         get_stat_mtime etc., except return a negative tv_nsec on error.
66725         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66726         Don't check for "spare" fields.
66727         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66728         or for struct stat.st_birthtime, as these tests aren't used.
66729         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66730
66731 2007-03-27  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/stat-time.h: Include <sys/stat.h>.
66734
66735 2007-03-27  James Youngman  <jay@gnu.org>
66736
66737         * lib/stat-time.h (get_stat_birthtime): New function for
66738           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66739         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66740           and its variants.
66741         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66742         * modules/stat-time-test: New file.
66743         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66744
66745 2007-03-26  Bruno Haible  <bruno@clisp.org>
66746
66747         Better support of signalling NaNs.
66748         * lib/atanl.c: Include isnanl.h.
66749         (atanl): Perform test for NaN at the beginning of the function and
66750         through a call to isnanl.
66751         * lib/cosl.c: Include isnanl.h.
66752         (cosl): Perform test for NaN at the beginning of the function and
66753         through a call to isnanl.
66754         * lib/ldexpl.c: Include isnanl.h.
66755         (ldexpl): Perform test for NaN through a call to isnanl.
66756         * lib/logl.c: Include isnanl.h.
66757         (logl): Perform test for NaN at the beginning of the function and
66758         through a call to isnanl.
66759         * lib/sinl.c: Include isnanl.h.
66760         (sinl): Perform test for NaN at the beginning of the function and
66761         through a call to isnanl.
66762         * lib/sqrtl.c: Include isnanl.h.
66763         (sqrtl): Perform test for NaN at the beginning of the function and
66764         through a call to isnanl.
66765         * lib/tanl.c: Include isnanl.h.
66766         (tanl): Perform test for NaN at the beginning of the function and
66767         through a call to isnanl.
66768         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66769         * modules/mathl (Depends-on): Add isnanl.
66770
66771 2007-03-26  Eric Blake  <ebb9@byu.net>
66772
66773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66774         regression in logic sense of previous patch.
66775
66776 2007-03-26  Bruno Haible  <bruno@clisp.org>
66777
66778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66779         unportable shell command "if ! ...".
66780         Reported by Ralf Wildenhues.
66781
66782 2007-03-25  Bruno Haible  <bruno@clisp.org>
66783
66784         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66785         <sysexits.h> file, and only add EX_CONFIG.
66786         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66787         absolute file name and whether it is sufficient. Substitute also
66788         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66789         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66790         ABSOLUTE_SYSEXITS_H into sysexits.h.
66791
66792 2007-03-25  Bruno Haible  <bruno@clisp.org>
66793
66794         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66795         hints is NULL.
66796
66797 2007-03-25  Bruno Haible  <bruno@clisp.org>
66798
66799         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66800         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66801
66802 2007-03-25  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/vasnprintf.c: Include langinfo.h.
66805         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66806         multithread-safe.
66807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66809         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66810         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66811         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66812         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66813         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66814         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66815         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66816         Reported by Simon Josefsson.
66817
66818 2007-03-25  Bruno Haible  <bruno@clisp.org>
66819
66820         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66821         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66822         * modules/vasnprintf (Depends-on): Add stdint.
66823
66824 2007-03-25  Bruno Haible  <bruno@clisp.org>
66825
66826         * modules/fpieee: New file.
66827         * m4/fpieee.m4: New file.
66828         * modules/isnan-nolibm (Depends-on): Add fpieee.
66829         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66830         * modules/isnanl (Depends-on): Add fpieee.
66831
66832 2007-03-25  Bruno Haible  <bruno@clisp.org>
66833
66834         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66835
66836 2007-03-25  Bruno Haible  <bruno@clisp.org>
66837
66838         Avoid test failures on IRIX 6.5.
66839         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66840         (main): Use it.
66841         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66842         macros.
66843         (main): Use them.
66844
66845 2007-03-25  Bruno Haible  <bruno@clisp.org>
66846
66847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66848         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66849         exists but doesn't work.
66850         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66851         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66853         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66854         math.h.
66855
66856 2007-03-25  Bruno Haible  <bruno@clisp.org>
66857
66858         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66859         returns inf. Needed on IRIX 6.5.
66860
66861 2007-03-25  Bruno Haible  <bruno@clisp.org>
66862
66863         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66864         (main): Use isnanl instead of x != x idiom.
66865         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66866
66867         * tests/test-frexp.c: Include isnan.h.
66868         (main): Use isnan instead of x != x idiom.
66869         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66870
66871 2007-03-25  Bruno Haible  <bruno@clisp.org>
66872
66873         * tests/test-frexp.c (NaN): New function/macro.
66874         (main): Use it instead of 0.0 / 0.0.
66875         * tests/test-isnan.c (NaN): New function/macro.
66876         (main): Use it instead of 0.0 / 0.0.
66877         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66878         (test_function): Use it instead of 0.0 / 0.0.
66879         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66880         (test_function): Use it instead of 0.0 / 0.0.
66881         * tests/test-snprintf-posix.h (NaN): New function/macro.
66882         (test_function): Use it instead of 0.0 / 0.0.
66883         * tests/test-sprintf-posix.h (NaN): New function/macro.
66884         (test_function): Use it instead of 0.0 / 0.0.
66885         * tests/test-fprintf-posix.h (NaN): New function/macro.
66886         (test_function): Use it instead of 0.0 / 0.0.
66887         * tests/test-printf-posix.h (NaN): New function/macro.
66888         (test_function): Use it instead of 0.0 / 0.0.
66889
66890         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66891
66892 2007-03-25  Bruno Haible  <bruno@clisp.org>
66893
66894         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66895
66896 2007-03-25  Bruno Haible  <bruno@clisp.org>
66897
66898         * lib/regexec.c (merge_state_with_log): Make static.
66899
66900 2007-03-25  Bruno Haible  <bruno@clisp.org>
66901
66902         * lib/trigl.c (kernel_rem_pio2): Make static.
66903
66904 2007-03-25  Bruno Haible  <bruno@clisp.org>
66905
66906         * lib/sincosl.c (sincosl_table): Make static.
66907
66908 2007-03-25  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66911         if the compiler does not support C99.
66912
66913 2007-03-25  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/time (Makefile.am): Ensure all rule action lines start with a
66916         tab.
66917
66918 2007-03-24  Bruno Haible  <bruno@clisp.org>
66919
66920         * modules/tsearch-tests: New file.
66921         * tests/test-tsearch.sh: New file.
66922         * tests/test-tsearch.c: New file, mostly copied from glibc.
66923
66924         * modules/search-tests: New file.
66925         * tests/test-search.c: New file.
66926
66927         * modules/search: New file.
66928         * lib/search_.h: New file, incorporating lib/tsearch.h.
66929         * m4/search_h.m4: New file.
66930         * lib/tsearch.h: Remove file.
66931         * lib/tsearch.c: Include search.h instead of tsearch.h.
66932         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66933         HAVE_TSEARCH.
66934         * modules/tsearch (Files): Remove lib/tsearch.h.
66935         (Depends-on): Add search.
66936         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66937         (Include): Change tsearch.h into search.h.
66938
66939 2007-03-24  Bruno Haible  <bruno@clisp.org>
66940
66941         * modules/fpucw: New file.
66942         * lib/fpucw.h: New file.
66943         * lib/frexp.c: Include fpucw.h.
66944         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66945         (FUNC): Use them.
66946         * lib/printf-frexp.c: Include fpucw.h.
66947         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66948         (FUNC): Use them.
66949         * lib/vasnprintf.c: Include fpucw.h.
66950         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66951         'long double' calculations.
66952         * tests/test-frexpl.c: Include fpucw.h.
66953         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66954         * tests/test-printf-frexpl.c: Include fpucw.h.
66955         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66956         * modules/frexpl (Depends-on): Add fpucw.
66957         * modules/printf-frexpl (Depends-on): Likewise.
66958         * modules/fprintf-posix (Depends-on): Likewise.
66959         * modules/snprintf-posix (Depends-on): Likewise.
66960         * modules/sprintf-posix (Depends-on): Likewise.
66961         * modules/vasnprintf-posix (Depends-on): Likewise.
66962         * modules/vasprintf-posix (Depends-on): Likewise.
66963         * modules/vfprintf-posix (Depends-on): Likewise.
66964         * modules/vsnprintf-posix (Depends-on): Likewise.
66965         * modules/vsprintf-posix (Depends-on): Likewise.
66966         * modules/frexpl-tests (Depends-on): Likewise.
66967         * modules/printf-frexpl-tests (Depends-on): Likewise.
66968
66969 2007-03-24  Bruno Haible  <bruno@clisp.org>
66970
66971         * lib/float+.h: New file.
66972         * lib/isnan.c: Include float+.h.
66973         (SIZE): New macro.
66974         (FUNC): Compare only SIZE bytes of the value.
66975         * lib/vasnprintf.c: Include float+.h.
66976         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66977         SIZEOF_LDBL or SIZEOF_DBL bytes.
66978         * modules/isnan-nolibm (Files): Add lib/float+.h.
66979         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66980         * modules/isnanl (Files): Add lib/float+.h.
66981         * modules/vasnprintf (Files): Add lib/float+.h.
66982
66983 2007-03-24  Bruno Haible  <bruno@clisp.org>
66984
66985         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66986         include isnanl-nolibm.h.
66987
66988 2007-03-24  Bruno Haible  <bruno@clisp.org>
66989
66990         * tests/test-read-file.c (main): Don't produce spurious output for
66991         expected situations. Make the test fail if it encountered unexpected
66992         results.
66993
66994 2007-03-24  Bruno Haible  <bruno@clisp.org>
66995
66996         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66997         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66998
66999 2007-03-24  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67002
67003 2007-03-24  Bruno Haible  <bruno@clisp.org>
67004
67005         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67006         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67007
67008         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67009         * modules/utf8-ucs4: Turn into a symbolic link to module
67010         unistr/u8-mbtouc.
67011
67012         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67013         utf8-ucs4-unsafe.
67014         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67015         unistr/u8-mbtouc-unsafe.
67016
67017         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67018         * modules/utf16-ucs4: Turn into a symbolic link to module
67019         unistr/u16-mbtouc.
67020
67021         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67022         utf16-ucs4-unsafe.
67023         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67024         unistr/u16-mbtouc-unsafe.
67025
67026         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67027         * modules/ucs4-utf8: Turn into a symbolic link to module
67028         unistr/u8-ubtomb.
67029
67030         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67031         * modules/ucs4-utf16: Turn into a symbolic link to module
67032         unistr/u16-ubtomb.
67033
67034 2007-03-24  Bruno Haible  <bruno@clisp.org>
67035
67036         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67037         Enable the function only if HAVE_INLINE.
67038         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67039         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67040         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67041         Enable the function only if HAVE_INLINE.
67042         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67043         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67044         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67045         Enable the function only if HAVE_INLINE.
67046         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67047         Enable the function only if HAVE_INLINE.
67048         * modules/utf8-ucs4: Update.
67049         * modules/utf8-ucs4-unsafe: Update.
67050         * modules/utf16-ucs4: Update.
67051         * modules/utf16-ucs4-unsafe: Update.
67052         * modules/ucs4-utf8: Update.
67053         * modules/ucs4-utf16: Update.
67054
67055 2007-03-24  Bruno Haible  <bruno@clisp.org>
67056
67057         * lib/utf8-ucs4.h: Remove file.
67058         * lib/utf8-ucs4-unsafe.h: Remove file.
67059         * lib/utf16-ucs4.h: Remove file.
67060         * lib/utf16-ucs4-unsafe.h: Remove file.
67061         * lib/ucs4-utf8.h: Remove file.
67062         * lib/ucs4-utf16.h: Remove file.
67063         * lib/unistr.h: Include their previous contents.
67064         * m4/utf-ucs4.m4: Remove file.
67065         * m4/ucs4-utf.m4: Remove file.
67066         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67067         (Depends-on): Add unistr/base.
67068         (configure.ac): Remove gl_UTF_UCS4.
67069         (Makefile.am): Update.
67070         (Include): Change to unistr.h.
67071         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67072         (Depends-on): Add unistr/base.
67073         (configure.ac): Remove gl_UTF_UCS4.
67074         (Makefile.am): Update.
67075         (Include): Change to unistr.h.
67076         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67077         (Depends-on): Add unistr/base.
67078         (configure.ac): Remove gl_UTF_UCS4.
67079         (Makefile.am): Update.
67080         (Include): Change to unistr.h.
67081         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67082         (Depends-on): Add unistr/base.
67083         (configure.ac): Remove gl_UTF_UCS4.
67084         (Makefile.am): Update.
67085         (Include): Change to unistr.h.
67086         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67087         (Depends-on): Add unistr/base.
67088         (configure.ac): Remove gl_UCS4_UTF.
67089         (Makefile.am): Update.
67090         (Include): Change to unistr.h.
67091         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67092         (Depends-on): Add unistr/base.
67093         (configure.ac): Remove gl_UCS4_UTF.
67094         (Makefile.am): Update.
67095         (Include): Change to unistr.h.
67096         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67097         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67098         utf8-ucs4-unsafe.h.
67099         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67100         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67101         utf16-ucs4-unsafe.h.
67102         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67103         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67104         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67105         * lib/unistr/u8-strchr.c: Likewise.
67106         * lib/unistr/u8-strrchr.c: Likewise.
67107         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67108         * lib/unistr/u16-strchr.c: Likewise.
67109         * lib/unistr/u16-strrchr.c: Likewise.
67110         * lib/striconveh.c: Update.
67111         * lib/linebreak.c: Update.
67112
67113 2007-03-24  Bruno Haible  <bruno@clisp.org>
67114
67115         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67116         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67117
67118 2007-03-22  Bruno Haible  <bruno@clisp.org>
67119
67120         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67121
67122 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         * MODULES.html.sh (File system functions): New module write-any-file.
67125         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67126         * m4/write-any-file.m4: New files.
67127
67128 2007-03-23  Eric Blake  <ebb9@byu.net>
67129
67130         * gnulib-tool: Rearrange space-tab sequences, since some editors
67131         like to eat them.
67132
67133 2007-03-23  Eric Blake  <ebb9@byu.net>
67134
67135         * lib/version-etc.c (version_etc_va): Update license wording to
67136         be more concise.  Recommended by Richard Stallman.
67137
67138 2007-03-22  Bruno Haible  <bruno@clisp.org>
67139
67140         * lib/poll.c (MSG_PEEK): New fallback definition.
67141
67142 2007-03-22  Bruno Haible  <bruno@clisp.org>
67143
67144         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67145         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67146         (main): Update.
67147         Fixes a compilation error on BeOS.
67148
67149 2007-03-22  Bruno Haible  <bruno@clisp.org>
67150
67151         * modules/frexpl-tests: New file.
67152         * tests/test-frexpl.c: New file.
67153
67154         * modules/frexpl: New file.
67155         * m4/frexpl.m4: New file.
67156         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67157         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67159         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67160         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67161         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67162
67163 2007-03-22  Bruno Haible  <bruno@clisp.org>
67164
67165         * lib/frexpl.c: Share code with lib/frexp.c.
67166         * modules/mathl (Files): Add lib/frexp.c.
67167         (Depends-on): Add isnanl-nolibm.
67168
67169 2007-03-22  Bruno Haible  <bruno@clisp.org>
67170
67171         * modules/printf-frexp (Files): Add m4/frexp.m4.
67172         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67173         only if the found frexp function actually works.
67174
67175 2007-03-22  Bruno Haible  <bruno@clisp.org>
67176
67177         * lib/frexp.c: Remove older implementation that uses divisions.
67178
67179 2007-03-21  Bruno Haible  <bruno@clisp.org>
67180
67181         * modules/frexp-tests: New file.
67182         * tests/test-frexp.c: New file.
67183
67184         * modules/frexp: New file.
67185         * lib/frexp.c: New file.
67186         * m4/frexp.m4: New file.
67187         * lib/math_.h (frexp): New declaration.
67188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67189         REPLACE_FREXP.
67190         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67191
67192 2007-03-21  Bruno Haible  <bruno@clisp.org>
67193
67194         * modules/isnanl-tests: New file.
67195         * tests/test-isnanl.c: New file.
67196
67197         * modules/isnanl: New file.
67198         * lib/isnanl.h: New file.
67199         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67200         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67201         gl_FUNC_ISNANL_WORKS.
67202         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67203         New macros.
67204
67205 2007-03-21  Bruno Haible  <bruno@clisp.org>
67206
67207         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67208         lib/isnanl.h.
67209         (Include): Update.
67210         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67211         * lib/vasnprintf.c: Update.
67212         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67213         tests/test-isnanl.h, remove tests/test-isnanl.c.
67214         (Makefile.am): Update.
67215         * tests/test-isnanl-nolibm.c: New file.
67216         * tests/test-isnanl.h: New file.
67217         * tests/test-isnanl.c: Remove file.
67218
67219 2007-03-21  Jim Meyering  <jim@meyering.net>
67220
67221         When trying to open ".", treat ESTALE like EACCES.
67222         * lib/savewd.c (savewd_save): Resort to forking not just upon
67223         failure with EACCES, but also when errno is ESTALE.
67224
67225 2007-03-20  Bruno Haible  <bruno@clisp.org>
67226
67227         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67228         Needed on AIX 5.1. Reported by Matthew Woehlke.
67229
67230 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         Suggestions by Bruno Haible:
67233         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67234         our own.
67235         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67236         * modules/acl (Depends-on): Add gettext.
67237
67238 2007-03-19  Bruno Haible  <bruno@clisp.org>
67239
67240         * modules/iconvme: Remove file.
67241         * lib/iconvme.h: Remove file.
67242         * lib/iconvme.c: Remove file.
67243         * m4/iconvme.m4: Remove file.
67244
67245 2007-03-19  Bruno Haible  <bruno@clisp.org>
67246
67247         * doc/relocatable-maint.texi: Break long shell script line.
67248         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67249
67250 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67253         handle file_has_acl.
67254         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67255         * lib/acl.c: Move header inclusions and related macro defns into
67256         lib/acl-internal.h.
67257         (S_ISLNK): Remove defn, since that's now done for us.
67258         (file_has_acl): Move to lib/file-has-acl.c.
67259         Call acl_trivial if available.  This is the crucial part of the fix.
67260         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67261         shared within the library.  Rewrite a bit, partly to make it compatible
67262         with the GNU coding style.
67263         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67264         Remove unnecessary double-quotes.
67265         Don't test for acl_to_text; the build will catch that.
67266         Replace acl_entries if it doesn't exist and it is needed.
67267         Check for -lsec and acl_trivial (as used on Solaris 10).
67268         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67269         lib/file-has-acl.c.
67270         (Depends-on): Add sys_stat, for S_ISLNK.
67271
67272 2007-03-19  Ben Pfaff  <blp@gnu.org>
67273
67274         * doc/gnulib.texi: Fix typos.
67275         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67276
67277 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67278
67279         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67280         If size is zero here, buf must be zero.
67281
67282 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67283
67284         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67285         <bruno@clisp.org>.
67286
67287 2007-03-18  Bruno Haible  <bruno@clisp.org>
67288
67289         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67290         Suggested by Eric Blake.
67291
67292 2007-03-18  Ben Pfaff  <blp@gnu.org>
67293
67294         * doc/relocatable.texi: Recommend using as prefix a directory
67295         that does not exist and will never be created.  Based on
67296         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67297         and others.
67298
67299 2007-03-17  Bruno Haible  <bruno@clisp.org>
67300
67301         * lib/fchownat.c: Include lchown.h.
67302
67303 2007-03-17  Bruno Haible  <bruno@clisp.org>
67304
67305         Fix endless loop when the given allocated size was > INT_MAX.
67306         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67307         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67308         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67309         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67310         * lib/sprintf.c (sprintf): Likewise.
67311
67312 2007-03-17  Bruno Haible  <bruno@clisp.org>
67313
67314         * tests/test-argp-2.sh (func_compare): Output a context diff.
67315
67316 2007-03-17  Bruno Haible  <bruno@clisp.org>
67317
67318         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67319         locale's decimal-point character.
67320
67321 2007-03-17  Bruno Haible  <bruno@clisp.org>
67322
67323         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67324         before comparing it. Needed because on some platforms (e.g. x86) a
67325         'long double' occupies less bytes than sizeof (long double).
67326
67327 2007-03-17  Bruno Haible  <bruno@clisp.org>
67328
67329         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67330         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67331         * tests/test-getaddrinfo.c (simple): Likewise.
67332         * tests/test-read-file.c (main): Likewise.
67333
67334 2007-03-17  Bruno Haible  <bruno@clisp.org>
67335
67336         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67337
67338 2007-03-17  Bruno Haible  <bruno@clisp.org>
67339
67340         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67341         unused variable.
67342
67343 2007-03-17  Bruno Haible  <bruno@clisp.org>
67344
67345         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67346         * tests/test-c-strncasecmp.c: Likewise.
67347
67348 2007-03-17  Bruno Haible  <bruno@clisp.org>
67349
67350         * modules/stdlib (Depends-on): Add unistd.
67351         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67352         Needed for MacOS X 10.3.
67353
67354 2007-03-17  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67357
67358 2007-03-17  Bruno Haible  <bruno@clisp.org>
67359
67360         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67361
67362 2007-03-17  Bruno Haible  <bruno@clisp.org>
67363
67364         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67365         to reflect files copied from gnulib (with or without modifications).
67366         Suggested by Jim Meyering.
67367
67368 2007-03-17  Eric Blake  <ebb9@byu.net>
67369
67370         * NEWS: Document stdlib change from 2007-02-18.
67371
67372 2007-03-17  Jim Meyering  <jim@meyering.net>
67373
67374         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67375         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67376         someone uses a name containing shell meta-characters.
67377         Reported by Alfred M. Szmidt.
67378
67379         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67380
67381 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67382
67383         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67384         and copy gettext configuration files only if configure.ac contains
67385         a use of AM_GNU_GETTEXT_VERSION.
67386
67387 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67388
67389         * build-aux/bootstrap (gnulib_name): New variable.
67390         (gnulib_tool_options): Use it.
67391
67392 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67393
67394         * tests/test-des.c: Use new namespace.
67395
67396 2007-03-15  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67399         Reported by James Youngman <jay@gnu.org>.
67400
67401 2007-03-15  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67404         declared prototype. Needed with cc on OSF/1 5.1.
67405
67406 2007-03-15  Bruno Haible  <bruno@clisp.org>
67407
67408         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67409         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67410         (struct gl_list_implementation): Add dispose_fn argument to the
67411         'create_empty', 'create' methods.
67412         (struct gl_list_impl_base): Add field 'dispose_fn'.
67413         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67414         argument.
67415         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67416         dispose_fn argument.
67417         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67418         dispose_fn on the dropped values.
67419         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67420         dispose_fn argument.
67421         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67422         dropped values.
67423         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67424         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67425         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67426         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67427         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67428         argument.
67429         (gl_tree_list_free): Call dispose_fn on the dropped values.
67430         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67431         the dropped values.
67432         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67433         Add dispose_fn argument.
67434         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67435         Call dispose_fn on the dropped values.
67436         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67437         Add dispose_fn argument.
67438         (gl_sublist_create): Initialize the 'dispose_fn' field.
67439         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67440         * tests/test-array_list.c (main): Update.
67441         * tests/test-carray_list.c (main): Update.
67442         * tests/test-avltree_list.c (main): Update.
67443         * tests/test-rbtree_list.c (main): Update.
67444         * tests/test-avltreehash_list.c (main): Update.
67445         * tests/test-rbtreehash_list.c (main): Update.
67446         * tests/test-linked_list.c (main): Update.
67447         * tests/test-linkedhash_list.c (main): Update.
67448         * tests/test-array_oset.c (main): Update.
67449
67450 2007-03-15  Bruno Haible  <bruno@clisp.org>
67451
67452         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67453         (gl_oset_create_empty): Add dispose_fn argument.
67454         (struct gl_oset_implementation): Add dispose_fn argument to
67455         'create_empty' method.
67456         (struct gl_oset_impl_base): Add dispose_fn field.
67457         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67458         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67459         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67460         values.
67461         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67462         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67463         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67464         dropped value.
67465         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67466         dropped value.
67467         * tests/test-array_oset.c (main): Update.
67468         * tests/test-avltree_oset.c (main): Update.
67469         * tests/test-rbtree_oset.c (main): Update.
67470         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67471
67472 2007-03-13  Bruno Haible  <bruno@clisp.org>
67473
67474         * tests/test-stdbool.c (i): Update after last patch.
67475
67476 2007-03-12  Bruno Haible  <bruno@clisp.org>
67477
67478         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67479         the iswprint macro. Needed on Solaris 2.5.1.
67480
67481 2007-03-12  Bruno Haible  <bruno@clisp.org>
67482
67483         * tests/test-printf-frexp.c (main): Declare x as volatile.
67484
67485 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67486
67487         * doc/gnulib.texi (Build robot for gnulib): New section.
67488
67489 2007-03-12  Jim Meyering  <jim@meyering.net>
67490
67491         * build-aux/bootstrap: New file.
67492         * build-aux/bootstrap.conf: New file, from coreutils.
67493
67494 2007-03-11  Bruno Haible  <bruno@clisp.org>
67495
67496         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67497
67498 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67499
67500         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67501         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67502         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67503
67504 2007-03-11  Bruno Haible  <bruno@clisp.org>
67505
67506         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67507         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67508
67509 2007-03-11  Bruno Haible  <bruno@clisp.org>
67510
67511         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67512         formula. Needed for SunPRO C 5.0.
67513
67514 2007-03-11  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/long-options (Depends-on): Add getopt.
67517
67518 2007-03-11  Bruno Haible  <bruno@clisp.org>
67519
67520         * modules/modechange (Depends-on): Add stdbool.
67521
67522 2007-03-11  Bruno Haible  <bruno@clisp.org>
67523
67524         * modules/i-ring (Depends-on): Add stdbool.
67525
67526 2007-03-11  Bruno Haible  <bruno@clisp.org>
67527
67528         * modules/gc-des (Depends-on): Add stdbool.
67529
67530 2007-03-11  Bruno Haible  <bruno@clisp.org>
67531
67532         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67533
67534 2007-03-11  Bruno Haible  <bruno@clisp.org>
67535
67536         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67537
67538 2007-03-11  Bruno Haible  <bruno@clisp.org>
67539
67540         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67541
67542 2007-03-11  Bruno Haible  <bruno@clisp.org>
67543
67544         * lib/vasnprintf.c (sprintf): Undefine.
67545
67546 2007-03-11  Bruno Haible  <bruno@clisp.org>
67547
67548         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67549         initializers in SunPRO C and Compaq C compilers.
67550
67551 2007-03-11  Bruno Haible  <bruno@clisp.org>
67552
67553         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67554         decrementing code ANSI C compliant.
67555
67556 2007-03-11  Bruno Haible  <bruno@clisp.org>
67557
67558         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67559         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67560
67561 2007-03-11  Bruno Haible  <bruno@clisp.org>
67562
67563         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67564         <stdbool.h> substitute doesn't pass.
67565
67566 2007-03-11  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67569
67570 2007-03-11  Bruno Haible  <bruno@clisp.org>
67571
67572         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67573         script, for submission to autobuild.josefsson.org.
67574
67575 2007-03-10  Bruno Haible  <bruno@clisp.org>
67576
67577         * modules/canonicalize-lgpl-tests: New file.
67578         * tests/test-canonicalize-lgpl.sh: New file.
67579         * tests/test-canonicalize-lgpl.c: New file.
67580
67581         * modules/c-strcase-tests: New file.
67582         * tests/test-c-strcase.sh: New file.
67583         * tests/test-c-strcasecmp.c: New file.
67584         * tests/test-c-strncasecmp.c: New file.
67585
67586         * modules/atexit-tests: New file.
67587         * tests/test-atexit.sh: New file.
67588         * tests/test-atexit.c: New file.
67589
67590 2007-03-10  Bruno Haible  <bruno@clisp.org>
67591
67592         * tests/test-binary-io.sh: Use temporary filenames that are not so
67593         likely to clash with those of other tests (in a parallel make).
67594         * tests/test-binary-io.c: Likewise.
67595
67596 2007-03-10  Bruno Haible  <bruno@clisp.org>
67597
67598         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67599         fallback; use #error instead.
67600         Suggested by Simon Josefsson.
67601
67602 2007-03-10  Bruno Haible  <bruno@clisp.org>
67603
67604         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67605         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67606         first and the last.
67607
67608 2007-03-10  Bruno Haible  <bruno@clisp.org>
67609
67610         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67611
67612 2007-03-10  Bruno Haible  <bruno@clisp.org>
67613
67614         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67615         "make distcheck".
67616         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67617         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67618         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67619
67620 2007-03-10  Bruno Haible  <bruno@clisp.org>
67621
67622         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67623         variable.
67624         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67625         variable.
67626
67627 2007-03-09  Eric Blake  <ebb9@byu.net>
67628         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67629
67630         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67631         types are not being provided by gnulib.
67632         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67633         types are supported.
67634
67635 2007-03-10  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/stdio_.h (__attribute__): New macro.
67638         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67639         vsprintf): Specify __attribute__ __format__ for GCC.
67640         Suggested by Eric Blake.
67641
67642 2007-03-09  Bruno Haible  <bruno@clisp.org>
67643
67644         * modules/printf-posix-tests: New file.
67645         * tests/test-printf-posix.sh: New file.
67646         * tests/test-printf-posix.c: New file.
67647
67648         * modules/printf-posix: New file.
67649         * lib/printf.c: New file.
67650         * m4/printf-posix-rpl.m4: New file.
67651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67652         REPLACE_PRINTF.
67653         * lib/stdio_.h (printf): New declaration.
67654         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67655         ____strfmon____): New macros.
67656         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67657         REPLACE_PRINTF.
67658
67659 2007-03-09  Bruno Haible  <bruno@clisp.org>
67660
67661         * tests/test-vasnprintf-posix2.sh: New file.
67662         * tests/test-vasnprintf-posix2.c: New file.
67663         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67664         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67665         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67666
67667         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67668         a locale dependent decimal point, rather than always '.'.
67669
67670 2007-03-09  Eric Blake  <ebb9@byu.net>
67671
67672         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67673         spite of platforms like Tandem/NSK that define it to -1.
67674
67675 2007-03-08  Bruno Haible  <bruno@clisp.org>
67676
67677         * modules/vprintf-posix-tests: New file.
67678         * tests/test-vprintf-posix.sh: New file.
67679         * tests/test-vprintf-posix.c: New file.
67680         * tests/test-printf-posix.h: New file.
67681
67682         * modules/vprintf-posix: New file.
67683         * lib/vprintf.c: New file.
67684         * m4/vprintf-posix.m4: New file.
67685         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67686         REPLACE_VPRINTF.
67687         * lib/stdio_.h (vprintf): New declaration.
67688         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67689         REPLACE_VPRINTF.
67690
67691 2007-03-08  Bruno Haible  <bruno@clisp.org>
67692
67693         * modules/fprintf-posix-tests: New file.
67694         * tests/test-fprintf-posix.sh: New file.
67695         * tests/test-fprintf-posix.c: New file.
67696
67697         * modules/fprintf-posix: New file.
67698         * lib/fprintf.c: New file.
67699         * m4/fprintf-posix.m4: New file.
67700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67701         REPLACE_FPRINTF.
67702         * lib/stdio_.h (fprintf): New declaration.
67703         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67704         REPLACE_FPRINTF.
67705
67706 2007-03-08  Bruno Haible  <bruno@clisp.org>
67707
67708         * modules/vfprintf-posix-tests: New file.
67709         * tests/test-vfprintf-posix.sh: New file.
67710         * tests/test-vfprintf-posix.c: New file.
67711         * tests/test-fprintf-posix.h: New file.
67712         * tests/test-fprintf-posix.out: New file.
67713
67714         * modules/vfprintf-posix: New file.
67715         * lib/vfprintf.c: New file.
67716         * m4/vfprintf-posix.m4: New file.
67717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67718         REPLACE_VFPRINTF.
67719         * lib/stdio_.h (vfprintf): New declaration.
67720         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67721         REPLACE_VFPRINTF.
67722
67723 2007-03-08  Bruno Haible  <bruno@clisp.org>
67724
67725         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67726
67727 2007-03-08  Bruno Haible  <bruno@clisp.org>
67728
67729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67730         instead of 'expr' invocations.
67731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67735         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67736         Suggested by Paul Eggert.
67737
67738 2007-03-08  Bruno Haible  <bruno@clisp.org>
67739
67740         * modules/fseterr-tests: New file.
67741         * tests/test-fseterr.c: New file.
67742
67743         * modules/fseterr: New file.
67744         * lib/fseterr.h: New file.
67745         * lib/fseterr.c: New file.
67746
67747 2007-03-08  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67750         * lib/getopt_.h: Likewise.
67751         * lib/mbswidth.h: Likewise.
67752         * lib/setenv.h: Likewise.
67753         * lib/vasnprintf.h: Likewise.
67754         * lib/vasprintf.h: Likewise.
67755         * lib/verror.h: Likewise.
67756         * lib/xsetenv.h: Likewise.
67757         * lib/xvasprintf.h: Likewise.
67758
67759 2007-03-08  Jim Meyering  <jim@meyering.net>
67760
67761         * users.txt: Add parted.
67762
67763         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67764
67765 2007-03-07  Bruno Haible  <bruno@clisp.org>
67766
67767         * m4/printf.m4: Make the shell script snippets copy&pastable.
67768
67769 2007-03-02  Bruno Haible  <bruno@clisp.org>
67770
67771         * lib/netinet_in_.h: New file.
67772         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67773         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67774         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67775         (Depends-on): Add absolute-header.
67776         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67777         into netinet/in.h.
67778
67779 2007-03-03  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/sys_select_.h: New file.
67782         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67783         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67784         * modules/sys_select (Files): Add lib/sys_select_.h.
67785         (Depends-on): Add absolute-header.
67786         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67787         into sys/select.h.
67788
67789 2007-03-02  Bruno Haible  <bruno@clisp.org>
67790
67791         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67792         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67793         values.
67794         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67795         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67796         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67797         * modules/sys_socket (Depends-on): Add absolute-header.
67798         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67799         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67800         (Include): Remove requirement of inclusion of <sys/types.h>.
67801
67802 2007-03-02  Bruno Haible  <bruno@clisp.org>
67803
67804         * lib/byteswap_.h (bswap_32): Fix formula.
67805
67806 2007-03-06  Bruno Haible  <bruno@clisp.org>
67807
67808         * modules/sprintf-posix-tests: New file.
67809         * tests/test-sprintf-posix.c: New file.
67810
67811         * modules/sprintf-posix: New file.
67812         * lib/sprintf.c: New file.
67813         * m4/sprintf-posix.m4: New file.
67814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67815         REPLACE_SPRINTF.
67816         * lib/stdio_.h (sprintf): New declaration.
67817         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67818         REPLACE_SPRINTF.
67819
67820 2007-03-06  Bruno Haible  <bruno@clisp.org>
67821
67822         * modules/vsprintf-posix-tests: New file.
67823         * tests/test-vsprintf-posix.c: New file.
67824         * tests/test-sprintf-posix.h: New file.
67825
67826         * modules/vsprintf-posix: New file.
67827         * lib/vsprintf.c: New file.
67828         * m4/vsprintf-posix.m4: New file.
67829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67830         REPLACE_VSPRINTF.
67831         * lib/stdio_.h (vsprintf): New declaration.
67832         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67833         REPLACE_VSPRINTF.
67834
67835 2007-03-06  Bruno Haible  <bruno@clisp.org>
67836
67837         * modules/vsnprintf (Depend-on): Remove minmax.
67838
67839 2007-03-06  Bruno Haible  <bruno@clisp.org>
67840
67841         * modules/snprintf-posix-tests: New file.
67842         * tests/test-snprintf-posix.c: New file.
67843
67844         * modules/snprintf-posix: New file.
67845         * m4/snprintf-posix.m4: New file.
67846         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67847         gl_FUNC_SNPRINTF.
67848         (gl_FUNC_SNPRINTF): Invoke it.
67849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67850         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67851         is set.
67852         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67853
67854 2007-03-06  Bruno Haible  <bruno@clisp.org>
67855
67856         * modules/vsnprintf-posix-tests: New file.
67857         * tests/test-vsnprintf-posix.c: New file.
67858         * tests/test-snprintf-posix.h: New file.
67859
67860         * modules/vsnprintf-posix: New file.
67861         * m4/vsnprintf-posix.m4: New file.
67862         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67863         gl_FUNC_VSNPRINTF.
67864         (gl_FUNC_VSNPRINTF): Invoke it.
67865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67866         * lib/stdio_.h (vsnprintf): Define as a replacement if
67867         REPLACE_VSNPRINTF is set.
67868         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67869
67870 2007-03-06  Bruno Haible  <bruno@clisp.org>
67871
67872         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67873         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67874
67875 2007-03-06  Bruno Haible  <bruno@clisp.org>
67876
67877         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67878         (asinl): Declare also if HAVE_DECL_ASINL is set.
67879         (atanl): Declare also if HAVE_DECL_ATANL is set.
67880         (ceill): Declare also if HAVE_DECL_CEILL is set.
67881         (cosl): Declare also if HAVE_DECL_COSL is set.
67882         (expl): Declare also if HAVE_DECL_EXPL is set.
67883         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67884         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67885         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67886         (logl): Declare also if HAVE_DECL_LOGL is set.
67887         (sinl): Declare also if HAVE_DECL_SINL is set.
67888         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67889         (tanl): Declare also if HAVE_DECL_TANL is set.
67890         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67892         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67893         declaration of frexpl, ldexpl.
67894         * modules/printf-frexpl (Depends-on): Add math.
67895         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67896
67897 2007-03-05  Bruno Haible  <bruno@clisp.org>
67898
67899         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67900         frexpl and ldexpl are declared.
67901         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67902
67903 2007-03-05  Bruno Haible  <bruno@clisp.org>
67904
67905         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67906         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67907
67908 2007-03-05  Bruno Haible  <bruno@clisp.org>
67909
67910         * lib/stdio_.h: Include <stddef.h>.
67911
67912 2007-03-05  Bruno Haible  <bruno@clisp.org>
67913
67914         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67915
67916 2007-03-05  Bruno Haible  <bruno@clisp.org>
67917
67918         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67919         NetBSD 4, from Ralf Wildenhues.
67920
67921 2007-03-04  Bruno Haible  <bruno@clisp.org>
67922
67923         * lib/vasprintf.h: Update #if logic for the case when the functions
67924         exist but are overridden.
67925
67926 2007-03-04  Bruno Haible  <bruno@clisp.org>
67927
67928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67929         implementations: glibc-2.4 and MacOS X 10.3.
67930         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67931         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67932         * tests/test-vasprintf-posix.c (test_function): Likewise.
67933
67934 2007-03-04  Bruno Haible  <bruno@clisp.org>
67935
67936         * modules/vasprintf-posix-tests: New file.
67937         * tests/test-vasprintf-posix.c: New file.
67938
67939         * modules/vasprintf-posix: New file.
67940         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67941         defined.
67942         * m4/vasprintf-posix.m4: New file.
67943         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67944         gl_FUNC_VASPRINTF.
67945         (gl_FUNC_VASPRINTF): Invoke it.
67946         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67947         here.
67948         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67949
67950 2007-03-04  Bruno Haible  <bruno@clisp.org>
67951
67952         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67953         REPLACE_GETTIMEOFDAY.
67954         * modules/sys_time (Makefile.am): Likewise.
67955         * m4/sys_time_h.m4: Likewise.
67956         * m4/gettimeofday.m4: Likewise.
67957
67958 2007-03-04  Bruno Haible  <bruno@clisp.org>
67959
67960         * modules/vasnprintf-posix-tests: New file.
67961         * tests/test-vasnprintf-posix.c: New file.
67962
67963         * modules/vasnprintf-posix: New file.
67964         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67965         printf-frexpl.h.
67966         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67967         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67968         REPLACE_VASNPRINTF is defined.
67969         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67970         gl_FUNC_VASNPRINTF.
67971         (gl_FUNC_VASNPRINTF): Invoke it.
67972         * m4/vasnprintf-posix.m4: New file.
67973         * m4/printf.m4: New file.
67974
67975 2007-03-04  Bruno Haible  <bruno@clisp.org>
67976
67977         Compile progreloc.c only if --enable-relocatable is specified.
67978         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67979         if --enable-relocatable was specified.
67980         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67981         lib_SOURCES.
67982
67983 2007-03-04  Jim Meyering  <jim@meyering.net>
67984
67985         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67986         Use it consistently, rather than enumerating errno constants.
67987
67988 2007-03-04  Bruno Haible  <bruno@clisp.org>
67989
67990         * modules/xvasprintf-tests: New file.
67991         * tests/test-xvasprintf.c: New file.
67992
67993         * modules/vasprintf-tests: New file.
67994         * tests/test-vasprintf.c: New file.
67995
67996         * modules/vasnprintf-tests: New file.
67997         * tests/test-vasnprintf.c: New file.
67998
67999         * modules/vsnprintf-tests: New file.
68000         * tests/test-vsnprintf.c: New file.
68001
68002         * modules/snprintf-tests: New file.
68003         * tests/test-snprintf.c: New file.
68004
68005 2007-03-04  Bruno Haible  <bruno@clisp.org>
68006
68007         Compile relocatable.c only if --enable-relocatable is specified.
68008         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68009         gl_RELOCATABLE_LIBRARY.
68010         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68011         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68012         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68013         gl_RELOCATABLE_LIBRARY.
68014         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68015         (Makefile.am): Remove lib_SOURCES.
68016         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68017         gl_RELOCATABLE_LIBRARY.
68018         (Makefile.am): Remove lib_SOURCES.
68019         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68020         always.
68021         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68022         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68023
68024 2007-03-04  Bruno Haible  <bruno@clisp.org>
68025
68026         * modules/argmatch-tests: New file.
68027         * tests/test-argmatch.c: New file.
68028
68029         * tests/test-allocsa.c (main): Halve the number of loop runs.
68030
68031         * modules/alloca-opt-tests: New file.
68032         * tests/test-alloca-opt.c: New file.
68033
68034 2007-03-04  Jim Meyering  <jim@meyering.net>
68035
68036         Work around difference between Linux ACLs and Solaris 10 ZFS.
68037         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68038         for EINVAL.
68039
68040 2007-03-03  Bruno Haible  <bruno@clisp.org>
68041
68042         * modules/relocatable-prog (Depends-on): Add back progreloc's
68043         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68044
68045 2007-03-03  Bruno Haible  <bruno@clisp.org>
68046
68047         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68048         * modules/relocatable-lib: New file.
68049
68050 2007-03-03  Bruno Haible  <bruno@clisp.org>
68051
68052         * modules/relocatable-prog: Renamed from modules/relocatable.
68053         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68054
68055 2007-03-03  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68058         m4/relocatable-lib.m4.
68059         (Depends-on): Remove 'relocatable'.
68060         (configure.ac): Add gl_RELOCATABLE_NOP.
68061
68062 2007-03-03  Bruno Haible  <bruno@clisp.org>
68063
68064         * modules/relocatable-prog-wrapper: New file.
68065         * modules/relocatable (Depends-on): Add it. Remove all other
68066         dependencies except progname.
68067         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68068
68069         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68070         (gl_FUNC_STRERROR): Nop.
68071         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68072
68073         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68074         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68075
68076         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68077         (gl_FUNC_READLINK): Update.
68078
68079         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68080
68081 2007-03-03  Bruno Haible  <bruno@clisp.org>
68082
68083         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68084         * modules/xreadlink (Depends-on): Add unistd.
68085         * modules/xreadlink-with-size (Depends-on): Likewise.
68086
68087 2007-03-03  Bruno Haible  <bruno@clisp.org>
68088
68089         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68090         extracted from gt_FUNC_SETENV.
68091         (gt_FUNC_SETENV): Remove macro.
68092         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68093         remove gt_FUNC_SETENV.
68094
68095 2007-03-03  Bruno Haible  <bruno@clisp.org>
68096
68097         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68098         ENABLE_RELOCATABLE here.
68099         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68100
68101 2007-03-03  Bruno Haible  <bruno@clisp.org>
68102
68103         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68104         * tests/test-rbtreehash_list.c: Include progname.h.
68105         (main): Call set_program_name.
68106
68107         * modules/rbtree-oset-tests (Depends-on): Add progname.
68108         * tests/test-rbtree_oset.c: Include progname.h.
68109         (main): Call set_program_name.
68110
68111         * modules/rbtree-list-tests (Depends-on): Add progname.
68112         * tests/test-rbtree_list.c: Include progname.h.
68113         (main): Call set_program_name.
68114
68115         * modules/linked-list-tests (Depends-on): Add progname.
68116         * tests/test-linked_list.c: Include progname.h.
68117         (main): Call set_program_name.
68118
68119 2007-03-03  Bruno Haible  <bruno@clisp.org>
68120
68121         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68122         All uses of __restrict changed to _Restrict_.
68123         * lib/glob_.h (__restrict): Remove macro.
68124
68125 2007-03-02  Bruno Haible  <bruno@clisp.org>
68126
68127         * modules/gettext (configure.ac): Require gettext infrastructure
68128         from version 0.16.1.
68129
68130 2007-03-02  Bruno Haible  <bruno@clisp.org>
68131
68132         * modules/linkedhash-list-tests (Depends-on): Add progname.
68133         * tests/test-linkedhash_list.c: Include progname.h.
68134         (main): Call set_program_name.
68135
68136         * modules/carray-list-tests (Depends-on): Add progname.
68137         * tests/test-carray_list.c: Include progname.h.
68138         (main): Call set_program_name.
68139
68140         * modules/avltreehash-list-tests (Depends-on): Add progname.
68141         * tests/test-avltreehash_list.c: Include progname.h.
68142         (main): Call set_program_name.
68143
68144         * modules/avltree-oset-tests (Depends-on): Add progname.
68145         * tests/test-avltree_oset.c: Include progname.h.
68146         (main): Call set_program_name.
68147
68148         * modules/avltree-list-tests (Depends-on): Add progname.
68149         * tests/test-avltree_list.c: Include progname.h.
68150         (main): Call set_program_name.
68151
68152         * modules/array-oset-tests (Depends-on): Add progname.
68153         * tests/test-array_oset.c: Include progname.h.
68154         (main): Call set_program_name.
68155
68156         * modules/array-list-tests (Depends-on): Add progname.
68157         * tests/test-array_list.c: Include progname.h.
68158         (main): Call set_program_name.
68159
68160         * modules/argp-tests (Depends-on): Add progname.
68161         * tests/test-argp.c: Include argp.h first. Include progname.h.
68162         (main): Call set_program_name.
68163
68164 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * doc/gnulib-tool.texi (Initial import): Reword description of
68167         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68168         limited effect even if defined after the first system include.
68169
68170 2007-03-01  Bruno Haible  <bruno@clisp.org>
68171
68172         * build-aux/config.libpath: Update to libtool-1.5.22.
68173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68174
68175 2007-03-01  Bruno Haible  <bruno@clisp.org>
68176
68177         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68178         foo_CFLAGS.
68179         Reported by Ralf Wildenhues.
68180
68181 2007-03-01  Bruno Haible  <bruno@clisp.org>
68182
68183         * build-aux/install-reloc: Remove object files left over by some
68184         compilers.
68185         Reported by Ralf Wildenhues.
68186
68187 2007-03-01  Bruno Haible  <bruno@clisp.org>
68188
68189         * build-aux/install-reloc: Break long lines.
68190
68191 2007-03-01  Bruno Haible  <bruno@clisp.org>
68192
68193         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68194         Reported by Ralf Wildenhues.
68195
68196 2007-03-01  Bruno Haible  <bruno@clisp.org>
68197
68198         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68199         include ordering constraints.
68200
68201 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68204         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68205         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68206         as another example.
68207         * lib/time_.h: Fix misspelling.
68208         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68209         Require gl_HEADER_TIME_H_DEFAULTS.
68210         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68211         * m4/time_r.m4 (gl_TIME_R): Likewise.
68212         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68213
68214 2007-03-01  Bruno Haible  <bruno@clisp.org>
68215
68216         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68217         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68218
68219 2007-03-01  Jim Meyering  <jim@meyering.net>
68220
68221         * modules/xreadlink (Maintainer): Add my name.
68222         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68223
68224 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68225             Bruno Haible  <bruno@clisp.org>
68226
68227         * build-aux/install-reloc: Compile also c-ctype.c.
68228         * build-aux/relocatable.sh.in: New file.
68229         * doc/relocatable.texi: New file.
68230         * doc/relocatable-maint.texi: New file.
68231         * doc/gnulib.texi: Include relocatable-maint.texi.
68232         * lib/progreloc.c: Include unistd.h unconditionally.
68233         * lib/relocwrapper.c: Include unistd.h unconditionally.
68234         Include c-ctype.h.
68235         (add_dotbin): Use c_tolower.
68236         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68237         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68238         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68239         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68240         to m4/relocatable-lib.m4.
68241         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68242         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68243         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68244         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68245         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68246         * modules/relocatable: New file.
68247         * modules/relocatable-lib: New file.
68248         * modules/relocatable-script: New file.
68249
68250 2007-02-28  Bruno Haible  <bruno@clisp.org>
68251
68252         Import --enable-relocatable infrastructure.
68253         * build-aux/config.libpath: New file, from GNU gettext.
68254         * build-aux/install-reloc: New file, from GNU gettext.
68255         * build-aux/reloc-ldflags: New file, from GNU gettext.
68256         * lib/relocatable.h: New file, from GNU gettext.
68257         * lib/relocatable.c: New file, from GNU gettext.
68258         * lib/relocwrapper.c: New file, from GNU gettext.
68259         * m4/relocatable.m4: New file, from GNU gettext.
68260
68261 2007-02-28  Bruno Haible  <bruno@clisp.org>
68262
68263         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68264
68265         * modules/xreadlink: New file, from GNU gettext with modifications.
68266         * lib/xreadlink.c: New file, from GNU gettext.
68267         * lib/xreadlink.h: Add comments.
68268         (xreadlink): New declaration.
68269
68270         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68271         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68272         lib/xreadlink-with-size.c.
68273         (configure.ac): Remove gl_XREADLINK invocation.
68274         (Makefile.am): Augment lib_SOURCES.
68275         * m4/xreadlink.m4: Remove file.
68276         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68277         (xreadlink_with_size): Renamed from xreadink.
68278         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68279         * modules/canonicalize (Depends-on): Replace xreadlink with
68280         xreadlink-with-size.
68281         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68282
68283 2007-02-25  Jim Meyering  <jim@meyering.net>
68284
68285         * build-aux/announce-gen: When complaining about excess arguments,
68286         list them.
68287
68288 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68289
68290         * README: Document signed integer overflow situation more
68291         accurately.
68292
68293 2007-02-25  Bruno Haible  <bruno@clisp.org>
68294
68295         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68296         'a' or 'A' conversion.
68297
68298 2007-02-25  Bruno Haible  <bruno@clisp.org>
68299
68300         * modules/filename: Renamed from modules/pathname.
68301         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68302         lib/concatpath.c with lib/concat-filename.c.
68303         (Makefile.am): Update.
68304         (Include): Replace pathname.h with filename.h.
68305         * lib/filename.h: Renamed from lib/pathname.h.
68306         (concatenated_filename): Renamed from concatenated_pathname.
68307         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68308         (concatenated_filename): Renamed from concatenated_pathname.
68309         * lib/findprog.c: Include filename.h instead of pathname.h.
68310         (find_in_path): Update.
68311         * lib/javacomp.c: Include filename.h instead of pathname.h.
68312         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68313         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68314         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68315         is_oldgcj_14_13_usable, is_javac_usable): Update.
68316         * lib/javaexec.c: Include filename.h instead of pathname.h.
68317         (execute_java_class): Update.
68318         * modules/findprog: Update.
68319         * modules/javacomp: Update.
68320         * modules/javaexec: Update.
68321         * MODULES.html.sh (File system functions): Add 'filename', remove
68322         'pathname'.
68323
68324 2007-02-25  Bruno Haible  <bruno@clisp.org>
68325
68326         * modules/printf-frexpl-tests: New file.
68327         * tests/test-printf-frexpl.c: New file.
68328
68329         * modules/printf-frexpl: New file.
68330         * lib/printf-frexpl.h: New file.
68331         * lib/printf-frexpl.c: New file.
68332         * m4/printf-frexpl.m4: New file.
68333
68334 2007-02-25  Bruno Haible  <bruno@clisp.org>
68335
68336         * modules/printf-frexp-tests: New file.
68337         * tests/test-printf-frexp.c: New file.
68338
68339         * modules/printf-frexp: New file.
68340         * lib/printf-frexp.h: New file.
68341         * lib/printf-frexp.c: New file.
68342         * m4/printf-frexp.m4: New file.
68343
68344 2007-02-25  Bruno Haible  <bruno@clisp.org>
68345
68346         Assume automake >= 1.10 for the tests.
68347         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68348         * modules/arctwo-tests: Likewise.
68349         * modules/argp-tests: Likewise.
68350         * modules/avltree-list-tests: Likewise.
68351         * modules/avltree-oset-tests: Likewise.
68352         * modules/avltreehash-list-tests: Likewise.
68353         * modules/carray-list-tests: Likewise.
68354         * modules/crc-tests: Likewise.
68355         * modules/des-tests: Likewise.
68356         * modules/gc-arcfour-tests: Likewise.
68357         * modules/gc-arctwo-tests: Likewise.
68358         * modules/gc-des-tests: Likewise.
68359         * modules/gc-hmac-md5-tests: Likewise.
68360         * modules/gc-hmac-sha1-tests: Likewise.
68361         * modules/gc-md2-tests: Likewise.
68362         * modules/gc-md4-tests: Likewise.
68363         * modules/gc-md5-tests: Likewise.
68364         * modules/gc-pbkdf2-sha1-tests: Likewise.
68365         * modules/gc-rijndael-tests: Likewise.
68366         * modules/gc-sha1-tests: Likewise.
68367         * modules/gc-tests: Likewise.
68368         * modules/getaddrinfo-tests: Likewise.
68369         * modules/hmac-md5-tests: Likewise.
68370         * modules/hmac-sha1-tests: Likewise.
68371         * modules/linked-list-tests: Likewise.
68372         * modules/linkedhash-list-tests: Likewise.
68373         * modules/lock-tests: Likewise.
68374         * modules/md2-tests: Likewise.
68375         * modules/md4-tests: Likewise.
68376         * modules/md5-tests: Likewise.
68377         * modules/rbtree-list-tests: Likewise.
68378         * modules/rbtree-oset-tests: Likewise.
68379         * modules/rbtreehash-list-tests: Likewise.
68380         * modules/read-file-tests: Likewise.
68381         * modules/rijndael-tests: Likewise.
68382         * modules/stdint-tests: Likewise.
68383         * modules/tls-tests: Likewise.
68384
68385 2007-02-24  Bruno Haible  <bruno@clisp.org>
68386
68387         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68388         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68389         function; instead check whether isnan with a double argument links.
68390         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68391         function; instead check whether isnan with a 'long double' argument
68392         links.
68393         Reported by Eric Blake <ebb9@byu.net>.
68394
68395 2007-02-24  Bruno Haible  <bruno@clisp.org>
68396
68397         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68398         defined.
68399         * lib/isnanl.c: Remove all code. Just include isnan.c.
68400         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68401
68402 2007-02-25  Jim Meyering  <jim@meyering.net>
68403
68404         Avoid conflicting types for 'unsetenv' on FreeBSD.
68405         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68406         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68407         in stdlib.h.
68408
68409 2007-02-24  Bruno Haible  <bruno@clisp.org>
68410
68411         * modules/isnanl-nolibm-tests: New file.
68412         * tests/test-isnanl.c: New file.
68413
68414         * modules/isnanl-nolibm: New file.
68415         * lib/isnanl.h: New file.
68416         * lib/isnanl.c: New file.
68417         * m4/isnanl.m4: New file.
68418
68419 2007-02-24  Bruno Haible  <bruno@clisp.org>
68420
68421         * modules/isnan-nolibm-tests: New file.
68422         * tests/test-isnan.c: New file.
68423
68424         * modules/isnan-nolibm: New file.
68425         * lib/isnan.h: New file.
68426         * lib/isnan.c: New file.
68427         * m4/isnan.m4: New file.
68428
68429 2007-02-24  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68432         assume that an exponent fits in 20 bits.
68433
68434 2007-02-24  Jim Meyering  <jim@meyering.net>
68435
68436         * m4/regex.m4: Update the description of the configure-time option,
68437         --without-included-regex, to state accurately what the defaults are,
68438         and perhaps to give people an idea why using this option is risky.
68439
68440 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68443         loops on small arguments.  This attempts to avoid the problem
68444         Bruno Haible reported for AIX 4.3.2 in
68445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68446
68447 2007-02-23  Bruno Haible  <bruno@clisp.org>
68448
68449         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68450         Needed for help2man.
68451
68452 2007-02-23  Karl Berry  <karl@gnu.org>
68453
68454         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68455         exists, foo.h should be cvs-ignored, not committed.
68456
68457 2007-02-23  Eric Blake  <ebb9@byu.net>
68458
68459         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68460         * lib/stat-time.h (includes): Likewise.
68461         * lib/utimecmp.c (includes): Likewise.
68462         * lib/utimens.h (includes): Likewise.
68463         * lib/getdate.y (includes): Also include "timespec.h" for use
68464         internal to the module.
68465         * modules/utimens (Depends-on): Revert yesterday's patch.
68466         * modules/nanosleep (Depends-on): Add missing dependency.
68467
68468 2007-02-22  Bruno Haible  <bruno@clisp.org>
68469
68470         * lib/glob.c: Don't include getlogin_r.h.
68471
68472 2007-02-22  Jim Meyering  <jim@meyering.net>
68473
68474         * modules/utimens (Depends-on): Add timespec, required for
68475         utimens.h's inclusion of timespec.h.
68476
68477 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68480         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68481         Schwab in
68482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68483         I'll try to think of a better way to fix the Solaris problem.
68484
68485         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68486         like glibc; on Solaris 10, it fails with errno == EINVAL.
68487         POSIX says the behavior is unspecified if the first argument is NULL,
68488         so play it safe and never pass NULL to the system getcwd.
68489
68490 2007-02-21  Jim Meyering  <jim@meyering.net>
68491
68492         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68493         of gettimeofday.  It would conflict with the one now always
68494         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68495         an IRIX 6.5 build failure.
68496
68497 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68498
68499         Minor fixups to port to Solaris 10 with Sun C 5.8.
68500         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68501         * modules/getcwd (Depends-on): Add dirfd.
68502         * lib/putenv.c (putenv): #undef it.
68503         (rpl_putenv): New decl.
68504         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68505
68506 2007-02-20  Bruno Haible  <bruno@clisp.org>
68507
68508         * modules/stdio-tests: New file.
68509         * tests/test-stdio.c: New file.
68510
68511         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68512         (Depends-on): Add stdio.
68513         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68514         (Include): Use <stdio.h> instead of vsnprintf.h.
68515         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68516         HAVE_DECL_VSNPRINTF.
68517         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68518
68519         * modules/snprintf (Files): Remove lib/snprintf.h.
68520         (Depends-on): Add stdio.
68521         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68522         (Include): Use <stdio.h> instead of snprintf.h.
68523         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68524         HAVE_DECL_SNPRINTF.
68525         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68526         * lib/getaddrinfo.c: Likewise.
68527
68528         * modules/stdio: New file.
68529         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68530         * lib/snprintf.h: Remove file.
68531         * lib/vsnprintf.h: Remove file.
68532         * lib/.cppi-disable: Remove snprintf.h.
68533         * m4/stdio_h.m4: New file.
68534         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68535
68536 2007-02-20  Jim Meyering  <jim@meyering.net>
68537
68538         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68539         used by e.g., mingw.  From Bruno Haible.
68540
68541 2007-02-19  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68544         warnings.
68545         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68546
68547 2007-02-19  Bruno Haible  <bruno@clisp.org>
68548
68549         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68550         from mingw users.
68551
68552 2007-02-19  Bruno Haible  <bruno@clisp.org>
68553
68554         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68555         warnings.
68556         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68557
68558 2007-02-19  Jim Meyering  <jim@meyering.net>
68559
68560         Don't use FD after a successful "fdopendir (fd)".
68561         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68562         Reset it by calling dirfd on the just-obtained DIR*.
68563
68564         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68565         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68566
68567 2007-02-18  Bruno Haible  <bruno@clisp.org>
68568
68569         * lib/readlink.c: Include <unistd.h>.
68570         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68571         HAVE_READLINK.
68572         * modules/readlink (Depends-on): Add unistd.
68573         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68574         (Include): Add <unistd.h>.
68575
68576         * lib/getlogin_r.h: Remove file.
68577         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68578         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68579         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68580         HAVE_DECL_GETLOGIN_R.
68581         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68582         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68583         (Include): Use <unistd.h> instead of getlogin_r.h.
68584
68585         * lib/getcwd.h: Remove file.
68586         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68587         * lib/xgetcwd.c: Likewise.
68588         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68589         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68590         * modules/getcwd (Files): Remove lib/getcwd.h.
68591         (Depends-on): Add unistd.
68592         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68593         (Include): Use <unistd.h> instad of getcwd.h.
68594
68595         * lib/ftruncate.c: Include <unistd.h> first.
68596         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68597         Set HAVE_FTRUNCATE.
68598         * modules/ftruncate (Depends-on): Add unistd.
68599         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68600
68601         * lib/fchdir.c: Include <unistd.h> first.
68602         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68604         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68605         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68606         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68607
68608         * lib/dup2.c: Include <unistd.h> first.
68609         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68610         HAVE_DUP2.
68611         * modules/dup2 (Depends-on): Add unistd.
68612         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68613
68614         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68615         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68616         REPLACE_CHOWN. Don't define chown as a macro here.
68617         * modules/chown (Depends-on): Add unistd.
68618         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68619
68620         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68621         Add definition for GL_LINK_WARNING.
68622         (chown, dup2): New declarations.
68623         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68624         link warning.
68625         (ftruncate): New declaration.
68626         (getcwd): New declaration, taken from old getcwd.h.
68627         (getlogin_r): New declaration, taken from old getlogin_r.h.
68628         (readlink): New declaration.
68629         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68630         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68631         (gl_PREREQ_UNISTD): Remove macro.
68632         (gl_UNISTD_MODULE_INDICATOR): New macro.
68633         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68634         many new variables. Don't set UNISTD_H.
68635         * modules/unistd (Description): Change.
68636         (Depends-on): Add link-warning.
68637         (configure.ac): Update.
68638         (Makefile.am): Create unistd.h always. Substitute many new variables
68639         into it.
68640
68641 2007-02-18  Bruno Haible  <bruno@clisp.org>
68642
68643         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68644         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68645         HAVE_GETSUBOPT.
68646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68647         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68648         * lib/getsubopt.h: Remove file.
68649         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68650         (Depends-on): Add stdlib.
68651         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68652         (Includes): Use <stdlib.h> instead of getsubopt.h.
68653         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68654         Set HAVE_GETSUBOPT.
68655         * lib/getsubopt.c: Don't include getsubopt.h.
68656
68657 2007-02-18  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/fchdir (Depends-on): Add dup2.
68660
68661 2007-02-18  Bruno Haible  <bruno@clisp.org>
68662
68663         * lib/stdlib_.h: Handle glibc's special invocation convention
68664         specially.
68665
68666 2007-02-18  Bruno Haible  <bruno@clisp.org>
68667
68668         * modules/stdlib-tests: New file.
68669         * tests/test-stdlib.c: New file.
68670
68671         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68672         (Depends-on): Add stdlib.
68673         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68674         (Includes): Use <stdlib.h> instead of mkstemp.h.
68675         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68676         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68677         * lib/mkstemp.c: Don't include mkstemp.h.
68678         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68679         * lib/stdlib--.h: Don't include mkstemp.h.
68680
68681         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68682         (Depends-on): Add stdlib.
68683         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68684         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68685         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68686         HAVE_MKDTEMP.
68687         * lib/mkdtemp.c: Don't include mkdtemp.h.
68688         * lib/clean-temp.c: Don't include mkdtemp.h.
68689
68690         * modules/exit (Files): Remove lib/exit.h.
68691         (Depends-on): Add stdlib.
68692         (Makefile.am): Remove lib_SOURCES.
68693         (Include): Use <stdlib.h> instead of exit.h.
68694         * lib/argmatch.c: Don't include exit.h.
68695         * lib/execute.c: Likewise.
68696         * lib/pagealign_alloc.c: Likewise.
68697         * lib/pipe.c: Likewise.
68698         * lib/wait-process.c: Likewise.
68699         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68700         * lib/exitfail.c: Likewise.
68701         * lib/savewd.c: Likewise.
68702         * lib/xsetenv.c: Likewise.
68703
68704         * modules/stdlib: New file.
68705         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68706         and extra comments about mkstemp().
68707         * lib/exit.h: Remove file.
68708         * lib/mkdtemp.h: Remove file.
68709         * lib/mkstemp.h: Remove file.
68710         * m4/stdlib_h.m4: New file.
68711         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68712
68713 2007-02-18  Bruno Haible  <bruno@clisp.org>
68714
68715         * modules/math-tests: New file.
68716         * tests/test-math.c: New file.
68717
68718         * modules/math: New file.
68719         * modules/mathl (Files): Remove lib/mathl.h.
68720         (Depends-on): Add math.
68721         (Makefile.am): Don't mention mathl.h.
68722         (Include): Use <math.h> instead of mathl.h.
68723         * lib/math_.h: New file.
68724         * lib/mathl.h: Remove file.
68725         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68726         mathl.h.
68727         * lib/asinl.c: Likewise.
68728         * lib/atanl.c: Likewise.
68729         * lib/ceill.c: Likewise.
68730         * lib/cosl.c: Likewise.
68731         * lib/expl.c: Likewise.
68732         * lib/floorl.c: Likewise.
68733         * lib/frexpl.c: Likewise.
68734         * lib/ldexpl.c: Likewise.
68735         * lib/logl.c: Likewise.
68736         * lib/sincosl.c: Likewise.
68737         * lib/sinl.c: Likewise.
68738         * lib/sqrtl.c: Likewise.
68739         * lib/tanl.c: Likewise.
68740         * lib/trigl.c: Likewise.
68741         * m4/math_h.m4: New file.
68742         * MODULES.html.sh (Mathematics): Add math.
68743
68744 2007-02-17  Bruno Haible  <bruno@clisp.org>
68745
68746         * modules/wctype-tests: New file.
68747         * tests/test-wctype.c: New file.
68748
68749         * modules/wchar-tests: New file.
68750         * tests/test-wchar.c: New file.
68751
68752         * modules/unistd-tests: New file.
68753         * tests/test-unistd.c: New file.
68754
68755         * modules/time-tests: New file.
68756         * tests/test-time.c: New file.
68757
68758         * modules/sysexits-tests: New file.
68759         * tests/test-sysexits.c: New file.
68760
68761         * modules/sys_time-tests: New file.
68762         * tests/test-sys_time.c: New file.
68763
68764         * modules/sys_stat-tests: New file.
68765         * tests/test-sys_stat.c: New file.
68766
68767         * modules/sys_socket-tests: New file.
68768         * tests/test-sys_socket.c: New file.
68769
68770         * modules/sys_select-tests: New file.
68771         * tests/test-sys_select.c: New file.
68772
68773         * modules/string-tests: New file.
68774         * tests/test-string.c: New file.
68775
68776         * modules/stdbool-tests: New file.
68777         * tests/test-stdbool.c: New file.
68778
68779         * modules/netinet_in-tests: New file.
68780         * tests/test-netinet_in.c: New file.
68781
68782         * modules/inttypes-tests: New file.
68783         * tests/test-inttypes.c: New file.
68784
68785         * modules/fcntl-tests: New file.
68786         * tests/test-fcntl.c: New file.
68787
68788         * modules/byteswap-tests: New file.
68789         * tests/test-byteswap.c: New file.
68790
68791         * modules/arpa_inet-tests: New file.
68792         * tests/test-arpa_inet.c: New file.
68793
68794 2007-02-17  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68797         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68798         if the corresponding module is not enabled. Emit link warnings if
68799         the function is used nevertheless.
68800         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68801         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68802         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68803         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68804         * modules/inttypes (Depends-on): Add link-warning.
68805         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68806         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68807         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68808         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68809         * modules/imaxdiv (configure.ac): Likewise.
68810         * modules/strtoimax (configure.ac): Likewise.
68811         * modules/strtoumax (configure.ac): Likewise.
68812
68813 2007-02-17  Bruno Haible  <bruno@clisp.org>
68814
68815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68816         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68817         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68818         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68819
68820 2007-02-17  Bruno Haible  <bruno@clisp.org>
68821
68822         * modules/link-warning: New file.
68823         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68824         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68825         * modules/string (Depends-on): Add link-warning.
68826         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68827         string.h.
68828         * MODULES.html.sh (Support for building libraries and executables): Add
68829         link-warning.
68830
68831 2007-02-17  Bruno Haible  <bruno@clisp.org>
68832
68833         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68834         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68835         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68836         long lines.
68837
68838 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68839             Bruno Haible  <bruno@clisp.org>
68840
68841         * modules/tmpfile: New file.
68842         * lib/tmpfile.c: New file.
68843         * m4/tmpfile.m4: New file.
68844         * MODULES.html.sh (func_all_modules): New section "Input/output".
68845
68846 2007-02-15  Bruno Haible  <bruno@clisp.org>
68847
68848         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68849         (supports_delete_on_close): New function.
68850         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68851
68852 2007-02-14  Bruno Haible  <bruno@clisp.org>
68853
68854         * modules/mbspcasecmp-tests: New file.
68855         * tests/test-mbspcasecmp.sh: New file.
68856         * tests/test-mbspcasecmp.c: New file.
68857
68858         New module mbspcasecmp.
68859         * modules/mbspcasecmp: New file.
68860         * lib/mbspcasecmp.c: New file.
68861         * lib/string_.h (strncasecmp): Change warning message.
68862         (mbspcasecmp): New declaration.
68863         * m4/mbspcasecmp.m4: New file.
68864         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68865         GNULIB_MBSPCASECMP.
68866         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68867         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68868
68869 2007-02-14  Bruno Haible  <bruno@clisp.org>
68870
68871         * modules/mbsncasecmp-tests: New file.
68872         * tests/test-mbsncasecmp.sh: New file.
68873         * tests/test-mbsncasecmp.c: New file.
68874
68875         New module mbsncasecmp.
68876         * modules/mbsncasecmp: New file.
68877         * lib/mbsncasecmp.c: New file.
68878         * lib/string_.h (mbsncasecmp): New declaration.
68879         * m4/mbsncasecmp.m4: New file.
68880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68881         GNULIB_MBSNCASECMP.
68882         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68883         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68884
68885 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68888         Verify that it doesn't overlap with our flags.
68889         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68890         do not have the desired effect in multibyte locales; instead, use
68891         mbscasecmp.
68892         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68893         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68894         we don't require GNU fnmatch ourselves (if our users require it, they
68895         should do so explicitly).
68896
68897         Fix regex code so it doesn't rely on strcasecmp.
68898         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68899         Otherwise, include gnulib's langinfo.h.
68900         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68901         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68902         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68903         * modules/regex (FILES): Remove m4/codeset.m4.
68904         (Depends-on): Add localcharset.  Remove strcase.
68905
68906 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68907
68908         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68909         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68910
68911 2007-02-13  Bruno Haible  <bruno@clisp.org>
68912
68913         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68914         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68915
68916 2007-02-12  Bruno Haible  <bruno@clisp.org>
68917
68918         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68919         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68920         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68921         time warning rather than a link error.
68922
68923 2007-02-12  Bruno Haible  <bruno@clisp.org>
68924
68925         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68926         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68928
68929 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68930
68931         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68932         args, not 2.
68933
68934 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68935
68936         New module 'time', so that apps can include <time.h> as per
68937         POSIX and GNU instead of separate include files like time_r.h
68938         and timegm.h.  This implementation tries out a simpler approach
68939         for replacing decls in standard include files (as compared to
68940         the string module), somewhat as an experiment.
68941
68942         * config/srclist.txt: Comment out mktime.c for now.
68943         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68944         since it doesn't apply any more.  Use generic wording instead.
68945         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68946         'time'.
68947         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68948         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68949         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68950         Don't include <sys/types.h>; no longer needed since we assume C89.
68951         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68952         * lib/strftime.c: Likewise.
68953         * lib/time_r.c: Likewise.
68954         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68955         * lib/nanosleep.c: Include <time.h> first, to check interface.
68956         * lib/strptime.c: Likewise.
68957         * lib/time_r.c: Likewise.
68958         * lib/timegm.c: Likewise.
68959         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68960         needed.
68961         * lib/timegm.c: Don't include timegm.h; no longer needed.
68962         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68963         time.h now handles any problems in that area.
68964         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68965         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68966         that time.h defines struct timespec.
68967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68968         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68969         handles that.
68970         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68971         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68972         needed.  Set REPLACE_LOCALTIME.
68973         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68974         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68975         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68976         nanosleep; time_h.m4 now does that.  Don't require
68977         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68978         module handles this now.
68979         * modules/getdate (Depends-on): Remove timespec.  Add time.
68980         * modules/nanosleep (Depends-on): Likewise.
68981         * modules/stat-time (Depends-on): Likewise.
68982         * modules/nanosleep (Include): Include time.h, not timespec.h.
68983         * modules/strptime (Files): Remove lib/strptime.h.
68984         (Depends-on): Add extensions, time.
68985         (Include): Include time.h, not strptime.h.
68986         * modules/time_r (Files): Remove lib/time_r.h.
68987         (Depends-on): Add time.
68988         (Include): Include time.h, not time_r.h.
68989         * modules/timegm: Likewise.
68990         * modules/timespec (Description): Now does timespec-related decls
68991         of our own, instead of struct timespec itself.
68992         (Depends-on): Add time; remove extensions.
68993         (Maintainer): Add self.
68994         * modules/utimecmp (Depends-on): Add time; remove timespec.
68995         * modules/utimens (Depends-on): Likewise.
68996         * modules/xnanosleep (Depends-on): Likewise.
68997
68998 2007-02-11  Bruno Haible  <bruno@clisp.org>
68999
69000         * lib/c-strstr.c: Include allocsa.h.
69001         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69002         * lib/c-strcasestr.c: Include allocsa.h.
69003         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69004         * lib/strcasestr.c: Include allocsa.h.
69005         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69006         * lib/mbsstr.c: Include allocsa.h.
69007         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69008         allocsa/freesa instead of malloc/free.
69009         * lib/mbscasestr.c: Include allocsa.h.
69010         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69011         allocsa/freesa instead of malloc/free.
69012         * modules/c-strstr (Depends-on): Add allocsa.
69013         * modules/c-strcasestr (Depends-on): Likewise.
69014         * modules/strcasestr (Depends-on): Likewise.
69015         * modules/mbsstr (Depends-on): Likewise.
69016         * modules/mbscasestr (Depends-on): Likewise.
69017
69018 2007-02-11  Bruno Haible  <bruno@clisp.org>
69019
69020         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69021
69022         * modules/mbsspn-tests: New file.
69023         * tests/test-mbsspn.sh: New file.
69024         * tests/test-mbsspn.c: New file.
69025
69026 2007-02-11  Bruno Haible  <bruno@clisp.org>
69027
69028         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69029
69030         * modules/mbspbrk-tests: New file.
69031         * tests/test-mbspbrk.sh: New file.
69032         * tests/test-mbspbrk.c: New file.
69033
69034 2007-02-11  Bruno Haible  <bruno@clisp.org>
69035
69036         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69037         unneeded cast.
69038
69039         * modules/mbscspn-tests: New file.
69040         * tests/test-mbscspn.sh: New file.
69041         * tests/test-mbscspn.c: New file.
69042
69043 2007-02-11  Bruno Haible  <bruno@clisp.org>
69044
69045         * modules/mbscasecmp-tests: New file.
69046         * tests/test-mbscasecmp.sh: New file.
69047         * tests/test-mbscasecmp.c: New file.
69048
69049 2007-02-11  Bruno Haible  <bruno@clisp.org>
69050
69051         Ensure O(n) worst-case complexity of mbscasestr.
69052         * lib/mbscasestr.c: Include stdbool.h.
69053         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69054         functions.
69055         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69056         the bookkeeping indicates that it's worth it.
69057         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69058
69059         * modules/mbscasestr-tests: New file.
69060         * tests/test-mbscasestr1.c: New file.
69061         * tests/test-mbscasestr2.sh: New file.
69062         * tests/test-mbscasestr2.c: New file.
69063         * tests/test-mbscasestr3.sh: New file.
69064         * tests/test-mbscasestr3.c: New file.
69065         * tests/test-mbscasestr4.sh: New file.
69066         * tests/test-mbscasestr4.c: New file.
69067         * m4/locale-tr.m4: New file.
69068
69069 2007-02-11  Bruno Haible  <bruno@clisp.org>
69070
69071         Ensure O(n) worst-case complexity of mbsstr.
69072         * lib/mbsstr.c: Include stdbool.h.
69073         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69074         functions.
69075         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69076         bookkeeping indicates that it's worth it.
69077         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69078
69079         * modules/mbsstr-tests: New file.
69080         * tests/test-mbsstr1.c: New file.
69081         * tests/test-mbsstr2.sh: New file.
69082         * tests/test-mbsstr2.c: New file.
69083         * tests/test-mbsstr3.sh: New file.
69084         * tests/test-mbsstr3.c: New file.
69085         * m4/locale-fr.m4: New file.
69086
69087 2007-02-11  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/mbsrchr.c (mbsrchr): Fix bug.
69090
69091         * modules/mbsrchr-tests: New file.
69092         * tests/test-mbsrchr.sh: New file.
69093         * tests/test-mbsrchr.c: New file.
69094
69095 2007-02-11  Bruno Haible  <bruno@clisp.org>
69096
69097         * lib/mbschr.c (mbschr): Fix bug.
69098
69099         * modules/mbschr-tests: New file.
69100         * tests/test-mbschr.sh: New file.
69101         * tests/test-mbschr.c: New file.
69102         * m4/locale-zh.m4: New file.
69103
69104 2007-02-11  Bruno Haible  <bruno@clisp.org>
69105
69106         Support for copying multibyte string iterators.
69107         * lib/mbiter.h: Include <string.h>.
69108         (mbiter_multi_copy): New function.
69109         (mbi_copy): New macro.
69110         * lib/mbuiter.h: Include <string.h>.
69111         (mbuiter_multi_copy): New function.
69112         (mbui_copy): New macro.
69113
69114 2007-02-11  Bruno Haible  <bruno@clisp.org>
69115
69116         New module mbslen.
69117         * modules/mbslen: New file.
69118         * lib/mbslen.c: New file.
69119         * lib/string_.h (mbslen): New declaration.
69120         * m4/mbslen.m4: New file.
69121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69122         GNULIB_MBSLEN.
69123         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69124         * MODULES.html.sh (Internationalization functions): Add mbslen.
69125
69126 2007-02-11  Bruno Haible  <bruno@clisp.org>
69127
69128         Ensure O(n) worst-case complexity of strcasestr substitute.
69129         * lib/strcasestr.c: Include stdbool.h.
69130         (knuth_morris_pratt): New function.
69131         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69132         bookkeeping indicates that it's worth it.
69133         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69134
69135         * modules/strcasestr-tests: New file.
69136         * tests/test-strcasestr.c: New file.
69137
69138 2007-02-11  Bruno Haible  <bruno@clisp.org>
69139
69140         Ensure O(n) worst-case complexity of c_strcasestr.
69141         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69142         (knuth_morris_pratt): New function.
69143         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69144         the bookkeeping indicates that it's worth it.
69145         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69146
69147         * modules/c-strcasestr-tests: New file.
69148         * tests/test-c-strcasestr.c: New file.
69149
69150 2007-02-11  Bruno Haible  <bruno@clisp.org>
69151
69152         Ensure O(n) worst-case complexity of c_strstr.
69153         * lib/c-strstr.c: Include stdbool.h, string.h.
69154         (knuth_morris_pratt): New function.
69155         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69156         bookkeeping indicates that it's worth it.
69157         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69158
69159         * lib/c-strstr.c: Complete rewrite for maintainability.
69160
69161         * modules/c-strstr-tests: New file.
69162         * tests/test-c-strstr.c: New file.
69163
69164 2007-02-11  Bruno Haible  <bruno@clisp.org>
69165
69166         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69167         5.2.1 and earlier, whereby \055 was treated just like the range
69168         delimiter '-'.
69169         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69170
69171 2007-02-08  Bruno Haible  <bruno@clisp.org>
69172
69173         * modules/regex (Depends-on): Add stdbool.
69174         Reported by Dalibor Topic <robilad@kaffe.org>.
69175
69176 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69179         Prefer returning from main to exiting from it.
69180         Remove unnecessary parens after sizeof.
69181
69182 2007-02-05  Bruno Haible  <bruno@clisp.org>
69183
69184         New module mbssep.
69185         * modules/mbssep: New file.
69186         * lib/mbssep.c: New file.
69187         * lib/string_.h (strsep): Add a conditional link warning.
69188         (mbssep): New declaration.
69189         * m4/mbssep.m4: New file.
69190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69191         GNULIB_MBSSEP.
69192         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69193         * MODULES.html.sh (Internationalization functions): Add mbssep.
69194
69195 2007-02-05  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69198         Optimize search in case of 1 delimiter.
69199
69200 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69201
69202         * lib/acl.h: Include sys/types.h before sys/acl.h.
69203
69204 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69205
69206         Merge upstream fix for glibc bugzilla #3957:
69207
69208         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69209
69210         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69211         bit for RE_HAT_LISTS_NOT_NEWLINE.
69212         (build_charclass_op): Remove bogus comment.
69213
69214 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69215
69216         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69217
69218 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69219
69220         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69221         * lib/memmem.c [!defined _LIBC]: Include config.h.
69222
69223 2007-02-04  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69226         warning message.
69227
69228 2007-02-04  Bruno Haible  <bruno@clisp.org>
69229
69230         New module mbstok_r.
69231         * modules/mbstok_r: New file.
69232         * lib/mbstok_r.c: New file.
69233         * lib/string_.h (strtok_r): Change argument names to match the
69234         comments. Add a conditional link warning.
69235         (mbstok_r): New declaration.
69236         * m4/mbstok_r.m4: New file.
69237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69238         GNULIB_MBSTOK_R.
69239         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69240         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69241
69242 2007-02-04  Bruno Haible  <bruno@clisp.org>
69243
69244         New module mbsspn.
69245         * modules/mbsspn: New file.
69246         * lib/mbsspn.c: New file.
69247         * lib/string_.h (strspn): Add a conditional link warning.
69248         (mbsspn): New declaration.
69249         * m4/mbsspn.m4: New file.
69250         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69251         GNULIB_MBSSPN.
69252         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69253         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69254
69255 2007-02-04  Bruno Haible  <bruno@clisp.org>
69256
69257         New module mbspbrk.
69258         * modules/mbspbrk: New file.
69259         * lib/mbspbrk.c: New file.
69260         * lib/string_.h (strpbrk): Add a conditional link warning.
69261         (mbspbrk): New declaration.
69262         * m4/mbspbrk.m4: New file.
69263         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69264         GNULIB_MBSPBRK.
69265         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69266         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69267
69268 2007-02-04  Bruno Haible  <bruno@clisp.org>
69269
69270         New module mbscspn.
69271         * modules/mbscspn: New file.
69272         * lib/mbscspn.c: New file.
69273         * lib/string_.h (strcspn): Add a conditional link warning.
69274         (mbscspn): New declaration.
69275         * m4/mbscspn.m4: New file.
69276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69277         GNULIB_MBSCSPN.
69278         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69279         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69280
69281 2007-02-04  Bruno Haible  <bruno@clisp.org>
69282
69283         New module mbscasestr, reduced goal of strcasestr.
69284         * modules/mbscasestr: New file.
69285         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69286         (mbscasestr): Renamed from strcasestr.
69287         * lib/strcasestr.c: Don't include mbuiter.h.
69288         (strcasestr): Remove support for multibyte locales.
69289         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69290         Change the conditional link warning.
69291         (mbscasestr): New declaration.
69292         * m4/mbscasestr.m4: New file.
69293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69294         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69295         REPLACE_STRCASESTR.
69296         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69298         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69299         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69300         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69301         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69302         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69303         (Depends-on): Remove mbuiter.
69304         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69305
69306 2007-02-04  Bruno Haible  <bruno@clisp.org>
69307
69308         Simplify handling of strncasecmp.
69309         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69310         the conditional link warning.
69311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69312         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69313         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69314         * modules/strcase (configure.ac): Don't invoke
69315         gl_STRING_MODULE_INDICATOR.
69316         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69317
69318 2007-02-04  Bruno Haible  <bruno@clisp.org>
69319
69320         New module mbscasecmp, reduced goal of strcasecmp.
69321         * modules/mbscasecmp: New file.
69322         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69323         (mbscasecmp): Renamed from strcasecmp.
69324         * lib/strcasecmp.c: Don't include mbuiter.h.
69325         (strcasecmp): Remove support for multibyte locales.
69326         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69327         Change the conditional link warning.
69328         (mbscasecmp): New declaration.
69329         * m4/mbscasecmp.m4: New file.
69330         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69331         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69332         REPLACE_STRCASECMP.
69333         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69334         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69335         GNULIB_MBSCASECMP.
69336         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69337         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69338         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69339         (Depends-on): Remove mbuiter.
69340         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69341
69342 2007-02-04  Bruno Haible  <bruno@clisp.org>
69343
69344         New module mbsstr. Remove module strstr.
69345         * modules/mbsstr: New file.
69346         * modules/strstr: Remove file.
69347         * lib/mbsstr.c: Renamed from lib/strstr.c.
69348         (mbsstr): Renamed from strstr.
69349         * lib/string_.h (strstr): Remove declaration. Change the conditional
69350         link warning.
69351         (mbsstr): New declaration.
69352         * m4/mbsstr.m4: New file.
69353         * m4/strstr.m4: Remove file.
69354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69355         REPLACE_STRSTR.
69356         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69357         Don't initialize GNULIB_STRSTR.
69358         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69359         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69360         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69361         (Support for systems lacking ANSI C 89): Remove strstr.
69362
69363 2007-02-04  Bruno Haible  <bruno@clisp.org>
69364
69365         New module mbsrchr.
69366         * modules/mbsrchr: New file.
69367         * lib/mbsrchr.c: New file.
69368         * lib/string_.h (strrchr): Add a conditional link warning.
69369         (mbsrchr): New declaration.
69370         * m4/mbsrchr.m4: New file.
69371         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69372         GNULIB_MBSRCHR.
69373         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69374         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69375
69376 2007-02-04  Bruno Haible  <bruno@clisp.org>
69377
69378         New module mbschr.
69379         * modules/mbschr: New file.
69380         * lib/mbschr.c: New file.
69381         * lib/string_.h (strchr): Add a conditional link warning.
69382         (mbschr): New declaration.
69383         * m4/mbschr.m4: New file.
69384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69385         GNULIB_MBSCHR.
69386         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69387         * MODULES.html.sh (Internationalization functions): Add mbschr.
69388
69389 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69390
69391         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69392
69393         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69394
69395 2007-02-04  Bruno Haible  <bruno@clisp.org>
69396
69397         New module description section 'configure.ac-early'.
69398         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69399         (func_get_autoconf_early_snippet): New function.
69400         (func_import, func_create_testdir): Use it. Remove special cases for
69401         modules 'extensions' and 'lock'.
69402         * modules/extensions (configure.ac-early): Require
69403         gl_USE_SYSTEM_EXTENSIONS.
69404         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69405
69406 2007-02-04  Bruno Haible  <bruno@clisp.org>
69407
69408         Make use of gcj-4.3's -fsource and -ftarget option.
69409         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69410         and if so try the options -fsource and -ftarget.
69411         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69412         source_version, ftarget_option, target_version arguments.
69413         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69414         (is_envjavac_oldgcj_14_14_usable): Renamed from
69415         is_envjavac_gcj_14_14_usable.
69416         (is_envjavac_oldgcj_14_13_usable): Renamed from
69417         is_envjavac_gcj_14_13_usable.
69418         (is_gcj_present): Update.
69419         (is_gcj_43, is_gcj43_usable): New functions.
69420         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69421         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69422         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69423         try the options -fsource and -ftarget.
69424
69425 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69428         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69429         larger value.
69430
69431 2007-02-03  Jim Meyering  <jim@meyering.net>
69432
69433         Give tools a better chance to allocate space for very large buffers.
69434         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69435
69436         Make pwd and readlink work also when run with an unreadable parent dir
69437         on systems with openat support.
69438         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69439         provided getcwd function, even when we have openat support.
69440         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69441
69442 2007-02-02  Bruno Haible  <bruno@clisp.org>
69443
69444         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69445         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69446         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69447         portability problems if one of these functions is only used on specific
69448         platforms.
69449         Reported by Paul Eggert.
69450
69451 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69454         is causing more trouble than it's curing.
69455         * lib/regex_internal.h (__mempcpy): Remove.
69456         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69457         (and make the code a tad smaller to boot).
69458         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69459
69460 2007-02-02  Jim Meyering  <jim@meyering.net>
69461
69462         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69463         section, not in the Makefile.am: one.
69464
69465 2007-02-02  Eric Blake  <ebb9@byu.net>
69466
69467         * lib/strchrnul.c: Always include config.h first.
69468
69469         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69470         gnulib strstr is not necessary here.
69471
69472 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69473
69474         * m4/socklen.m4: Fix typo.
69475
69476 2007-02-02  Eric Blake  <ebb9@byu.net>
69477
69478         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69479         * modules/netinet_in (Makefile.am): Likewise.
69480
69481 2007-02-01  Bruno Haible  <bruno@clisp.org>
69482
69483         * lib/string_.h (GL_LINK_WARNING): New macro.
69484         (strcasecmp, strstr, strcasestr): If provided by the system,
69485         conditionally define as a macro that leads to a warning instead of to
69486         an error.
69487         (strncasecmp): Conditionally define as a macro that leads to a warning.
69488
69489 2007-02-01  Karl Berry  <karl@gnu.org>
69490
69491         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69492
69493 2007-02-01  Bruno Haible  <bruno@clisp.org>
69494
69495         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69496         renamings.
69497
69498 2007-02-01  Eric Blake  <ebb9@byu.net>
69499
69500         * modules/regex (Depends-on): Revert dependence on mempcpy.
69501         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69502         module's definition of mempcpy.
69503         Reported by Paul Eggert.
69504
69505 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69506
69507         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69508         the symbol XYZ before redefining it.  This fixes a problem with
69509         programs that don't use XYZ, when compiled on systems that define
69510         XYZ to something else.
69511
69512 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69513
69514         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69515         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69516         writeable to group or other and (2) is intended to have a special
69517         mode bit that is set or cleared.  In such a case, the directory
69518         should be neither group- nor other-writeable until the special
69519         mode bits are right.
69520
69521 2007-01-31  Eric Blake  <ebb9@byu.net>
69522
69523         * modules/mountlist (Depends-on): Add strstr.
69524
69525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69526         bug.
69527         * modules/string (Makefile.am): Remove redundant replacement.
69528         * modules/regex (Depends-on): Add mempcpy.
69529
69530 2007-01-31  Bruno Haible  <bruno@clisp.org>
69531
69532         New module description field 'Link'.
69533         * gnulib-tool (func_usage): Document --extract-link-directive.
69534         (sed_extract_prog): Recognize 'Link' directive.
69535         (func_get_link_directive): New function.
69536         (func_import): Show summary of link directives.
69537         Handle --extract-link-directive option.
69538         * modules/acl (Link): New section.
69539         * modules/clock-time (Link): New section.
69540         * modules/euidaccess (Link): New section.
69541         * modules/gettext (Link): New section.
69542         * modules/iconv (Link): New section.
69543         * modules/lock (Link): New section.
69544         * modules/nanosleep (Link): New section.
69545         * modules/readline (Link): New section.
69546
69547 2007-01-27  Bruno Haible  <bruno@clisp.org>
69548
69549         Enforce the use of gnulib modules for unportable <string.h> functions.
69550         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69551         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69552         (gl_HEADER_STRING_H_BODY): Require it.
69553         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69554         the symbol XYZ to one that gives a link error.
69555         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69556         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69557         * modules/mempcpy (configure.ac): Likewise.
69558         * modules/memrchr (configure.ac): Likewise.
69559         * modules/stpcpy (configure.ac): Likewise.
69560         * modules/stpncpy (configure.ac): Likewise.
69561         * modules/strcase (configure.ac): Likewise.
69562         * modules/strcasestr (configure.ac): Likewise.
69563         * modules/strchrnul (configure.ac): Likewise.
69564         * modules/strdup (configure.ac): Likewise.
69565         * modules/strndup (configure.ac): Likewise.
69566         * modules/strnlen (configure.ac): Likewise.
69567         * modules/strpbrk (configure.ac): Likewise.
69568         * modules/strsep (configure.ac): Likewise.
69569         * modules/strstr (configure.ac): Likewise.
69570         * modules/strtok_r (configure.ac): Likewise.
69571
69572 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69573
69574         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69575
69576 2007-01-30  Jim Meyering  <jim@meyering.net>
69577
69578         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69579
69580 2007-01-29  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69583         * lib/execute.c: Likewise.
69584         * lib/pipe.c: Likewise.
69585         * lib/printf-args.h: Likewise.
69586         * lib/printf-args.c: Likewise.
69587         * lib/printf-parse.c: Likewise.
69588         * lib/vasnprintf.c: Likewise.
69589
69590 2007-01-29  Eric Blake  <ebb9@byu.net>
69591
69592         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69593         declaration.
69594
69595 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * lib/strptime.h (strptime): Use 'restrict' for args where
69598         POSIX requires this.
69599         * lib/strptime.c (strptime): Likewise.
69600         Change license notice from LGPL to GPL, since gnulib-tool will
69601         change this as needed.
69602         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69603         defined.
69604         Include "strptime.h" first, to check interface.
69605         Do not #undef _LIBC and _NL_CURRENT.
69606         Do not include <stdlib.h>; no longer needed.
69607         Include "time_r.h" and declare ptime_locale_status
69608         only if _LIBC is not defined.
69609         (__P): Remove unused macro.
69610         (match_string): Bring back glibc version, but use it only if _LIBC
69611         is defined.
69612         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69613         Remove unnecessary assertion and abort() call.
69614         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69615         * m4/strptime.m4: Fix serial number comment.
69616         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69617         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69618         (Depends-on): Add time_r.
69619
69620 2007-01-29  Bruno Haible  <bruno@clisp.org>
69621
69622         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69623         strptime.
69624         * modules/strptime (Depends-on): Add stdbool.
69625         * lib/strptime.h: Include <time.h> always. Add comments.
69626
69627 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69628
69629         * modules/strptime: New file.
69630         * lib/strptime.h: New file.
69631         * lib/strptime.c: New file.
69632         * m4/strptime.m4: New file.
69633
69634 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69635
69636         * MODULES.html.sh: New module mpsort.
69637         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69638
69639         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69640         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69641         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69642         All uses changed.
69643         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69644         All uses changed.
69645         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69646         to _Restrict_.
69647         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69648         the parameter matches the prototype.
69649
69650 2007-01-28  Jim Meyering  <jim@meyering.net>
69651
69652         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69653         sys/time.h here, reverting that part of the previous patch:
69654         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69655
69656 2007-01-28  Bruno Haible  <bruno@clisp.org>
69657
69658         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69659         value of $(SYS_TIME_H).
69660         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69661         remove it conditionally, too. [added by Jim Meyering]
69662         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69663         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69664         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69665         GETTIMEOFDAY_REPLACEMENT to 1.
69666
69667 2007-01-28  Bruno Haible  <bruno@clisp.org>
69668
69669         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69670         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69672         Set UNISTD_H instead of UNISTD_H2.
69673         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69674
69675 2007-01-28  Bruno Haible  <bruno@clisp.org>
69676
69677         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69678         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69679
69680 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69681
69682         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69683         (func_create_testdir): Ensure C locale for `grep' and `tr'
69684         character ranges.
69685         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69686         ACLOCAL_AMFLAGS parsing state machine.
69687
69688 2007-01-27  Bruno Haible  <bruno@clisp.org>
69689
69690         * modules/unistr/base: Update.
69691
69692 2007-01-27  Bruno Haible  <bruno@clisp.org>
69693
69694         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69695         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69696         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69697         modules/unistr/u32-mbtouc.
69698         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69699         * lib/unistr.h: Update.
69700         * lib/linebreak.c: Update.
69701         * modules/unistr/u32-mbtouc: Renamed from
69702         modules/unistr/u32-mbtouc-safe.
69703         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69704         * lib/unistr.h: Update.
69705         * lib/unistr/u32-to-u8.c: Update.
69706         * lib/unistr/u32-to-u16.c: Update.
69707
69708 2007-01-27  Bruno Haible  <bruno@clisp.org>
69709
69710         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69711         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69712         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69713         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69714         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69715         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69716         modules/unistr/u16-mbtouc.
69717         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69718         * lib/unistr.h: Update.
69719         * lib/linebreak.c: Update.
69720         * modules/linebreak: Update.
69721         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69722         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69723         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69724         * modules/unistr/u16-mbtouc: Renamed from
69725         modules/unistr/u16-mbtouc-safe.
69726         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69727         * lib/unistr.h: Update.
69728         * lib/unistr/u16-to-u8.c: Update.
69729         * modules/unistr/u16-to-u8: Update.
69730         * lib/unistr/u16-to-u32.c: Update.
69731         * modules/unistr/u16-to-u32: Update.
69732
69733 2007-01-27  Bruno Haible  <bruno@clisp.org>
69734
69735         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69736         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69737         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69738         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69739         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69740         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69741         modules/unistr/u8-mbtouc.
69742         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69743         * lib/unistr.h: Update.
69744         * lib/striconveh.c: Update.
69745         * modules/striconveh: Update.
69746         * lib/linebreak.c: Update.
69747         * modules/linebreak: Update.
69748         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69749         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69750         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69751         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69752         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69753         * lib/unistr.h: Update.
69754         * lib/striconveh.c: Update.
69755         * modules/striconveh: Update.
69756         * lib/unistr/u8-to-u16.c: Update.
69757         * modules/unistr/u8-to-u16: Update.
69758         * lib/unistr/u8-to-u32.c: Update.
69759         * modules/unistr/u8-to-u32: Update.
69760
69761 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69762
69763         Sync from Libtool.
69764         * lib/argz.c: Do not include strings.h nor memory.h, include
69765         string.h unconditionally.  Patch by Simon Josefsson.
69766
69767 2007-01-27  Bruno Haible  <bruno@clisp.org>
69768
69769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69770         from gl_HEADER_STRING_H_BODY.
69771         (gl_HEADER_STRING_H_BODY): Require it.
69772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69773         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69774         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69775         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69776         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69777         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69779         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69780         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69783         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69784         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69785         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69786         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69787
69788 2007-01-27  Bruno Haible  <bruno@clisp.org>
69789
69790         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69791         check_PROGRAMS into noinst_PROGRAMS.
69792         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69793         check_PROGRAMS in this case.
69794         (func_import): Set for_test to false.
69795         (func_create_testdir): Set for_test to true.
69796
69797 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69798             Bruno Haible  <bruno@clisp.org>
69799
69800         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69801         (Depends-on): Add string.
69802         (Includes): Use <string.h> instead of strcasestr.h.
69803         * modules/string (Makefile.am): Also substitute the value of
69804         REPLACE_STRCASESTR.
69805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69806         assume strcasestr is declared in <string.h> not <strings.h>. Also
69807         set REPLACE_STRCASESTR.
69808         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69809         REPLACE_STRCASESTR.
69810         * lib/strcasestr.h: Remove file.
69811         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69812         * lib/string_.h (strcasestr): New declaration.
69813
69814 2007-01-27  Bruno Haible  <bruno@clisp.org>
69815
69816         * lib/string_.h: Use 'extern'.
69817
69818 2007-01-27  Jim Meyering  <jim@meyering.net>
69819
69820         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69821         of set-but-not-used local, "q".
69822
69823         * lib/mempcpy.c: Include <config.h> before <string.h>.
69824         This fixes a compilation error on HP-UX, due to the system's
69825         "restrict"-using mempcpy prototype.
69826
69827 2007-01-26  Bruno Haible  <bruno@clisp.org>
69828
69829         Small optimization.
69830         * lib/javacomp.c: Include c-strstr.h.
69831          (is_envjavac_gcj): Use c_strstr instead of strstr.
69832         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69833
69834 2007-01-26  Bruno Haible  <bruno@clisp.org>
69835
69836         * MODULES.html.sh (Unicode string functions): Add the new modules.
69837
69838         * modules/uniconv/u32-strconv-to-locale: New file.
69839         * lib/uniconv/u32-strconv-to-locale.c: New file.
69840
69841         * modules/uniconv/u16-strconv-to-locale: New file.
69842         * lib/uniconv/u16-strconv-to-locale.c: New file.
69843
69844         * modules/uniconv/u8-strconv-to-locale: New file.
69845         * lib/uniconv/u8-strconv-to-locale.c: New file.
69846
69847         * modules/uniconv/u32-strconv-from-locale: New file.
69848         * lib/uniconv/u32-strconv-from-locale.c: New file.
69849
69850         * modules/uniconv/u16-strconv-from-locale: New file.
69851         * lib/uniconv/u16-strconv-from-locale.c: New file.
69852
69853         * modules/uniconv/u8-strconv-from-locale: New file.
69854         * lib/uniconv/u8-strconv-from-locale.c: New file.
69855
69856         * modules/uniconv/u32-strconv-to-enc: New file.
69857         * lib/uniconv/u32-strconv-to-enc.c: New file.
69858         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69859         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69860
69861         * modules/uniconv/u16-strconv-to-enc: New file.
69862         * lib/uniconv/u16-strconv-to-enc.c: New file.
69863         * lib/uniconv/u-strconv-to-enc.h: New file.
69864         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69865         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69866
69867         * modules/uniconv/u8-strconv-to-enc: New file.
69868         * lib/uniconv/u8-strconv-to-enc.c: New file.
69869         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69870         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69871
69872         * modules/uniconv/u32-strconv-from-enc: New file.
69873         * lib/uniconv/u32-strconv-from-enc.c: New file.
69874         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69875         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69876
69877         * modules/uniconv/u16-strconv-from-enc: New file.
69878         * lib/uniconv/u16-strconv-from-enc.c: New file.
69879         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69880         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69881
69882         * modules/uniconv/u8-strconv-from-enc: New file.
69883         * lib/uniconv/u8-strconv-from-enc.c: New file.
69884         * lib/uniconv/u-strconv-from-enc.h: New file.
69885         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69886         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69887
69888         * modules/uniconv/u32-conv-from-enc: New file.
69889         * lib/uniconv/u32-conv-from-enc.c: New file.
69890         * modules/uniconv/u32-conv-from-enc-tests: New file.
69891         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69892
69893         * modules/uniconv/u16-conv-from-enc: New file.
69894         * lib/uniconv/u16-conv-from-enc.c: New file.
69895         * lib/uniconv/u-conv-from-enc.h: New file.
69896         * modules/uniconv/u16-conv-from-enc-tests: New file.
69897         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69898
69899         * modules/uniconv/u8-conv-from-enc: New file.
69900         * lib/uniconv/u8-conv-from-enc.c: New file.
69901         * modules/uniconv/u8-conv-from-enc-tests: New file.
69902         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69903
69904         * modules/uniconv/base: New file.
69905         * lib/uniconv.h: New file.
69906
69907 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69908
69909         * doc/gnulib-tool.texi (Initial import): Update to match current
69910         behavior with strdup module.
69911         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69912         * lib/memmem.h: Remove; all uses removed.  This is now done
69913         by <string.h>.
69914         * lib/mempcpy.h: Likewise.
69915         * lib/memrchr.h: Likewise.
69916         * lib/stpcpy.h: Likewise.
69917         * lib/stpncpy.h: Likewise.
69918         * lib/strcase.h: Likewise.
69919         * lib/strchrnul.h: Likewise.
69920         * lib/strdup.h: Likewise.
69921         * lib/strndup.h: Likewise.
69922         * lib/strnlen.h: Likewise.
69923         * lib/strpbrk.h: Likewise.
69924         * lib/strsep.h: Likewise.
69925         * lib/strstr.h: Likewise.
69926         * lib/strtok_r.h: Likewise.
69927         * lib/string_.h: New file.
69928         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69929         Rely on <string.h> instead.
69930         * lib/canon-host.c: Likewise.
69931         * lib/chdir-long.c: Likewise.
69932         * lib/concatpath.c: Likewise.
69933         * lib/exclude.c: Likewise.
69934         * lib/fchdir.c: Likewise.
69935         * lib/getaddrinfo.c: Likewise.
69936         * lib/getcwd.c: Likewise.
69937         * lib/getsubopt.c: Likewise.
69938         * lib/glob.c: Likewise.
69939         * lib/hard-locale.c: Likewise.
69940         * lib/iconvme.c: Likewise.
69941         * lib/javacomp.c: Likewise.
69942         * lib/mempcpy.c: Likewise.
69943         * lib/memrchr.c: Likewise.
69944         * lib/regex_internal.h: Likewise.
69945         * lib/stpncpy.c: Likewise.
69946         * lib/strcasecmp.c: Likewise.
69947         * lib/strchrnul.c: Likewise.
69948         * lib/strdup.c: Likewise.
69949         * lib/striconv.c: Likewise.
69950         * lib/striconveh.c: Likewise.
69951         * lib/striconveha.c: Likewise.
69952         * lib/strncasecmp.c: Likewise.
69953         * lib/strndup.c: Likewise.
69954         * lib/strnlen.c: Likewise.
69955         * lib/strsep.c: Likewise.
69956         * lib/strstr.c: Likewise.
69957         * lib/strtok_r.c: Likewise.
69958         * lib/userspec.c: Likewise.
69959         * lib/w32spawn.h: Likewise.
69960         * lib/xstrndup.c: Likewise.
69961         * lib/mountlist.c (strstr): Remove decl.
69962         * m4/string_h.m4: New file.
69963         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69964         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69965         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69966         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69967         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69968         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69969         Set REPLACE_STRCASECMP if necessary.
69970         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69971         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69972         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69973         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69974         HAVE_DECL_STRDUP if necessary.
69975         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69976         since gl_FUNC_STRNDUP does that now.
69977         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69978         Check for decl here...
69979         (gl_PREREQ_STRNLEN): ... not here.
69980         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69981         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69982         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69983         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69984         necessary.
69985         * modules/string: New file.
69986         * modules/memmem (Files): Remove special-purpose include file.
69987         (Depends-on): Add string.
69988         (Include): Include <string.h>, not the removed file.
69989         * modules/mempcpy: Likewise.
69990         * modules/memrchr: Likewise.
69991         * modules/stpcpy: Likewise.
69992         * modules/stpncpy: Likewise.
69993         * modules/strcase: Likewise.
69994         * modules/strchrnul: Likewise.
69995         * modules/strdup: Likewise.
69996         * modules/strndup: Likewise.
69997         * modules/strnlen: Likewise.
69998         * modules/strpbrk: Likewise.
69999         * modules/strsep: Likewise.
70000         * modules/strstr: Likewise.
70001         * modules/strtok_r: Likewise.
70002         * tests/test-dirname.c: Don't include "strdup.h", since
70003         <string.h> now suffices.
70004         * tests/test-memmem.c: Don't include "memmem.h", since
70005         <string.h> now suffices.
70006
70007 2007-01-25  Bruno Haible  <bruno@clisp.org>
70008
70009         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70010         *resultp is 0.
70011
70012         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70013         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70014         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70015         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70016
70017         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70018         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70019         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70020         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70021         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70022         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70023
70024 2007-01-24  Bruno Haible  <bruno@clisp.org>
70025
70026         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70027         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70028         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70029         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70030         gl_FUNC_FTS_CORE.
70031         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70032         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70033         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70034         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70035         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70036         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70037         gl_FUNC_FCHOWNAT.
70038         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70039         gl_FUNC_STRFTIME.
70040         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70041         Reported by Ralf Wildenhues.
70042
70043 2007-01-24  Bruno Haible  <bruno@clisp.org>
70044
70045         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70046         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70047         gl_GETADDRINFO.
70048         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70049         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70050         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70051
70052 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70055         Don't use 'exit'; just return from 'main'.
70056         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70057
70058         * lib/fnmatch_.h: Readjust white space and comments to match
70059         glibc, to avoid spurious diffs.
70060
70061 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70064         2004-12-01 change by Jakub Jelinek, since this code won't compile
70065         if !LIBC.  Problem reported by Bob Proulx.
70066
70067 2007-01-23  Bruno Haible  <bruno@clisp.org>
70068
70069         * lib/striconveh.c: Include c-strcaseeq.h.
70070         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70071         * modules/striconveh (Depends-on): Add c-strcaseeq.
70072
70073 2007-01-23  Bruno Haible  <bruno@clisp.org>
70074
70075         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70076
70077         * modules/c-strcaseeq: New file.
70078         * lib/c-strcaseeq.h: New file.
70079
70080         * modules/streq: New file.
70081         * lib/streq.h: New file.
70082
70083 2007-01-23  Bruno Haible  <bruno@clisp.org>
70084
70085         * modules/striconveha-tests: New file.
70086         * tests/test-striconveha.c: New file.
70087
70088         * lib/striconveha.h: Include <stdbool.h>.
70089         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70090         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70091         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70092         (mem_iconveha): New function.
70093         (str_iconveha_notranslit): Renamed from str_iconveha.
70094         (str_iconveha): New function.
70095         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70096         c-strcase.
70097
70098 2007-01-23  Bruno Haible  <bruno@clisp.org>
70099
70100         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70101         encodings without forgiving before trying any encoding with handler.
70102         (str_iconveha): Try all encodings without forgiving before trying any
70103         encoding with handler.
70104
70105 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70106
70107         Import the following changes from libc.
70108
70109         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70110
70111         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70112
70113         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70114
70115         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70116         normal_bracket label.
70117
70118         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70119
70120         [BZ #361]
70121         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70122         to normal_bracket after fetching the next character.
70123
70124 2007-01-22  Bruno Haible  <bruno@clisp.org>
70125
70126         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70127         argument.
70128         * lib/striconveh.c (iconv_carefully_1): New function.
70129         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70130         argument.
70131         (str_cd_iconveh): Update.
70132         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70133         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70134         * tests/test-striconveh.c (MAGIC): New macro.
70135         (new_offsets): New function.
70136         (main): Test call with and without offsets.
70137
70138 2007-01-22  Bruno Haible  <bruno@clisp.org>
70139
70140         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70141         * modules/sys_select (Makefile.am): Likewise.
70142         * modules/sys_socket (Makefile.am): Likewise.
70143         * modules/sys_time (Makefile.am): Likewise.
70144
70145 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70146
70147         * modules/gettimeofday (License): Change from GPL to LGPL, since
70148         gettimeofday is a library function.
70149
70150 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70151
70152         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70153
70154 2007-01-21  Bruno Haible  <bruno@clisp.org>
70155
70156         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70157
70158 2007-01-21  Bruno Haible  <bruno@clisp.org>
70159
70160         * modules/striconveha: New file.
70161         * lib/striconveha.h: New file.
70162         * lib/striconveha.c: New file.
70163         * MODULES.html.sh (Internationalization functions): Add striconveha.
70164         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70165         string.
70166         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70167
70168 2007-01-21  Bruno Haible  <bruno@clisp.org>
70169
70170         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70171         * lib/striconveh.c (str_iconveh): Likewise.
70172
70173 2007-01-21  Bruno Haible  <bruno@clisp.org>
70174
70175         * lib/striconveh.h (mem_iconveh): New declaration.
70176         * lib/striconveh.c (mem_iconveh): New function.
70177         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70178
70179 2007-01-21  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70182
70183         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70184         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70185         original result buffer.
70186         (str_cd_iconveh): Update.
70187         * tests/test-striconveh.c (main): Update.
70188
70189         * lib/striconv.h (mem_cd_iconv): Change specification.
70190         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70191         result buffer.
70192         (str_cd_iconv): Update.
70193         * tests/test-striconv.c (main): Update.
70194
70195 2007-01-21  Bruno Haible  <bruno@clisp.org>
70196
70197         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70198
70199 2007-01-20  Jim Meyering  <jim@meyering.net>
70200
70201         * lib/userspec.c (parse_with_separator): If a user or group string
70202         starts with "+", skip the corresponding name-to-ID look-up, since
70203         such a look-up must fail: user and group names may not include "+".
70204
70205 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70206
70207         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70208         since we now assume the sys_time module.
70209         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70210         check for sys/time.h; no longer needed.
70211         * modules/poll (Depends-on): Depend on sys_time.
70212
70213 2007-01-18  Bruno Haible  <bruno@clisp.org>
70214
70215         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70216         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70217
70218         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70219         gettimeofday.
70220
70221         * tests/test-gettimeofday.c: Include <time.h>.
70222         (dummy): Remove variable.
70223
70224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70225         gl_HEADER_SYS_TIME_H.
70226         (gl_HEADER_SYS_TIME_H): New macro.
70227
70228         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70229         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70230         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70231         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70232         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70233         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70234         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70235         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70236         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70237         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70238         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70239
70240         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70241         last change; it caused a compilation error when cross-compiling to
70242         Cygwin.
70243
70244 2007-01-18  Jim Meyering  <jim@meyering.net>
70245
70246         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70247         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70248         than the race-prone "test -d sys || mkdir sys".
70249         (configure.ac): Use AC_PROG_MKDIR_P.
70250         * modules/sys_select: Likewise.
70251         * modules/sys_socket: Likewise.
70252         * modules/sys_time: Likewise.
70253
70254 2007-01-18  Eric Blake  <ebb9@byu.net>
70255
70256         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70257         replace gettimeofday.
70258         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70259         name, to avoid infinite recursion.
70260
70261 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70262
70263         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70264         module sys_time.
70265         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70266         assume timespec.h defines struct timeval.
70267         * lib/settime.c: Likewise.
70268         * lib/utimens.c: Likewise.
70269         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70270         since we now assume the gettimeofday module.
70271         * lib/tempname.c (__gen_tempname): Likewise.
70272         * lib/gettimeofday.h: Remove.
70273         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70274         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70275         Include <time.h>, for 'time()'.
70276         (localtime_buffer_addr): Also use this workaround if
70277         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70278         to simplify the uses.  All uses changed.
70279         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70280         that #undef is inside {}, and 'const' follows type name consistently.
70281         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70282         (gettimeofday): Do not use the maximum possible value for
70283         tv->tv_usec, since that might break usages other than ls.c.
70284         Instead, we'll leave ls.c alone.  This undoes today's patch
70285         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70286         we've never observed the problem but might as well keep the
70287         canary.
70288         * lib/nanosleep.c: Include timespec.h first, for interface check.
70289         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70290         now assume the sys_time module.
70291         * lib/tempname.c: Likewise.
70292         * lib/timespec.h: Likewise.
70293         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70294         needed.
70295         * lib/strftime.c: Likewise.
70296         * lib/timespec.h: Likewise.
70297         * lib/posixtm.c: Include posixtm.h first, for interface check.
70298         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70299         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70300         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70301         * lib/sys_time_.h: New file.
70302         * lib/timespec.h (struct timespec): Use long int, not long.
70303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70304         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70305         Remove obsolescent call to AC_HEADER_TIME.
70306         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70308         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70309         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70310         Likewise.
70311         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70312         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70314         into the sys_time module.  Check for gettimeofday just once.
70315         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70316         for gettimeofday signature to just check the signature.  Merely
70317         compile it, since linking doesn't test signature.  Improve test for
70318         whether gettimeofday.o is actually needed.
70319         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70320         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70321         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70322         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70323         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70324         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70325         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70326         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70327         than worrying about sys/time.h.
70328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70329         Don't bother worrying about TIME_WITH_SYS_TIME.
70330         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70331         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70332         * m4/sys_time_h.m4: New file.
70333         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70334         Don't include sys/time.h.  Return from main rather than exiting.
70335         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70336         all uses changed.
70337         * modules/gethrxtime (Depends-on): Add sys_time.
70338         * modules/gettime (Depends-on): Likewise.
70339         * modules/gettimeofday (Depends-on): Likewise.
70340         * modules/nanosleep (Depends-on): Likewise.
70341         * modules/settime (Depends-on): Likewise.
70342         * modules/tempname (Depends-on): Likewise.
70343         * modules/utimens (Depends-on): Likewise.
70344         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70345         (Include): Change back to <sys/time.h>.
70346         (Maintainer): Add self.
70347         * modules/sys_time: New file.
70348         * modules/tempname (Depends-on): Add gettimeofday.
70349         * tests/test-gettimeofday.c: Include <sys/time.h>
70350         rather than gettimeofday.h.
70351
70352 2007-01-17  Bruno Haible  <bruno@clisp.org>
70353
70354         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70355         the license default to GPL.
70356         (func_create_testdir): Don't complain if a module is LGPL and its
70357         tests module depends on GPLed modules.
70358
70359 2007-01-17  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/gettimeofday.c (gettimeofday): Add code for the case
70362         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70363         maximum possible value for tv->tv_usec, rather than the minimum one.
70364
70365 2005-10-08  Martin Lambers  <marlam@marlam.de>
70366 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70367 2007-01-16  Bruno Haible  <bruno@clisp.org>
70368
70369         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70370         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70371         gl_FUNC_GETTIMEOFDAY.
70372         (Include): Add gettimeofday.h.
70373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70374         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70375         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70376         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70377         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70378         * lib/gettimeofday.h: New file.
70379         * lib/gettimeofday.c: Include <sys/timeb.h>.
70380         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70381         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70382         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70383         fall back on time().
70384
70385         * tests/test-gettimeofday.c: New file.
70386         * modules/gettimeofday-tests: New file.
70387
70388 2007-01-16  Eric Blake  <ebb9@byu.net>
70389
70390         * modules/fnmatch (Depends-on): Depend on wchar.
70391         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70392         * m4/fnmatch.m4: Likewise.
70393         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70394         * m4/mbchar.m4: Likewise.
70395         * modules/mbswidth (Depends-on): Depend on wchar.
70396         * lib/mbswidth.c: Assume <wchar.h>.
70397         * m4/mbswidth.m4: Likewise.
70398         * modules/quotearg (Depends-on): Depend on wchar.
70399         * lib/quotearg.c: Assume <wchar.h>.
70400         * m4/quotearg.m4: Likewise.
70401         * modules/regex (Depends-on): Depend on wchar.
70402         * lib/regex_internal.h: Assume <wchar.h>.
70403         * m4/regex.m4: Likewise.
70404         * modules/stdint (Depends-on): Depend on wchar.
70405         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70406         * m4/stdint.m4: Likewise.
70407         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70408         * modules/strftime (Depends-on): Depend on wchar.
70409         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70410         * modules/strtol (Depends-on): Depend on wchar.
70411         * lib/strtol.c: Assume <wchar.h>.
70412         * modules/wcwidth (Depends-on): Depend on wchar.
70413         * lib/wcwidth.h: Assume <wchar.h>.
70414         * m4/wcwidth.m4: Likewise.
70415
70416 2007-01-16  Bruno Haible  <bruno@clisp.org>
70417
70418         * modules/csharpexec-script: New, created from...
70419         * modules/csharpexec: ... this.
70420
70421 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70422
70423         * modules/javaexec-script: New, created from...
70424         * modules/javaexec: ... this.
70425
70426 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70427
70428         * modules/poll (Dependencies): Add sys_select.
70429
70430 2007-01-15  Jim Meyering  <jim@meyering.net>
70431
70432         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70433         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70434         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70435         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70436
70437 2007-01-15  Bruno Haible  <bruno@clisp.org>
70438
70439         * modules/striconveh: New file.
70440         * lib/striconveh.h: New file.
70441         * lib/striconveh.c: New file.
70442         * MODULES.html.sh (Internationalization functions): Add striconveh.
70443
70444         * modules/striconveh-tests: New file.
70445         * tests/test-striconveh.c: New file.
70446
70447 2007-01-15  Bruno Haible  <bruno@clisp.org>
70448
70449         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70450         not from GNU libiconv or GNU libc.
70451
70452 2007-01-15  Bruno Haible  <bruno@clisp.org>
70453
70454         * doc/gnulib-intro.texi (Copyright): Explain the different license
70455         terms for module descriptions, autoconf macros, tests, documentation.
70456
70457 2007-01-14  Bruno Haible  <bruno@clisp.org>
70458
70459         * modules/striconv-tests: New file.
70460         * tests/test-striconv.c: New file.
70461
70462 2007-01-14  Bruno Haible  <bruno@clisp.org>
70463
70464         * modules/iconv-tests: New file.
70465         * tests/test-iconv.c: New file.
70466
70467 2007-01-14  Bruno Haible  <bruno@clisp.org>
70468
70469         * gnulib-tool (func_get_license): For test modules, use the license of
70470         the main module.
70471
70472 2007-01-14  Bruno Haible  <bruno@clisp.org>
70473
70474         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70475         if iconv is found to exist.
70476
70477 2007-01-14  Bruno Haible  <bruno@clisp.org>
70478
70479         * modules/c-ctype-tests: New file.
70480         * tests/test-c-ctype.c: New file.
70481
70482 2007-01-14  Bruno Haible  <bruno@clisp.org>
70483
70484         * modules/binary-io-tests: New file.
70485         * tests/test-binary-io.sh: New file.
70486         * tests/test-binary-io.c: New file.
70487
70488 2007-01-14  Bruno Haible  <bruno@clisp.org>
70489
70490         * modules/array-oset-tests: New file.
70491         * tests/test-array_oset.c: New file.
70492
70493 2007-01-14  Bruno Haible  <bruno@clisp.org>
70494
70495         * modules/array-list-tests: New file.
70496         * tests/test-array_list.c: New file.
70497
70498 2007-01-14  Bruno Haible  <bruno@clisp.org>
70499
70500         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70501         and make.
70502         Reported by Simon Josefsson in
70503         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70504
70505 2007-01-14  Bruno Haible  <bruno@clisp.org>
70506
70507         * modules/allocsa-tests: New file.
70508         * tests/test-allocsa.c: New file.
70509
70510 2007-01-14  Bruno Haible  <bruno@clisp.org>
70511
70512         * modules/fchdir (Depends-on): Add absolute-header.
70513         * modules/unistd (Depends-on): Likewise.
70514
70515 2006-12-30  Bruno Haible  <bruno@clisp.org>
70516
70517         * modules/fchdir: New file.
70518         * modules/unistd (Files): Add lib/unistd_.h.
70519         (Makefile.am): Generate unistd.h from unistd_.h.
70520         * lib/fchdir.c: New file.
70521         * lib/dirent_.h: New file.
70522         * lib/unistd_.h: New file.
70523         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70524         * m4/fchdir.m4: New file.
70525         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70526         (gl_HEADER_UNISTD): Invoke it.
70527         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70528         function.
70529         * lib/backupfile.c (opendir, closedir): Undefine.
70530         * lib/chown.c (open, close): Undefine.
70531         * lib/clean-temp.c (open, close): Undefine.
70532         * lib/copy-file.c (open, close): Undefine.
70533         * lib/execute.c (open, close): Undefine.
70534         * lib/fsusage.c (open, close): Undefine.
70535         * lib/gc-gnulib.c (open, close): Undefine.
70536         * lib/getcwd.c (opendir, closedir): Undefine.
70537         * lib/glob.c (opendir, closedir): Undefine.
70538         * lib/javacomp.c (open, close): Undefine.
70539         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70540         * lib/openat-proc.c (open, close): Undefine.
70541         * lib/pagealign_alloc.c (open, close): Undefine.
70542         * lib/pipe.c (open, close): Undefine.
70543         * lib/progreloc.c (open, close): Undefine.
70544         * lib/savedir.c (opendir, closedir): Undefine.
70545         * lib/utime.c (open, close): Undefine.
70546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70547
70548 2007-01-10  Bruno Haible  <bruno@clisp.org>
70549
70550         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70551
70552 2007-01-12  Eric Blake  <ebb9@byu.net>
70553
70554         Provide a robust <wchar.h>.  Further simplifications are now
70555         possible in other modules, but not included here.
70556         * modules/wchar: New module.
70557         * m4/wchar.m4: New file.
70558         * lib/wchar_.h: Likewise.
70559         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70560         of the new module.
70561         * MODULES.html.sh (Extended multibyte and wide character utilities):
70562         New section.
70563
70564 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70565
70566         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70567         to a reasonable default for memory allocation.
70568         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70569         file system that reports garbage st_size values for symlinks.
70570         Problem reported by Liyang Hu.
70571
70572 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70573
70574         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70575         Emacs .#* auto-save files).
70576
70577 2007-01-11  Bruno Haible  <bruno@clisp.org>
70578
70579         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70580         directory.
70581
70582 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         Use @...@ consistently in lib/wctype_.h.
70585         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70586         on it being set to 1 or 0.
70587         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70588         go back to AC_SUBSTing it.
70589         * modules/wctype (Makefile.am): Undo previous change.
70590
70591 2007-01-10  Eric Blake  <ebb9@byu.net>
70592
70593         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70594         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70595         * modules/wctype (Makefile.am): Likewise.
70596         Reported by Chris McGuire.
70597
70598 2007-01-10  Jim Meyering  <jim@meyering.net>
70599
70600         fts.c: a small readability/maintainability improvement
70601         * lib/fts.c (fts_read): Make this code slightly more readable and
70602         maintainable by hoisting the "sp->fts_cur = p" assignments to
70603         immediately follow the statements that set P.  Derived from
70604         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70605
70606 2007-01-10  Eric Blake  <ebb9@byu.net>
70607
70608         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70609         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70611         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70612         Reported by Chris McGuire.
70613
70614 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70615
70616         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70617         in sed script.
70618
70619 2007-01-09  Bruno Haible  <bruno@clisp.org>
70620
70621         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70622         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70623         variables.
70624         (func_module): Use them.
70625
70626 2007-01-09  Bruno Haible  <bruno@clisp.org>
70627
70628         * modules/unistr/base: New file.
70629         * lib/unistr.h: New file.
70630
70631         * modules/unistr/u8-to-u16: New file.
70632         * lib/unistr/u8-to-u16.c: New file.
70633
70634         * modules/unistr/u8-to-u32: New file.
70635         * lib/unistr/u8-to-u32.c: New file.
70636
70637         * modules/unistr/u16-to-u8: New file.
70638         * lib/unistr/u16-to-u8.c: New file.
70639
70640         * modules/unistr/u16-to-u32: New file.
70641         * lib/unistr/u16-to-u32.c: New file.
70642
70643         * modules/unistr/u32-to-u8: New file.
70644         * lib/unistr/u32-to-u8.c: New file.
70645
70646         * modules/unistr/u32-to-u16: New file.
70647         * lib/unistr/u32-to-u16.c: New file.
70648
70649         * modules/unistr/u8-check: New file.
70650         * modules/unistr/u16-check: New file.
70651         * modules/unistr/u32-check: New file.
70652         * lib/unistr/u8-check.c: New file.
70653         * lib/unistr/u16-check.c: New file.
70654         * lib/unistr/u32-check.c: New file.
70655
70656         * modules/unistr/u8-chr: New file.
70657         * modules/unistr/u16-chr: New file.
70658         * modules/unistr/u32-chr: New file.
70659         * lib/unistr/u8-chr.c: New file.
70660         * lib/unistr/u16-chr.c: New file.
70661         * lib/unistr/u32-chr.c: New file.
70662
70663         * modules/unistr/u8-cmp: New file.
70664         * modules/unistr/u16-cmp: New file.
70665         * modules/unistr/u32-cmp: New file.
70666         * lib/unistr/u8-cmp.c: New file.
70667         * lib/unistr/u16-cmp.c: New file.
70668         * lib/unistr/u32-cmp.c: New file.
70669
70670         * modules/unistr/u8-cpy: New file.
70671         * modules/unistr/u16-cpy: New file.
70672         * modules/unistr/u32-cpy: New file.
70673         * lib/unistr/u8-cpy.c: New file.
70674         * lib/unistr/u16-cpy.c: New file.
70675         * lib/unistr/u32-cpy.c: New file.
70676         * lib/unistr/u-cpy.h: New file.
70677
70678         * modules/unistr/u8-cpy-alloc: New file.
70679         * modules/unistr/u16-cpy-alloc: New file.
70680         * modules/unistr/u32-cpy-alloc: New file.
70681         * lib/unistr/u8-cpy-alloc.c: New file.
70682         * lib/unistr/u16-cpy-alloc.c: New file.
70683         * lib/unistr/u32-cpy-alloc.c: New file.
70684         * lib/unistr/u-cpy-alloc.h: New file.
70685
70686         * modules/unistr/u8-endswith: New file.
70687         * modules/unistr/u16-endswith: New file.
70688         * modules/unistr/u32-endswith: New file.
70689         * lib/unistr/u8-endswith.c: New file.
70690         * lib/unistr/u16-endswith.c: New file.
70691         * lib/unistr/u32-endswith.c: New file.
70692         * lib/unistr/u-endswith.h: New file.
70693
70694         * modules/unistr/u8-mblen: New file.
70695         * modules/unistr/u16-mblen: New file.
70696         * modules/unistr/u32-mblen: New file.
70697         * lib/unistr/u8-mblen.c: New file.
70698         * lib/unistr/u16-mblen.c: New file.
70699         * lib/unistr/u32-mblen.c: New file.
70700
70701         * modules/unistr/u8-mbtouc: New file.
70702         * modules/unistr/u16-mbtouc: New file.
70703         * modules/unistr/u32-mbtouc: New file.
70704         * lib/unistr/u8-mbtouc.c: New file.
70705         * lib/unistr/u16-mbtouc.c: New file.
70706         * lib/unistr/u32-mbtouc.c: New file.
70707
70708         * modules/unistr/u8-mbtouc-safe: New file.
70709         * modules/unistr/u16-mbtouc-safe: New file.
70710         * modules/unistr/u32-mbtouc-safe: New file.
70711         * lib/unistr/u8-mbtouc-safe.c: New file.
70712         * lib/unistr/u16-mbtouc-safe.c: New file.
70713         * lib/unistr/u32-mbtouc-safe.c: New file.
70714
70715         * modules/unistr/u8-move: New file.
70716         * modules/unistr/u16-move: New file.
70717         * modules/unistr/u32-move: New file.
70718         * lib/unistr/u8-move.c: New file.
70719         * lib/unistr/u16-move.c: New file.
70720         * lib/unistr/u32-move.c: New file.
70721         * lib/unistr/u-move.h: New file.
70722
70723         * modules/unistr/u8-next: New file.
70724         * modules/unistr/u16-next: New file.
70725         * modules/unistr/u32-next: New file.
70726         * lib/unistr/u8-next.c: New file.
70727         * lib/unistr/u16-next.c: New file.
70728         * lib/unistr/u32-next.c: New file.
70729
70730         * modules/unistr/u8-prev: New file.
70731         * modules/unistr/u16-prev: New file.
70732         * modules/unistr/u32-prev: New file.
70733         * lib/unistr/u8-prev.c: New file.
70734         * lib/unistr/u16-prev.c: New file.
70735         * lib/unistr/u32-prev.c: New file.
70736
70737         * modules/unistr/u8-set: New file.
70738         * modules/unistr/u16-set: New file.
70739         * modules/unistr/u32-set: New file.
70740         * lib/unistr/u8-set.c: New file.
70741         * lib/unistr/u16-set.c: New file.
70742         * lib/unistr/u32-set.c: New file.
70743         * lib/unistr/u-set.h: New file.
70744
70745         * modules/unistr/u8-startswith: New file.
70746         * modules/unistr/u16-startswith: New file.
70747         * modules/unistr/u32-startswith: New file.
70748         * lib/unistr/u8-startswith.c: New file.
70749         * lib/unistr/u16-startswith.c: New file.
70750         * lib/unistr/u32-startswith.c: New file.
70751         * lib/unistr/u-startswith.h: New file.
70752
70753         * modules/unistr/u8-stpcpy: New file.
70754         * modules/unistr/u16-stpcpy: New file.
70755         * modules/unistr/u32-stpcpy: New file.
70756         * lib/unistr/u8-stpcpy.c: New file.
70757         * lib/unistr/u16-stpcpy.c: New file.
70758         * lib/unistr/u32-stpcpy.c: New file.
70759         * lib/unistr/u-stpcpy.h: New file.
70760
70761         * modules/unistr/u8-stpncpy: New file.
70762         * modules/unistr/u16-stpncpy: New file.
70763         * modules/unistr/u32-stpncpy: New file.
70764         * lib/unistr/u8-stpncpy.c: New file.
70765         * lib/unistr/u16-stpncpy.c: New file.
70766         * lib/unistr/u32-stpncpy.c: New file.
70767         * lib/unistr/u-stpncpy.h: New file.
70768
70769         * modules/unistr/u8-strcat: New file.
70770         * modules/unistr/u16-strcat: New file.
70771         * modules/unistr/u32-strcat: New file.
70772         * lib/unistr/u8-strcat.c: New file.
70773         * lib/unistr/u16-strcat.c: New file.
70774         * lib/unistr/u32-strcat.c: New file.
70775         * lib/unistr/u-strcat.h: New file.
70776
70777         * modules/unistr/u8-strchr: New file.
70778         * modules/unistr/u16-strchr: New file.
70779         * modules/unistr/u32-strchr: New file.
70780         * lib/unistr/u8-strchr.c: New file.
70781         * lib/unistr/u16-strchr.c: New file.
70782         * lib/unistr/u32-strchr.c: New file.
70783
70784         * modules/unistr/u8-strcmp: New file.
70785         * modules/unistr/u16-strcmp: New file.
70786         * modules/unistr/u32-strcmp: New file.
70787         * lib/unistr/u8-strcmp.c: New file.
70788         * lib/unistr/u16-strcmp.c: New file.
70789         * lib/unistr/u32-strcmp.c: New file.
70790
70791         * modules/unistr/u8-strcpy: New file.
70792         * modules/unistr/u16-strcpy: New file.
70793         * modules/unistr/u32-strcpy: New file.
70794         * lib/unistr/u8-strcpy.c: New file.
70795         * lib/unistr/u16-strcpy.c: New file.
70796         * lib/unistr/u32-strcpy.c: New file.
70797         * lib/unistr/u-strcpy.h: New file.
70798
70799         * modules/unistr/u8-strcspn: New file.
70800         * modules/unistr/u16-strcspn: New file.
70801         * modules/unistr/u32-strcspn: New file.
70802         * lib/unistr/u8-strcspn.c: New file.
70803         * lib/unistr/u16-strcspn.c: New file.
70804         * lib/unistr/u32-strcspn.c: New file.
70805         * lib/unistr/u-strcspn.h: New file.
70806
70807         * modules/unistr/u8-strdup: New file.
70808         * modules/unistr/u16-strdup: New file.
70809         * modules/unistr/u32-strdup: New file.
70810         * lib/unistr/u8-strdup.c: New file.
70811         * lib/unistr/u16-strdup.c: New file.
70812         * lib/unistr/u32-strdup.c: New file.
70813         * lib/unistr/u-strdup.h: New file.
70814
70815         * modules/unistr/u8-strlen: New file.
70816         * modules/unistr/u16-strlen: New file.
70817         * modules/unistr/u32-strlen: New file.
70818         * lib/unistr/u8-strlen.c: New file.
70819         * lib/unistr/u16-strlen.c: New file.
70820         * lib/unistr/u32-strlen.c: New file.
70821         * lib/unistr/u-strlen.h: New file.
70822
70823         * modules/unistr/u8-strmblen: New file.
70824         * modules/unistr/u16-strmblen: New file.
70825         * modules/unistr/u32-strmblen: New file.
70826         * lib/unistr/u8-strmblen.c: New file.
70827         * lib/unistr/u16-strmblen.c: New file.
70828         * lib/unistr/u32-strmblen.c: New file.
70829
70830         * modules/unistr/u8-strmbtouc: New file.
70831         * modules/unistr/u16-strmbtouc: New file.
70832         * modules/unistr/u32-strmbtouc: New file.
70833         * lib/unistr/u8-strmbtouc.c: New file.
70834         * lib/unistr/u16-strmbtouc.c: New file.
70835         * lib/unistr/u32-strmbtouc.c: New file.
70836
70837         * modules/unistr/u8-strncat: New file.
70838         * modules/unistr/u16-strncat: New file.
70839         * modules/unistr/u32-strncat: New file.
70840         * lib/unistr/u8-strncat.c: New file.
70841         * lib/unistr/u16-strncat.c: New file.
70842         * lib/unistr/u32-strncat.c: New file.
70843         * lib/unistr/u-strncat.h: New file.
70844
70845         * modules/unistr/u8-strncmp: New file.
70846         * modules/unistr/u16-strncmp: New file.
70847         * modules/unistr/u32-strncmp: New file.
70848         * lib/unistr/u8-strncmp.c: New file.
70849         * lib/unistr/u16-strncmp.c: New file.
70850         * lib/unistr/u32-strncmp.c: New file.
70851
70852         * modules/unistr/u8-strncpy: New file.
70853         * modules/unistr/u16-strncpy: New file.
70854         * modules/unistr/u32-strncpy: New file.
70855         * lib/unistr/u8-strncpy.c: New file.
70856         * lib/unistr/u16-strncpy.c: New file.
70857         * lib/unistr/u32-strncpy.c: New file.
70858         * lib/unistr/u-strncpy.h: New file.
70859
70860         * modules/unistr/u8-strnlen: New file.
70861         * modules/unistr/u16-strnlen: New file.
70862         * modules/unistr/u32-strnlen: New file.
70863         * lib/unistr/u8-strnlen.c: New file.
70864         * lib/unistr/u16-strnlen.c: New file.
70865         * lib/unistr/u32-strnlen.c: New file.
70866         * lib/unistr/u-strnlen.h: New file.
70867
70868         * modules/unistr/u8-strpbrk: New file.
70869         * modules/unistr/u16-strpbrk: New file.
70870         * modules/unistr/u32-strpbrk: New file.
70871         * lib/unistr/u8-strpbrk.c: New file.
70872         * lib/unistr/u16-strpbrk.c: New file.
70873         * lib/unistr/u32-strpbrk.c: New file.
70874         * lib/unistr/u-strpbrk.h: New file.
70875
70876         * modules/unistr/u8-strrchr: New file.
70877         * modules/unistr/u16-strrchr: New file.
70878         * modules/unistr/u32-strrchr: New file.
70879         * lib/unistr/u8-strrchr.c: New file.
70880         * lib/unistr/u16-strrchr.c: New file.
70881         * lib/unistr/u32-strrchr.c: New file.
70882
70883         * modules/unistr/u8-strspn: New file.
70884         * modules/unistr/u16-strspn: New file.
70885         * modules/unistr/u32-strspn: New file.
70886         * lib/unistr/u8-strspn.c: New file.
70887         * lib/unistr/u16-strspn.c: New file.
70888         * lib/unistr/u32-strspn.c: New file.
70889         * lib/unistr/u-strspn.h: New file.
70890
70891         * modules/unistr/u8-strstr: New file.
70892         * modules/unistr/u16-strstr: New file.
70893         * modules/unistr/u32-strstr: New file.
70894         * lib/unistr/u8-strstr.c: New file.
70895         * lib/unistr/u16-strstr.c: New file.
70896         * lib/unistr/u32-strstr.c: New file.
70897         * lib/unistr/u-strstr.h: New file.
70898
70899         * modules/unistr/u8-strtok: New file.
70900         * modules/unistr/u16-strtok: New file.
70901         * modules/unistr/u32-strtok: New file.
70902         * lib/unistr/u8-strtok.c: New file.
70903         * lib/unistr/u16-strtok.c: New file.
70904         * lib/unistr/u32-strtok.c: New file.
70905         * lib/unistr/u-strtok.h: New file.
70906
70907         * modules/unistr/u8-uctomb: New file.
70908         * modules/unistr/u16-uctomb: New file.
70909         * modules/unistr/u32-uctomb: New file.
70910         * lib/unistr/u8-uctomb.c: New file.
70911         * lib/unistr/u16-uctomb.c: New file.
70912         * lib/unistr/u32-uctomb.c: New file.
70913
70914         * MODULES.html.sh (Unicode string functions): Add the new modules.
70915
70916 2007-01-08  Bruno Haible  <bruno@clisp.org>
70917
70918         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70919         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70920         subdirectories.
70921
70922 2007-01-08  Karl Berry  <karl@gnu.org>
70923
70924         * doc/error.texi: mention that main() fns must set program_name
70925         when progname is used.
70926
70927 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70928
70929         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70930         WCTYPE_H is empty, for the benefit of builds from non-distclean
70931         directories.  Problem reported by Eric Blake in
70932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70933
70934 2007-01-08  Bruno Haible  <bruno@clisp.org>
70935
70936         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70937         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70938         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70939         PROVIDE_CANONICALIZE_FILENAME_MODE.
70940         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70941
70942 2007-01-08  Bruno Haible  <bruno@clisp.org>
70943
70944         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70945         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70946         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70947         * lib/fts.c: Likewise.
70948         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70949
70950 2006-12-25  Bruno Haible  <bruno@clisp.org>
70951
70952         * modules/utf8-ucs4-safe: New file.
70953         * lib/utf8-ucs4-safe.h: New file.
70954         * lib/unistr/utf8-ucs4-safe.c: New file.
70955
70956         * modules/utf16-ucs4-safe: New file.
70957         * lib/utf16-ucs4-safe.h: New file.
70958         * lib/unistr/utf16-ucs4-safe.c: New file.
70959
70960         * MODULES.html.sh (Unicode string functions): Add the new modules.
70961
70962 2007-01-08  Bruno Haible  <bruno@clisp.org>
70963
70964         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70965         (Depends-on): Add unitypes.
70966         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70967         (u8_mbtouc_aux): Move out to separate file.
70968         (u8_mbtouc): Use ucs4_t, uint8_t types.
70969         * lib/unistr/utf8-ucs4.c: New file.
70970
70971         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70972         (Depends-on): Add unitypes.
70973         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70974         (u16_mbtouc_aux): Move out to separate file.
70975         (u16_mbtouc): Use ucs4_t, uint16_t types.
70976         * lib/unistr/utf16-ucs4.c: New file.
70977
70978         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70979         (Depends-on): Add unitypes.
70980         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70981         (u8_uctomb_aux): Move out to separate file.
70982         (u8_uctomb): Use ucs4_t, uint8_t types.
70983         * lib/unistr/ucs4-utf8.c: New file.
70984
70985         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70986         (Depends-on): Add unitypes.
70987         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70988         (u16_uctomb_aux): Move out to separate file.
70989         (u16_uctomb): Use ucs4_t, uint16_t types.
70990         * lib/unistr/ucs4-utf16.c: New file.
70991
70992 2006-12-25  Bruno Haible  <bruno@clisp.org>
70993
70994         * modules/unitypes: New file.
70995         * lib/unitypes.h: New file.
70996         * MODULES.html.sh (func_all_modules): New section "Unicode string
70997         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70998         this section. Add unitypes.
70999
71000 2007-01-08  Bruno Haible  <bruno@clisp.org>
71001
71002         Avoid variable names that conflict with those from libtool.
71003         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71004         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71005         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71006         library_names_spec to acl_library_names_spec, hardcode_* to
71007         acl_hardcode_*.
71008         Reported by Ralf Wildenhues.
71009
71010 2007-01-08  Bruno Haible  <bruno@clisp.org>
71011
71012         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71013         definition.
71014         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71015         definition.
71016         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71017         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71018         definition.
71019         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71020         definition.
71021         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71022         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71023         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71024         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71025         definition.
71026         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71027         definition.
71028         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71029         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71030         GC_USE_<algorithm>.
71031         * lib/gc-libgcrypt.c: Likewise.
71032         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71033         * modules/gc-arctwo (configure.ac): Likewise.
71034         * modules/gc-des (configure.ac): Likewise.
71035         * modules/gc-hmac-md5 (configure.ac): Likewise.
71036         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71037         * modules/gc-md2 (configure.ac): Likewise.
71038         * modules/gc-md4 (configure.ac): Likewise.
71039         * modules/gc-md5 (configure.ac): Likewise.
71040         * modules/gc-random (configure.ac): Likewise.
71041         * modules/gc-rijndael (configure.ac): Likewise.
71042         * modules/gc-sha1 (configure.ac): Likewise.
71043
71044 2007-01-08  Bruno Haible  <bruno@clisp.org>
71045
71046         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71047         macro definition.
71048         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71049         definition.
71050         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71051         definition.
71052         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71053         * modules/fcntl-safer (configure.ac): Likewise.
71054         * modules/fopen-safer (configure.ac): Likewise.
71055         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71056         GNULIB_FWRITEERROR macro definition.
71057
71058 2007-01-08  Bruno Haible  <bruno@clisp.org>
71059
71060         * m4/gnulib-common.m4: New file.
71061         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71062         (func_get_filelist): Add m4/gnulib-common.m4.
71063
71064 2007-01-08  Bruno Haible  <bruno@clisp.org>
71065
71066         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71067         command.
71068
71069 2007-01-08  Jim Meyering  <jim@meyering.net>
71070
71071         Use a more robust test for a "can't happen" condition.
71072         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71073         narrowed the st_size value.  Presuming the "can't happen" condition
71074         is true, that narrowing could conceivably convert an invalid st_size
71075         value into a valid one.  Instead, use a change based on Matthew
71076         Woehlke's original patch.
71077
71078         Slight readability improvement: use an assert-like macro
71079         in place of literal "abort ()" uses.
71080         * lib/fts.c (fts_assert): Define.
71081         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71082         Use this macro instead of a bare 'abort'.
71083
71084 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71087         simply work around them.
71088         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71089         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71090         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71091         declaring.
71092         Don't bother to define as macros, since the standard doesn't require it.
71093         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71094         longer worry about IRIX 5.3.
71095         (HAVE_WCTYPE_CTMP_BUG): Remove.
71096
71097 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71100         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71101         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71102         Problems reported by Georg Schwarz for IRIX 5.3.
71103
71104         * gnulib-tool (autoconf_minversion): Take the maximum version number
71105         found, not the minimum.  Problem reported by James Youngman.
71106
71107 2007-01-03  Karl Berry  <karl@gnu.org>
71108
71109         * doc/error.texi: new file, explaining interaction with progname.
71110         * doc/gnulib.texi: include it.  Update copyright.
71111
71112 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71113
71114         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71115         AC_CANONICAL_HOST, to improve autobuild outputs.
71116
71117 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71118             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71119
71120         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71121         sockets, server sockets, and other file descriptors.  Count errors
71122         to compute the return value.  Reorder the code a bit to be easier
71123         to follow.  Don't set event bits that were not requested (except
71124         POLLERR and POLLHUP).
71125
71126 2007-01-01  Bruno Haible  <bruno@clisp.org>
71127
71128         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71129
71130 2007-01-03  Jim Meyering  <jim@meyering.net>
71131
71132         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71133
71134 2007-01-02  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/settime (Include): Require timespec.h.
71137         * modules/nanosleep (Include): Likewise.
71138
71139 2007-01-01  Bruno Haible  <bruno@clisp.org>
71140
71141         * gnulib-tool (func_emit_copyright_notice): Bump year.
71142         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71143
71144 2007-01-01  Bruno Haible  <bruno@clisp.org>
71145
71146         Improve support for OpenBSD.
71147         * build-aux/config.rpath (libname_spec): Export.
71148         (library_names_spec): New variable. Export.
71149         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71150         library_names_spec from the config.rpath output. Locate shared library
71151         through the name pattern in library_names_spec.
71152
71153 2007-01-01  Eric Blake  <ebb9@byu.net>
71154
71155         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71156
71157 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71160         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71161         assume the C locale, and avoid an "eval" that could cause trouble.
71162         Problem with SORT reported by Bob Proulx.
71163
71164         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71165         Define.  Trivial patch from Henning Nielsen Lund, originally
71166         sent to bug-grep@gnu.org today.
71167
71168 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71171         struct stat.  Problem reported by Henning Nielsen Lund.
71172         * lib/acl.c: Include acl.h first, to check interface.  Don't
71173         bother to include sys/types.h and sys/stat.h again.
71174
71175 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         Import the following change from libc; problem reported by
71178         Sven Verdoolaege.
71179
71180         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71181
71182         [BZ #1373]
71183         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71184
71185 2006-12-28  Jim Meyering  <jim@meyering.net>
71186
71187         * build-aux/announce-gen: Do not assume that the package
71188         builds any of tar.gz, tar.bz2, and .xdelta files.
71189         Suggestion from Simon Josefsson.
71190
71191 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71192
71193         * modules/announce-gen: New file.
71194
71195 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71198         handles its gotchas now.
71199         * lib/mbswidth.c: Likewise.
71200         * lib/wcwidth.h: Likewise.
71201         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71202         and iswcntrl; the wctype module does this stuff now.
71203         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71205         * modules/mbchar (Depends-on): Add wctype.
71206         * modules/mbswidth (Depends-on): Likewise.
71207         * modules/wcwidth (Depends-on): Likewise.
71208
71209 2006-12-27  Eric Blake  <ebb9@byu.net>
71210
71211         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71212         module uses more than what <wctype.h> is required to provide.
71213
71214 2006-12-26  Eric Blake  <ebb9@byu.net>
71215
71216         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71217
71218 2006-12-26  Eric Blake  <ebb9@byu.net>
71219
71220         * modules/absolute-header: New module.
71221         * modules/fcntl (Depends-on): Depend on it.
71222         * modules/inttypes (Depends-on): Likewise.
71223         * modules/stdint (Depends-on): Likewise.
71224         * modules/sys_stat (Depends-on): Likewise.
71225         * modules/wctype (Depends-on): Likewise.
71226         * MODULES.html.sh (Support for building libraries and
71227         executables): Document it.
71228
71229 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * gnulib-tool (SED): Remove, undoing previous change.
71232         The problem was that it broke coreutils on Solaris, because
71233         "sed --posix" leaked into a makefile.
71234         (sed): New alias, if 'alias' and GNU sed.
71235
71236 2006-12-24  Jim Meyering  <jim@meyering.net>
71237
71238         Work around an fchownat bug in glibc-2.4:
71239         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71240         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71241         in spite of the -P option.
71242         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71243         New macros.
71244         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71245         * modules/openat (Files): Add lib/fchownat.c.
71246         * lib/openat.c (fchownat): Don't define here.  Move to...
71247         * lib/fchownat.c: ...this new file.
71248
71249 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         Fix bug reported by Bruno Haible in
71252         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71253         where quotearg.c didn't compile on Mac OS X 10.2 because it
71254         lacks <wchar.h> and wint_t.
71255         * lib/wctype_.h (__wctype_wint_t): New type.
71256         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71257         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71258         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71259         Arg is now of type __wctype_wint_t, not wint_t.
71260         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71261         substitute HAVE_WINT_T.
71262         * modules/wctype (Files): Add m4/wint_t.m4.
71263         (wctype.h): Substitute HAVE_WINT_T.
71264
71265 2006-12-23  Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71268
71269 2006-12-23  Bruno Haible  <bruno@clisp.org>
71270
71271         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71272         S_ISLNK.
71273         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71274         mingw.
71275
71276 2006-12-22  Bruno Haible  <bruno@clisp.org>
71277
71278         * lib/copy-file.c: Include acl.h.
71279         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71280         Close the file descriptors only after being done with copy_acl.
71281         * modules/copy-file (Depends-on): Add acl.
71282
71283 2006-12-22  Bruno Haible  <bruno@clisp.org>
71284
71285         * gnulib-tool (SED): New variable.
71286         Use $SED instead of sed everywhere.
71287
71288 2006-12-22  Bruno Haible  <bruno@clisp.org>
71289
71290         * modules/no-c++: New file.
71291         * m4/no-c++.m4: New file.
71292         * MODULES.html.sh (Support for building libraries and executables):
71293         Add no-c++.
71294
71295 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71298         Include <limits.h>, and use its INT_MAX to rewrite the
71299         j loop so that it does not overflow 'int'.  Problem reported by
71300         Ralf Wildenhues in
71301         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71302         Play it safe by shifting left by 1 rather than multiplying by 2,
71303         as GCC is less likely to optimize this away when the value
71304         is signed (when it assumes overflow leads to undefined behavior).
71305         Also, don't assume time_t uses two's complement.
71306
71307 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71308
71309         * MODULES.html.sh: New module wctype.
71310         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71311         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71312         <wctype.h>, since the new wctype module should fix this.
71313         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71314         the wctype module should arrange for it.
71315         * lib/regex_internal.h: Likewise.
71316         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71317         since the wctype module should handle this now.
71318         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71319         * modules/fnmatch (Depends-on): Add wctype.
71320         * modules/quotearg (Depends-on): Likewise.
71321         * modules/regex (Depends-on): Likewise.
71322
71323 2006-12-19  Bruno Haible  <bruno@clisp.org>
71324
71325         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71326         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71327
71328 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71329
71330         * modules/savewd (Depends-on): Fix dependency on fcntl.
71331
71332 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71335         conforms to C99, rather than relying on the user's environment
71336         setting of STDINT_H.
71337
71338 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71339         and Eric Blake  <ebb9@byu.net>
71340
71341         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71342         This is more consistent with the other defines here.
71343         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71344         Port to z/OS.  Problem reported by Paul Gilmartin.
71345         Change local vars to use gl_ prefix rather than ac_.
71346         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71347         with other defines.
71348         * modules/double-slash-root: New module.
71349         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71350         (Depends-on): Add double-slash-root.
71351         * MODULES.html.sh (File system functions): Mention new module.
71352
71353 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71354
71355         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71356         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71357         This is for the benefit of gzip, which doesn't do i18n.
71358
71359 2006-12-12  Jim Meyering  <jim@meyering.net>
71360
71361         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71362         Reported by Andreas Schwab <schwab@suse.de>.
71363
71364 2006-12-12  Bruno Haible  <bruno@clisp.org>
71365
71366         Merge these changes.
71367         2006-09-05  Bruno Haible  <bruno@clisp.org>
71368         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71369         iconv_alloc succeeded.
71370         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71371         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71372         test for " && dest " at the end - dest is always != NULL there. Call
71373         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71374         with 2xNULL arguments, also to flush the state storage. Handle the
71375         IRIX iconv behaviour. Realloc the final result, to throw away unused
71376         memory.
71377
71378 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71379
71380         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71381         and fchmodat unconditionally, since glibc 2.4 has them.
71382         Problem reported by Arkadiusz Miskiewicz.
71383
71384 2006-12-10  Bruno Haible  <bruno@clisp.org>
71385
71386         * gnulib-tool (func_import): Show the include files only for those
71387         modules that are copied and specified.
71388         Reported by Karl Berry.
71389
71390 2006-12-08  Jim Meyering  <jim@meyering.net>
71391
71392         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71393         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71394
71395         * build-aux/announce-gen: Add two new options, both optional:
71396         --bootstrap-tools=TOOL_LIST
71397               a comma-separated list of tools, e.g.,
71398               autoconf,automake,bison,gnulib
71399         --gnulib-snapshot-date=DATE
71400               if gnulib is in the bootstrap tool list,
71401               then report this as the snapshot date.
71402               If not specified, use the current date/time.
71403               If you specify a date here, be sure it's UTC.
71404
71405 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71406
71407         * tests/test-argp-2.sh: Fix test to match actual output.
71408         (func_compare): Fix sed script to be portable.
71409
71410 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71411
71412         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71413         workaround for this case.  It is not autoconfigured now; offhand
71414         it's hard to see how to autoconfigure it.
71415
71416 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71417
71418         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71419         a directory that is about to be chowned.  Such a directory's
71420         initial file permissions should permit the owner only and this
71421         should not be changed until after the chown, since the group and
71422         other bits would be incorrect if they granted permission before
71423         the chown.
71424
71425         Fix porting problem for iswctype reported by Georg Schwarz in:
71426         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71427         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71428         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71430         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71431
71432 2006-12-03  Jim Meyering  <jim@meyering.net>
71433
71434         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71435         p->fts_statp may not yet be defined.
71436         (fts_read): Instead, set it in the caller, once p->fts_statp is
71437         sure to be defined, and corresponds to a top-level directory.
71438         This bug made du -x fail.  Here's the coreutils test case:
71439         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71440         Reported by Mike Frysinger.
71441
71442 2006-12-01  Jim Meyering  <jim@meyering.net>
71443
71444         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71445         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71446         Reported by Simon Josefsson.
71447
71448 2006-11-30  Jim Meyering  <jim@meyering.net>
71449
71450         * m4/warning.m4: Use the all-permissive copyright notice
71451         recommended by RMS (rather than LGPL).
71452         * m4/vararrays.m4: Likewise.
71453         * m4/flexmember.m4: Likewise.
71454
71455 2006-11-29  Bruno Haible  <bruno@clisp.org>
71456
71457         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71458         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71459         using +=.
71460         Reported by Simon Josefsson <simon@josefsson.org>.
71461
71462 2006-11-28  James Youngman <jay@gnu.org>
71463
71464         * README: Advise users that they might find the bug-gnulib@gnu.org
71465         and autotools-announce@gnu.org mailing lists useful.
71466
71467 2006-11-28  Bruno Haible  <bruno@clisp.org>
71468
71469         * m4/ptrdiff_max.m4: Remove file.
71470
71471 2006-11-21  Bruno Haible  <bruno@clisp.org>
71472
71473         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71474         _AC_COMPUTE_INT.
71475         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71476         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71477         _AC_COMPUTE_INT.
71478         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71479         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71480         _AC_COMPUTE_INT.
71481         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71482
71483 2006-11-28  Jim Meyering  <jim@meyering.net>
71484
71485         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71486         warning from "gcc -Wshadow" about shadowing the builtin.
71487
71488 2006-11-27  Bruno Haible  <bruno@clisp.org>
71489
71490         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71491         _AC_COMPUTE_INT.
71492         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71493
71494 2006-11-27  Bruno Haible  <bruno@clisp.org>
71495             Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71498
71499 2006-11-26  Bruno Haible  <bruno@clisp.org>
71500
71501         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71502         noinst_LTLIBRARIES.
71503
71504 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71505             Bruno Haible  <bruno@clisp.org>
71506
71507         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71508         if compiling with "gcc -ansi".
71509
71510 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71511
71512         Fix some incompatibilities with gcc -ansi -pedantic.
71513         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71514         if compiling pedantically with GCC, unless it's C99 or later.
71515         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71516         it mishandles gcc -ansi -pedantic as well.
71517         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71518         if gcc -pedantic.
71519         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71520         initializers for struct if -pedantic, unless it's C99 or later.
71521
71522 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71523
71524         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71525         Don't close an fd more than once. Identical atimes indicate
71526         success, not failure.
71527
71528 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71529
71530         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71531
71532 2006-11-23  Jim Meyering  <jim@meyering.net>
71533
71534         * build-aux/announce-gen: New file.  From coreutils.
71535
71536 2006-11-22  Jim Meyering  <jim@meyering.net>
71537
71538         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71539         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71540         (fts_read): Use a temporary to narrow the overused st_size member
71541         before using it in a switch statement.  Reported by Matthew Woehlke.
71542
71543         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71544         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71545
71546 2006-11-20  Bruno Haible  <bruno@clisp.org>
71547
71548         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71549         changequote instead of pairs of brackets.
71550         Reported by Andreas Schwab <schwab@suse.de>.
71551
71552 2006-11-21  Jim Meyering  <jim@meyering.net>
71553
71554         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71555         so as to remain compatible with older compilers.
71556         Patch from Michael Deutschmann.
71557
71558 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * MODULES.html.sh (File system functions): Add openat.
71561
71562         * lib/openat.h (rpl_fstatat): New macro, if
71563         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71564         (fstatat): Define to rpl_fstatat under the same conditions,
71565         unless COMPILING_FSTATAT.
71566         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71567         seems to have the bug.
71568         * lib/fstatat.c: New file.
71569         * modules/openat (Files): Add it.
71570
71571 2006-11-20  Bruno Haible  <bruno@clisp.org>
71572
71573         * Makefile: New file.
71574
71575 2006-11-20  Jim Meyering  <jim@meyering.net>
71576
71577         The beginnings of syntax-related checks for gnulib.
71578         * lib/Makefile: New file.
71579         * lib/t-idcache: New script.  Ensure that the two halves of
71580         idcache.c stay in sync.
71581
71582         * lib/idcache.c: Adjust comments in user- and group- portions to
71583         be more accurate, and to be consistent with one another.
71584
71585 2006-11-20  Jim Meyering  <jim@meyering.net>
71586
71587         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71588         continue using the flexible array member (thus, this module performs
71589         half as many malloc calls), with the addition that...
71590         (getgroup, getuser): Consistently record a non-match via an empty
71591         "name" string, and map an empty string match to a NULL return value.
71592         * modules/idcache (Depends-on): Re-add flexmember.
71593
71594         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71595         (getuidbyname, getgroup, getgidbyname): Likewise.
71596
71597         Use cleaner syntax: NULL rather than 0.
71598         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71599
71600 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71601
71602         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71603         It mishandled the case where the group was missing.
71604         Problem reported by Greg Schafer.
71605         * modules/idcache: Likewise.
71606
71607 2006-11-18  Jim Meyering  <jim@meyering.net>
71608
71609         * check-module (%exempt_header): Add exception for some
71610         conditionally-included headers.
71611
71612         * modules/i-ring (Depends-on): Add verify.
71613         (License): Change to LGPL.
71614
71615 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71618         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71619         and inttostr.h.  Use snprintf rather than uinttostr, so that
71620         LGPLed code doesn't depend on GPLed.
71621
71622 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * modules/inline (License): Change from GPL to LGPL.
71625
71626 2006-11-17  Jim Meyering  <jim@meyering.net>
71627
71628         * modules/d-type (License): Switch to LGPL.
71629
71630 2006-11-15  Bruno Haible  <bruno@clisp.org>
71631
71632         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71633
71634 2006-11-15  Eric Blake  <ebb9@byu.net>
71635
71636         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71637         the module dependency.
71638
71639 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71640             Bruno Haible  <bruno@clisp.org>
71641
71642         * gnulib-tool (func_create_testdir): Add license consistency check.
71643
71644 2006-11-15  Eric Blake  <ebb9@byu.net>
71645
71646         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71647         random "(cached)" in configure output.
71648
71649 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71650
71651         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71652         test for conforming inttypes.h is both announced and cached.
71653
71654         * MODULES.html.sh (seen_modules, seen_files): New variables.
71655         (func_module): Rewrite to use a few less gnulib-tool and sed
71656         invocations.  Avoid a couple of quadratic algorithms for ...
71657         (missed_modules, missed_files): ... these, with ...
71658         (func_append, func_tmpdir): ... these new functions, from
71659         gnulib-tool.  Analogously, install traps for cleanup.
71660
71661         * tests/test-gc.c (main): Remove unused variables.
71662         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71663
71664 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71665
71666         * modules/inttostr (License): Change to LGPL.
71667
71668 2006-11-14  Eric Blake  <ebb9@byu.net>
71669
71670         * modules/tempname (License): Change to LGPL.
71671
71672 2006-11-14  Eric Blake  <ebb9@byu.net>
71673
71674         * doc/functions.texi (Function Portability): *printf functions on
71675         Cygwin now understand all POSIX size specifiers.
71676
71677 2006-11-14  Bruno Haible  <bruno@clisp.org>
71678
71679         * modules/c-ctype (License): Change to LGPL.
71680
71681 2006-11-12  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71684         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71685         for GNOME libraries, for which the include files are installed in
71686         subdirectories of $prefix/include.
71687
71688 2006-11-12  Bruno Haible  <bruno@clisp.org>
71689
71690         * m4/lib-link.m4: Require at least autoconf-2.54.
71691         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71692         name to underscores for the --with option.
71693
71694 2006-11-13  Bruno Haible  <bruno@clisp.org>
71695
71696         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71697         the tests directory.
71698         Reported by Ralf Wildenhues.
71699
71700 2006-11-13  Bruno Haible  <bruno@clisp.org>
71701
71702         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71703         (func_emit_initmacro_end): Undo the override here.
71704         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71705         Works around the famous automake error in coreutils.
71706
71707 2006-11-13  Eric Blake  <ebb9@byu.net>
71708
71709         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71710         element, not its node.
71711
71712 2006-11-12  Bruno Haible  <bruno@clisp.org>
71713
71714         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71715         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71716
71717 2006-11-12  Bruno Haible  <bruno@clisp.org>
71718
71719         * gnulib-tool: New option --local-symlink.
71720         (func_usage): Document it.
71721         (lsymbolic): New variable.
71722         (func_import, func_create_testdir): If --symlink was not specified,
71723         test whether --local-symlink was specified and the file comes from
71724         the local_gnulib_dir.
71725
71726 2006-11-12  Bruno Haible  <bruno@clisp.org>
71727
71728         * gnulib-tool (func_ln): New function.
71729         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71730
71731 2006-11-12  Bruno Haible  <bruno@clisp.org>
71732
71733         Finish support for source files in subdirectories.
71734         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71735         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71736         AUTOMAKE_OPTIONS.
71737         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71738
71739 2006-11-12  Bruno Haible  <bruno@clisp.org>
71740
71741         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71742         EXTRA_lib_SOURCES augmentation.
71743         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71744
71745 2006-11-12  Jim Meyering  <jim@meyering.net>
71746
71747         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71748         file descriptors.  This also averts a failure on systems with
71749         native openat support when a traversed directory lacks "x" access.
71750         * lib/fts_.h: Include "i-ring.h"
71751         (struct FTS) [fts_fd_ring]: New member.
71752         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71753         (FCHDIR): Add parentheses.
71754         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71755         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71756         When descending, rather than simply closing the previous
71757         fts_cwd_fd value, push that file descriptor onto the ring.
71758         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71759         (fts_open): Initialize the new fd_ring member.
71760         (fts_close): Clear the ring.
71761         (fts_safe_changedir): When possible, use our new fd_ring to skip
71762         the diropen and fstat and dev/ino comparison that would normally
71763         accompany a virtual `chdir ("..")'.
71764
71765         * modules/fts (Depends-on): Add i-ring.
71766         * modules/i-ring: New module.
71767         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71768         * m4/i-ring.m4: New file.
71769
71770 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71771
71772         * gnulib-tool (func_create_testdir): Fix replacement of
71773         `build-aux' in configure.ac.  Run autotools in gltests
71774         subdirectory.
71775         (func_create_testdir, func_create_megatestdir, test): There is
71776         no need for '--force' in most autotool invocations in a new
71777         tree.  Actually fail the whole test if any of the tools, or the
71778         configure or make stages fail.
71779
71780         Sync from Automake.
71781         * build-aux/gnupload: Revert last change.  Add pointer to upload
71782         instructions of the GNU Maintenance Instructions.
71783         Suggestion by Karl Berry.
71784
71785 2006-11-10  Jim Meyering  <jim@meyering.net>
71786
71787         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71788
71789 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71790
71791         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71792         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71793         (bind_textdomain_codeset) [! ENABLE_NLS]:
71794         Evaluate all the arguments.  That way, callers get compatible behavior
71795         if the arguments have side effects.  Also, it avoids some GCC
71796         diagnostics in some cases; Joel E. Denny reported problems when Bison
71797         was configured with --enable-gcc-warnigs.
71798
71799 2006-11-10  Jim Meyering  <jim@meyering.net>
71800
71801         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71802         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71803         account.
71804
71805 2006-11-10  Jim Meyering  <jim@meyering.net>
71806
71807         * modules/inline: New file/module.
71808         * modules/xalloc (Files): Remove m4/inline.m4.
71809         (Depends-on): Add inline, instead.
71810         * modules/oset: Likewise.
71811         * modules/list: Likewise.
71812
71813 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71816         Problem reported by Matthew Woehlke.
71817
71818 2006-11-09  Bruno Haible  <bruno@clisp.org>
71819
71820         * lib/tempname.c (gen_tempname): Remove variant that invokes
71821         __gen_tempname.
71822         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71823         __gen_tempname.
71824
71825 2006-11-08  Bruno Haible  <bruno@clisp.org>
71826
71827         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71828         to 'yes' instead of 'cross-compiling'.
71829
71830 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71831
71832         * lib/quotearg.h (quotearg_free): New decl.
71833         * lib/quotearg.c (quotearg_free): New function.
71834         (slot0, nslots, slotvec0, slotvec):
71835         Now file-scope so that quotearg_free can get at them.
71836
71837 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71838
71839         Sync from Automake.
71840         * build-aux/gnupload: Add missing 'gnu' to example URL.
71841         Report by Karl Berry.
71842
71843 2006-11-08  Bruno Haible  <bruno@clisp.org>
71844
71845         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71846         Suggested by Paul Eggert.
71847
71848 2006-11-08  Jim Meyering  <jim@meyering.net>
71849
71850         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71851         It's already included if !_LIBC.
71852         (fts_safe_changedir): Add a comment.
71853
71854 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71855
71856         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71857         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71858         Matthew Woehlke.
71859
71860         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71861         definitions up, to avoid colliding with change below.
71862         (static_inline) [HAVE_INLINE]: New macro.
71863         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71864         Provide extern decls when !HAVE_INLINE.  Do not define unless
71865         static_inline is defined, either by us or by xmalloc.c.  Use
71866         static_inline rather than static inline.
71867         (XCALLOC): Optimize sizeof(T) = 1 case.
71868         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71869
71870 2006-11-07  Bruno Haible  <bruno@clisp.org>
71871
71872         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71873         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71874         AC_C_INLINE.
71875         * modules/xalloc (Files): Add m4/inline.m4.
71876
71877 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71878
71879         * README: Fix typo.
71880         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71881         (Miscellanous Notes): ...from this.
71882
71883 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71884
71885         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71886         Mention that offsetof should be used instead of sizeof.
71887         From Bruno Haible.
71888
71889 2006-11-07  Bruno Haible  <bruno@clisp.org>
71890
71891         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71892
71893 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71894
71895         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71896         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71897         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71898         (gl_tree_add_before, gl_tree_add_after):
71899         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71900         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71901         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71902         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71903         (gl_linked_add_after, gl_linked_add_at): Likewise.
71904         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71905         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71906         (gl_tree_add_before, gl_tree_add_after): Likewise.
71907         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71908         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71909         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71910
71911 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71912
71913         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71914
71915 2006-11-06  Bruno Haible  <bruno@clisp.org>
71916
71917         * m4/inline.m4: New file.
71918         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71919         * modules/list (Files): Add m4/inline.m4.
71920         * modules/oset (Files): Likewise.
71921
71922 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71923
71924         * lib/idcache.c: Include <stddef.h>, for offsetof.
71925         (struct userid.name): Change from char * to a flexible array member.
71926         All uses changed.
71927         * modules/idcache (Depends-on): Add flexmember.
71928
71929         * MODULES.html.sh (Core language properties): New module flexmember.
71930         * modules/flexmember, m4/flexmember.m4: New files.
71931
71932         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71933         inline functions that are identical with the old xnmalloc_inline,
71934         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71935         that we can avoid some unnecessary integer multiplications and
71936         divisions in the common case where the element size is known at
71937         compile time.
71938         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71939         needed.
71940         (xnboundedmalloc): Remove.
71941         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71942         arguments, for consistency with rest of this header.
71943         (xcharalloc): Rewrite using XNMALLOC.
71944         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71945         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71946         versions have been moved to lib/xalloc.h and renamed to be the
71947         non-*_inline versions.
71948         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71949         and xnrealloc functions, since those functions are now inline and
71950         now call us.
71951         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71952         renaming described above.
71953         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71954         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71955         captures the dependency in AC_C_INLINE.
71956
71957         New module canonicalize-lgpl, proposed by Charles Wilson in
71958         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71959         with a few small changes afterwards.
71960         * MODULES.html.sh (File system functions): New module
71961         canonicalize-lgpl.
71962         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71963         and canonicalize_file_name.
71964         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71965         * modules/canonicalize-lgpl: New files.
71966
71967 2006-11-05  Bruno Haible  <bruno@clisp.org>
71968
71969         * gnulib-tool (func_import, func_create_testdir): Create directories
71970         also for files in subdirectories of lib/.
71971
71972 2006-11-05  Bruno Haible  <bruno@clisp.org>
71973
71974         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71975         ANSI C compliant.
71976
71977 2006-11-03  Bruno Haible  <bruno@clisp.org>
71978
71979         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71980         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71981         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71982         (xnboundedmalloc): New inline function.
71983         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71984         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71985         xmalloc.
71986         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71987         xmalloc.
71988         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71989         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71990         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71991         xmalloc.
71992         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71993         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71994         xmalloc.
71995         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71996         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71997         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71998         xmalloc.
71999         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72000         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72001         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72002         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72003         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72004         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72005         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72006
72007 2006-11-03  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/c-ctype.h [C++]: Define functions without name mangling.
72010         * lib/fwriteerror.h [C++]: Likewise.
72011         * lib/gcd.h [C++]: Likewise.
72012         * lib/linebreak.h [C++]: Likewise.
72013
72014 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72017         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72018         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72019         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72020         Check for functions and headers just once.
72021         Check for declaration of canonicalize_file_name.
72022         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72023
72024 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72025
72026         * gnulib-tool (func_import): Fix typo in actioncmd.
72027
72028 2006-11-02  Bruno Haible  <bruno@clisp.org>
72029
72030         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72031         newline sequence in the Makefile.am snippet as a space, like "make"
72032         does.
72033         Reported by Roger Persson <perrog@gmail.com>.
72034
72035 2006-11-01  Bruno Haible  <bruno@clisp.org>
72036
72037         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72038         already declared in <string.h>.
72039         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72040
72041 2006-11-01  Bruno Haible  <bruno@clisp.org>
72042
72043         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72044         * lib/strcase.h: Include <string.h>.
72045         (strcasecmp): Define to rpl_strcasecmp here.
72046
72047 2006-11-01  Bruno Haible  <bruno@clisp.org>
72048
72049         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72050
72051 2006-11-01  Eric Blake  <ebb9@byu.net>
72052
72053         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72054
72055         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72056
72057 2006-10-29  Bruno Haible  <bruno@clisp.org>
72058
72059         Make it compile in C++ mode.
72060         * lib/full-write.c (full_rw): Add a cast.
72061
72062 2006-11-01  Bruno Haible  <bruno@clisp.org>
72063
72064         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72065         be POSIX compliant.
72066         Reported by Roger Persson <perrog@gmail.com>.
72067
72068 2006-11-01  Eric Blake  <ebb9@byu.net>
72069
72070         * lib/getopt_.h: Fix comments.
72071
72072 2006-10-31  Eric Blake  <ebb9@byu.net>
72073
72074         * modules/tmpdir (Depends-on): Add sys_stat.
72075         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72076         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72077         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72078         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72079         tempname.
72080
72081 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         Avoid some C++ diagnostics reported by Bruno Haible.
72084         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72085         xmalloc.
72086         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72087         (struct slotvec): Move to top level.
72088         (quotearg_n_options): Rewrite to avoid xmalloc.
72089         * lib/xalloc.h (xcharalloc): New function.
72090         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72091         [defined __cplusplus]: Add function template that provides result
72092         type propagation.  This part of the change is from Bruno Haible.
72093
72094 2006-10-29  Bruno Haible  <bruno@clisp.org>
72095
72096         Make it compile in C++ mode.
72097         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72098         * lib/strnlen1.c (strnlen1): Cast memchr result.
72099         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72100         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72101         (create_temp_dir): Rename local variable 'template'.
72102         (compile_csharp_using_sscli): Add cast.
72103         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72104         * lib/findprog.c (find_in_path): Likewise.
72105         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72106         * lib/wait-process.c (register_slave_subprocess): Likewise.
72107
72108 2006-10-22  Bruno Haible  <bruno@clisp.org>
72109
72110         * modules/tsearch: New file.
72111         * lib/tsearch.h: New file.
72112         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72113         * m4/tsearch.m4: New file.
72114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72115
72116 2006-10-29  Eric Blake  <ebb9@byu.net>
72117
72118         * lib/arcfour.c: Assume config.h.
72119         * lib/arctwo.c: Likewise.
72120         * lib/base64.c: Likewise.
72121         * lib/check-version.c: Likewise.
72122         * lib/crc.c: Likewise.
72123         * lib/des.c: Likewise.
72124         * lib/gc-gnulib.c: Likewise.
72125         * lib/gc-libgcrypt.c: Likewise.
72126         * lib/gc-pbkdf2-sha1.c: Likewise.
72127         * lib/getaddrinfo.c: Likewise.
72128         * lib/getdelim.c: Likewise.
72129         * lib/getline.c: Likewise.
72130         * lib/hmac-md5.c: Likewise.
72131         * lib/hmac-sha1.c: Likewise.
72132         * lib/iconvme.c: Likewise.
72133         * lib/md2.c: Likewise.
72134         * lib/md4.c: Likewise.
72135         * lib/memxor.c: Likewise.
72136         * lib/read-file.c: Likewise.
72137         * lib/readline.c: Likewise.
72138         * lib/rijndael-alg-fst.c: Likewise.
72139         * lib/rijndael-api-fst.c: Likewise.
72140         * lib/xgetdomainname.c: Likewise.
72141
72142 2006-10-28  Eric Blake  <ebb9@byu.net>
72143
72144         * lib/xstrndup.c: Assume config.h.
72145
72146 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72149         stat-macros.h is now for our own macros, whereas stat_h is for
72150         macros in the <sys/stat.h> name space.
72151         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72152         (STAT_MACROS_H): Remove.
72153         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72154         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72155         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72156         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72157         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72158         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72159         Move these macros to ...
72160         * lib/stat_.h: here.  Don't include stat-macros.h.
72161         * lib/canonicalize.c: Don't include stat-macros.h.
72162         * lib/chown.c: Likewise.
72163         * lib/euidaccess.c: Likewise.
72164         * lib/file-type.c: Likewise.
72165         * lib/filemode.c: Likewise.
72166         * lib/glob.c: Likewise.
72167         * lib/isapipe.c: Likewise.
72168         * lib/lchown.c: Likewise.
72169         * lib/lstat.c: Likewise.
72170         * lib/mkdir-p.c: Likewise.
72171         * lib/rmdir.c: Likewise.
72172         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72174         unless mkdir isn't declared, to speed up 'configure'.
72175         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72176         would define all the S_* symbols.
72177         * modules/canonicalize (Depends-on):
72178         Depend on sys_stat, not stat-macros.
72179         * modules/chown: Likewise.
72180         * modules/euidaccess: Likewise.
72181         * modules/filemode: Likewise.
72182         * modules/file-type: Likewise.
72183         * modules/glob: Likewise.
72184         * modules/isapipe: Likewise.
72185         * modules/lchown: Likewise.
72186         * modules/lstat: Likewise.
72187         * modules/mkancesdirs: Likewise.
72188         * modules/rmdir: Likewise.
72189         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72190         * modules/modechange: Likewise.
72191         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72192         (configure.ac): Remove gl_STAT_MACROS.
72193         * modules/sys_stat (Depends-on): Remove stat-macros.
72194
72195 2006-10-27  Bruno Haible  <bruno@clisp.org>
72196
72197         * m4/signed.m4: Remove file.
72198         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72199         invocation.
72200         * modules/vasnprintf (Files): Remove m4/signed.m4.
72201
72202 2006-10-27  Bruno Haible  <bruno@clisp.org>
72203
72204         Update to GNU gettext 0.16.
72205         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72206         m4/inttypes-h.m4, m4/signed.m4.
72207         * m4/gettext.m4: Update to GNU gettext 0.16.
72208         * m4/intl.m4: New file, from GNU gettext.
72209         * m4/intldir.m4: New file, from GNU gettext.
72210         * config/srclist.txt: Update
72211
72212 2006-10-27  Eric Blake  <ebb9@byu.net>
72213
72214         * MODULES.html.sh: Document tempname.
72215         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72216         dependencies.
72217         (Files): Move lib/tempname.c...
72218         * modules/tempname: ...to this new module.
72219         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72220         (gl_PREREQ_TEMPNAME): Move...
72221         * m4/tempname.m4: ...to this new file.
72222         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72223         * modules/sys_stat (Depends-on): Add stat-macros.
72224         * lib/stat_.h (includes): Pick up stat macros.
72225         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72226         if stat macros are broken.
72227         * lib/tempname.c (includes): No need to include "stat-macros.h".
72228         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72229         (direxists, __path_search) [!_LIBC]: Don't compile these in
72230         gnulib; the tmpdir module covers that.
72231         * lib/tempname.h: New file.
72232
72233 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72234
72235         * COPYING: Explain how gnulib-tool converts licence headers.
72236         Almost all wording by Eric Blake.
72237
72238 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72239
72240         * lib/mbchar.h (is_basic_table): Make read-only.
72241         * lib/mbchar.c (is_basic_table): Likewise.
72242         Reported by John Darrington.
72243
72244 2006-10-25  Bruno Haible  <bruno@clisp.org>
72245
72246         * lib/progname.h (set_program_name): Undefine before defining.
72247
72248 2006-10-25  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72251         false for non-gcc C++ compilers.
72252         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72253
72254 2006-10-24  Bruno Haible  <bruno@clisp.org>
72255
72256         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72257         iconv implementations like Irix iconv.
72258
72259 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72260
72261         * modules/vararrays: New file.
72262         * m4/vararrays.m4: New file, taken from diffutils.
72263         * MODULES.html.sh: New module vararrays.
72264
72265 2006-10-24  Karl Berry  <karl@gnu.org>
72266
72267         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72268         Don't call GNU Unix.
72269
72270 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72271
72272         * users.txt: Add Libtool.
72273
72274         Sync from Libtool:
72275
72276         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72279         to gnulib's policy of including config.h unconditionally.
72280
72281 2006-10-24  Bruno Haible  <bruno@clisp.org>
72282
72283         * modules/wcwidth (Files): Add m4/wint_t.m4.
72284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72285         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72286
72287 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72290         to pacify GCC with some -W flags enabled.  Problem reported by
72291         Bruno Haible.
72292
72293 2006-10-24  Jim Meyering  <jim@meyering.net>
72294
72295         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72296         Reported by Karl Berry.
72297
72298 2006-10-23  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72301
72302 2006-10-24  Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/gl_list.h: Use C comment style, not C++ comment style.
72305
72306 2006-10-23  Eric Blake  <ebb9@byu.net>
72307
72308         * lib/getaddrinfo.c (includes): Add missing include.
72309
72310 2006-10-23  Bruno Haible  <bruno@clisp.org>
72311             Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         Ability to rename obstack_free.
72314         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72315         obstack_free.
72316         (obstack_free): Invoke the __obstack_free macro.
72317         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72318
72319 2006-10-23  Bruno Haible  <bruno@clisp.org>
72320             Paul Eggert  <eggert@cs.ucla.edu>
72321
72322         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72323         __argc, __argv from the declaration. (They are defined as macros on
72324         mingw.)
72325
72326 2006-10-22  Bruno Haible  <bruno@clisp.org>
72327
72328         * doc/gnulib-intro.texi: New file.
72329         * doc/gnulib.texi: Include it.
72330
72331 2006-10-21  Bruno Haible  <bruno@clisp.org>
72332
72333         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72334         "Introduction", "Miscellanous Notes", "Particular Modules".
72335
72336 2006-10-21  Bruno Haible  <bruno@clisp.org>
72337
72338         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72339         Change mostlyclean-local rule to avoid sh syntax error from bash
72340         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72341
72342 2006-10-23  Jim Meyering  <jim@meyering.net>
72343
72344         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72345         in place of snprintf.
72346
72347         * modules/inttostr (Files): Add lib/uinttostr.c.
72348         * lib/uinttostr.c (inttostr): New file/function.
72349         * lib/inttostr.h (uinttostr): Declare.
72350         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72351         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72352         Add uinttostr.
72353         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72354
72355 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * lib/canonicalize.c (ELOOP): Define if not already defined.
72358         Problem reported by Bruno Haible in
72359         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72360
72361 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72362
72363         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72364         Problem reported by Perry Smith and Ville Laurikari.
72365
72366         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72367         uses.
72368
72369 2006-10-19  Bruno Haible  <bruno@clisp.org>
72370
72371         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72372         for mingw.
72373
72374 2006-10-19  Bruno Haible  <bruno@clisp.org>
72375
72376         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72377         Needed for mingw.
72378
72379 2006-10-19  Bruno Haible  <bruno@clisp.org>
72380
72381         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72382
72383 2006-10-19  Bruno Haible  <bruno@clisp.org>
72384
72385         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72386         it.
72387
72388 2006-10-19  Bruno Haible  <bruno@clisp.org>
72389
72390         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72391         invocation.
72392
72393 2006-10-19  Bruno Haible  <bruno@clisp.org>
72394
72395         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72396         mountlist by default.
72397
72398 2006-10-16  Bruno Haible  <bruno@clisp.org>
72399
72400         * lib/c-strstr.c: Include c-strstr.h.
72401
72402 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72403
72404         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72405         in a slash.
72406
72407 2006-10-18  Bruno Haible  <bruno@clisp.org>
72408
72409         * lib/lock.h [C++]: Wrap definitions in extern "C".
72410
72411 2006-10-18  Bruno Haible  <bruno@clisp.org>
72412
72413         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72414         gl_LIBOBJS list.
72415
72416 2006-10-18  Bruno Haible  <bruno@clisp.org>
72417
72418         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72419
72420 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         * lib/xstrtol.h: Include gettext.h.
72423         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72424         Problem reported by Eric Blake.
72425         * modules/xstrtol (Depends-on): Add gettext-h.
72426
72427 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72428
72429         * lib/strftime.c (advance): New macro.
72430         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72431         incomplete type, so you can't add 0 to it.  Problem and patch
72432         reported by Eelco Dolstra for dietlibc.
72433
72434 2006-10-18  Jim Meyering  <jim@meyering.net>
72435
72436         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72437         type for a local, and rename it: s/up/user_proc/.
72438
72439 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72440
72441         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72442         READ_UTMP_USER_PROCESS.
72443         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72444
72445 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72448         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72449
72450 2006-10-17  Eric Blake  <ebb9@byu.net>
72451
72452         * lib/sigprocmask.c (sigprocmask): Fix typo.
72453
72454         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72455
72456         * modules/clean-temp (Makefile.am): Don't add to make output...
72457         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72458         config.h.
72459
72460 2006-10-17  Bruno Haible  <bruno@clisp.org>
72461
72462         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72463         differently if DEFAULT_TEXT_DOMAIN is set.
72464
72465 2006-10-16  Bruno Haible  <bruno@clisp.org>
72466
72467         * lib/clean-temp.c: Include fwriteerror.h.
72468
72469 2006-10-16  Bruno Haible  <bruno@clisp.org>
72470
72471         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72472
72473 2006-10-16  Bruno Haible  <bruno@clisp.org>
72474
72475         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72476         * lib/sigprocmask.h: Include <sys/types.h>.
72477         (sigset_t): Use the system's definition if present.
72478
72479 2006-10-17  Eric Blake  <ebb9@byu.net>
72480
72481         * lib/xvasprintf.c (includes): Assume config.h.
72482         * lib/xasprintf.c (includes): Likewise.
72483
72484 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72487         at least as wide as intmax_t.
72488
72489 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72490
72491         (Imported from Automake.)
72492         * build-aux/gnupload: Update to version 1.1 of directive file.
72493
72494 2006-10-16  Eric Blake  <ebb9@byu.net>
72495
72496         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72497         match Automake 1.10a.
72498
72499 2006-10-14  Bruno Haible  <bruno@clisp.org>
72500
72501         * modules/sigprocmask: New file.
72502         * lib/sigprocmask.h: New file.
72503         * lib/sigprocmask.c: New file.
72504         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72505         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72506         request sigprocmask.o.
72507         (gl_PREREQ_SIGPROCMASK): New macro.
72508         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72509         (Depends-on): Add sigprocmask.
72510         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72511         gt_SIGNALBLOCKING. Test for 'raise' only once.
72512         * lib/fatal-signal.c: Include sigprocmask.h.
72513         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72514         unblock_fatal_signals): Define always.
72515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72516         sigprocmask.
72517
72518 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72519
72520         Sync from Automake.
72521         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72522         which incorrectly sets the mode of an existing destination
72523         directory.  In some cases the unpatched install-sh could do the
72524         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72525         system.  We hope this is rare in practice, but it's clearly worth
72526         fixing.  Problem reported by Alex Unleashed in
72527         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72528         Also, don't bother to check for -m bugs unless we're using -m;
72529         suggested by Stepan Kasal.
72530
72531 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72532
72533         Sync from Automake.
72534         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72535         `-c' flag, so they appear at the same position as in %FASTDEP%
72536         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72537         which ignores unknown options only after the first non-option.
72538         Bug report against M4 by Nelson H. F. Beebe.
72539
72540 2006-10-13  Jim Meyering  <jim@meyering.net>
72541
72542         Fix a bug in yesterday's change.
72543         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72544         p->fts_statp->st_dev would be used uninitialized.
72545         Ensures that we always call fts_stat on the very first entry.
72546         Miklos Szeredi reported that find -xdev stopped working.
72547
72548 2006-10-12  Bruno Haible  <bruno@clisp.org>
72549
72550         * gnulib-tool (func_get_automake_snippet): Append an automatically
72551         computed EXTRA_DIST augmentation.
72552         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72553         * modules/alloca-opt (Makefile.am): Likewise.
72554         * modules/allocsa (Makefile.am): Likewise.
72555         * modules/arcfour (Makefile.am): Likewise.
72556         * modules/arctwo (Makefile.am): Likewise.
72557         * modules/argmatch (Makefile.am): Likewise.
72558         * modules/argz (Makefile.am): Likewise.
72559         * modules/atexit (Makefile.am): Likewise.
72560         * modules/backupfile (Makefile.am): Likewise.
72561         * modules/byteswap (Makefile.am): Likewise.
72562         * modules/c-strtod (Makefile.am): Likewise.
72563         * modules/c-strtold (Makefile.am): Likewise.
72564         * modules/calloc (Makefile.am): Likewise.
72565         * modules/canon-host (Makefile.am): Likewise.
72566         * modules/canonicalize (Makefile.am): Likewise.
72567         * modules/chdir-long (Makefile.am): Likewise.
72568         * modules/chdir-safer (Makefile.am): Likewise.
72569         * modules/check-version (Makefile.am): Likewise.
72570         * modules/chown (Makefile.am): Likewise.
72571         * modules/cloexec (Makefile.am): Likewise.
72572         * modules/close-stream (Makefile.am): Likewise.
72573         * modules/closeout (Makefile.am): Likewise.
72574         * modules/crc (Makefile.am): Likewise.
72575         * modules/csharpexec (Makefile.am): Likewise.
72576         * modules/cycle-check (Makefile.am): Likewise.
72577         * modules/des (Makefile.am): Likewise.
72578         * modules/dev-ino (Makefile.am): Likewise.
72579         * modules/dirfd (Makefile.am): Likewise.
72580         * modules/dirname (Makefile.am): Likewise.
72581         * modules/dup2 (Makefile.am): Likewise.
72582         * modules/eealloc (Makefile.am): Likewise.
72583         * modules/error (Makefile.am): Likewise.
72584         * modules/euidaccess (Makefile.am): Likewise.
72585         * modules/exclude (Makefile.am): Likewise.
72586         * modules/exitfail (Makefile.am): Likewise.
72587         * modules/fcntl-safer (Makefile.am): Likewise.
72588         * modules/fcntl (Makefile.am): Likewise.
72589         * modules/file-type (Makefile.am): Likewise.
72590         * modules/fileblocks (Makefile.am): Likewise.
72591         * modules/filemode (Makefile.am): Likewise.
72592         * modules/filenamecat (Makefile.am): Likewise.
72593         * modules/fnmatch (Makefile.am): Likewise.
72594         * modules/fopen-safer (Makefile.am): Likewise.
72595         * modules/fpending (Makefile.am): Likewise.
72596         * modules/fprintftime (Makefile.am): Likewise.
72597         * modules/free (Makefile.am): Likewise.
72598         * modules/fsusage (Makefile.am): Likewise.
72599         * modules/ftruncate (Makefile.am): Likewise.
72600         * modules/fts (Makefile.am): Likewise.
72601         * modules/gc-arcfour (Makefile.am): Likewise.
72602         * modules/gc-des (Makefile.am): Likewise.
72603         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72604         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72605         * modules/gc-md4 (Makefile.am): Likewise.
72606         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72607         * modules/gc-sha1 (Makefile.am): Likewise.
72608         * modules/gc (Makefile.am): Likewise.
72609         * modules/getaddrinfo (Makefile.am): Likewise.
72610         * modules/getcwd (Makefile.am): Likewise.
72611         * modules/getdelim (Makefile.am): Likewise.
72612         * modules/getdomainname (Makefile.am): Likewise.
72613         * modules/getgroups (Makefile.am): Likewise.
72614         * modules/gethostname (Makefile.am): Likewise.
72615         * modules/gethrxtime (Makefile.am): Likewise.
72616         * modules/getline (Makefile.am): Likewise.
72617         * modules/getloadavg (Makefile.am): Likewise.
72618         * modules/getlogin_r (Makefile.am): Likewise.
72619         * modules/getndelim2 (Makefile.am): Likewise.
72620         * modules/getopt (Makefile.am): Likewise.
72621         * modules/getpagesize (Makefile.am): Likewise.
72622         * modules/getpass-gnu (Makefile.am): Likewise.
72623         * modules/getpass (Makefile.am): Likewise.
72624         * modules/getsubopt (Makefile.am): Likewise.
72625         * modules/gettime (Makefile.am): Likewise.
72626         * modules/gettimeofday (Makefile.am): Likewise.
72627         * modules/getugroups (Makefile.am): Likewise.
72628         * modules/getusershell (Makefile.am): Likewise.
72629         * modules/glob (Makefile.am): Likewise.
72630         * modules/group-member (Makefile.am): Likewise.
72631         * modules/hard-locale (Makefile.am): Likewise.
72632         * modules/hash (Makefile.am): Likewise.
72633         * modules/hmac-md5 (Makefile.am): Likewise.
72634         * modules/hmac-sha1 (Makefile.am): Likewise.
72635         * modules/human (Makefile.am): Likewise.
72636         * modules/idcache (Makefile.am): Likewise.
72637         * modules/imaxabs (Makefile.am): Likewise.
72638         * modules/imaxdiv (Makefile.am): Likewise.
72639         * modules/inet_ntop (Makefile.am): Likewise.
72640         * modules/inet_pton (Makefile.am): Likewise.
72641         * modules/intprops (Makefile.am): Likewise.
72642         * modules/inttostr (Makefile.am): Likewise.
72643         * modules/inttypes (Makefile.am): Likewise.
72644         * modules/isapipe (Makefile.am): Likewise.
72645         * modules/javaversion (Makefile.am): Likewise.
72646         * modules/lchmod (Makefile.am): Likewise.
72647         * modules/lchown (Makefile.am): Likewise.
72648         * modules/localcharset (Makefile.am): Likewise.
72649         * modules/long-options (Makefile.am): Likewise.
72650         * modules/lstat (Makefile.am): Likewise.
72651         * modules/malloc (Makefile.am): Likewise.
72652         * modules/mathl (Makefile.am): Likewise.
72653         * modules/mbchar (Makefile.am): Likewise.
72654         * modules/md2 (Makefile.am): Likewise.
72655         * modules/md4 (Makefile.am): Likewise.
72656         * modules/md5 (Makefile.am): Likewise.
72657         * modules/memcasecmp (Makefile.am): Likewise.
72658         * modules/memchr (Makefile.am): Likewise.
72659         * modules/memcmp (Makefile.am): Likewise.
72660         * modules/memcoll (Makefile.am): Likewise.
72661         * modules/memcpy (Makefile.am): Likewise.
72662         * modules/memmem (Makefile.am): Likewise.
72663         * modules/memmove (Makefile.am): Likewise.
72664         * modules/mempcpy (Makefile.am): Likewise.
72665         * modules/memrchr (Makefile.am): Likewise.
72666         * modules/memset (Makefile.am): Likewise.
72667         * modules/memxor (Makefile.am): Likewise.
72668         * modules/mkancesdirs (Makefile.am): Likewise.
72669         * modules/mkdir-p (Makefile.am): Likewise.
72670         * modules/mkdir (Makefile.am): Likewise.
72671         * modules/mkdtemp (Makefile.am): Likewise.
72672         * modules/mkstemp (Makefile.am): Likewise.
72673         * modules/mktime (Makefile.am): Likewise.
72674         * modules/modechange (Makefile.am): Likewise.
72675         * modules/mountlist (Makefile.am): Likewise.
72676         * modules/nanosleep (Makefile.am): Likewise.
72677         * modules/obstack (Makefile.am): Likewise.
72678         * modules/openat (Makefile.am): Likewise.
72679         * modules/pagealign_alloc (Makefile.am): Likewise.
72680         * modules/pathmax (Makefile.am): Likewise.
72681         * modules/physmem (Makefile.am): Likewise.
72682         * modules/poll (Makefile.am): Likewise.
72683         * modules/posixtm (Makefile.am): Likewise.
72684         * modules/posixver (Makefile.am): Likewise.
72685         * modules/putenv (Makefile.am): Likewise.
72686         * modules/quote (Makefile.am): Likewise.
72687         * modules/quotearg (Makefile.am): Likewise.
72688         * modules/raise (Makefile.am): Likewise.
72689         * modules/read-file (Makefile.am): Likewise.
72690         * modules/readline (Makefile.am): Likewise.
72691         * modules/readlink (Makefile.am): Likewise.
72692         * modules/readtokens (Makefile.am): Likewise.
72693         * modules/readutmp (Makefile.am): Likewise.
72694         * modules/realloc (Makefile.am): Likewise.
72695         * modules/regex (Makefile.am): Likewise.
72696         * modules/rename-dest-slash (Makefile.am): Likewise.
72697         * modules/rename (Makefile.am): Likewise.
72698         * modules/rijndael (Makefile.am): Likewise.
72699         * modules/rmdir (Makefile.am): Likewise.
72700         * modules/rpmatch (Makefile.am): Likewise.
72701         * modules/safe-read (Makefile.am): Likewise.
72702         * modules/safe-write (Makefile.am): Likewise.
72703         * modules/same-inode (Makefile.am): Likewise.
72704         * modules/same (Makefile.am): Likewise.
72705         * modules/save-cwd (Makefile.am): Likewise.
72706         * modules/savedir (Makefile.am): Likewise.
72707         * modules/setenv (Makefile.am): Likewise.
72708         * modules/settime (Makefile.am): Likewise.
72709         * modules/sha1 (Makefile.am): Likewise.
72710         * modules/sig2str (Makefile.am): Likewise.
72711         * modules/snprintf (Makefile.am): Likewise.
72712         * modules/stat-macros (Makefile.am): Likewise.
72713         * modules/stat-time (Makefile.am): Likewise.
72714         * modules/stdbool (Makefile.am): Likewise.
72715         * modules/stdint (Makefile.am): Likewise.
72716         * modules/stdlib-safer (Makefile.am): Likewise.
72717         * modules/stpcpy (Makefile.am): Likewise.
72718         * modules/stpncpy (Makefile.am): Likewise.
72719         * modules/strcase (Makefile.am): Likewise.
72720         * modules/strcasestr (Makefile.am): Likewise.
72721         * modules/strchrnul (Makefile.am): Likewise.
72722         * modules/strcspn (Makefile.am): Likewise.
72723         * modules/strdup (Makefile.am): Likewise.
72724         * modules/strerror (Makefile.am): Likewise.
72725         * modules/strftime (Makefile.am): Likewise.
72726         * modules/strndup (Makefile.am): Likewise.
72727         * modules/strnlen (Makefile.am): Likewise.
72728         * modules/strpbrk (Makefile.am): Likewise.
72729         * modules/strsep (Makefile.am): Likewise.
72730         * modules/strstr (Makefile.am): Likewise.
72731         * modules/strtod (Makefile.am): Likewise.
72732         * modules/strtoimax (Makefile.am): Likewise.
72733         * modules/strtok_r (Makefile.am): Likewise.
72734         * modules/strtol (Makefile.am): Likewise.
72735         * modules/strtoll (Makefile.am): Likewise.
72736         * modules/strtoul (Makefile.am): Likewise.
72737         * modules/strtoull (Makefile.am): Likewise.
72738         * modules/strtoumax (Makefile.am): Likewise.
72739         * modules/strverscmp (Makefile.am): Likewise.
72740         * modules/sys_socket (Makefile.am): Likewise.
72741         * modules/sys_stat (Makefile.am): Likewise.
72742         * modules/sysexits (Makefile.am): Likewise.
72743         * modules/time_r (Makefile.am): Likewise.
72744         * modules/timegm (Makefile.am): Likewise.
72745         * modules/timespec (Makefile.am): Likewise.
72746         * modules/tmpfile-safer (Makefile.am): Likewise.
72747         * modules/trim (Makefile.am): Likewise.
72748         * modules/unistd-safer (Makefile.am): Likewise.
72749         * modules/unlinkdir (Makefile.am): Likewise.
72750         * modules/unlocked-io (Makefile.am): Likewise.
72751         * modules/userspec (Makefile.am): Likewise.
72752         * modules/utime (Makefile.am): Likewise.
72753         * modules/utimecmp (Makefile.am): Likewise.
72754         * modules/utimens (Makefile.am): Likewise.
72755         * modules/vasnprintf (Makefile.am): Likewise.
72756         * modules/vasprintf (Makefile.am): Likewise.
72757         * modules/vsnprintf (Makefile.am): Likewise.
72758         * modules/xalloc (Makefile.am): Likewise.
72759         * modules/xgetcwd (Makefile.am): Likewise.
72760         * modules/xnanosleep (Makefile.am): Likewise.
72761         * modules/xreadlink (Makefile.am): Likewise.
72762         * modules/xstrtod (Makefile.am): Likewise.
72763         * modules/xstrtol (Makefile.am): Likewise.
72764         * modules/xstrtold (Makefile.am): Likewise.
72765         * modules/yesno (Makefile.am): Likewise.
72766         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72767
72768 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72769
72770         * modules/error (Makefile.am): Distribute files through
72771         EXTRA_DIST, not lib_SOURCES.
72772
72773 2006-10-12  Eric Blake  <ebb9@byu.net>
72774
72775         * modules/error (Makefile.am): Distribute files in /lib.
72776         * modules/obstack (Makefile.am): Likewise.
72777
72778 2006-10-12  Bruno Haible  <bruno@clisp.org>
72779
72780         * modules/acl (Makefile.am): Distribute all files in lib/ through
72781         EXTRA_DIST.
72782         * modules/arcfour (Makefile.am): Likewise.
72783         * modules/arctwo (Makefile.am): Likewise.
72784         * modules/argmatch (Makefile.am): Likewise.
72785         * modules/argz (Makefile.am): Likewise.
72786         * modules/atexit (Makefile.am): Likewise.
72787         * modules/backupfile (Makefile.am): Likewise.
72788         * modules/c-strtod (Makefile.am): Likewise.
72789         * modules/c-strtold (Makefile.am): Likewise.
72790         * modules/calloc (Makefile.am): Likewise.
72791         * modules/canon-host (Makefile.am): Likewise.
72792         * modules/canonicalize (Makefile.am): Likewise.
72793         * modules/chdir-long (Makefile.am): Likewise.
72794         * modules/chdir-safer (Makefile.am): Likewise.
72795         * modules/check-version (Makefile.am): Likewise.
72796         * modules/chown (Makefile.am): Likewise.
72797         * modules/cloexec (Makefile.am): Likewise.
72798         * modules/close-stream (Makefile.am): Likewise.
72799         * modules/closeout (Makefile.am): Likewise.
72800         * modules/crc (Makefile.am): Likewise.
72801         * modules/cycle-check (Makefile.am): Likewise.
72802         * modules/des (Makefile.am): Likewise.
72803         * modules/dirfd (Makefile.am): Likewise.
72804         * modules/dirname (Makefile.am): Likewise.
72805         * modules/dup2 (Makefile.am): Likewise.
72806         * modules/euidaccess (Makefile.am): Likewise.
72807         * modules/exclude (Makefile.am): Likewise.
72808         * modules/exitfail (Makefile.am): Likewise.
72809         * modules/fcntl-safer (Makefile.am): Likewise.
72810         * modules/file-type (Makefile.am): Likewise.
72811         * modules/fileblocks (Makefile.am): Likewise.
72812         * modules/filemode (Makefile.am): Likewise.
72813         * modules/filenamecat (Makefile.am): Likewise.
72814         * modules/fnmatch (Makefile.am): Likewise.
72815         * modules/fopen-safer (Makefile.am): Likewise.
72816         * modules/fpending (Makefile.am): Likewise.
72817         * modules/fprintftime (Makefile.am): Likewise.
72818         * modules/free (Makefile.am): Likewise.
72819         * modules/fsusage (Makefile.am): Likewise.
72820         * modules/ftruncate (Makefile.am): Likewise.
72821         * modules/fts (Makefile.am): Likewise.
72822         * modules/gc (Makefile.am): Likewise.
72823         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72824         * modules/getaddrinfo (Makefile.am): Likewise.
72825         * modules/getcwd (Makefile.am): Likewise.
72826         * modules/getdelim (Makefile.am): Likewise.
72827         * modules/getdomainname (Makefile.am): Likewise.
72828         * modules/getgroups (Makefile.am): Likewise.
72829         * modules/gethostname (Makefile.am): Likewise.
72830         * modules/gethrxtime (Makefile.am): Likewise.
72831         * modules/getline (Makefile.am): Likewise.
72832         * modules/getloadavg (Makefile.am): Likewise.
72833         * modules/getlogin_r (Makefile.am): Likewise.
72834         * modules/getopt (Makefile.am): Likewise.
72835         * modules/getpass (Makefile.am): Likewise.
72836         * modules/getpass-gnu (Makefile.am): Likewise.
72837         * modules/getsubopt (Makefile.am): Likewise.
72838         * modules/gettime (Makefile.am): Likewise.
72839         * modules/gettimeofday (Makefile.am): Likewise.
72840         * modules/getugroups (Makefile.am): Likewise.
72841         * modules/getusershell (Makefile.am): Likewise.
72842         * modules/glob (Makefile.am): Likewise.
72843         * modules/group-member (Makefile.am): Likewise.
72844         * modules/hard-locale (Makefile.am): Likewise.
72845         * modules/hash (Makefile.am): Likewise.
72846         * modules/hmac-md5 (Makefile.am): Likewise.
72847         * modules/hmac-sha1 (Makefile.am): Likewise.
72848         * modules/human (Makefile.am): Likewise.
72849         * modules/idcache (Makefile.am): Likewise.
72850         * modules/imaxabs (Makefile.am): Likewise.
72851         * modules/imaxdiv (Makefile.am): Likewise.
72852         * modules/inet_ntop (Makefile.am): Likewise.
72853         * modules/inet_pton (Makefile.am): Likewise.
72854         * modules/inttostr (Makefile.am): Likewise.
72855         * modules/isapipe (Makefile.am): Likewise.
72856         * modules/lchown (Makefile.am): Likewise.
72857         * modules/long-options (Makefile.am): Likewise.
72858         * modules/lstat (Makefile.am): Likewise.
72859         * modules/malloc (Makefile.am): Likewise.
72860         * modules/mathl (Makefile.am): Likewise.
72861         * modules/mbchar (Makefile.am): Likewise.
72862         * modules/md2 (Makefile.am): Likewise.
72863         * modules/md4 (Makefile.am): Likewise.
72864         * modules/md5 (Makefile.am): Likewise.
72865         * modules/memcasecmp (Makefile.am): Likewise.
72866         * modules/memchr (Makefile.am): Likewise.
72867         * modules/memcmp (Makefile.am): Likewise.
72868         * modules/memcoll (Makefile.am): Likewise.
72869         * modules/memcpy (Makefile.am): Likewise.
72870         * modules/memmem (Makefile.am): Likewise.
72871         * modules/memmove (Makefile.am): Likewise.
72872         * modules/mempcpy (Makefile.am): Likewise.
72873         * modules/memrchr (Makefile.am): Likewise.
72874         * modules/memset (Makefile.am): Likewise.
72875         * modules/memxor (Makefile.am): Likewise.
72876         * modules/mkancesdirs (Makefile.am): Likewise.
72877         * modules/mkdir (Makefile.am): Likewise.
72878         * modules/mkdir-p (Makefile.am): Likewise.
72879         * modules/mkdtemp (Makefile.am): Likewise.
72880         * modules/mkstemp (Makefile.am): Likewise.
72881         * modules/mktime (Makefile.am): Likewise.
72882         * modules/modechange (Makefile.am): Likewise.
72883         * modules/mountlist (Makefile.am): Likewise.
72884         * modules/nanosleep (Makefile.am): Likewise.
72885         * modules/openat (Makefile.am): Likewise.
72886         * modules/pagealign_alloc (Makefile.am): Likewise.
72887         * modules/physmem (Makefile.am): Likewise.
72888         * modules/poll (Makefile.am): Likewise.
72889         * modules/posixtm (Makefile.am): Likewise.
72890         * modules/posixver (Makefile.am): Likewise.
72891         * modules/putenv (Makefile.am): Likewise.
72892         * modules/quote (Makefile.am): Likewise.
72893         * modules/quotearg (Makefile.am): Likewise.
72894         * modules/raise (Makefile.am): Likewise.
72895         * modules/read-file (Makefile.am): Likewise.
72896         * modules/readline (Makefile.am): Likewise.
72897         * modules/readlink (Makefile.am): Likewise.
72898         * modules/readtokens (Makefile.am): Likewise.
72899         * modules/readutmp (Makefile.am): Likewise.
72900         * modules/realloc (Makefile.am): Likewise.
72901         * modules/regex (Makefile.am): Likewise.
72902         * modules/rename (Makefile.am): Likewise.
72903         * modules/rename-dest-slash (Makefile.am): Likewise.
72904         * modules/rijndael (Makefile.am): Likewise.
72905         * modules/rmdir (Makefile.am): Likewise.
72906         * modules/rpmatch (Makefile.am): Likewise.
72907         * modules/safe-read (Makefile.am): Likewise.
72908         * modules/safe-write (Makefile.am): Likewise.
72909         * modules/same (Makefile.am): Likewise.
72910         * modules/save-cwd (Makefile.am): Likewise.
72911         * modules/savedir (Makefile.am): Likewise.
72912         * modules/setenv (Makefile.am): Likewise.
72913         * modules/settime (Makefile.am): Likewise.
72914         * modules/sha1 (Makefile.am): Likewise.
72915         * modules/sig2str (Makefile.am): Likewise.
72916         * modules/snprintf (Makefile.am): Likewise.
72917         * modules/stdlib-safer (Makefile.am): Likewise.
72918         * modules/stpcpy (Makefile.am): Likewise.
72919         * modules/stpncpy (Makefile.am): Likewise.
72920         * modules/strcase (Makefile.am): Likewise.
72921         * modules/strcasestr (Makefile.am): Likewise.
72922         * modules/strchrnul (Makefile.am): Likewise.
72923         * modules/strcspn (Makefile.am): Likewise.
72924         * modules/strdup (Makefile.am): Likewise.
72925         * modules/strerror (Makefile.am): Likewise.
72926         * modules/strftime (Makefile.am): Likewise.
72927         * modules/strndup (Makefile.am): Likewise.
72928         * modules/strnlen (Makefile.am): Likewise.
72929         * modules/strpbrk (Makefile.am): Likewise.
72930         * modules/strsep (Makefile.am): Likewise.
72931         * modules/strstr (Makefile.am): Likewise.
72932         * modules/strtod (Makefile.am): Likewise.
72933         * modules/strtoimax (Makefile.am): Likewise.
72934         * modules/strtok_r (Makefile.am): Likewise.
72935         * modules/strtol (Makefile.am): Likewise.
72936         * modules/strtoll (Makefile.am): Likewise.
72937         * modules/strtoul (Makefile.am): Likewise.
72938         * modules/strtoull (Makefile.am): Likewise.
72939         * modules/strtoumax (Makefile.am): Likewise.
72940         * modules/strverscmp (Makefile.am): Likewise.
72941         * modules/time_r (Makefile.am): Likewise.
72942         * modules/timegm (Makefile.am): Likewise.
72943         * modules/tmpfile-safer (Makefile.am): Likewise.
72944         * modules/unistd-safer (Makefile.am): Likewise.
72945         * modules/unlinkdir (Makefile.am): Likewise.
72946         * modules/userspec (Makefile.am): Likewise.
72947         * modules/utime (Makefile.am): Likewise.
72948         * modules/utimecmp (Makefile.am): Likewise.
72949         * modules/utimens (Makefile.am): Likewise.
72950         * modules/vasnprintf (Makefile.am): Likewise.
72951         * modules/vasprintf (Makefile.am): Likewise.
72952         * modules/vsnprintf (Makefile.am): Likewise.
72953         * modules/xalloc (Makefile.am): Likewise.
72954         * modules/xgetcwd (Makefile.am): Likewise.
72955         * modules/xnanosleep (Makefile.am): Likewise.
72956         * modules/xreadlink (Makefile.am): Likewise.
72957         * modules/xstrtod (Makefile.am): Likewise.
72958         * modules/xstrtol (Makefile.am): Likewise.
72959         * modules/xstrtold (Makefile.am): Likewise.
72960         * modules/yesno (Makefile.am): Likewise.
72961
72962 2006-10-12  Jim Meyering  <jim@meyering.net>
72963
72964         * m4/getloadavg.m4: Revert the change below.
72965
72966         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72967         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72968         fail with a symlink, which is what coreutils' ./bootstrap now
72969         creates by default.
72970
72971 2006-10-12  Bruno Haible  <bruno@clisp.org>
72972
72973         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72974         mingw.
72975         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72976         MSVC and mingw explicitly.
72977
72978 2006-10-11  Simon Josefsson  <jas@extundo.com>
72979             Bruno Haible  <bruno@clisp.org>
72980
72981         Add support for multiple gnulib-tool invocations in the scope of a
72982         single configure.ac file.
72983         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72984         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72985         with the same contents as the _LIBADD variable.
72986         (func_emit_initmacro_start, func_emit_initmacro_end,
72987         func_emit_initmacro_done): New functions.
72988         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72989         gl_LIBOBJS and gl_LTLIBOBJS.
72990
72991 2006-10-11  Bruno Haible  <bruno@clisp.org>
72992
72993         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72994         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72995         autoreconf. Instead, invoke autopoint explicitly but move back the
72996         *.m4 files from gnulib.
72997
72998 2006-10-11  Bruno Haible  <bruno@clisp.org>
72999
73000         * gnulib-tool (func_usage): Make module names after --create-testdir
73001         optional.
73002         (func_create_testdir): If no module was specified, use nearly all
73003         modules.
73004
73005 2006-10-12  Jim Meyering  <jim@meyering.net>
73006
73007         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73008         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73009         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73010         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73011         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73012         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73013         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73014         (fts_set_stat_required): New function.
73015         (fts_open): Defer the calls to fts_stat, if possible or requested.
73016         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73017         into fts_stat itself.
73018         (fts_read): Perform any required (deferred) fts_stat call.
73019         (fts_build): Likewise, for the directory we're about to open and read.
73020         In the readdir loop, carefully decide whether each entry will require
73021         an eventual call to fts_stat, using dirent.d_type info if available.
73022         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73023         a command line argument into this function.  Update all callers.
73024         Map a return value of FTS_DOT to FTS_D for a command line argument.
73025         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73026         Thanks to Miklos Szeredi for his tenacity and for the initial
73027         bug report about "find" failing on a FUSE-based file system.
73028
73029         * lib/fts.c (fts_open): Use consistent indentation.
73030
73031 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73034         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73035         reported by Jim Meyering.  All uses of cache variables renamed
73036         to match Autoconf's.
73037         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73038         the other one.
73039
73040         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73041         Fix misspelling in diagnostic.
73042
73043 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73046         defined.  Problem reported by Matthew Woehlke.
73047
73048         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73049         Add support for Tandem NonStop R series.
73050         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73051         Use new macro.
73052
73053         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73054         (has_trailing_slash): Omit size arg; all callers changed.
73055         Omit 'inline', since it doesn't help performance and we'd
73056         need to configure it.
73057         Don't count //, ///, etc. as having a trailing slash.
73058         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73059         (rpl_rename_dest_slash): On failure, use rename's errno rather
73060         than (in some cases) an incorrect or junk errno.
73061         Simplify code by removing need to compute length; this does
73062         cause it to make two passes instead of one over the file name,
73063         but it's worth it.
73064
73065         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73066         change, since Autoconf's version may no longer be appropriate now
73067         that we are using CVS Autoconf's version.  Add support for Tandem.
73068
73069 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73070             Bruno Haible  <bruno@clisp.org>
73071
73072         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73073         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73074         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73075         gl_AC_TYPE_LONG_LONG.
73076
73077         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73078         instead of HAVE_LONG_LONG.
73079         * lib/printf-args.c (printf_fetchargs): Likewise.
73080         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73081         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73082         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73083         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73084         gl_AC_TYPE_LONG_LONG.
73085
73086 2006-10-11  Bruno Haible  <bruno@clisp.org>
73087
73088         * m4/longlong.m4: Add comments.
73089         * m4/ulonglong.m4: Likewise.
73090
73091 2006-10-10  Bruno Haible  <bruno@clisp.org>
73092
73093         Make it possible to #define stpcpy, strdup to aliases.
73094         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73095         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73096
73097 2006-10-10  Bruno Haible  <bruno@clisp.org>
73098
73099         Make it possible to #define gcd to an alias.
73100         * lib/gcd.c: Include config.h.
73101
73102 2006-10-10  Bruno Haible  <bruno@clisp.org>
73103
73104         Make it possible to #define c_isascii to an alias.
73105         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73106         defined. Undefine the macros before defining them, to avoid gcc
73107         warnings.
73108         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73109         define NO_C_CTYPE_MACROS early.
73110
73111 2006-10-10  Bruno Haible  <bruno@clisp.org>
73112
73113         Make it possible to #define set_program_name to an alias.
73114         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73115         ENABLE_RELOCATABLE early.
73116
73117 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73118
73119         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73120         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73121         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73122         More generally, don't assume that 64-bit signed int is available
73123         if unsigned int is, and vice versa.
73124         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73125         unsigned symbols, not on their signed counterparts.
73126         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73127         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73128         (UINT64_C, UINTMAX_C):
73129         Likewise.
73130         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73131         unsigned counterparts.
73132         (Have_long_long, Unsigned): New macros.
73133         (Int): Renamed from INT.
73134         (strtoimax): Use the new macros.
73135         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73136         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73137         * modules/inttypes (inttypes.h): Substitute
73138         HAVE_UNSIGNED_LONG_LONG_INT.
73139         * modules/stdint (stdint.h): Likewise.
73140         (Files): Add m4/ulonglong.m4.
73141
73142 2006-10-10  Bruno Haible  <bruno@clisp.org>
73143
73144         Fix a gcc -Wshadow warning.
73145         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73146         to 'bucket'.
73147         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73148         gl_linked_indexof_from_to): Likewise.
73149         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73150         Likewise.
73151         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73152         Likewise.
73153         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73154         Reported by Eric Blake.
73155
73156 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73157
73158         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73159         for NetBSD.  Problem reported by Bruno Haible.
73160
73161 2006-10-09  Jim Meyering  <jim@meyering.net>
73162
73163         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73164         Patch from Bruno Haible.
73165
73166 2006-10-09  Jim Meyering  <jim@meyering.net>
73167
73168         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73169         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73170         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73171
73172 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         Don't include <config.h> twice; this doesn't work in some cases,
73175         e.g., when config.h has "#define intmax_t long long int" and
73176         we include <config.h>, <inttypes.h>, <config.h> in that order.
73177         Problem reported by Matthew Woehlke in:
73178         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73179         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73180         * lib/fts-cycle.c: Don't include config.h.
73181         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73182         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73183         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73184         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73185         inttypes.h.
73186         * lib/xstrtoumax.c: Likewise.
73187         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73188         __strtol and the like, so that this module is more like its siblings.
73189         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73190         Remove; no longer needed now that we assume gnulib inttypes.h.
73191
73192 2006-10-08  Bruno Haible  <bruno@clisp.org>
73193
73194         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73195         option.
73196
73197 2006-10-07  Jim Meyering  <jim@meyering.net>
73198
73199         * modules/inttypes (inttypes.h): Revert what seems to have been
73200         an inadvertent part of today's change: use "|", not "/" in the
73201         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73202
73203 2006-10-07  Bruno Haible  <bruno@clisp.org>
73204
73205         * modules/sublist: New file.
73206
73207 2006-10-07  Bruno Haible  <bruno@clisp.org>
73208
73209         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73210         * modules/argz (argz.h): Likewise.
73211         * modules/arpa_inet (arpa/inet.h): Likewise.
73212         * modules/byteswap (byteswap.h): Likewise.
73213         * modules/configmake (configmake.h): Likewise.
73214         * modules/fcntl (fcntl.h): Likewise.
73215         * modules/fnmatch (fnmatch.h): Likewise.
73216         * modules/getopt (getopt.h): Likewise.
73217         * modules/glob (glob.h): Likewise.
73218         * modules/inttypes (inttypes.h): Likewise.
73219         * modules/netinet_in (netinet/in.h): Likewise.
73220         * modules/poll (poll.h): Likewise.
73221         * modules/stdbool (stdbool.h): Likewise.
73222         * modules/stdint (stdint.h): Likewise.
73223         * modules/sys_select (sys/select.h): Likewise.
73224         * modules/sys_socket (sys/socket.h): Likewise.
73225         * modules/sys_stat (sys/stat.h): Likewise.
73226         * modules/sysexits (sysexits.h): Likewise.
73227         * modules/unistd (unistd.h): Likewise.
73228         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73229         Add a "DO NOT EDIT" comment to the generated file.
73230         (func_import): Likewise for gnulib-comp.m4.
73231
73232 2006-10-07  Bruno Haible  <bruno@clisp.org>
73233
73234         * lib/gl_sublist.h: New file.
73235         * lib/gl_sublist.c: New file.
73236
73237 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73240         name (relative to the original working directory) and the file
73241         name component (relative to the temporary working directory).  All
73242         callers changed.
73243         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73244         * lib/mkdir-p.c (make_dir_parents): Likewise.
73245         * lib/mkdir-p.h (make_dir_parents): Likewise.
73246
73247 2006-10-06  Eric Blake  <ebb9@byu.net>
73248
73249         Define several macros for use by the clean-temp module.
73250         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73251         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73252         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73253
73254         * lib/clean-temp.h (close_stream_temp): New declaration.
73255         * lib/clean-temp.c (includes): Pull in headers according to what
73256         other modules are in use.
73257         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73258
73259 2006-10-06  Bruno Haible  <bruno@clisp.org>
73260
73261         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73262         instead of fopen, fwriteerror.
73263
73264 2006-10-06  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73267         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73268         int.
73269         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73270         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73271         Return an error indicator.
73272         Suggested by Eric Blake.
73273
73274 2006-10-06  Bruno Haible  <bruno@clisp.org>
73275
73276         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73277         Reported by Eric Blake.
73278
73279 2006-10-06  Bruno Haible  <bruno@clisp.org>
73280
73281         * modules/closeout (Description): Mention stderr too.
73282
73283 2006-10-06  Bruno Haible  <bruno@clisp.org>
73284         and Paul Eggert  <eggert@cs.ucla.edu>
73285
73286         * lib/closeout.c (close_stdout): Also close stderr.
73287         * lib/closeout.h: Update comment.
73288
73289 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73290
73291         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73292         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73293         * lib/dirchownmod.c: Include lchown.h.
73294         * lib/lchown.c: Don't include files that lchown.h now includes.
73295         Don't declare chown, since lchown.h now does that.
73296         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73297         (lchown): Define to rpl_chown if lchown is declared but
73298         does not exist.  Declare using a prototype if lchown is not
73299         declared.  Add a copyright notice.
73300         * lib/mkstemp.h: Include <unistd.h>.
73301         * lib/openat.c: Include lchown.h.
73302
73303         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73304         we now test for that separately.
73305         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73306         rather than O_NOFOLLOW, when testing whether it's possible to
73307         avoid a race condition reliably.
73308         * lib/savewd.c (savewd_chdir): Likewise.
73309
73310         Remove macros that are no longer needed now that stdint.h is
73311         reliable.
73312         * lib/fsusage.c (UINTMAX_MAX): Remove.
73313         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73314         * lib/utimecmp.c (SIZE_MAX): Remove.
73315
73316         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73317
73318         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73319         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73320         O_NOATIME works.
73321
73322 2006-10-05  Bruno Haible  <bruno@clisp.org>
73323
73324         * lib/gl_list.h (gl_sortedlist_search_from_to,
73325         gl_sortedlist_indexof_from_to): New declarations.
73326         (gl_list_implementation): New fields sortedlist_search_from_to,
73327         sortedlist_indexof_from_to.
73328         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73329         inline functions.
73330         * lib/gl_list.c (gl_sortedlist_search_from_to,
73331         gl_sortedlist_indexof_from_to): New functions.
73332         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73333         function.
73334         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73335         (gl_array_sortedlist_search_from_to): New function.
73336         (gl_array_list_implementation): Update.
73337         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73338         function.
73339         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73340         (gl_carray_sortedlist_search_from_to): New function.
73341         (gl_carray_list_implementation): Update.
73342         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73343         gl_linked_sortedlist_indexof_from_to): New functions.
73344         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73345         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73346         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73347         gl_tree_sortedlist_indexof_from_to): New functions.
73348         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73349         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73350         Update.
73351         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73352         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73353         Update.
73354
73355 2006-10-05  Bruno Haible  <bruno@clisp.org>
73356
73357         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73358         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73359         (struct gl_list_implementation): Add fields search_from_to,
73360         indexof_from_to. Remove fields search, indexof.
73361         (gl_list_search): Use the search_from_to method.
73362         (gl_list_search_from, gl_list_search_from_to): New functions.
73363         (gl_list_indexof): Use the indexof_from_to method.
73364         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73365         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73366         (gl_list_search_from, gl_list_search_from_to): New functions.
73367         (gl_list_indexof): Use the indexof_from_to method.
73368         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73369         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73370         gl_array_indexof. Add start_index, end_index arguments.
73371         (gl_array_search_from_to): Renamed from gl_array_search. Add
73372         start_index, end_index arguments.
73373         (gl_array_remove, gl_array_list_implementation): Update.
73374         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73375         gl_carray_indexof. Add start_index, end_index arguments.
73376         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73377         start_index, end_index arguments.
73378         (gl_carray_remove, gl_carray_list_implementation): Update.
73379         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73380         gl_linked_search. Add start_index, end_index arguments.
73381         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73382         start_index, end_index arguments.
73383         (gl_linked_remove): Update.
73384         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73385         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73386         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73387         field to 'size_t'.
73388         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73389         gl_tree_search. Add start_index, end_index arguments.
73390         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73391         start_index, end_index arguments.
73392         (gl_tree_remove): Update.
73393         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73394         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73395         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73396         function.
73397         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73398         gl_tree_search. Add start_index, end_index arguments.
73399         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73400         start_index, end_index arguments.
73401         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73402         Update.
73403         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73404
73405 2006-10-05  Bruno Haible  <bruno@clisp.org>
73406
73407         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73408
73409         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73410         fwriteerror_temp): New declarations.
73411         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73412         (descriptors): New variable.
73413         (cleanup): First, close the descriptors.
73414         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73415         fclose_temp, fwriteerror_temp): New functions.
73416
73417 2006-10-04  Jim Meyering  <jim@meyering.net>
73418
73419         * lib/fts.c (fts_open): Tiny comment change.
73420
73421 2006-10-04  Bruno Haible  <bruno@clisp.org>
73422
73423         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73424         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73425         gl_LOCK_BODY.
73426         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73427         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73428         gl_LOCK_EARLY_BODY.
73429         (gl_LOCK): Require gl_LOCK_BODY.
73430
73431 2006-10-04  Bruno Haible  <bruno@clisp.org>
73432
73433         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73434         (gl_oset_search_atleast): New declaration.
73435         (struct gl_oset_implementation): Add field 'search_atleast'.
73436         (gl_oset_search_atleast): New inline function.
73437         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73438         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73439         (gl_array_oset_implementation): Update.
73440         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73441         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73442         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73443
73444 2006-10-04  Bruno Haible  <bruno@clisp.org>
73445
73446         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73447
73448 2006-10-03  Bruno Haible  <bruno@clisp.org>
73449
73450         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73451         from gl_avltreehash_list_implementation.
73452
73453 2006-10-03  Bruno Haible  <bruno@clisp.org>
73454
73455         * lib/gl_oset.c (gl_oset_add): Fix return type.
73456
73457 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73458
73459         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73460
73461 2006-10-02  Eric Blake  <ebb9@byu.net>
73462
73463         * modules/strnlen (Depends-on): Add extensions.
73464
73465 2006-10-02  Eric Blake  <ebb9@byu.net>
73466
73467         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73468         definition in 2.60+.
73469
73470 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73471
73472         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73473         checks.
73474
73475 2006-10-02  Bruno Haible  <bruno@clisp.org>
73476
73477         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73478         to the AUTOMAKE_OPTIONS.
73479         Reported by Jim Meyering.
73480
73481 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73482
73483         Work around bug in Solaris 10 /proc file system:
73484         /proc/self/fd/NNN/.. isn't the parent directory of
73485         the directory whose file descriptor is NNN.  This needs to
73486         be worked around at run time, not compile time, since a
73487         program might be built on Solaris 8, where things work, and
73488         run on Solaris 10.
73489         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73490         to use the following interface instead:
73491         (OPENAT_BUFFER_SIZE): New macro.
73492         (openat_proc_name): New function.
73493         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73494         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73495         Likewise.
73496         * lib/openat-proc.c: New file.
73497         * modules/openat (Files): Add lib/openat-proc.c.
73498         (Depends-on): Add same-inode, stdbool.
73499         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73500
73501 2006-09-29  Bruno Haible  <bruno@clisp.org>
73502
73503         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73504         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73505         argument. Set stdout_closed before testing for ferror, not after.
73506         (fwriteerror, fwriteerror_no_ebadf): New functions.
73507
73508 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73509
73510         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73511
73512 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73513
73514         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73515         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73516
73517 2006-09-28  Jim Meyering  <jim@meyering.net>
73518
73519         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73520         Include <unistd.h>.
73521
73522 2006-09-28  Bruno Haible  <bruno@clisp.org>
73523
73524         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73525         * modules/linkedhash-list (Depends-on): Likewise.
73526         * modules/rbtreehash-list (Depends-on): Likewise.
73527
73528 2006-09-28  Bruno Haible  <bruno@clisp.org>
73529
73530         * lib/strndup.h: Simplify the redefinition of strndup.
73531         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73532         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73533
73534 2006-09-28  Bruno Haible  <bruno@clisp.org>
73535
73536         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73537         * lib/gl_linkedhash_list.c: Likewise.
73538         * lib/gl_rbtreehash_list.c: Likewise.
73539
73540 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73543         getaddrinfo.
73544
73545         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73546         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73547         it causes <stdio_ext.h> to cause a compile-time error.
73548         Problem reported by Nelson H. F. Beebe.
73549         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73550         of HAVE_DECL___PENDING.
73551
73552         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73553         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73554         declaration.
73555
73556 2006-09-27  Jim Meyering  <jim@meyering.net>
73557
73558         This file could end up with a definition for a function
73559         named __strndup, rather than rpl_strndup on a system with
73560         incomplete weak_alias support.
73561         * lib/strndup.c (strndup): Rename from __strndup.
73562         Remove #defines that used to map __strndup to strndup.
73563         Don't use K&R prototypes.
73564         Remove LIBC-related code, since this file is not sync'd with glibc.
73565         * lib/strndup.h: Revamp, accordingly.
73566         * m4/strndup.m4: Modernize.
73567
73568 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         * modules/savewd (Depends-on): Add 'raise'.
73571         * lib/savewd.c: Include <signal.h>, for 'raise'.
73572
73573 2006-09-26  Jim Meyering  <jim@meyering.net>
73574
73575         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73576         when we detect Darwin 8.7.0's acl_get_file bug.
73577         Rearrange to perform the new (below) run-test while $LIBS
73578         contains any acl-related library.  Set USE_ACL at the end.
73579         (gl_ACL_GET_FILE): New function.
73580
73581 2006-09-26  Eric Blake  <ebb9@byu.net>
73582
73583         * lib/verror.c: Include <config.h> unconditionally.
73584
73585 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         * modules/clock-time (Maintainer): Add self.
73588         * modules/getlogin_r (Depends-on): Add extensions.
73589
73590 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73591
73592         * modules/clock-time: New module.
73593         * modules/nanosleep (Depends-on): Add clock-time.
73594         * modules/gethrxtime (Depends-on): Likewise.
73595         * modules/gettime (Depends-on): Likewise.
73596         * modules/settime (Depends-on): Likewise.
73597
73598         * modules/fts-lgpl: Depend on openat.
73599         * modules/mkancesdirs: Depend on savewd.
73600         * modules/mkdir-p: Likewise.
73601
73602 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73603
73604         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73605
73606         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73607         `gl_have_arbitrary_file_name_length_limit' to
73608         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73609         actually works between configure runs.
73610
73611 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73612             Bruno Haible  <bruno@clisp.org>
73613
73614         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73615
73616 2006-09-25  Jim Meyering  <jim@meyering.net>
73617
73618         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73619         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73620
73621 2006-09-25  Eric Blake  <ebb9@byu.net>
73622
73623         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73624         exec's in 2006-09-18 patch when shuffling fds.
73625
73626 2006-09-25  Bruno Haible  <bruno@clisp.org>
73627
73628         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73629         Reported by Jim Meyering.
73630
73631 2006-09-24  Jim Meyering  <jim@meyering.net>
73632
73633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73634         compare a pointer against a literal "0".  That caused failures with
73635         at least HP-UX's hpcc.
73636
73637 2006-09-22  Simon Josefsson  <jas@extundo.com>
73638
73639         * modules/gc-sha1:
73640         * modules/gc-md4:
73641         * modules/gc-hmac-sha1:
73642         * modules/gc-hmac-md5:
73643         * modules/gc-des:
73644         * modules/gc-arcfour: Distribute more files.
73645
73646 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73647
73648         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73649         (gl_linked_iterator_from_to): Initialize struct completely.
73650         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73651         (gl_tree_iterator_from_to): Likewise
73652         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73653         * lib/gl_array_list.c [lint] (gl_array_iterator)
73654         (gl_array_iterator_from_to): Likewise.
73655         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73656         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73657         (gl_carray_iterator_from_to): Likewise.
73658
73659         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73660         * lib/md4.c (md4_process_block): Remove unused variable.
73661         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73662         parentheses for clarity.
73663
73664 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73665
73666         * modules/bison-i18n (Depends-on): Add gettext.
73667
73668 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73669
73670         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73671         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73672         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73673         also add missing comma that caused broken test.
73674         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73675         stdlib.h, for `abort'.
73676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73677         variables.
73678         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73679         include unistd.h if present, for `rmdir'.
73680         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73681         variables.
73682         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73683         in the process include standard headers for prototypes.
73684         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73685         gets declared on GNU/Linux.
73686         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73687         unistd.h, for `rmdir'.
73688         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73689
73690         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73691         always true.
73692         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73693
73694         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73695
73696 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73697
73698         * gnulib-tool (func_version): Create output all at once.  This
73699         may help avoid triggering unnecessary SIGPIPEs, and at any
73700         rate it doesn't hurt.
73701
73702 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73703             Bruno Haible  <bruno@clisp.org>
73704
73705         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73706         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73707         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73708
73709         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73710         (gl_FUNC_VASPRINTF): Invoke it.
73711
73712 2006-09-22  Bruno Haible  <bruno@clisp.org>
73713
73714         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73715         getloadavg.c as first argument.
73716
73717 2006-09-22  Bruno Haible  <bruno@clisp.org>
73718
73719         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73720         at the beginning of the gl_INIT macro.
73721         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73722         gl_GETLOADAVG.
73723
73724 2006-09-22  Bruno Haible  <bruno@clisp.org>
73725
73726         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73727         module.
73728         Suggested by Ralf Wildenhues.
73729
73730 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73731
73732         Import this patch from libc:
73733
73734         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73735
73736         * lib/regex_internal.c (re_string_reconstruct): Handle
73737         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73738         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73739         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73740         re_string_context_at.
73741
73742         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73743         now requires it.
73744         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73745         gl_REGEX now does it for us.
73746         (gl_REGEX): Add test taken from
73747         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73748
73749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73750         Check that large offsets work.  Modernize Autoconf usages.
73751         Prefer "yes" to mean a good thing rather than a bad.
73752         Don't put "#define mkstemp" in config.h, as this might interfere
73753         with standard system headers that "#define mkstemp mkstemp64".
73754
73755         * modules/mkstemp (Depends-on): Add extensions, so that
73756         mkstemp is visible on some platforms.
73757         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73758         (Include): Change to "mkstemp.h" from <stdlib.h>.
73759         (Files): Add mkstemp.h.
73760
73761         * lib/mkstemp.h: New file, since some standard headers
73762         #define mkstemp.
73763         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73764         Include "mkstemp.h".
73765         Make the _LIBC code resemble glibc original more,
73766         e.g., use K&R style.
73767         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73768         (mkstemp): Remove, since mkstemp.h does this for us.
73769         * lib/stdlib--.h: Include mkstemp.h.
73770
73771         Import this patch from libc:
73772
73773         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73774
73775         * lib/tempname.c (__gen_tempname): Change attempts_min
73776         into a macro.  Use preprocessor to decide how to initialize
73777         attempts [Coverity CID 67].
73778
73779 2006-09-20  Bruno Haible  <bruno@clisp.org>
73780
73781         * lib/mkdtemp.c: Import from libc.
73782         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73783                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73784                 attempts_min into a macro.  Use preprocessor to decide how to
73785                 initialize attempts [Coverity CID 67].
73786         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73787                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73788                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73789
73790 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73791
73792         * gnulib-tool (func_exit): New function, to allow to pass the
73793         exit status portably through the trap.  Use everywhere.
73794         (--help, --version): Signal a write error.
73795         (trap): catch SIGPIPE, for write errors.
73796         Exit at the end of the trap, with the correct exit status.
73797
73798 2006-09-19  Karl Berry  <karl@gnu.org>
73799
73800         * doc/gnulib.texi: note about the license texinfo files.
73801
73802 2006-09-19  Eric Blake  <ebb9@byu.net>
73803
73804         * gnulib-tool: Avoid space-tab.
73805
73806 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73809         that prevented coreutils 6.1 from building.  Problem reported
73810         by Petter Reinholdtsen.
73811
73812 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * gnulib-tool (avoidlist): Fix typo that broke options like
73815         --avoid=lock that are used by coreutils bootstrap.
73816
73817 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73818
73819         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73820         more systematically.
73821
73822 2006-09-18  Jim Meyering  <jim@meyering.net>
73823
73824         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73825
73826 2006-09-18  Bruno Haible  <bruno@clisp.org>
73827
73828         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73829
73830 2006-09-18  Bruno Haible  <bruno@clisp.org>
73831
73832         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73833         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73834         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73835         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73836         * m4/gettext.m4: Require autoconf >= 2.52.
73837         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73838         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73839         of gl_cv_header_inttypes_h.
73840
73841 2006-09-18  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/javaversion.c: Include configmake.h.
73844
73845 2006-09-18  Bruno Haible  <bruno@clisp.org>
73846
73847         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73848         avoid that the while loops be executed in a subshell.
73849
73850 2006-09-18  Bruno Haible  <bruno@clisp.org>
73851
73852         * MODULES.html.sh (func_module): Break long lines.
73853         Suggested by Bruce Korb <bkorb@gnu.org>.
73854
73855 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73856
73857         Speed up by a factor of 1.12.
73858         * gnulib-tool (nl): New variable.
73859         (func_import): Rewrite include directive extraction to only read each
73860         directive once.
73861
73862 2006-09-17  Bruno Haible  <bruno@clisp.org>
73863
73864         * modules/javaversion (Makefile.am): Remove DEFS setting.
73865         (Depends-on): Add configmake, for PKGDATADIR definition.
73866
73867 2006-09-17  Bruno Haible  <bruno@clisp.org>
73868
73869         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73870
73871 2006-09-17  Bruno Haible  <bruno@clisp.org>
73872
73873         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73874         (func_modules_transitive_closure, func_modules_add_dummy,
73875         func_modules_to_filelist, func_import, func_create_testdir,
73876         func_create_megatestdir, ...): Use it wherever possible.
73877         Suggested by Ralf Wildenhues.
73878
73879 2006-09-16  Karl Berry  <karl@gnu.org>
73880
73881         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73882         to avoid sectioning errors.
73883         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73884         [ifinfo]: blank line after @center-ed titles.
73885         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73886         Spell FSF address consistently with others.
73887         (These changes approved by rms.)
73888
73889 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73890
73891         Speed up by a factor of 1.61.
73892         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73893         already checked module names again.
73894
73895 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73896
73897         Speed up by a factor of 1.13.
73898         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73899         for new_files, and the input to func_add_or_update.
73900
73901 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73902
73903         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73904         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73905
73906 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * modules/mkancesdirs (Depends-on): Add fcntl.
73909         * modules/savewd: New file.
73910         * MODULES.html.sh (File system functions): Add savewd.
73911
73912         * modules/configmake (Makefile.am): Add support for the
73913         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73914
73915 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73916
73917         * m4/savewd.m4: New file.
73918
73919 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73922         (dirchownmod): New arg FD.  All callers changed.
73923         Use FD rather than opening the directory ourself, as opening is
73924         now the caller's responsibility.
73925         * lib/dirchownmod.h: Likewise.
73926         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73927         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73928         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73929         (test_dir): Remove.
73930         (mkancesdirs): Return length of prefix of FILE that has already
73931         been made, or -2 if there is a child doing the work.  Redo
73932         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73933         ".", and treat ".." specially since it might stray back into
73934         already-created areas.  Use a subprocess if necessary.  New arg
73935         WD; all users changed.  MAKE_DIR function should now return 1
73936         if it creates a directory that is not readable.  Return -2 if
73937         a child process is spun off.
73938         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73939         Adjust signature to match code.
73940         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73941         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73942         all users changed.
73943         * lib/savewd.c, lib/savewd.h: New files.
73944
73945 2006-09-15  Jim Meyering  <jim@meyering.net>
73946
73947         * modules/rename-dest-slash: New module.
73948         * MODULES.html.sh (posix_compat): Add it here.
73949
73950         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73951
73952 2006-09-15  Jim Meyering  <jim@meyering.net>
73953
73954         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73955         file.
73956
73957         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73958
73959 2006-09-15  Jim Meyering  <jim@meyering.net>
73960
73961         * lib/rename-dest-slash.c (has_trailing_slash): Use
73962         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73963         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73964         test before testing whether SRC is a directory.
73965         Suggestions from Bruno Haible.
73966
73967         Avoid a warning about an unused variable.
73968         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73969         into the #ifdef block where it's used.
73970
73971         * lib/rename-dest-slash.c: New file.
73972
73973 2006-09-14  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/allocsa.c: Include <config.h> unconditionally.
73976         * lib/asnprintf.c: Likewise.
73977         * lib/asprintf.c: Likewise.
73978         * lib/c-strcasecmp.c: Likewise.
73979         * lib/c-strcasestr.c: Likewise.
73980         * lib/c-strncasecmp.c: Likewise.
73981         * lib/c-strstr.c: Likewise.
73982         * lib/classpath.c: Likewise.
73983         * lib/clean-temp.c: Likewise.
73984         * lib/concatpath.c: Likewise.
73985         * lib/copy-file.c: Likewise.
73986         * lib/csharpcomp.c: Likewise.
73987         * lib/csharpexec.c: Likewise.
73988         * lib/execute.c: Likewise.
73989         * lib/fatal-signal.c: Likewise.
73990         * lib/findprog.c: Likewise.
73991         * lib/fwriteerror.c: Likewise.
73992         * lib/gl_array_list.c: Likewise.
73993         * lib/gl_array_oset.c: Likewise.
73994         * lib/gl_avltree_list.c: Likewise.
73995         * lib/gl_avltree_oset.c: Likewise.
73996         * lib/gl_avltreehash_list.c: Likewise.
73997         * lib/gl_carray_list.c: Likewise.
73998         * lib/gl_linked_list.c: Likewise.
73999         * lib/gl_linkedhash_list.c: Likewise.
74000         * lib/gl_list.c: Likewise.
74001         * lib/gl_oset.c: Likewise.
74002         * lib/gl_rbtree_list.c: Likewise.
74003         * lib/gl_rbtree_oset.c: Likewise.
74004         * lib/gl_rbtreehash_list.c: Likewise.
74005         * lib/imaxabs.c: Likewise.
74006         * lib/imaxdiv.c: Likewise.
74007         * lib/javacomp.c: Likewise.
74008         * lib/javaexec.c: Likewise.
74009         * lib/javaversion.c: Likewise.
74010         * lib/linebreak.c: Likewise.
74011         * lib/localcharset.c: Likewise.
74012         * lib/lock.c: Likewise.
74013         * lib/mbchar.c: Likewise.
74014         * lib/mbswidth.c: Likewise.
74015         * lib/mkdtemp.c: Likewise.
74016         * lib/pipe.c: Likewise.
74017         * lib/printf-args.c: Likewise.
74018         * lib/printf-parse.c: Likewise.
74019         * lib/progname.c: Likewise.
74020         * lib/progreloc.c: Likewise.
74021         * lib/readlink.c: Likewise.
74022         * lib/sh-quote.c: Likewise.
74023         * lib/stpcpy.c: Likewise.
74024         * lib/stpncpy.c: Likewise.
74025         * lib/strcasecmp.c: Likewise.
74026         * lib/strcasestr.c: Likewise.
74027         * lib/strcspn.c: Likewise.
74028         * lib/striconv.c: Likewise.
74029         * lib/strncasecmp.c: Likewise.
74030         * lib/strnlen1.c: Likewise.
74031         * lib/strstr.c: Likewise.
74032         * lib/strtok_r.c: Likewise.
74033         * lib/tls.c: Likewise.
74034         * lib/tmpdir.c: Likewise.
74035         * lib/unicodeio.c: Likewise.
74036         * lib/unsetenv.c: Likewise.
74037         * lib/vasnprintf.c: Likewise.
74038         * lib/vasprintf.c: Likewise.
74039         * lib/wait-process.c: Likewise.
74040         * lib/xallocsa.c: Likewise.
74041         * lib/xsetenv.c: Likewise.
74042         * lib/xstriconv.c: Likewise.
74043
74044 2006-09-13  Simon Josefsson  <jas@extundo.com>
74045
74046         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74047         that internally, suggested by Ralf Wildenhues
74048         <Ralf.Wildenhues@gmx.de>.
74049
74050 2006-09-13  Simon Josefsson  <jas@extundo.com>
74051
74052         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74053         @LIBOBJS@.
74054         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74055
74056 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74059         longer worry about uses that don't define HAVE_CONFIG_H.
74060         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74061         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74062         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74063         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74064         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74065         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74066         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74067         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74068         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74069         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74070         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74071         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74072         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74073         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74074         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74075         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74076         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74077         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74078         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74079         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74080         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74081         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74082         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74083         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74084         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74085         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74086         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74087         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74088         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74089         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74090         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74091         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74092         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74093         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74094         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74095         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74096         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74097         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74098         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74099         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74100         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74101         Likewise.
74102
74103 2006-09-13  Eric Blake  <ebb9@byu.net>
74104
74105         * lib/getopt.c: Fix typo in last commit.
74106
74107 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74108
74109         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74110         dgettext.
74111
74112 2006-09-12  Jim Meyering  <jim@meyering.net>
74113
74114         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74115         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74116         Reported by Nelson H. F. Beebe.
74117
74118 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74119
74120         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74121         program_invocation_name and program_invocation_short_name are
74122         initialized.
74123         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74124         and program_invocation_short_name to argp.h, so they are visible
74125         to user programs.
74126         * lib/argp.h: Likewise
74127
74128 2006-09-10  Bruno Haible  <bruno@clisp.org>
74129
74130         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74131         m4/inttypes_h.m4, m4/uintmax_t.m4.
74132
74133 2006-09-10  Bruno Haible  <bruno@clisp.org>
74134
74135         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74136         gl_AC_TYPE_UINTMAX_T.
74137
74138 2006-09-10  Bruno Haible  <bruno@clisp.org>
74139
74140         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74141
74142 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74143
74144         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74145         convention.  Text proposed by Bruno Haible.
74146         (struct argp_option): Document the use of N_() wrappers.
74147
74148         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74149         '\v', and translate the two parts separately, instead of feeding
74150         the whole string to gettext.  This allows to exclude
74151         '\v' from the strings visible to the translator by writing doc
74152         strings as N_("..") "\v" N_("..").
74153
74154 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * config/srclist.txt: Undo latest change; the bug was fixed.
74157
74158 2006-09-09  Bruno Haible  <bruno@clisp.org>
74159
74160         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74161         assignments if building a library without libtool.
74162         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74163         in func_emit_lib_Makefile_am.
74164         (func_import): When building a static library libfoo.a, arrange to
74165         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74166         (func_create_testdir): Likewise.
74167         * modules/gc (configure.ac, Makefile.am): If building statically,
74168         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74169         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74170         * modules/striconv (configure.ac, Makefile.am): Likewise.
74171         Based on a suggestion by Ralf Wildenhues.
74172
74173 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74176         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74177         Also:
74178
74179         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74180         Add year_2050_test to catch glibc bug 2821
74181         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74182
74183         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74184         Prefer #ifdef to #if.
74185
74186         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74187         Return from 'main' instead of calling 'exit'.
74188
74189 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74192         returned the maximum time_t value rather than (time_t) -1.
74193         Problem originally reported by William Bardwell
74194         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74195
74196         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74197         Moved to here ...
74198         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74199         ... from here.
74200
74201 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74204         2821 is fixed.
74205
74206 2006-09-08  Jim Meyering  <jim@meyering.net>
74207
74208         Don't make generated files read-only.  That would bother too many
74209         people.  However, do retain the ability to work when targets are
74210         read-only: remove the destination and temporary files before writing
74211         them (when generated via sed or echo), or by using the -f option for
74212         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74213         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74214         * modules/byteswap, modules/configmake, modules/fcntl:
74215         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74216         * modules/localcharset, modules/netinet_in, modules/poll:
74217         * modules/stdbool, modules/stdint, modules/sys_select:
74218         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74219
74220 2006-09-08  Jim Meyering  <jim@meyering.net>
74221
74222         Avoid new build failure on FreeBSD 6.0.
74223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74224         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74225         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74226
74227 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74228
74229         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74230
74231 2006-09-07  Jim Meyering  <jim@meyering.net>
74232
74233         Fix global typo in last change: use chmod u-w, not chmod u-x.
74234         Spotted by Paul Eggert and Bruce Korb.
74235         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74236         * modules/byteswap, modules/configmake, modules/fcntl:
74237         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74238         * modules/localcharset, modules/netinet_in, modules/poll:
74239         * modules/stdbool, modules/stdint, modules/sys_select:
74240         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74241
74242 2006-09-06  Jim Meyering  <jim@meyering.net>
74243
74244         Make generated files be read-only.
74245         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74246         Ensure that each generated file is now read-only.
74247         * modules/argz: Likewise.
74248         * modules/arpa_inet: Likewise.
74249         * modules/byteswap: Likewise.
74250         * modules/configmake: Likewise.
74251         * modules/fcntl: Likewise.
74252         * modules/fnmatch: Likewise.
74253         * modules/getopt: Likewise.
74254         * modules/glob: Likewise.
74255         * modules/inttypes: Likewise.
74256         * modules/netinet_in: Likewise.
74257         * modules/poll: Likewise.
74258         * modules/stdbool: Likewise.
74259         * modules/stdint: Likewise.
74260         * modules/sys_select: Likewise.
74261         * modules/sys_socket: Likewise.
74262         * modules/sys_stat: Likewise.
74263         * modules/sysexits: Likewise.
74264         * modules/localcharset: Same as above, but continue using temporary
74265         file named "t-$@" (why different?) rather than the "$@-t" used
74266         everywhere else.
74267
74268         * modules/sysexits (Makefile.am): Replace literal occurrences
74269         of "sysexit.h" more readable, and more consistent, "$@".
74270
74271 2006-09-06  Bruno Haible  <bruno@clisp.org>
74272
74273         * modules/striconv: New file.
74274         * modules/xstriconv: New file.
74275         * MODULES.html.sh (Internationalization functions): Add striconv,
74276         xstriconv.
74277
74278 2006-09-06  Bruno Haible  <bruno@clisp.org>
74279
74280         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74281         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74282         not using libtool correctly.
74283
74284 2006-09-06  Bruno Haible  <bruno@clisp.org>
74285
74286         * lib/striconv.h: New file.
74287         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74288         iconvstring.c.
74289         * lib/xstriconv.h: New file.
74290         * lib/xstriconv.c: New file.
74291
74292 2006-09-06  Bruno Haible  <bruno@clisp.org>
74293
74294         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74295         lib_..._LDFLAGS.
74296
74297 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74298
74299         * lib/argz_.h: Sync from Libtool.
74300
74301         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74302                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74303
74304         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74305
74306 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74307
74308         * modules/trim: New file.
74309
74310 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74311
74312         * lib/trim.h: New file.
74313         * lib/trim.c: New file.
74314
74315 2006-09-05  Bruno Haible  <bruno@clisp.org>
74316
74317         * MODULES.html.sh (String handling): Add trim.
74318
74319 2006-09-04  Karl Berry  <karl@gnu.org>
74320
74321         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74322         until next release.
74323
74324 2006-09-03  Bruno Haible  <bruno@clisp.org>
74325
74326         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74327         correctly.
74328
74329 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74330
74331         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74332         not gl_GETLOADAVG.  Omit unneeded semicolons.
74333         Problems reported by Ralf Wildenhues in
74334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74335         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74336         at the end, which is the usual gnulib style.
74337
74338         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74339         of doing all the work ourselves.
74340         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74341         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74342
74343 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74346         Problem reported by Ralf Wildenhues in
74347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74348
74349         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74350         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74351
74352 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74353
74354         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74355         yesterday's patch by changing test -n to test -z.
74356
74357 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74358
74359         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74360         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74361         the former is now obsolescent.
74362
74363         * modules/chdir-long (Depends-on): Add fcntl.
74364
74365 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74368         obsolescent, and programs should use gnulib instead.
74369         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74370         but with prefixes changed.
74371
74372 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74375         or stdbool.h, because they might not exist while configuring.
74376
74377         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74378         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74379         does that for us.
74380         (O_DIRECTORY): Remove.
74381
74382 2006-08-31  Eric Blake  <ebb9@byu.net>
74383
74384         * gnulib-tool: Don't let emacs change spaces to TAB.
74385
74386 2006-08-31  Bruno Haible  <bruno@clisp.org>
74387
74388         * gnulib-tool: When calling func_import more than once, do it in a
74389         subshell.
74390         Reported by Eric Blake <ebb9@byu.net>.
74391
74392 2006-08-31  Bruno Haible  <bruno@clisp.org>
74393
74394         * gnulib-tool (nl): Remove variable.
74395         (sed_transform_lib_file): Use more robust test for config-h module.
74396         (func_import): Fix typo in 2006-08-25 patch.
74397
74398 2006-08-31  Bruno Haible  <bruno@clisp.org>
74399
74400         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74401         specified, augment Makefile.am variables instead of assigning them.
74402
74403 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         Work around a bug in both the Linux and SunOS 64-bit kernels:
74406         nanosleep mishandles sleeps for longer than 2**31 seconds.
74407         Problem reported by Frank v Waveren in
74408         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74410         Check for nanosleep bug.
74411         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74412
74413 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         Work around a bug in both the Linux and SunOS 64-bit kernels:
74416         nanosleep mishandles sleeps for longer than 2**31 seconds.
74417         Problem reported by Frank v Waveren in
74418         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74419         * lib/nanosleep.c (BILLION): New constant.
74420         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74421         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74422         implementation.
74423
74424 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * modules/nanosleep (Depends-on): Add gettime.
74427
74428 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74429         and Simon Josefsson  <jas@extundo.com>
74430         and Oskar Liljeblad  <oskar@osk.mine.nu>
74431
74432         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74433         * gnulib-tool (func_import): New license type 'unmodifiable license
74434         text'.
74435         * modules/fdl: Use it.  Longer description.
74436         * module/gpl, module/lgpl: New files.
74437
74438 2006-08-30  Jim Meyering  <jim@meyering.net>
74439
74440         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74441         shadowing the parameter.
74442
74443 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74444
74445         Sync from Libtool:
74446
74447         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74448
74449         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74450         sharing with gnulib.  Report by Eric Blake.
74451
74452 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         * modules/isapipe: New file.
74455         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74456
74457 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * modules/configmake (Makefile.am): Add a comment, and omit
74460         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74461         by Bruno Haible.
74462
74463 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * m4/isapipe.m4: New file.
74466
74467 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74468
74469         * lib/isapipe.c, lib/isapipe.h: New files.
74470
74471 2006-08-29  Jim Meyering  <jim@meyering.net>
74472
74473         * modules/configmake (Makefile.am): Make configmake.h depend on
74474         Makefile.  Otherwise, a stale configmake.h could hang around.
74475
74476 2006-08-29  Eric Blake  <ebb9@byu.net>
74477
74478         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74479         resolution of upstream bug 3044.
74480
74481 2006-08-29  Bruno Haible  <bruno@clisp.org>
74482
74483         * modules/localcharset (Depends-on): Add configmake.
74484         (Makefile.am): Remove setting of LIBDIR through DEFS.
74485
74486 2006-08-29  Bruno Haible  <bruno@clisp.org>
74487
74488         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74489         defined.
74490
74491 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * modules/fcntl: New file.
74494         * modules/chdir-safer (Depends-on): Add fcntl.
74495         * modules/fts: Likewise.
74496         * modules/mkdir-p: Likewise.
74497
74498         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74499         This undoes the most recent change, since we're now addressing the
74500         problem in a different way.
74501
74502         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74503         into output, since the output might be called Makefile.am even
74504         if $makefile_name is something different.
74505         (func_import): Use $makefile_am rather than
74506         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74507         empty.
74508
74509         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74510
74511 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74512
74513         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74514         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74515         recent change to stdint.m4, since we're now addressing the problem in a
74516         different way.
74517
74518 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74519
74520         * m4/fcntl_h.m4: New file.
74521
74522 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74523
74524         * lib/fcntl_.h: New file.
74525         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74526         the fcntl module.
74527         * lib/dirchownmod.c: Likewise.
74528         * lib/fts.c: Likewise.
74529
74530         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74531         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74532         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74533         just before including <inttypes.h>, to avoid circular inclusion.
74534
74535 2006-08-28  Jim Meyering  <jim@meyering.net>
74536
74537         * doc/visibility.texi: Actually read and correct the grammar of the
74538         sentence affected by yesterday's change.
74539
74540 2006-08-28  Eric Blake  <ebb9@byu.net>
74541
74542         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74543         needs wrapper.
74544
74545 2006-08-28  Eric Blake  <ebb9@byu.net>
74546
74547         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74548
74549 2006-08-28  Eric Blake  <ebb9@byu.net>
74550
74551         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74552
74553 2006-08-28  Bruno Haible  <bruno@clisp.org>
74554
74555         * modules/c-strstr: New file, from GNU gettext.
74556         * MODULES.html.sh (String handling): Add c-strstr.
74557
74558 2006-08-28  Bruno Haible  <bruno@clisp.org>
74559
74560         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74561         macros.
74562         Reported by Eric Blake.
74563
74564 2006-08-28  Bruno Haible  <bruno@clisp.org>
74565
74566         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74567         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74568         * lib/vasprintf.c: Include errno.h, limits.h.
74569         (EOVERFLOW): New fallback definition.
74570         (vasprintf): Test here whether the string length is > INT_MAX.
74571         * lib/vsnprintf.c: Include errno.h, limits.h.
74572         (EOVERFLOW): New fallback definition.
74573         (vsnprintf): Fix bug when generated string was too long for the buffer.
74574         Test here whether the string length is > INT_MAX.
74575
74576 2006-08-28  Bruno Haible  <bruno@clisp.org>
74577
74578         * lib/inttypes_.h (SCNX*): Remove definitions.
74579         Reported by Eric Blake.
74580
74581 2006-08-28  Bruno Haible  <bruno@clisp.org>
74582
74583         * lib/c-strstr.h: New file, from GNU gettext.
74584         * lib/c-strstr.c: New file, from GNU gettext.
74585
74586 2006-08-28  Bruno Haible  <bruno@clisp.org>
74587
74588         * gnulib-tool: Reorder some statements.
74589
74590 2006-08-28  Bruno Haible  <bruno@clisp.org>
74591
74592         * gnulib-tool: New option --makefile-name.
74593         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74594         $makefile_name.
74595         (func_import): Write $makefile_name to the cache file, and read it from
74596         there unless explicitly specified. Use $makefile_name as file name
74597         instead of Makefile.am. Adjust the recommendations accordingly.
74598
74599 2006-08-28  Bruno Haible  <bruno@clisp.org>
74600
74601         * gnulib-tool (func_verify_module): Check against misapplying patch.
74602
74603 2006-08-28  Bruno Haible  <bruno@clisp.org>
74604
74605         * gnulib-tool (func_relativize, func_relconcat): New functions.
74606         Give an error if --local-dir is given with --update.
74607         Remove trailing slashes from $local_gnulib_dir.
74608         (func_import): Store the relativized $local_gnulib_dir in
74609         gnulib-cache.m4, and read it from there if not specified explicitly.
74610
74611 2006-08-28  Bruno Haible  <bruno@clisp.org>
74612
74613         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74614         is the current directory. Respect also $local_gnulib_dir.
74615
74616 2006-08-28  Bruno Haible  <bruno@clisp.org>
74617             Simon Josefsson  <jas@extundo.com>
74618
74619         BeOS portability.
74620         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74621
74622 2006-08-27  Jim Meyering  <jim@meyering.net>
74623
74624         * doc/visibility.texi: Remove duplicate word: "pointer".
74625
74626 2006-08-26  Bruno Haible  <bruno@clisp.org>
74627
74628         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74629         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74630         (Makefile.am): Create inttypes.h from inttypes_.h.
74631         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74632
74633         * modules/imaxabs: New file.
74634
74635         * modules/imaxdiv: New file.
74636
74637 2006-08-26  Bruno Haible  <bruno@clisp.org>
74638
74639         * m4/inttypes.m4: New file.
74640         * m4/_inttypes_h.m4: Remove file.
74641         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74642         PRI_MACROS_BROKEN.
74643         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74644
74645         * m4/imaxabs.m4: New file.
74646
74647         * m4/imaxdiv.m4: New file.
74648
74649 2006-08-26  Bruno Haible  <bruno@clisp.org>
74650
74651         * lib/inttypes_.h: New file.
74652         * lib/inttypes.h: Remove file.
74653         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74654
74655         * lib/imaxabs.c: New file.
74656
74657         * lib/imaxdiv.c: New file.
74658
74659 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         New config-h module, so that "make" output needn't be cluttered
74662         by -DHAVE_CONFIG_H.
74663         * MODULES.html.sh (Support for building libraries and executables):
74664         Add config-h.
74665         * modules/config-h: New file.
74666         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74667         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74668         the config-h module is used.
74669
74670         New configmake module, so that "make" output needn't be cluttered
74671         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74672         * MODULES.html.sh (Support for building libraries and executables):
74673         Add configmake.
74674         * modules/configmake: New file.
74675
74676 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74677
74678         * m4/config-h.m4: New file.
74679
74680 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * config/srclist.txt: Add elisp-comp.
74683
74684 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * MODULES.html.sh (Support for building libraries and executables):
74687         Add elisp-comp.
74688         * build-aux/elisp-comp: New file.
74689         * modules/elisp-comp: New file.
74690
74691 2006-08-24  Bruno Haible  <bruno@clisp.org>
74692
74693         * gnulib-tool (func_create_testdir): Use non-default values of
74694         sourcebase and m4base.
74695
74696 2006-08-24  Bruno Haible  <bruno@clisp.org>
74697
74698         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74699         HTML structure.
74700
74701 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * modules/openat (Depends-on): Add lchown.
74704
74705 2006-08-23  Bruno Haible  <bruno@clisp.org>
74706
74707         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74708         of gl_LOCK_EARLY instead of gl_LOCK.
74709
74710 2006-08-23  Bruno Haible  <bruno@clisp.org>
74711
74712         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74713         on OSF/1 to no.
74714         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74715
74716 2006-08-23  Bruno Haible  <bruno@clisp.org>
74717
74718         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74719         as unusable.
74720
74721         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74722         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74723         (gl_LOCK): New macro.
74724
74725 2006-08-22  Simon Josefsson  <jas@extundo.com>
74726
74727         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74728         to md5 module.
74729
74730 2006-08-22  Simon Josefsson  <jas@extundo.com>
74731
74732         * MODULES.html.sh: Add "Support for maintaining and release
74733         projects".
74734
74735         * build-aux/gnupload: New file, from coreutils.
74736
74737 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         Avoid the need for AC_LIBSOURCES in m4 macros.
74740         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74741         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74742         * modules/check-version (EXTRA_DIST): Add check-version.h.
74743         * modules/crc (EXTRA_DIST): Add crc.h.
74744         * modules/des (EXTRA_DIST): Add des.h.
74745         * modules/gc (EXTRA_DIST): Add gc.h.
74746         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74747         * modules/getline (EXTRA_DIST): Add getline.h.
74748         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74749         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74750         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74751         * modules/md2 (EXTRA_DIST): Add md2.h.
74752         * modules/md4 (EXTRA_DIST): Add md4.h.
74753         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74754         * modules/read-file (EXTRA_DIST): Add read-file.h.
74755         * modules/readline (EXTRA_DIST): Add readline.h.
74756         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74757         rijndael-api-fst.h.
74758
74759 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * m4/rijndael.m4 (gl_ARCFOUR):
74762         * m4/arctwo.m4 (gl_ARCTWO):
74763         * m4/check-version.m4 (gl_CHECK_VERSION):
74764         * m4/crc.m4 (gl_CRC):
74765         * m4/des.m4 (gl_DES):
74766         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74767         * m4/gc.m4 (gl_GC):
74768         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74769         * m4/getline.m4 (gl_FUNC_GETLINE):
74770         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74771         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74772         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74773         * m4/md2.m4 (gl_MD2):
74774         * m4/md4.m4 (gl_MD4):
74775         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74776         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74777         * m4/readline.m4 (gl_FUNC_READLINE):
74778         * m4/rijndael.m4 (gl_RIJNDAEL):
74779         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74780         to get the necessary .h files and whatnot.
74781
74782 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74785         gnulib rather than the other way around.
74786         * config/srclistvars.sh (COREUTILS): Remove.
74787
74788 2006-08-22  Jim Meyering  <jim@meyering.net>
74789
74790         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74791
74792         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74793
74794 2006-08-22  Eric Blake  <ebb9@byu.net>
74795
74796         * modules/regexprops-generic: New file.
74797         * MODULES.html.sh (Support for building documentation): List it.
74798
74799 2006-08-22  Eric Blake  <ebb9@byu.net>
74800
74801         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74802         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74803         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74804         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74805
74806 2006-08-22  Bruno Haible  <bruno@clisp.org>
74807
74808         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74809         and lib_LTLIBRARIES like the other lib_* variables.
74810
74811 2006-08-22  Bruno Haible  <bruno@clisp.org>
74812
74813         * build-aux/x-to-1.in: New file, from GNU gettext.
74814
74815 2006-08-22  Bruno Haible  <bruno@clisp.org>
74816
74817         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74818         <utmpx.h> exists.
74819
74820 2006-08-22  Bruno Haible  <bruno@clisp.org>
74821
74822         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74823         <utmpx.h> exists.
74824
74825 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         BeOS portability.
74828         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74829         exist.
74830         Problem reported by Bruno Haible.
74831
74832 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         Avoid the need for AC_LIBSOURCES in m4 macros.
74835         * modules/acl (EXTRA_DIST): Add acl.h.
74836         * modules/argmatch (Files): Add m4/argmatch.m4.
74837         (configure.ac): Add gl_ARGMATCH.
74838         (EXTRA_DIST): Renamed from lib_SOURCES, for
74839         consistency with the other modules.  Remove argmatch.c.
74840         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74841         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74842         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74843         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74844         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74845         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74846         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74847         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74848         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74849         * modules/closeout (EXTRA_DIST): Add closeout.h.
74850         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74851         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74852         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74853         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74854         dirname.h; remove basename.c and stripslash.c.
74855         * modules/exclude (EXTRA_DIST): Add exclude.h.
74856         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74857         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74858         * modules/file-type (EXTRA_DIST): Add file-type.h.
74859         * modules/filemode (EXTRA_DIST): Add filemode.h.
74860         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74861         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74862         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74863         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74864         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74865         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74866         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74867         * modules/getdate (EXTRA_DIST): Add getdate.c.
74868         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74869         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74870         * modules/getpass (EXTRA_DIST): Add getpass.h.
74871         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74872         * modules/group-member (EXTRA_DIST): Add group-member.h.
74873         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74874         * modules/hash (EXTRA_DIST): Add hash.h.
74875         * modules/human (EXTRA_DIST): Add human.h.
74876         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74877         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74878         * modules/lchown (EXTRA_DIST): Add lchown.h.
74879         * modules/long-options (EXTRA_DIST): Add long-options.h.
74880         * modules/lstat (EXTRA_DIST): Add lstat.h.
74881         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74882         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74883         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74884         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74885         * modules/memxor (EXTRA_DIST): Add memxor.h.
74886         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74887         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74888         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74889         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74890         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74891         * modules/physmem (EXTRA_DIST): Add physmem.h.
74892         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74893         * modules/posixver (EXTRA_DIST): Add posixver.h.
74894         * modules/quote (EXTRA_DIST): Add quote.h.
74895         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74896         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74897         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74898         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74899         regex_internal.h regexec.c.
74900         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74901         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74902         * modules/same (EXTRA_DIST): Add same.h.
74903         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74904         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74905         * modules/savedir (EXTRA_DIST): Add savedir.h.
74906         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74907         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74908         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74909         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74910         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74911         * modules/strdup (EXTRA_DIST): Add strdup.h.
74912         * modules/strftime (EXTRA_DIST): Add strftime.h.
74913         * modules/strndup (EXTRA_DIST): Add strndup.h.
74914         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74915         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74916         * modules/time_r (EXTRA_DIST): Add time_r.h.
74917         * modules/timespec (EXTRA_DIST): Add timespec.h.
74918         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74919         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74920         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74921         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74922         * modules/userspec (EXTRA_DIST): Add userspec.h.
74923         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74924         * modules/utimens (EXTRA_DIST): Add utimens.h.
74925         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74926         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74927         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74928         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74929         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74930         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74931         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74932         * modules/yesno (EXTRA_DIST): Add yesno.h.
74933
74934 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74937
74938         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74939         * m4/dev-ino.m4, same-inode.m4: Remove.
74940
74941         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74942         * m4/acl.m4 (AC_FUNC_ACL):
74943         * m4/backupfile.m4 (gl_BACKUPFILE):
74944         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74945         * m4/canon-host.m4 (gl_CANON_HOST):
74946         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74947         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74948         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74949         * m4/cloexec.m4 (gl_CLOEXEC):
74950         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74951         * m4/closeout.m4 (gl_CLOSEOUT):
74952         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74953         * m4/dirname.m4 (gl_DIRNAME):
74954         * m4/exclude.m4 (gl_EXCLUDE):
74955         * m4/exitfail.m4 (gl_EXITFAIL):
74956         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74957         * m4/file-type.m4 (gl_FILE_TYPE):
74958         * m4/filemode.m4 (gl_FILEMODE):
74959         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74960         * m4/fpending.m4 (gl_FUNC_FPENDING):
74961         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74962         * m4/fts.m4 (gl_FUNC_FTS):
74963         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74964         * m4/getdate.m4 (gl_GETDATE):
74965         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74966         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74967         * m4/getpass.m4 (gl_FUNC_GETPASS):
74968         * m4/gettime.m4 (gl_GETTIME):
74969         * m4/getugroups.m4 (gl_GETUGROUPS):
74970         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74971         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74972         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74973         * m4/hash.m4 (gl_HASH):
74974         * m4/idcache.m4 (gl_IDCACHE):
74975         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74976         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74977         * m4/long-options.m4 (gl_LONG_OPTIONS):
74978         * m4/lstat.m4 (gl_FUNC_LSTAT):
74979         * m4/md5.m4 (gl_MD5):
74980         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74981         * m4/memcoll.m4 (gl_MEMCOLL):
74982         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74983         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74984         * m4/memxor.m4 (gl_MEMXOR):
74985         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74986         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74987         * m4/modechange.m4 (gl_MODECHANGE):
74988         * m4/mountlist.m4 (gl_MOUNTLIST):
74989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74990         * m4/openat.m4 (gl_FUNC_OPENAT):
74991         * m4/pathmax.m4 (gl_PATHMAX):
74992         * m4/physmem.m4 (gl_PHYSMEM):
74993         * m4/posixtm.m4 (gl_POSIXTM):
74994         * m4/posixver.m4 (gl_POSIXVER):
74995         * m4/quote.m4 (gl_QUOTE):
74996         * m4/quotearg.m4 (gl_QUOTEARG):
74997         * m4/readtokens.m4 (gl_READTOKENS):
74998         * m4/readutmp.m4 (gl_READUTMP):
74999         * m4/regex.m4 (gl_REGEX):
75000         * m4/safe-read.m4 (gl_SAFE_READ):
75001         * m4/safe-write.m4 (gl_SAFE_WRITE):
75002         * m4/same.m4 (gl_SAME):
75003         * m4/save-cwd.m4 (gl_SAVE_CWD):
75004         * m4/savedir.m4 (gl_SAVEDIR):
75005         * m4/settime.m4 (gl_SETTIME):
75006         * m4/sha1.m4 (gl_SHA1):
75007         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75008         * m4/stat-macros.m4 (gl_STAT_MACROS):
75009         * m4/stat-time.m4 (gl_STAT_TIME):
75010         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75011         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75012         * m4/strdup.m4 (gl_FUNC_STRDUP):
75013         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75014         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75015         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75016         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75017         * m4/time_r.m4 (gl_TIME_R):
75018         * m4/timespec.m4 (gl_TIMESPEC):
75019         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75020         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75021         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75022         * m4/userspec.m4 (gl_USERSPEC):
75023         * m4/utimecmp.m4 (gl_UTIMECMP):
75024         * m4/utimens.m4 (gl_UTIMENS):
75025         * m4/xalloc.m4 (gl_XALLOC):
75026         * m4/xgetcwd.m4 (gl_XGETCWD):
75027         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75028         * m4/xreadlink.m4 (gl_XREADLINK):
75029         * m4/xstrtod.m4 (gl_XSTRTOD):
75030         * m4/yesno.m4 (gl_YESNO):
75031         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75032         to get the necessary .h files and whatnot.
75033
75034 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75035             Bruno Haible  <bruno@clisp.org>
75036
75037         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75038         /bin/sh understanding of '!' conditional negation.
75039
75040 2006-08-21  Jim Meyering  <jim@meyering.net>
75041
75042         * modules/openat (Depends-on): Really alphabetize.
75043
75044         * modules/acl (Depends-on): Add error and quote.
75045
75046         * check-module (find_included_lib_files): Add at-func.c to the
75047         ok-to-include-more-than-once white list.
75048
75049         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75050
75051 2006-08-21  Bruno Haible  <bruno@clisp.org>
75052
75053         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75054         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75055         Reported by Martin Lambers <marlam@marlam.de>.
75056
75057 2006-08-21  Bruno Haible  <bruno@clisp.org>
75058
75059         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75060         specify an installation location, don't emit a noinst_LIBRARIES or
75061         noinst_LTLIBRARIES assignment.
75062
75063 2006-08-21  Bruno Haible  <bruno@clisp.org>
75064
75065         BeOS portability.
75066         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75067         BeOS has mbrtowc() but no <wctype.h>.
75068
75069 2006-08-21  Bruno Haible  <bruno@clisp.org>
75070
75071         BeOS portability.
75072         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75073         exist.
75074
75075 2006-08-21  Bruno Haible  <bruno@clisp.org>
75076
75077         BeOS portability.
75078         * lib/mbchar.h: Include <wctype.h> only if it exists.
75079
75080 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75081
75082         Remove files that are no longer needed by their respective modules.
75083         * m4/obstack.m4: Remove.
75084         * m4/strerror_r.m4: Remove.
75085         * m4/uint32_t.m4: Remove.
75086         * m4/uintptr_t.m4: Remove.
75087         * m4/ullong_max.m4: Remove.
75088         * m4/xstrtoimax.m4: Remove.
75089         * m4/xstrtoumax.m4: Remove.
75090
75091         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75092         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75093         dependencies now capture this.
75094
75095         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75096         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75097         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75098         * m4/human.m4 (gl_HUMAN): Likewise.
75099         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75100         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75101
75102         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75103
75104         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75105         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75106         stdint.
75107         * m4/human.m4 (gl_HUMAN): Likewise.
75108         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75109         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75110         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75111         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75112         * m4/xstrtol (gl_XSTRTOL): Likewise.
75113
75114         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75115         AC_TYPE_LONG_LONG_INT.
75116         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75117         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75118         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75119         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75120
75121         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75122         on stdbool.
75123
75124         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75125         (gl_PREREQ_XSTRTOUL): Remove.
75126
75127         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75128
75129         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75130         mode.
75131
75132 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75133
75134         Add and change modules to make it easier for coreutils to use
75135         gnulib-tool.
75136         * modules/backupfile (Files): Remove m4/d-ino.m4.
75137         (Depends-on): Add d-ino.
75138         * modules/cycle-check (Depends-on): Add stdint.
75139         (lib_SOURCES): Add cycle-check.h.
75140         * modules/d-ino: New module.
75141         * modules/d-type: New module.
75142         * modules/error (Files): Remove m4/strerror_r.m4.
75143         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75144         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75145         m4/inttypes_h.m4, m4/uintmax_t.m4.
75146         (Depends-on): Add stdint.
75147         (lib_SOURCES): Add fsusage.h.
75148         * modules/getcwd (Files): Remove d-ino.m4.
75149         (Depends-on): Add d-ino.
75150         * modules/getndelim2 (Depends-on): Add stdint.
75151         * modules/glob (Files): Remove m4/d-type.m4.
75152         (Depends-on): Add d-type.
75153         * modules/host-os: New module.
75154         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75155         m4/inttypes_h.m4, m4/uintmax_t.m4.
75156         * Depends-on: Add stdint.
75157         (lib_SOURCES): Add human.h.
75158         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75159         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75160         m4/uintmax_t.m4, m4/ulonglong.m4.
75161         (Depends-on): Add stdint.
75162         (EXTRA_DIST): Add inttostr.h.
75163         * modules/lchmod: New module.
75164         * modules/link-follow: New module.
75165         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75166         (Depends-on): Add lchmod.
75167         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75168         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75169         (Depends-on): Add stdint.
75170         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75171         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75172         (Depends-on): Add stdint.
75173         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75174         * modules/perl: New module.
75175         * modules/regex (Depends-on): Add stdint.
75176         * modules/rmdir-errno: New module.
75177         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75178         m4/intmax_t.m4.
75179         (Depends-on): Add stdint.
75180         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75181         m4/uintmax_t.m4.
75182         (Depends-on): Add stdint.
75183         * modules/unlink-busy: New module.
75184         * modules/utimecmp (Depends-on): Add stdint.
75185         * modules/uptime: New module.
75186         * modules/winsz-ioctl: New module.
75187         * modules/winsz-termios: New module.
75188         * modules/xnanosleep (Depends-on): Add nanosleep.
75189         * modules/ullong_max: Remove.
75190         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75191         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75192         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75193         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75194         (Depends-on): Add inttypes.
75195         (lib_SOURCES): Add xstrtol.h.
75196         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75197         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75198         * MODULES.html.sh: Move 'assert' into the assert section.
75199         Move 'dummy' into the linking section.
75200         Remove ullong_max.
75201         Add section for compatibility checks for POSIX:2001 functions,
75202         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75203         winsz-ioctl, and winsz-termios into it.
75204         Add lchmod.
75205         Add top-level Misc section and put host-os, perl, and uptime
75206         into it.
75207
75208 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75211         now assume the stdint module.  Do not include inttypes.h.
75212         * lib/fsusage.h: Likewise.
75213         * lib/getndelim2.c: Likewise.
75214         * lib/human.h: Likewise.
75215         * lib/inttostr.h: Likewise.
75216         * lib/obstack.c: Likewise.
75217         * lib/regex_internal.h: Likewise.
75218         * lib/tempname.c: Likewise.
75219         * lib/utimecmp.c: Likewise.
75220         * lib/xstrtol.h: Likewise.
75221
75222         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75223
75224         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75225         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75226         * lib/xtime.h: Likewise.
75227
75228 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         * modules/openat (Files): Add lib/fchmodat.c.
75231         Fixes problem reported by Jay Youngman.
75232
75233 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75236         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75237
75238 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75239             Bruno Haible  <bruno@clisp.org>
75240
75241         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75242         and is a script that invokes bison. Tighten the code. Add comments.
75243
75244 2006-08-18  Jim Meyering  <jim@meyering.net>
75245
75246         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75247         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75248         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75249         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75250
75251 2006-08-18  Bruno Haible  <bruno@clisp.org>
75252
75253         * modules/bison-i18n: New file.
75254         * MODULES.html.sh (Internationalization functions): Add it.
75255
75256 2006-08-18  Bruno Haible  <bruno@clisp.org>
75257
75258         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75259         sys/statvfs.h. When getmntinfo was found, check its declaration and
75260         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75261
75262 2006-08-18  Bruno Haible  <bruno@clisp.org>
75263
75264         * m4/bison-i18n.m4: New file, from bison.
75265
75266 2006-08-18  Bruno Haible  <bruno@clisp.org>
75267
75268         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75269         (ME_DUMMY): Treat "kernfs" as a dummy.
75270         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75271
75272 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         Update from coreutils.
75275
75276         2006-08-15  Jim Meyering  <jim@meyering.net>
75277
75278         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75279
75280         2006-01-17  Jim Meyering  <jim@meyering.net>
75281
75282         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75283
75284         2006-01-11  Jim Meyering  <jim@meyering.net>
75285
75286         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75287         Check for the lchmod function.
75288
75289 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75290
75291         Update from coreutils.
75292
75293         * lib/__fpending.h: Add copyright notice.
75294         * lib/fprintftime.h: Likewise.
75295         * lib/savedir.c: Use (C) in copyright notice.
75296         * lib/savedir.h: Likewise.
75297
75298         2006-08-15  Jim Meyering  <jim@meyering.net>
75299
75300         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75301         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75302         in support of the EXPECTED_ERRNO macro.
75303         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75304         definitions.  Instead, define the appropriate symbols and include
75305         "at-func.c".
75306         * lib/mkdirat.c (mkdirat): Likewise.
75307         * lib/fchmodat.c (fchmodat): Likewise.
75308         (ENOSYS): Remove definition.
75309         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75310         it.  Don't include "unistd--.h" -- it wasn't ever used.
75311
75312         2006-01-17  Jim Meyering  <jim@meyering.net>
75313
75314         Rewrite fts.c not to change the current working directory,
75315         by using openat, fstatat, fdopendir, etc..
75316
75317         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75318         (HAVE_OPENAT_SUPPORT): Define.
75319         [_LIBC] (fchdir): Don't undef or define; no longer used.
75320         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75321         Now, this `function' always succeeds, and consumes its file descriptor
75322         parameter -- so callers must not close such FDs.  Update callers.
75323         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75324         (diropen): Add parameter, SP.  Adjust all callers.
75325         Implement using diropen_fd, rather than open.
75326         (fts_open): Initialize new member, fts_cwd_fd.
75327         Remove fts_rft-setting code.
75328         (fts_close): Close fts_cwd_fd, if necessary.
75329         (__opendir2): Define in terms of opendir or opendirat,
75330         depending on whether the FST_NOCHDIR flag is set.
75331         (fts_build): Since fts_safe_changedir consumes its FD, and since
75332         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75333         and close the dup'd file descriptor upon failure.
75334         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75335         (fts_safe_changedir): Tweak semantics to reflect that this function
75336         now calls cwd_advance_fd and hence consumes its FD argument.
75337         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75338         [struct FTS] (fts_rft): Remove now-unused member.
75339         [struct FTS] (fts_cycle.state): Improve comment.
75340
75341         * lib/openat.c (openat_needs_fchdir): New function.
75342         * lib/openat.h (openat_needs_fchdir): Declare it.
75343
75344 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75347         Problem and fix reported by Pádraig Brady in
75348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75349
75350 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75353
75354 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75355
75356         * lib/memcoll.c (memcoll): Optimize for the common case where the
75357         arguments are bytewise equal.
75358
75359 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * doc/regexprops-generic.texi: Add a copyright notice.
75362
75363 2006-08-15  Bruno Haible  <bruno@clisp.org>
75364
75365         * modules/tmpdir (License): Change to LGPL.
75366
75367 2006-08-15  Bruno Haible  <bruno@clisp.org>
75368
75369         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75370         module.
75371
75372 2006-08-14  Simon Josefsson  <jas@extundo.com>
75373
75374         * config/srclist.txt: Add gnupload.
75375
75376 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         Change copyright notice from LGPL 2 to GPL 2, since that's the
75379         standard form used in the gnulib repository.
75380         * tests/test-lock.c: Likewise.
75381         * tests/test-stdint.c: Likewise.
75382         * tests/test-tls.c: Likewise.
75383
75384         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75385         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75386         Add copyright notice.
75387
75388         * check-module: Add copyright notice.  Output a copyright
75389         notice if "--version" is specified.
75390         * modules/COPYING: New file.
75391         * tests/test-getaddrinfo.c: Add copyright notice.
75392         * tests/test-verify.c: Likewise.
75393
75394 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75395
75396         Change copyright notice from LGPL 2 to GPL 2, since that's the
75397         standard form used in the gnulib repository.
75398         * lib/lock.c: LGPL -> GPL.
75399         * lib/lock.h: Likewise.
75400         * lib/strnlen1.c: Likewise.
75401         * lib/strnlen1.h: Likewise.
75402         * lib/tls.c: Likewise.
75403         * lib/tls.h: Likewise.
75404         * lib/tmpdir.c: Likewise.
75405
75406         * lib/TODO: Remove; this belongs only in coreutils.
75407
75408 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         Add copyright notices to long-enough files that lack them, since
75411         otherwise the files aren't clearly free.  Use the same notice that
75412         getdate.texi already uses.
75413         * doc/alloca-opt.texi: Add copyright notice.
75414         * doc/alloca.texi: Likewise.
75415         * doc/ctime.texi: Likewise.
75416         * doc/functions.texi: Likewise.
75417         * doc/gcd.texi: Likewise.
75418         * doc/gnulib-tool.texi: Likewise.
75419         * doc/inet_ntoa.texi: Likewise.
75420         * doc/visibility.texi: Likewise.
75421
75422         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75423         * doc/quote.texi: Add copyright notice.
75424
75425         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75426         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75427         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75428         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75429         is now obsolete, and give a pointer to the Sun list.
75430         Add copyright notice.
75431
75432 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * config/srclistvars.sh: Add copyright notice.
75435
75436 2006-08-14  Eric Blake  <ebb9@byu.net>
75437
75438         Import the following change from libc:
75439
75440         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75441
75442         Upstream bug 2997.
75443         * lib/misc/error.c: Add space between program name and message if file
75444         name is missing.
75445
75446 2006-08-12  Karl Berry  <karl@gnu.org>
75447
75448         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75449         remove, these originate in gnulib now.
75450
75451 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75452
75453         * doc/Makefile (standards.info standards.html standards.dvi):
75454         Also depend on make-stds.texi.
75455
75456 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75457
75458         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75459         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75460
75461         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75462         in wchar_t.  Problem reported by Eric Blake.
75463
75464         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75465         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75466         Also, help the compiler to keep LEN in a register.
75467
75468 2006-08-11  Eric Blake  <ebb9@byu.net>
75469
75470         * users.txt: Sort.  Add tar.
75471
75472 2006-08-11  Bruno Haible  <bruno@clisp.org>
75473
75474         * users.txt: New file.
75475
75476 2006-08-11  Bruno Haible  <bruno@clisp.org>
75477
75478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75479         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75480
75481 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * modules/snprintf (Depends-on): Remove minmax.
75484         (Maintainer): Add self and Bruno.
75485
75486 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75489         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75490         (EOVERFLOW): Define if the system does not.
75491         Do not include "minmax.h"; it wasn't used.
75492         (snprintf): Don't assume size_t promotes to an unsigned type.
75493         Fix bug when generated string was too long for the buffer: the
75494         buffer's contents are supposed to be the initial prefix of the
75495         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75496         exceeds INT_MAX; do the check ourselves.
75497
75498         Import the following changes from libc:
75499
75500         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75501
75502         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75503         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75504         set wc to the byte which couldn't be converted.
75505         (re_string_reconstruct): Don't clear valid_raw_len before calling
75506         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75507         tip_context using re_string_context_at.
75508
75509         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75510
75511         * lib/posix/regex.h: g++ still cannot handled [restrict].
75512
75513         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75514
75515         * lib/posix/regex.h: Remove special handling for VMS.
75516
75517 2006-08-10  Jim Meyering  <jim@meyering.net>
75518
75519         * modules/same-inode: New module.
75520         * modules/dev-ino: New module.
75521         * modules/cycle-check: Depend on these modules, rather than simply
75522         including their .h files.
75523         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75524         required via m4/cycle-check.m4.
75525         * modules/same: Depend on new same-inode module, rather than
75526         including same-inode.h.
75527         * modules/chdir-safer: New file.
75528
75529         * modules/chown (Depends-on): Add stat-macros.
75530
75531 2006-08-10  Jim Meyering  <jim@meyering.net>
75532
75533         * m4/cycle-check.m4: New file.
75534         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75535         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75536
75537 2006-08-10  Eric Blake  <ebb9@byu.net>
75538
75539         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75540         in from original proposal.
75541
75542 2006-08-10  Eric Blake  <ebb9@byu.net>
75543         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75544
75545         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75546         namespace.
75547
75548 2006-08-10  Bruno Haible  <bruno@clisp.org>
75549
75550         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75551         as well.
75552
75553 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         Sync from coreutils.
75556
75557         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75558
75559         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75560         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75561
75562 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * modules/restrict: Remove; no longer needed now that we assume
75565         Autoconf 2.59 or later.
75566         * MODULES.html.sh: Remove 'restrict'.
75567         * modules/argp (Depends-on): Remove 'restrict'.
75568         * modules/base64 (Depends-on): Likewise.
75569         * modules/gc (Depends-on): Likewise.
75570         * modules/getaddrinfo (Depends-on): Likewise.
75571         * modules/glob (Depends-on): Likewise.
75572         * modules/inet_ntop (Depends-on): Likewise.
75573         * modules/inet_pton (Depends-on): Likewise.
75574         * modules/memxor (Depends-on): Likewise.
75575         * modules/regex (Depends-on): Likewise.
75576         * modules/strtok_r (Depends-on): Likewise.
75577         * modules/time_r (Depends-on): Likewise.
75578
75579 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75582         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75583         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75584         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75585         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75586         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75587         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75588         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75589
75590         Merge from coreutils.
75591         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75592         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75593         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75594         * m4/time_r.m4 (gl_TIME_R): Likewise.
75595
75596 2006-08-09  Karl Berry  <karl@gnu.org>
75597
75598         * config/srclist.txt: no more gettext-tools, per Bruno.
75599
75600 2006-08-08  Eric Blake  <ebb9@byu.net>
75601
75602         * modules/verror: New module.
75603         * MODULES.html.sh: Document it.
75604
75605 2006-08-08  Eric Blake  <ebb9@byu.net>
75606
75607         * lib/verror.h, lib/verror.c: New files.
75608
75609 2006-08-08  Eric Blake  <ebb9@byu.net>
75610
75611         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75612         verror_at_line output complies with GNU Coding Standards even when
75613         file is NULL.
75614
75615 2006-08-07  Bruno Haible  <bruno@clisp.org>
75616
75617         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75618         versions of AIX.
75619         Reported by Ralf Wildenhues.
75620
75621 2006-08-07  Bruno Haible  <bruno@clisp.org>
75622
75623         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75624         in an AC_DEFUN. Needed so that the autoconf snippets can use
75625         AC_REQUIRE.
75626
75627 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75628
75629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75630         Initialize pkgdata_DATA.
75631         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75632         overriding it.
75633
75634 2006-08-06  Eric Blake  <ebb9@byu.net>
75635
75636         * lib/error.h: Fold in some upstream changes from glibc.
75637         * lib/error.c: Likewise.
75638
75639 2006-08-04  Bruno Haible  <bruno@clisp.org>
75640
75641         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75642         Make the mostlyclean-local rule depend on mostlyclean-generic.
75643         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75644
75645 2006-07-31  Bruno Haible  <bruno@clisp.org>
75646
75647         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75648         <stdlib.h>, <string.h>.
75649
75650 2006-07-30  Bruno Haible  <bruno@clisp.org>
75651
75652         * modules/readlink (License): Change to LGPL.
75653
75654 2006-07-30  Bruno Haible  <bruno@clisp.org>
75655
75656         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75657         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75658         set PKGDATADIR to point to it.
75659
75660 2006-07-30  Bruno Haible  <bruno@clisp.org>
75661
75662         * modules/csharpexec (configure.ac): Comment out macro invocation.
75663         * modules/javaexec (configure.ac): Likewise.
75664         * modules/javacomp-script (configure.ac): Likewise.
75665
75666         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75667
75668 2006-07-30  Bruno Haible  <bruno@clisp.org>
75669
75670         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75671         linked-list.
75672
75673 2006-07-30  Bruno Haible  <bruno@clisp.org>
75674
75675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75676
75677 2006-07-30  Bruno Haible  <bruno@clisp.org>
75678
75679         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75680         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75681         get removed.
75682
75683 2006-07-29  Bruno Haible  <bruno@clisp.org>
75684
75685         Make it possible for gnulib-tool to work with locally modified or
75686         augmented gnulib repositories.
75687         * gnulib-tool (func_usage): Document --local-dir option.
75688         (local_gnulib_dir): New variable.
75689         Handle --local-dir option.
75690         (func_lookup_file): New function.
75691         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75692         (func_get_description, func_get_filelist, func_get_description,
75693         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75694         func_get_automake_snippet, func_get_include_directive,
75695         func_get_license, func_get_maintainer): Use func_lookup_file.
75696         (func_import, func_create_testdir): Use func_lookup_file.
75697
75698 2006-07-29  Bruno Haible  <bruno@clisp.org>
75699
75700         * modules/setenv (Depends-on): Add unistd.
75701
75702 2006-07-29  Bruno Haible  <bruno@clisp.org>
75703
75704         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75705
75706 2006-07-29  Bruno Haible  <bruno@clisp.org>
75707
75708         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75709
75710 2006-07-29  Bruno Haible  <bruno@clisp.org>
75711
75712         * gnulib-tool (import, update): If there is no Makefile.am, look at
75713         aclocal.m4, instead of bailing out.
75714
75715 2006-07-29  Bruno Haible  <bruno@clisp.org>
75716
75717         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75718         Categorize the options by when they are useful.
75719
75720 2006-07-29  Bruno Haible  <bruno@clisp.org>
75721
75722         * gnulib-tool (func_usage): Document option --no-libtool.
75723         Handle option --no-libtool.
75724         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75725         for changed semantics of $libtool variable.
75726         (func_import): Likewise. If libtool is not used, show this through
75727         an option --no-libtool.
75728         (func_create_testdir): Update.
75729
75730 2006-07-29  Bruno Haible  <bruno@clisp.org>
75731
75732         * gnulib-tool (func_import): Extend error message about missing
75733         --doc-base.
75734
75735 2006-07-29  Bruno Haible  <bruno@clisp.org>
75736
75737         * gnulib-tool (func_import): Don't create the $docbase directory if
75738         there is no file to store there.
75739
75740 2006-07-29  Bruno Haible  <bruno@clisp.org>
75741
75742         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75743         relevant, look for configure.ac there, not in the current directory.
75744         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75745
75746 2006-07-29  Bruno Haible  <bruno@clisp.org>
75747
75748         * gnulib-tool (SORT): New variable.
75749         (func_usage): Undocument --assume-autoconf option.
75750         Remove --assume-autoconf option handling.
75751         (autoconf_minversion): Determine from the contents of configure.ac.
75752         (func_import): Remove autoconf_minversion handling.
75753         Suggested by Eric Blake.
75754
75755 2006-07-29  Bruno Haible  <bruno@clisp.org>
75756
75757         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75758
75759 2006-07-29  Bruno Haible  <bruno@clisp.org>
75760
75761         * config/srclist.txt (*setenv.[ch]): Remove rules.
75762
75763 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75764
75765         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75766
75767 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75768
75769         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75770         arpa/inet.h.
75771
75772 2006-07-28  Simon Josefsson  <jas@extundo.com>
75773
75774         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75775         * modules/inet_pton (Depends-on): Likewise.
75776
75777 2006-07-28  Simon Josefsson  <jas@extundo.com>
75778
75779         * m4/netinet_in_h.m4: New file.
75780
75781 2006-07-28  Simon Josefsson  <jas@extundo.com>
75782
75783         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75784         #include's.
75785
75786 2006-07-28  Simon Josefsson  <jas@extundo.com>
75787
75788         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75789         #include's.
75790
75791 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75792
75793         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75794         setgid on directories only if they set these bits.
75795         * lib/modechange.h: Remove obsolete comment about masks.
75796
75797 2006-07-28  Eric Blake  <ebb9@byu.net>
75798
75799         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75800         macro expansion.
75801
75802 2006-07-28  Bruno Haible  <bruno@clisp.org>
75803
75804         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75805
75806 2006-07-28  Bruno Haible  <bruno@clisp.org>
75807
75808         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75809
75810 2006-07-28  Bruno Haible  <bruno@clisp.org>
75811
75812         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75813         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75814         Define fallbacks.
75815         Avoids link error on FreeBSD 4.x.
75816         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75817
75818         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75819         encoding.
75820         * lib/mbswidth.c (iswcntrl): Likewise.
75821
75822 2006-07-27  Bruno Haible  <bruno@clisp.org>
75823
75824         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75825         test.
75826
75827 2006-07-27  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75830         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75831         defined.
75832
75833 2006-07-26  Eric Blake  <ebb9@byu.net>
75834
75835         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75836
75837 2006-07-26  Eric Blake  <ebb9@byu.net>
75838
75839         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75840         like mingw that lack mkstemp.
75841         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75842         avoid compilation warning on mingw.
75843
75844 2006-07-26  Bruno Haible  <bruno@clisp.org>
75845
75846         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75847         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75848         INT_FAST*_MIN, INTPTR_MIN.
75849
75850 2006-07-25  Bruno Haible  <bruno@clisp.org>
75851
75852         * modules/version-etc (Depends-on): Add stdarg.
75853
75854 2006-07-25  Bruno Haible  <bruno@clisp.org>
75855
75856         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75857         complex commands.
75858
75859 2006-07-25  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75862         defined in <stdarg.h> or config.h.
75863
75864 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75865
75866         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75867         (gl_STDIO_SAFER): Remove.
75868
75869 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75870
75871         * MODULES.html.sh (File stream based Input/Output):
75872         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75873         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75874         * modules/fopen-safer, modules/tmpfile-safer: New files.
75875         * modules/stdio-safer: Remove.
75876
75877 2006-07-24  Bruno Haible  <bruno@clisp.org>
75878
75879         * modules/tmpdir: New file.
75880         * MODULES.html.sh (File system functions): Add it.
75881
75882 2006-07-24  Bruno Haible  <bruno@clisp.org>
75883
75884         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75885         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75886
75887 2006-07-24  Bruno Haible  <bruno@clisp.org>
75888
75889         * modules/clean-temp: New file.
75890
75891 2006-07-24  Bruno Haible  <bruno@clisp.org>
75892
75893         * m4/tmpdir.m4: New file, from GNU gettext.
75894
75895 2006-07-24  Bruno Haible  <bruno@clisp.org>
75896
75897         * lib/tmpdir.h: New file, from GNU gettext.
75898         * lib/tmpdir.c: New file, from GNU gettext.
75899
75900 2006-07-24  Bruno Haible  <bruno@clisp.org>
75901
75902         * lib/clean-temp.h: New file, from GNU gettext.
75903         * lib/clean-temp.c: New file, from GNU gettext.
75904
75905 2006-07-23  Eric Blake  <ebb9@byu.net>
75906
75907         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75908         (Depends-on): Add binary-io.
75909
75910 2006-07-23  Eric Blake  <ebb9@byu.net>
75911
75912         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75913
75914 2006-07-23  Eric Blake  <ebb9@byu.net>
75915
75916         * lib/tmpfile-safer.c: New file.
75917         * lib/stdio-safer.h (fopen_safer): Add prototype.
75918         * lib/stdio--.h (tmpfile): Make safer.
75919
75920 2006-07-23  Bruno Haible  <bruno@clisp.org>
75921
75922         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75923         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75924         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75925         gl_linked_remove_at): Use it.
75926
75927 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75928         and Simon Josefsson <jas@extundo.com>
75929
75930         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75931
75932         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75933
75934 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * modules/close-stream: New file.
75937         * modules/closeout (Description): Make it clear that it exits
75938         with a diagnostic on error.
75939         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75940         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75941
75942 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * m4/close-stream.m4: New file.
75945
75946 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75947
75948         * lib/close-stream.c, lib/close-stream.h: New files.
75949
75950 2006-07-22  Bruno Haible  <bruno@clisp.org>
75951
75952         Merge from GNU gettext 0.15.
75953
75954         2006-05-01  Bruno Haible  <bruno@clisp.org>
75955
75956                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75957
75958         2006-07-22  Bruno Haible  <bruno@clisp.org>
75959
75960                 * modules/javaversion: New file.
75961                 * MODULES.html.sh (Java): Add javaversion.
75962
75963         2006-03-12  Bruno Haible  <bruno@clisp.org>
75964
75965                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75966
75967         2005-12-04  Bruno Haible  <bruno@clisp.org>
75968
75969                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75970                 (untested).
75971
75972         2006-06-21  Bruno Haible  <bruno@clisp.org>
75973
75974                 Avoid warnings from recent versions of mcs.
75975                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75976                 -o, -L, -r any more. Use options documented since mcs-1.0
75977                 instead. Similarly for -g.
75978
75979         2005-12-04  Bruno Haible  <bruno@clisp.org>
75980
75981                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75982                 .resources, not .resource.
75983
75984         2005-07-09  Bruno Haible  <bruno@clisp.org>
75985
75986                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75987                 add a .dll suffix.
75988                 Reported by Mark Junker <mjscod@gmx.de>.
75989
75990         2006-07-22  Bruno Haible  <bruno@clisp.org>
75991
75992                 * modules/gettext: Upgrade to gettext-0.15.
75993                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75994                 m4/visibility.m4.
75995                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75996
75997 2006-07-22  Bruno Haible  <bruno@clisp.org>
75998
75999         Merge from GNU gettext 0.15.
76000
76001         2006-03-25  Bruno Haible  <bruno@clisp.org>
76002
76003                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76004
76005         2006-07-21  Bruno Haible  <bruno@clisp.org>
76006
76007                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76008                 "1.1".
76009
76010         2006-05-09  Bruno Haible  <bruno@clisp.org>
76011
76012                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76013                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76014                 for the conftestver execution.
76015
76016         2006-05-01  Bruno Haible  <bruno@clisp.org>
76017
76018                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76019                 optional target-version argument. Verify that the compiler
76020                 groks source of the specified source-version, or add -source
76021                 option as necessary. Verify that the compiler produces
76022                 bytecode in the specified target-version, or add -target and
76023                 -source options as necessary. Make the result of the test
76024                 available as variable CONF_JAVAC. Also log error output in
76025                 config.log.
76026
76027         2006-03-11  Bruno Haible  <bruno@clisp.org>
76028
76029                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76030
76031         2006-05-09  Bruno Haible  <bruno@clisp.org>
76032
76033                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76034                 CLASSPATH_SEPARATOR to a semicolon.
76035
76036         2006-03-12  Bruno Haible  <bruno@clisp.org>
76037
76038                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76039                 available as variable CONF_JAVA, for subsequent autoconf
76040                 tests. Also log error output in config.log.
76041
76042         2006-07-19  Bruno Haible  <bruno@clisp.org>
76043
76044                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76045                 that getline works on glibc2 systems. Needed to avoid trouble
76046                 in relocatable.c.
76047                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76048
76049         2005-12-04  Bruno Haible  <bruno@clisp.org>
76050
76051                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76052                 launcher (untested).
76053
76054         2005-12-04  Bruno Haible  <bruno@clisp.org>
76055
76056                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76057
76058         2006-07-22  Bruno Haible  <bruno@clisp.org>
76059
76060                 * gettext.m4: Update from GNU gettext-0.15.
76061                 * nls.m4: Likewise.
76062                 * po.m4: Likewise.
76063                 * inttypes-pri.m4: Likewise.
76064                 * inttypes-h.m4: Renamed from inttypes.m4.
76065                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76066
76067 2006-07-22  Bruno Haible  <bruno@clisp.org>
76068
76069         Merge from GNU gettext 0.15.
76070
76071         2005-07-05  Bruno Haible  <bruno@clisp.org>
76072
76073                 * printf-args.c (printf_fetchargs): Work around broken
76074                 definition of wint_t on mingw.
76075
76076         2005-02-12  Bruno Haible  <bruno@clisp.org>
76077
76078                 * xallocsa.h: Add extern "C" for C++.
76079
76080         2006-05-17  Bruno Haible  <bruno@clisp.org>
76081
76082                 Cygwin portability.
76083                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76084
76085         2006-04-30  Bruno Haible  <bruno@clisp.org>
76086
76087                 * progreloc.c: Include <mach-o/dyld.h> if available.
76088                 (find_executable): Use _NSGetExecutablePath when possible.
76089
76090         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76091
76092                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76093                 function.
76094
76095         2005-12-29  Bruno Haible  <bruno@clisp.org>
76096
76097                 * progreloc.c (set_program_name_and_installdir): Fix
76098                 compilation error.
76099
76100         2005-12-04  Bruno Haible  <bruno@clisp.org>
76101
76102                 Cygwin portability.
76103                 * progreloc.c: Include <windows.h> also on Cygwin.
76104                 (find_executable): Add support for Cygwin.
76105                 (set_program_name_and_installdir): Handle also platforms with
76106                 nonempty EXEEXT.
76107
76108         2006-07-11  Bruno Haible  <bruno@clisp.org>
76109
76110                 * javacomp.c: Fix a comment.
76111                 Reported by Jim Meyering.
76112
76113         2006-04-30  Bruno Haible  <bruno@clisp.org>
76114
76115                 * javacomp.h (compile_java_class): Add source_version,
76116                 target_version arguments.
76117                 * javacomp.c: Rewritten to choose only a compiler that
76118                 respects the specified source_version and target_version.
76119
76120         2006-06-27  Bruno Haible  <bruno@clisp.org>
76121
76122                 Assume correct S_ISDIR macro.
76123                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76124
76125         2006-07-22  Bruno Haible  <bruno@clisp.org>
76126
76127                 * javaversion.h: New file, from GNU gettext.
76128                 * javaversion.c: New file, from GNU gettext.
76129                 * javaversion.java: New file, from GNU gettext.
76130                 * javaversion.class: New file, from GNU gettext.
76131
76132         2006-05-17  Bruno Haible  <bruno@clisp.org>
76133
76134                 Cygwin portability.
76135                 * javaexec.c (execute_java_class): Test for jview program
76136                 also on Cygwin.
76137
76138         2006-04-09  Bruno Haible  <bruno@clisp.org>
76139
76140                 * fatal-signal.c: Don't include string.h.
76141                 (at_fatal_signal): Use a copying loop instead of memcpy.
76142
76143         2005-12-04  Bruno Haible  <bruno@clisp.org>
76144
76145                 * csharpexec.c: Add support for 'clix' launcher (untested).
76146                 (execute_csharp_using_sscli): New function.
76147                 (execute_csharp_program): Call it.
76148
76149         2006-06-21  Bruno Haible  <bruno@clisp.org>
76150
76151                 Avoid warnings from recent versions of mcs.
76152                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76153                 -o, -L, -r any more. Use options documented since mcs-1.0
76154                 instead. Similarly for -g.
76155
76156         2005-07-09  Bruno Haible  <bruno@clisp.org>
76157
76158                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76159                 add a .dll suffix.
76160                 Reported by Mark Junker <mjscod@gmx.de>.
76161
76162         2006-06-17  Bruno Haible  <bruno@clisp.org>
76163
76164                 * config.charset: Update for NetBSD 3.0.
76165
76166         2006-05-17  Bruno Haible  <bruno@clisp.org>
76167
76168                 Cygwin portability.
76169                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76170
76171         2006-05-16  Bruno Haible  <bruno@clisp.org>
76172
76173                 * localcharset.c [CYGWIN]: Include <windows.h>.
76174                 (get_charset_aliases): For Cygwin, return the same CPxxx
76175                 aliases list as under WIN32.
76176                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76177                 the environment variables. Fall back to GetACP().
76178
76179         2006-04-05  Bruno Haible  <bruno@clisp.org>
76180
76181                 * config.charset: Update Juan Manuel Guerrero's address.
76182
76183         2005-02-12  Bruno Haible  <bruno@clisp.org>
76184
76185                 * allocsa.h: Add extern "C" for C++.
76186
76187         2005-02-10  Bruno Haible  <bruno@clisp.org>
76188
76189                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76190                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76191
76192         2006-07-22  Bruno Haible  <bruno@clisp.org>
76193
76194                 * gettext.h: Update to GNU gettext-0.15.
76195
76196 2006-07-22  Bruno Haible  <bruno@clisp.org>
76197
76198         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76199         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76200         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76201
76202 2006-07-21  Eric Blake  <ebb9@byu.net>
76203
76204         * modules/stdlib-safer: New file.
76205         * MODULES.html.sh (File stream based Input/Output): Add
76206         stdlib-safer.
76207
76208 2006-07-21  Eric Blake  <ebb9@byu.net>
76209
76210         * lib/stdlib-safer.h: New file from coreutils, required by
76211         stdlib--.h.
76212
76213 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76214
76215         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76216
76217 2006-07-20  Bruno Haible  <bruno@clisp.org>
76218
76219         * gnulib-tool: Recognize new option --assume-autoconf.
76220         (autoconf_minversion): New variable.
76221         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76222
76223 2006-07-20  Bruno Haible  <bruno@clisp.org>
76224
76225         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76226
76227 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76228
76229         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76230         Reindent and repaginate.
76231
76232 2006-07-19  Derek Price  <derek@ximbiot.com>
76233
76234         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76235         Correct grammar.
76236
76237 2006-07-17  Bruno Haible  <bruno@clisp.org>
76238
76239         * modules/list: New file.
76240         * modules/array-list: New file.
76241         * modules/carray-list, modules/carray-list-tests: New files.
76242         * modules/linked-list, modules/linked-list-tests: New files.
76243         * modules/avltree-list, modules/avltree-list-tests: New files.
76244         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76245         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76246         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76247         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76248         * modules/oset: New file.
76249         * modules/array-oset: New file.
76250         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76251         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76252         * tests/test-carray_list.c: New file.
76253         * tests/test-linked_list.c: New file.
76254         * tests/test-avltree_list.c: New file.
76255         * tests/test-rbtree_list.c: New file.
76256         * tests/test-linkedhash_list.c: New file.
76257         * tests/test-avltreehash_list.c: New file.
76258         * tests/test-rbtreehash_list.c: New file.
76259         * tests/test-avltree_oset.c: New file.
76260         * tests/test-rbtree_oset.c: New file.
76261         * MODULES.html.sh (Container data structures): New section.
76262
76263 2006-07-17  Bruno Haible  <bruno@clisp.org>
76264
76265         * m4/gl_list.m4: New file.
76266
76267 2006-07-17  Bruno Haible  <bruno@clisp.org>
76268
76269         * lib/gl_list.h: New file.
76270         * lib/gl_list.c: New file.
76271         * lib/gl_array_list.h: New file.
76272         * lib/gl_array_list.c: New file.
76273         * lib/gl_carray_list.h: New file.
76274         * lib/gl_carray_list.c: New file.
76275         * lib/gl_linked_list.h: New file.
76276         * lib/gl_linked_list.c: New file.
76277         * lib/gl_anylinked_list1.h: New file.
76278         * lib/gl_anylinked_list2.h: New file.
76279         * lib/gl_avltree_list.h: New file.
76280         * lib/gl_avltree_list.c: New file.
76281         * lib/gl_anyavltree_list1.h: New file.
76282         * lib/gl_anyavltree_list2.h: New file.
76283         * lib/gl_rbtree_list.h: New file.
76284         * lib/gl_rbtree_list.c: New file.
76285         * lib/gl_anyrbtree_list1.h: New file.
76286         * lib/gl_anyrbtree_list2.h: New file.
76287         * lib/gl_anytree_list1.h: New file.
76288         * lib/gl_anytree_list2.h: New file.
76289         * lib/gl_linkedhash_list.h: New file.
76290         * lib/gl_linkedhash_list.c: New file.
76291         * lib/gl_anyhash_list1.h: New file.
76292         * lib/gl_anyhash_list2.h: New file.
76293         * lib/gl_avltreehash_list.h: New file.
76294         * lib/gl_avltreehash_list.c: New file.
76295         * lib/gl_rbtreehash_list.h: New file.
76296         * lib/gl_rbtreehash_list.c: New file.
76297         * lib/gl_anytreehash_list1.h: New file.
76298         * lib/gl_anytreehash_list2.h: New file.
76299
76300         * lib/gl_oset.h: New file.
76301         * lib/gl_oset.c: New file.
76302         * lib/gl_array_oset.h: New file.
76303         * lib/gl_array_oset.c: New file.
76304         * lib/gl_avltree_oset.h: New file.
76305         * lib/gl_avltree_oset.c: New file.
76306         * lib/gl_rbtree_oset.h: New file.
76307         * lib/gl_rbtree_oset.c: New file.
76308         * lib/gl_anytree_oset.h: New file.
76309
76310 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76311
76312         * m4/mkancesdirs.m4: New file.
76313         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76314         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76315         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76316         it.
76317
76318 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76319
76320         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76321         * lib/mkancesdirs.h: New files.
76322         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76323         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76324         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76325         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76326         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76327         callers changed.  Revamp internals significantly, by not
76328         attempting to create directories that are temporarily more
76329         permissive than the final results.  Do not attempt to use
76330         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76331         This removes some race conditions, fixes some bugs, and simplifies
76332         things.  Use new dirchownmod function to do owner and mode changes.
76333         * lib/mkdir-p.h: Likewise.
76334         * lib/modechange.c (octal_to_mode): New function.
76335         (struct mode_change): New member mentioned.
76336         (make_node_op_equals): New arg mentioned.  All callers changed.
76337         (mode_compile): Keep track of which mode bits the user has explicitly
76338         mentioned.
76339         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76340         New arg PMODE_BITS, to keep track of which mode bits the user
76341         mentioned; it treats S_ISUID and S_ISGID speciall.
76342         All callers changed.
76343         * lib/modechange.h: Likewise.
76344
76345 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * MODULES.html.sh: Add mkancestors.
76348         * modules/mkancesdirs: New module.
76349         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76350         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76351         The chdir-safer and afs files are now orphans; I'll remove them
76352         unless someone speaks up.
76353         Add lib/dirchownmod.c, lib/dirchownmod.h.
76354         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76355         Add lchown, mkancesdirs.
76356         (Maintainer): Add self.
76357
76358 2006-07-15  Karl Berry  <karl@gnu.org>
76359
76360         * gnulib-tool: help message wording/arrangement.
76361
76362 2006-07-14  Simon Josefsson  <jas@extundo.com>
76363
76364         * doc/gnulib.texi (Libtool and Windows): New section.
76365
76366 2006-07-12  Simon Josefsson  <jas@extundo.com>
76367
76368         * modules/gendocs (License): Fix license, approved by Karl.
76369
76370 2006-07-12  Eric Blake  <ebb9@byu.net>
76371
76372         * MODULES.html.sh: Add gendocs.
76373
76374 2006-07-11  Eric Blake  <ebb9@byu.net>
76375
76376         * modules/fdl: New module, to install doc/fdl.texi.
76377         * MODULES.html.sh: Add new section for documentation modules.
76378         * gnulib-tool: Avoid space-tab.
76379         (--doc-base): New option, to manage files from doc.
76380
76381 2006-07-11  Eric Blake  <ebb9@byu.net>
76382
76383         * m4/absolute-header.m4: Fix comments to match recent change.
76384
76385 2006-07-11  Eric Blake  <ebb9@byu.net>
76386
76387         * gnulib-tool: List --doc-base before --tests-base.
76388
76389 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76390
76391         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76392
76393 2006-07-11  Bruno Haible  <bruno@clisp.org>
76394
76395         * README: Mention where to put documentation.
76396
76397 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76398
76399         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76400
76401 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76402
76403         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76404         to stdint.m4.
76405
76406 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76409         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76410         "no/such/file/stdint.h" when there is no such file, so that
76411         the resulting C code can be parsed by dodgy compilers.
76412         Problems reported by Bob Proulx.
76413
76414 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76415
76416         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76417         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76418         macros into the GNU _D_EXACT_NAMLEN.
76419         * lib/savedir.c:  Likewise.
76420         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76421
76422 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76423         and Paul Eggert  <eggert@cs.ucla.edu>
76424
76425         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76426         * m4/savedir.m4:
76427         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76428         macros into the GNU _D_EXACT_NAMLEN.
76429
76430 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76431
76432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76433         around the absolute name, to work around a problem with the HP-UX
76434         11.23 native C compiler, reported by Bob Proulx.
76435
76436 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76437
76438         * doc/maintain.texi, make-stds.texi: Sync from
76439         <http://savannah.gnu.org/projects/gnustandards>.
76440
76441 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76444
76445 2006-07-09  Jim Meyering  <jim@meyering.net>
76446
76447         * m4/glob.m4: Remove a doubled word in a comment.
76448
76449 2006-07-09  Jim Meyering  <jim@meyering.net>
76450
76451         * lib/argp-pv.c: Remove a doubled word in a comment.
76452         * lib/check-version.c (check_version): Likewise.
76453         * lib/javacomp.c (compile_java_class): Likewise.
76454
76455 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76458         for the benefit of people using Autoconf 2.60.  If you want to
76459         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76460         (or m4/onceonly.m4, if pre-2.57) manually.
76461
76462 2006-07-08  Jim Meyering  <jim@meyering.net>
76463
76464         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76465         comment.
76466         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76467         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76468         comment.
76469
76470 2006-07-08  Jim Meyering  <jim@meyering.net>
76471
76472         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76473
76474 2006-07-07  Simon Josefsson  <jas@extundo.com>
76475
76476         * tests/test-crc.c: Change expected crc value, the test vector
76477         were probably computed using the old broken crc.c?
76478
76479 2006-07-06  Simon Josefsson  <jas@extundo.com>
76480
76481         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76482         now the canonical place for the M4 file).
76483
76484         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76485         from the sys_socket dependency now.
76486
76487         * modules/inet_pton (Files): Ditto.
76488
76489         * modules/inet_ntop (Files): Ditto.
76490
76491 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76492
76493         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76494         not gl_PREREQ_GETUSERSHELL.
76495
76496 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76497
76498         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76499         with only one argument, for Autoconf 2.60.
76500         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76501         expand to nothing, so add a shell command to avoid syntax error.
76502         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76503
76504 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76505
76506         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76507
76508 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76511         no longer needed.  Check for isblank decl.
76512         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76513         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76514         of existence.
76515
76516 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76517
76518         * lib/getloadavg.c: Use __VMS, not VMS.
76519         * lib/getopt.c: Likewise.
76520         * lib/getpagesize.h: Likewise.
76521         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76522         and probably does not work.
76523
76524 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         * lib/.cppi-disable: Add wcwidth.
76527         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76528         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76529         (ISGRAPH): Remove.  All uses changed to isgraph.
76530         (FOLD) [!defined _LIBC]: Remove special case.
76531         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76532         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76533         HAVE_ISBLANK.
76534         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76535         case.
76536
76537 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76538
76539         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76540         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76541         brackets.  Other minor changes to suppress some compiler
76542         warnings.
76543
76544 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76545         and Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76548         of invoking obsolescent AC_HEADER_DIRENT macro.
76549         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76550         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76551         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76552         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76553         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76554         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76555         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76556         * m4/readdir.m4: Remove; no longer needed.
76557
76558 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76559         and Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76562         Don't worry about this obsolete case any more.
76563         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76564         directories.
76565         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76566         worry about this obsolete case any more.
76567         * lib/fts.c: Likewise.
76568         * lib/getcwd.c: Likewise.
76569         * lib/glob.h: Likewise.
76570         * lib/savedir.c: Likewise.
76571
76572 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76575         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76576         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76577         needed.
76578         All uses removed.
76579         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76580         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76581         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76582         needed.
76583         * m4/getdate.m4 (gl_GETDATE): Likewise.
76584         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76585         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76586         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76587         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76588         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76589         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76590         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76591         needed.
76592
76593 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76594
76595         * lib/memcasecmp.c: Include <limits.h>.
76596         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76597         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76598         Don't assume isdigit succeeds only on '0' through '9'.
76599
76600 2006-07-05  Eric Blake  <ebb9@byu.net>
76601
76602         * modules/getaddrinfo (Depends-on): Add snprintf.
76603
76604 2006-07-05  Eric Blake  <ebb9@byu.net>
76605
76606         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76607         to avoid 'header present but could not be compiled' on cygwin.
76608
76609 2006-07-05  Eric Blake  <ebb9@byu.net>
76610
76611         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76612         missing from netdb.h.
76613         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76614
76615 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76616
76617         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76618         no longer needed.
76619         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76620         * m4/getdate.m4 (gl_GETDATE): Likewise.
76621         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76622         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76623         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76624         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76625         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76626
76627 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76628
76629         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76630         All uses of is_space replaced by isspace.
76631         * lib/exit.h: Don't talk about STDC_HEADERS.
76632         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76633         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76634         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76635         replaced by isprint etc.
76636         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76637         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76638         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76639         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76640         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76641         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76642
76643 2006-07-05  Bruno Haible  <bruno@clisp.org>
76644
76645         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76646         the function exists, before testing against AIX.
76647         Reported by Martin Lambers <marlam@marlam.de>.
76648
76649 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76650
76651         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76652         From Mark D. Baushke.
76653
76654 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76657         to the absolute name, not just one, to bypass Sun C 5.8's
76658         "warning: #include of /usr/include/... may be non-portable".
76659
76660 2006-07-04  Eric Blake  <ebb9@byu.net>
76661
76662         * modules/dirname-tests: New test module.
76663         * tests/test-dirname.c: New file, replacing dirname.c
76664         TEST_DIRNAME section that was recently deleted.
76665
76666 2006-07-04  Bruno Haible  <bruno@clisp.org>
76667
76668         Assume ANSI C header files and <ctype.h> functions.
76669         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76670         (mbsnwidth): Use isprint, iscntrl instead.
76671
76672 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76673
76674         Merge from coreutils.
76675         * MODULES.html.sh: Add xstrtold.
76676         * modules/xstrtold: New file.
76677         * modules/cycle-check (Files): Add lib/same-inode.h.
76678         * modules/dirname (Files): Add m4/double-slash-root.m4.
76679         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76680         * modules/mkdir-p (Files): Add lib/same-inode.h.
76681         * modules/same (Files): Add lib/same-inode.h.
76682
76683 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76686         This is to keep the terminology clean; POSIX talks about
76687         "absolute pathnames", not "full pathnames", but the GNU
76688         Coding Standards say to use "path" for something else;
76689         so use "absolute" to keep both sides happy.
76690         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76691         Set gl_absolute_header, not gl_full_header_path.
76692         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76693         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76694         All uses changed.
76695
76696         Merge from coreutils.
76697
76698         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76699
76700         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76701         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76702         want to require the building of c-strtod.o.
76703         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76704         needs -lm directly.
76705         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76706
76707         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76710         --as-needed option if available.  Problem reported by Albert Chin in
76711         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76712         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76713         cc merely issues a bunch of annoying warnings for --as-needed
76714         (this problem was reported by Bob Proulx).  Also, try linking with
76715         -lm to detect a bug in binutils 2.16 (this problem was reported
76716         by Ralf Wildenhues).
76717
76718         2006-06-18  Jim Meyering  <jim@meyering.net>
76719
76720         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76721         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76722         macro.
76723         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76724         also check for glibc-2.4's abort-inducing bug.
76725
76726         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76727         Low-probability clean-up should be to use rmdir to get rid of
76728         the just-created directory, not unlink.
76729
76730         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76731         configure fail, and request a bug report to inform us about it.
76732         Add a comment that, barring reports to the contrary, in 2007 we'll
76733         assume ftruncate is universally available.
76734
76735         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76738
76739         2006-03-12  Jim Meyering  <jim@meyering.net>
76740
76741         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76742         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76743         * m4/same.m4 (gl_SAME): Likewise.
76744         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76745
76746         2006-03-11  Eric Blake  <ebb9@byu.net>
76747
76748         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76749         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76750         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76751         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76752
76753 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76756         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76757         reported by Mark D. Baushke, one in
76758         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76759
76760         Merge from coreutils.
76761
76762         * lib/.cppi-disable: Add stdint_.h.
76763         * lib/.cvsignore: Add stdint.h.
76764
76765         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76768         both double and long double versions.
76769         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76770         * lib/xstrtold.c: New file.
76771         * lib/xstrtod.h (xstrtold): New decl.
76772
76773         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76774
76775         * lib/filemode.c (setst): Remove.
76776         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76777         (arguably) clearer, and the generated code is a bit smaller on my
76778         Debian GNU/Linux stable x86 host.
76779
76780         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76783         Assume that filemode.h includes sys/types.h and sys/stat.h.
76784         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76785         (ftypelet): Reorder to put common cases first, for efficiency.
76786         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76787         to do 'M'.
76788         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76789         of 10, for compatibility with FreeBSD.  All callers changed.
76790         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76791         types that can't be deduced solely from st_mode.  First arg is now a
76792         const pointer.
76793         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76794         (strmode): Renamed from mode_string.
76795         (filemodestring): New decl.
76796         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76797         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76798         needed.
76799         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76800
76801         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76802
76803         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76804         fsusage.h now does that.  Include fsusage.h first, to test interface.
76805         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76806         at most one method (the old code could have generated decls that
76807         didn't conform to C89, not that this was ever exercised).
76808         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76809
76810         2006-03-19  Jim Meyering  <jim@meyering.net>
76811
76812         Work even in a chroot where d_ino values for entries in "/"
76813         don't match the stat.st_ino values for the same names.
76814         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76815         number, iterate through all entries again, using lstat instead.
76816         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76817         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76818
76819         * lib/getcwd.c (__getcwd): Clarify a comment.
76820         Use memcpy in place of a call to strcpy.
76821
76822         2006-03-12  Jim Meyering  <jim@meyering.net>
76823
76824         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76825         matches that of the current directory (which we're about to chdir ".."
76826         out of), then save the dev-ino of the parent, instead.
76827
76828         * lib/same-inode.h (SAME_INODE): New file/macro.
76829         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76830         Include "same-inode.h", instead.
76831         * lib/same.c: Likewise.
76832         * lib/cycle-check.h: Include "same-inode.h".
76833         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76834         * lib/cycle-check.c (SAME_INODE): Remove definition.
76835         * lib/root-dev-ino.h: Include "same-inode.h".
76836
76837         2006-03-11  Eric Blake  <ebb9@byu.net>
76838
76839         * lib/same.c (same_name): s/base_name/last_component/
76840         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76841         * lib/filenamecat.c (file_name_concat): Likewise.
76842
76843         2006-03-11  Eric Blake  <ebb9@byu.net>,
76844                     Paul Eggert  <eggert@cs.ucla.edu>
76845
76846         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76847         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76848         drive prefix.
76849         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76850         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76851         (last_component): New method.
76852         * lib/dirname.c (dir_len): Determine when drive letters need a
76853         subsequent slash.  Preserve // when it is special.
76854         (dir_name): Don't append dot when drive letter is absolute.
76855         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76856         * lib/basename.c (base_name): New semantics - malloc the result.
76857         Preserve // when it is special.  Preserve relative files that look
76858         like drive letters.
76859         (base_len): Preserve // when it is special.
76860         (last_component): New method, similar to old base_name semantics.
76861         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76862         base_name.  Strip redundant slashes from ///.
76863
76864 2006-07-03  Jim Meyering  <jim@meyering.net>
76865
76866         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76867         macro is used before the first cycle_check call.
76868
76869 2006-07-03  Eric Blake  <ebb9@byu.net>
76870
76871         * modules/dirname (Depends-on): Add xstrndup.
76872
76873 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76876         test cases, so that config.log is a bit easier to follow.
76877
76878 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76879
76880         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76881         both are 64 bits, since this seems to be the tradition, and this
76882         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76883         we ever run into a host that prefers long long to long in this
76884         case, we'll need another configure-time test.  Problem reported by
76885         Jim Meyering.
76886
76887 2006-07-02  Eric Blake  <ebb9@byu.net>
76888
76889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76890
76891 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         * modules/inttypes (Depends-on): No longer depends on stdint.
76894         * modules/stdint (Description): Say more about assumptions.
76895         Say that the fast types might differ.  Say macros are used.
76896         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76897         (Makefile.am): Revise list of substituted symbols to match
76898         new stdint.m4.
76899         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76900         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76901         * tests/test-stdint.c (verify_same_types)
76902         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76903         the code conforms to C99/C89.
76904         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76905         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76906
76907 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76910         but fix a bug, by requiring at least 64 bits.
76911         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76912         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76913         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76914         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76915
76916         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76917         changes.  Make 2.59 a prerequisite.  Check and substitute for
76918         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76919         inttypes.h.  Do not use special include files; just use the
76920         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76921         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76922         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76923         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76924         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76925         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76926         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76927         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76928         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76929         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76930         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76931         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76932         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76933         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76934         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76935         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76936         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76937         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76938         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76939         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76940         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76941         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76942         not check for things that C99 does not require, e.g., int8_t.  If
76943         a test isn't needed unless <stdint.h> isn't working, and is
76944         unlikely to be needed for any other reason, then don't do it
76945         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76946         size_t, since we assume C89 freestanding at least.  Do not check
76947         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76948         the right thing even if the types are not defined.  Instead use:
76949         (gl_STDINT_TYPE_PROPERTIES): New macro.
76950         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76951         testing whether <sys/types.h> clashes, as Autoconf does this for
76952         us now.  All uses removed.
76953         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76954         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76955         (gl_CHECK_TYPE_SAME):
76956         Remove; no longer needed.
76957         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76958         exists, since we'll return 0 anyway in that case.
76959         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76960
76961 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76964         possible collision with system files.
76965         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76966         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76967         WCHAR_MIN and WCHAR_MAX in this case.
76968         (<stddef.h>): Do not include; no longer needed.
76969         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76970         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76971         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76972         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76973         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76974         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76975         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76976         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76977         !defined(__c99))]: Include in this case too, since it's harmless
76978         now.
76979         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76980         dangerous to do so.
76981         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76982         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76983         (_STDINT_MIN, _STDINT_MAX): New macros.
76984         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76985         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76986         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76987         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76988         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76989         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76990         macros, not typedefs; this simplifies things quite a bit.
76991         Use long int for all types narrower than int64_t.
76992         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76993         Define in terms of long long int or int64_t or long int,
76994         not int64_t or int32_t.  This saves some compile-time testing.
76995         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76996         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76997         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76998         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76999         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77000         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77001         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77002         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77003         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77004         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77005         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77006         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77007         undef any previous version and define our own version, for
77008         simplicity and consistency with the new macros for types.
77009         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77010         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77011         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77012         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77013         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77014         @WINT_T_SUFFIX@ to keep things simple here.
77015         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77016         Simplify by assuming typical 8/16/32/64 host, since we're
77017         already doing that elsewhere anyway.
77018         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77019         and assume long long int is 64 bits if available.  This
77020         speeds up 'configure'.
77021
77022 2006-07-01  Eric Blake  <ebb9@byu.net>
77023
77024         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77025         Reported by Andreas Buening.
77026
77027 2006-07-01  Eric Blake  <ebb9@byu.net>
77028
77029         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77030
77031 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77032
77033         * lib/getaddrinfo.c: fixed typo
77034
77035 2006-06-29  Jim Meyering  <jim@meyering.net>
77036
77037         * modules/strftime (Maintainer): Add my name, since with the
77038         FPRINTFTIME changes strftime.c has forked from glibc.
77039
77040 2006-06-29  Eric Blake  <ebb9@byu.net>
77041
77042         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77043
77044 2006-06-29  Eric Blake  <ebb9@byu.net>
77045
77046         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77047
77048 2006-06-29  Eric Blake  <ebb9@byu.net>
77049
77050         * lib/stat_.h: New file.
77051
77052 2006-06-29  Eric Blake  <ebb9@byu.net>
77053
77054         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77055         unused static function.
77056
77057 2006-06-29  Eric Blake  <ebb9@byu.net>
77058
77059         * doc/functions.texi (Function Portability): Document missing lstat
77060         on mingw.
77061
77062 2006-06-29  Eric Blake  <ebb9@byu.net>
77063
77064         * MODULES.html.sh: Add sys_stat.
77065         * modules/sys_stat: New module.
77066         * modules/mkstemp (Depends-on): Add sys_stat.
77067
77068 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77069
77070         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77071
77072 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77073
77074         * m4/c-bs-a.m4: Removed.
77075
77076 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77077
77078         * lib/strftime.c: Assume strftime() exists.
77079
77080 2006-06-29  Derek Price  <derek@ximbiot.com>
77081
77082         * modules/c-bs-a: Removed - \a is C89.
77083         * MODULES.html.sh: Remove c-bs-a.
77084
77085 2006-06-29  Bruno Haible  <bruno@clisp.org>
77086
77087         * modules/wcwidth (License): Change to LGPL.
77088
77089 2006-06-28  Simon Josefsson  <jas@extundo.com>
77090
77091         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77092         on _WIN32.
77093
77094         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77095         getnameinfo.
77096
77097 2006-06-28  Simon Josefsson  <jas@extundo.com>
77098
77099         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77100
77101 2006-06-28  Simon Josefsson  <jas@extundo.com>
77102
77103         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77104         functions there.  It will succeed on Windows XP, but on Windows
77105         2000 and (presumably) earlier, it will fail, and use the internal
77106         re-implementation.
77107         (use_win32_p): New function.
77108         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77109         Support AI_NUMERICSERV to disable getservbyname.
77110         (getnameinfo): New function, only supports
77111         NI_NUMERICHOST|NI_NUMERICSERV for now.
77112
77113         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77114         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77115         getnameinfo.
77116
77117 2006-06-28  Eric Blake  <ebb9@byu.net>
77118
77119         * modules/wcwidth: New file.
77120         * modules/mbchar (Depends-on): Add wcwidth.
77121         * modules/mbswidth (Depends-on): Add wcwidth.
77122         * MODULES.html.sh: Add wcwidth.
77123
77124 2006-06-28  Eric Blake  <ebb9@byu.net>
77125
77126         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77128
77129 2006-06-28  Eric Blake  <ebb9@byu.net>
77130
77131         * lib/xvasprintf.h: Fix comments.
77132
77133 2006-06-28  Eric Blake  <ebb9@byu.net>
77134
77135         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77136         * lib/mbswidth.c (wcwidth): Move from here...
77137         * lib/wcwidth.h: ...to this new file.
77138
77139 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77140
77141         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77142
77143         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77144         it's obsolete.
77145         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77146
77147 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77148
77149         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77150         Autoconf 2.60 says this stuff was obsolete.
77151
77152 2006-06-28  Bruno Haible  <bruno@clisp.org>
77153
77154         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77155
77156 2006-06-28  Bruno Haible  <bruno@clisp.org>
77157
77158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77159         gt_TYPE_WCHAR_T.
77160
77161 2006-06-28  Bruno Haible  <bruno@clisp.org>
77162
77163         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77164         declaration for wcwidth.
77165         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77166
77167 2006-06-28  Bruno Haible  <bruno@clisp.org>
77168
77169         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77170         (mkdir): Define using _mkdir.
77171
77172 2006-06-28  Bruno Haible  <bruno@clisp.org>
77173
77174         * lib/getaddrinfo.h: Fix POSIX URL.
77175         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77176         _WIN32.
77177         (use_win32_p): Make static.
77178         (getaddrinfo): Reject service name if it is empty or does not consist
77179         solely of decimal digits, or if its value is > 65535.
77180         (getnameinfo): Remove useless casts.
77181
77182 2006-06-27  Simon Josefsson  <jas@extundo.com>
77183
77184         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77185         Eggert and Martin Lambers.
77186
77187 2006-06-27  Simon Josefsson  <jas@extundo.com>
77188
77189         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77190         Eggert and Martin Lambers.
77191
77192 2006-06-27  Bruno Haible  <bruno@clisp.org>
77193
77194         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77195         result to 0, not to empty.
77196         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77197
77198 2006-06-27  Bruno Haible  <bruno@clisp.org>
77199
77200         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77201
77202 2006-06-26  Simon Josefsson  <jas@extundo.com>
77203
77204         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77205         present.
77206
77207 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77210         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77211         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77212
77213 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77214
77215         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77216
77217 2006-06-26  Bruno Haible  <bruno@clisp.org>
77218
77219         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77220
77221 2006-06-26  Bruno Haible  <bruno@clisp.org>
77222
77223         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77224
77225 2006-06-26  Bruno Haible  <bruno@clisp.org>
77226
77227         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77228         SGI C compiler in pre-C99 mode.
77229         Suggested by Mark D. Baushke and Larry Jones.
77230
77231 2006-06-26  Bruno Haible  <bruno@clisp.org>
77232
77233         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77234         WCHAR_MAX.
77235         Reported by Mark D. Baushke and Larry Jones.
77236
77237 2006-06-26  Bruno Haible  <bruno@clisp.org>
77238
77239         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77240         in pre-C99 mode.
77241         Suggested by Mark D. Baushke and Larry Jones.
77242
77243 2006-06-23  Simon Josefsson  <jas@extundo.com>
77244             Bruno Haible  <bruno@clisp.org>
77245
77246         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77247         Emit mostlyclean-local rule.
77248         (func_emit_tests_Makefile_am): Likewise.
77249         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77250
77251 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77252
77253         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77254
77255 2006-06-23  Bruno Haible  <bruno@clisp.org>
77256
77257         * tests/test-stdint.c: Update to match ISO C 99 Technical
77258         Corrigendum 1.
77259
77260 2006-06-23  Bruno Haible  <bruno@clisp.org>
77261
77262         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77263
77264 2006-06-23  Bruno Haible  <bruno@clisp.org>
77265
77266         * lib/stdint_.h: Treat IRIX like OpenBSD.
77267
77268 2006-06-23  Bruno Haible  <bruno@clisp.org>
77269
77270         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77271         ISO C 99 Technical Corrigendum 1.
77272
77273 2006-06-22  Simon Josefsson  <jas@extundo.com>
77274
77275         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77276         MinGW.
77277
77278 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77281         needed.  Some compiler complained about some of them.  Problem reported
77282         by Larry Jones in
77283         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77284
77285 2006-06-21  Simon Josefsson  <jas@extundo.com>
77286
77287         * tests/test-getaddrinfo.c: New file.
77288
77289         * modules/getaddrinfo-tests: New file.
77290
77291         * MODULES.html.sh: Add inet_pton.
77292
77293         * modules/inet_pton: New file.
77294
77295 2006-06-21  Simon Josefsson  <jas@extundo.com>
77296
77297         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77298         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77299         of using the (limited) gnulib implementation on Windows XP.
77300
77301         * m4/inet_pton.m4: New file.
77302
77303 2006-06-21  Simon Josefsson  <jas@extundo.com>
77304
77305         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77306         variable.
77307
77308         * lib/socket_.h: Don't define WINVER.
77309
77310         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77311         slightly modified to work in gnulib.
77312
77313 2006-06-21  Simon Josefsson  <jas@extundo.com>
77314
77315         * doc/gnulib.texi (Windows sockets): Add.
77316
77317 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * lib/read-file.c (fread_file): Start with buffer allocation of
77320         0 bytes rather than 1 byte; this simplifies the code.
77321         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77322         code to free buffer and save/restore errno.
77323         (internal_read_file): Remove unused local.
77324
77325 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77328         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77329         Problem reported by Denis Excoffier in
77330         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77331
77332 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77333
77334         * modules/sys_socket, modules/socklen: Include sys/types since
77335         FreeBSD 4.x's sys/socket.h needs it.
77336
77337 2006-06-19  Simon Josefsson  <jas@extundo.com>
77338
77339         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77340
77341 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77342
77343         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77344
77345 2006-06-19  Bruno Haible  <bruno@clisp.org>
77346
77347         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77348         and FULL_PATH_INTTYPES_H in angle brackets.
77349         Reported by Mark D. Baushke <mdb@gnu.org>.
77350
77351 2006-06-17  Eric Blake  <ebb9@byu.net>
77352
77353         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77354         errno.
77355
77356 2006-06-17  Bruno Haible  <bruno@clisp.org>
77357
77358         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77359         <sys/inttypes.h>.
77360
77361 2006-06-17  Bruno Haible  <bruno@clisp.org>
77362
77363         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77364         whether errno is declared. Assume <errno.h> declares errno.
77365
77366 2006-06-17  Bruno Haible  <bruno@clisp.org>
77367
77368         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77369
77370 2006-06-17  Bruno Haible  <bruno@clisp.org>
77371
77372         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77373         problem on Solaris 2.5.1.
77374
77375 2006-06-16  Eric Blake  <ebb9@byu.net>
77376
77377         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77378         * lib/unicodeio.c [!defined errno]: Likewise.
77379         * lib/strtol.c [!defined errno]: Likewise.
77380         * lib/strtod.c [!defined errno]: Likewise.
77381
77382 2006-06-15  Eric Blake  <ebb9@byu.net>
77383
77384         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77385
77386 2006-06-15  Eric Blake  <ebb9@byu.net>
77387
77388         * config/srclist.txt (ssize_t.m4): Lose sync.
77389
77390 2006-06-15  Bruno Haible  <bruno@clisp.org>
77391
77392         * modules/stdint (Files): Include m4/full-header-path.m4,
77393         m4/size_max.m4, m4/wchar_t.m4.
77394         (Makefile.am): Many more substitutions.
77395         * modules/stdint-tests: New file.
77396         * tests/test-stdint.c: New file.
77397
77398 2006-06-15  Bruno Haible  <bruno@clisp.org>
77399
77400         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77401         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77402         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77403         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77404         gl_CHECK_TYPE_SAME): New macros.
77405
77406 2006-06-15  Bruno Haible  <bruno@clisp.org>
77407
77408         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77409
77410 2006-06-15  Bruno Haible  <bruno@clisp.org>
77411
77412         * lib/stdint_.h: Rewritten to be fully auto-configured.
77413         Fixes bug on HP-UX/IA64.
77414
77415 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77416
77417         * lib/getdate.y (__attribute__): Don't define if already defined.
77418         Problem reported by Larry Jones.
77419         * lib/utimens.c (__attribute__): Likewise.
77420
77421 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77424         reported by Andreas Schwab.
77425
77426 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77427             Bruno Haible  <bruno@clisp.org>
77428
77429         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77430         check for the declaration of strnlen and a run test that exposes the
77431         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77432         rpl_strndup.
77433
77434 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77435             Bruno Haible  <bruno@clisp.org>
77436
77437         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77438
77439 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77440
77441         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77442         compile test, for Tru64 4.0D.
77443
77444 2006-05-28  Karl Berry  <karl@gnu.org>
77445
77446         * config/srclist.txt (printf-args.c): lose sync.
77447
77448 2006-05-26  Martin Lambers  <marlam@marlam.de>
77449
77450         * lib/getpass.c: Updates the test for the native W32 API, and adds
77451         missing includes, thus fixing compilation warnings.
77452
77453 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77454
77455         * lib/exclude.c (exclude_fnmatch): New function.
77456         (excluded_file_name): Call exclude_fnmatch.
77457         * lib/exclude.h (excluded_file_name): New prototype
77458
77459 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * lib/tempname.c (small_open, large_open): New macros.
77462         (__open, __open64) [!_LIBC]: Remove.
77463         (__gen_tempname): Use small_open and large_open instead of __open
77464         and __open64.  This fixes a portability bug on HP-UX 11.11i
77465         reported by Simon Wing-Tang in
77466         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77467
77468 2006-05-24  Bruno Haible  <bruno@clisp.org>
77469
77470         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77471         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77472         Reported by Thorsten Maerz <torte@netztorte.de> via
77473         Aaron Stone <aaron@serendipity.cx>.
77474
77475 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77476
77477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77478         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77479         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77480         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77481         not really conditional on the cache.
77482         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77483
77484 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77487         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77488         (my_usleep): Don't mishandle maximum value.
77489
77490 2006-05-19  Jim Meyering  <jim@meyering.net>
77491
77492         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77493
77494 2006-05-17  Bruno Haible  <bruno@clisp.org>
77495
77496         Cygwin portability.
77497         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77498
77499 2006-05-17  Bruno Haible  <bruno@clisp.org>
77500
77501         * lib/stdint_.h: Fix recognition of Cygwin.
77502
77503 2006-05-15  Bruno Haible  <bruno@clisp.org>
77504
77505         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77506         on libtool patch by Ralf Wildenhues.
77507
77508 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77509
77510         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77511         test for C99 conformance; (bool) 0.5 is an integer constant
77512         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77513         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77514
77515 2006-05-11  Simon Josefsson  <jas@extundo.com>
77516
77517         * m4/xvasprintf.m4: Fix obvious typo.
77518
77519 2006-05-11  Jim Meyering  <jim@meyering.net>
77520
77521         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77522         James Lemley.
77523
77524 2006-05-10  Simon Josefsson  <jas@extundo.com>
77525
77526         * lib/md4.c: Typo fix, update copyright years.
77527         (K1, K2): Don't use L because it turn computations into 64-bit on
77528         64-bit platforms.
77529
77530 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77533         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77534         unwanted sign propagation, e.g., on hosts with 64-bit int.
77535         There still are some problems with reeelly weird theoretical hosts
77536         (e.g., 33-bit int) but it's not worth worrying about now.
77537         * lib/sha1.c (rol): Likewise.
77538         (K1, K2, K3, K4): Remove unnecessary L suffix.
77539
77540 2006-05-10  Bruno Haible  <bruno@clisp.org>
77541
77542         * lib/des.c: Cast to avoid warnings.
77543
77544 2006-05-09  Bruno Haible  <bruno@clisp.org>
77545
77546         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77547         (Depends-on): Depend also on xsize, stdarg.
77548         (configure.ac): Add gl_XVASPRINTF.
77549
77550 2006-05-09  Bruno Haible  <bruno@clisp.org>
77551
77552         * m4/xvasprintf.m4: New file.
77553
77554 2006-05-09  Bruno Haible  <bruno@clisp.org>
77555
77556         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77557         (EOVERFLOW): Define fallback value.
77558         (xstrcat): New function.
77559         (xvasprintf): Recognize the special case of a string concatenation.
77560
77561 2006-05-08  Eric Blake  <ebb9@byu.net>
77562
77563         * gnulib-tool (func_version): Base copyright year on CVS date.
77564         (func_emit_copyright_notice): New function.
77565         (func_emit_lib_Makefile_am): Use it.
77566         (func_emit_tests_Makefile_am): Likewise.
77567         (func_import): Likewise.
77568
77569 2006-05-08  Bruno Haible  <bruno@clisp.org>
77570
77571         * modules/stdarg: New file.
77572         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77573
77574 2006-05-08  Bruno Haible  <bruno@clisp.org>
77575
77576         * m4/stdarg.m4: New file, from GNU gettext.
77577
77578 2006-05-08  Bruno Haible  <bruno@clisp.org>
77579
77580         * config/srclist.txt (build-aux/config.rpath): different from latest
77581         release.
77582
77583 2006-05-08  Bruno Haible  <bruno@clisp.org>
77584
77585         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77586
77587 2006-05-05  Jim Meyering  <jim@meyering.net>
77588
77589         * m4/warning.m4: New file, derived from bison's file by the same name.
77590
77591 2006-05-03  Bruno Haible  <bruno@clisp.org>
77592
77593         * lib/stdint_.h: Shorter URL.
77594         * lib/inttypes.h: Likewise.
77595
77596 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77599
77600 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         * lib/verify.h: Document the internals better.  Most of this change
77603         was written by Bruno Haible.
77604
77605 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * doc/verify.texi: New file, partly based on a proposal by
77608         Bruno Haible.
77609
77610 2006-05-02  Bruno Haible  <bruno@clisp.org>
77611
77612         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77613         test from here...
77614         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77615
77616 2006-04-29  Bruno Haible  <bruno@clisp.org>
77617
77618         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77619         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77620
77621 2006-04-29  Bruno Haible  <bruno@clisp.org>
77622
77623         * gnulib-tool: Make --update option actually work.
77624
77625 2006-04-29  Bruno Haible  <bruno@clisp.org>
77626
77627         * doc/gcd.texi: New file.
77628         * doc/gnulib.texi: Include it.
77629
77630 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         * lib/getdate.y (get_date): When adding relative date, start with the
77633         initial time, not with the result of the first mktime call.
77634
77635 2006-04-25  Bruno Haible  <bruno@clisp.org>
77636
77637         * gnulib-tool (func_import): Output the include directives in three
77638         blocks, sorted separately.
77639         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77640
77641 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77644         to define main with arguments, for C++.  Reported by Eric Blake.
77645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77646         Prefer 'int main ()' to 'int main (void)', for C++.
77647         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77648         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77649         for 'main', for C99 and C++.
77650
77651 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77654         Don't assume that exit status -1 is valid.
77655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77656         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77657         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77658         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77659         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77660         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77661         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77662         functions can be used without declaring them, or that you can
77663         exit with status -1.
77664         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77665
77666 2006-04-24  Karl Berry  <karl@gnu.org>
77667
77668         * config/srclist.txt (longdouble.m4): sync lost.
77669
77670 2006-04-24  Eric Blake  <ebb9@byu.net>
77671
77672         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77673
77674 2006-04-24  Bruno Haible  <bruno@clisp.org>
77675
77676         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77677         poll() implementation in AIX.
77678         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77679
77680 2006-04-24  Bruno Haible  <bruno@clisp.org>
77681
77682         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77683         assigned exactly once.
77684
77685 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77686             Bruno Haible  <bruno@clisp.org>
77687
77688         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77689         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77690         for AM_CPPFLAGS.
77691
77692 2006-04-23  Bruno Haible  <bruno@clisp.org>
77693
77694         * modules/copy-file: Depend on unistd.
77695         * modules/execute: Likewise.
77696         * modules/fatal-signal: Likewise.
77697         * modules/findprog: Likewise.
77698         * modules/mkdtemp : Likewise.
77699         * modules/pipe: Likewise.
77700         * modules/wait-process: Likewise.
77701
77702 2006-04-23  Bruno Haible  <bruno@clisp.org>
77703
77704         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77705         condition was already detected.
77706         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77707
77708 2006-04-23  Bruno Haible  <bruno@clisp.org>
77709
77710         * lib/copy-file.c: Include <unistd.h> unconditionally.
77711         * lib/execute.c: Likewise.
77712         * lib/fatal-signal.c: Likewise.
77713         * lib/findprog.c: Likewise.
77714         * lib/mkdtemp.c: Likewise.
77715         * lib/pipe.h: Likewise.
77716         * lib/pipe.c: Likewise.
77717         * lib/wait-process.h: Likewise.
77718
77719 2006-04-23  Bruno Haible  <bruno@clisp.org>
77720
77721         * gnulib-tool (func_usage): Fix --import description. Document
77722         --update.
77723         (func_import): Create temporary file in a temporary directory, if
77724         --dry-run is specified. Silence errors from 'grep' when there are no
77725         m4 files in $m4dir.
77726         (func_create_testdir): Silence errors from 'grep' when there are no
77727         m4 files in $m4dir.
77728         Reported by Karl Berry <karl@freefriends.org>.
77729
77730 2006-04-20  Bruno Haible  <bruno@clisp.org>
77731
77732         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77733         one argument, so that the code will be portable to Autoconf 2.60.
77734         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77735         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77736         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77737
77738 2006-04-19  Derek Price  <derek@ximbiot.com>
77739             Eric Blake  <ebb9@byu.net>
77740
77741         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77742         rather than "/full/path.h".  Update comment to match.  Shorten &
77743         generalize m4_translit call via AS_TR_CPP.
77744
77745 2006-04-19  Derek Price  <derek@ximbiot.com>
77746             Eric Blake  <ebb9@byu.net>
77747
77748         * lib/inttypes.h: Correct grammar in comment.
77749
77750 2006-04-18  Derek Price  <derek@ximbiot.com>
77751             Paul Eggert  <eggert@cs.ucla.edu>
77752
77753         * modules/inttypes: New file.
77754         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77755
77756 2006-04-18  Derek Price  <derek@ximbiot.com>
77757             Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77760         New files.
77761
77762 2006-04-18  Derek Price  <derek@ximbiot.com>
77763             Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * lib/inttypes.h: New file.
77766         * lib/strtoimax.c: Assume <inttypes.h>.
77767
77768 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77771         isn't mounted.  Problem reported by Kir Kolyshkin.
77772
77773 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77776         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77777         Derek R. Price.
77778         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77779         implementation.
77780
77781 2006-04-12  Eric Blake  <ebb9@byu.net>
77782
77783         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77784         is now done automatically by the corresponding Autoconf macro.
77785
77786 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77789         time_r.h.
77790
77791 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         Merge regex changes from libc, removing some of our
77794         POSIX-conformance changes that were rejected and redoing them in a
77795         less-intrusive way.
77796
77797         * lib/regcomp.c (re_compile_internal, init_dfa):
77798         Length arg is now size_t, not Idx.  All uses changed.
77799         (peek_token): Forward decl now says internal_function.
77800         (__re_error_msgid, __re_error_msgid_idx):
77801         Now static rather than extern with attribute_hidden.
77802         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77803         For some reason libc prefers K&R style defns for external functions.
77804         (regerror) [!defined _LIBC]: Likewise.
77805         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77806         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77807         (build_range_exp, build_collating_symbol):
77808         Use K&R-style defn.
77809         (re_compile_fastmap): Use '\0' to memset, not 0.
77810         (utf8_sb_map): Make the calculations more obvious.
77811         (init_dfa, parse_bracket_exp, build_charclass_op):
77812         Call calloc and cast result, as glibc does.
77813         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77814         (build_range_exp, build_collating_symbol):
77815         Now internal functions.
77816
77817         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77818
77819         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77820         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77821         Don't depend on VMS; depend on __VMS instead, for POSIX
77822         namespace cleanness.
77823         (regoff_t): Define to ssize_t, not long int.
77824
77825         Remove the REG_ macros named below.  Instead, make the old names
77826         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77827         __USE_GNU_REGEX.
77828         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77829         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77830         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77831         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77832         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77833         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77834         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77835         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77836         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77837         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77838         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77839         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77840         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77841         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77842         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77843         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77844         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77845         (REG_NREGS):
77846         Remove.  All uses replaced by the old RE_* names.
77847         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77848         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77849         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77850         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77851         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77852         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77853         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77854         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77855         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77856         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77857         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77858         Don't bother having these macros be independent of each others'
77859         values, since they no longer exist in the POSIX name space.
77860
77861         Rename the following member names back to their old names,
77862         unless !__USE_GNU_REGEX.  All uses changed back.
77863         (buffer): Renamed from re_buffer.
77864         (allocated): Renamed from re_allocated.
77865         (used): Renamed from re_used.
77866         (syntax): Renamed from re_syntax.
77867         (fastmap): Renamed from re_fastmap.
77868         (translate): Renamed from re_translate.
77869         (can_be_null): Renamed from re_can_be_null.
77870         (regs_allocated): Renamed from re_regs_allocated.
77871         (fastmap_accurate): Renamed from re_fastmap_accurate.
77872         (no_sub): Renamed from re_no_sub.
77873         (not_bol): Renamed from re_not_bol.
77874         (not_eol): Renamed from re_not_eol.
77875         (newline_anchor): Renamed from re_newline_anchor.
77876         (num_regs): Renamed from rm_num_regs.
77877         (start): Renamed from rm_start.
77878         (end): Renamed from rm_end.
77879
77880         (free_state): Move up a bit.
77881
77882         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77883         #define to be empty.
77884         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77885         when that is what is intended.
77886         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77887         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77888         (MAX): New macro.
77889         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77890         All uses changed back to re_malloc, etc.  It's now the caller's
77891         responsibility to check for overflow; all callers changed.
77892         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77893         (re_x2nrealloc): Remove.
77894         (free_state): Remove decl.
77895
77896         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77897         (re_set_registers, re_exec):
77898         Use K&R-style defn.
77899
77900         2006-01-31  Roland McGrath  <roland@redhat.com>
77901
77902         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77903         Reported by Mike Frysinger <vapier@gentoo.org>.
77904
77905         2006-01-15  Andreas Jaeger  <aj@suse.de>
77906
77907         [BZ #1950]
77908         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77909         build_wcs_upper_buffer change.
77910         (build_wcs_upper_buffer): Change return type.
77911
77912         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77913
77914         * lib/regex_internal.h: Include <stdint.h> if available.
77915
77916         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77917
77918         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77919
77920         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77921
77922         * lib/regcomp.c: Adjust for changed secondary hash function.
77923
77924         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77925
77926         * lib/regex.h: Pretty printing.
77927         Clean up namespace a bit.
77928
77929         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77930
77931         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77932         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77933
77934         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77935                     Ulrich Drepper  <drepper@redhat.com>
77936
77937         [BZ #1302]
77938         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77939         changed.
77940         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77941
77942         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77943
77944         [BZ #281]
77945         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77946         * lib/regcomp.c: Remove unnecessary uses of
77947         unsigned RE_TRANSLATE_TYPE.
77948         * lib/regex_internal.h: Likewise.
77949         * lib/regex_internal.c: Likewise.
77950         * lib/regexec.c: Likewise.
77951         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77952
77953         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77954
77955         * lib/regexec.c (find_recover_state): Remove unnecessary
77956         initialization.
77957         (transit_state_bkref): Make DFA a const pointer.
77958         (get_subexp): Likewise.
77959         (check_arrival): Likewise.
77960         (update_cur_sifted_state): Likewise.
77961         (re_search_internal): Likewise.
77962         (prune_impossible_nodes): Likewise.
77963         (acquire_init_state_context): Likewise.
77964         (proceed_next_node): Likewise.
77965         (set_regs): Likewise.
77966         (free_fail_stack_return): Likewise.
77967         (check_arrival_expand_ecl): Mark DFA parameter as const.
77968         (check_arrival_expand_ecl_sub): Likewise.
77969         (check_subexp_limits): Likewise.
77970         (sub_epsilon_src_nodes):  Likewise.
77971         (add_epsilon_src_nodes):  Likewise.
77972         (merge_state_array): Likewise.
77973         (update_regs): Likewise.
77974         (build_trtable): Likewise.
77975         (sift_states_backward): Mark MCTX parameter as const.
77976         (build_sifted_states): Likewise.
77977         (update_cur_sifted_state): Likewise.
77978         (sift_states_mkref): Likewise.
77979         (check_arrival_expand_ecl): Mark eclosure as const.
77980         (check_dst_limits_calc_pos_1): Likewise.
77981         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77982         pointer.
77983
77984         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77985
77986         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77987         (transit_state_sb): Likewise.
77988         (transit_state_mb): Likewise.
77989         (sift_states_iter_mb): Likewise.
77990         (check_arrival_add_next_nodes): Likewise.
77991         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77992         [_LIBC] (re_search_2_stub): Use mempcpy.
77993
77994         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77995         mbrtowc for very simple UTF-8 case.
77996
77997         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77998         a pointer-to-const.
77999         (re_acquire_state_context): Likewise.
78000         * lib/regex_internal.h: Adjust prototypes.
78001
78002         * lib/regex.c: Prevent using C++ compilers.
78003
78004         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78005         (re_acquire_state_context): Likewise.
78006
78007 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         * modules/regex (Depends-on): Add ssize_t.
78010
78011 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78012
78013         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78014         translation table.
78015
78016 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78019
78020 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78021             Bruno Haible  <bruno@clisp.org>
78022
78023         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78024         <sys/types.h> and <inttypes.h>.
78025
78026 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78027
78028         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78029         `__error_t_defined', so argp.h will not typedef the former.
78030
78031 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78032
78033         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78034         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78035         glibc names.  Even if glibc is changed to conform to POSIX, the
78036         traditional names will be available anyway, since regex depends on
78037         the extensions module.  Also, fix a longstanding typo in the
78038         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78039         reported by Emanuele Giaquinta.  Also, change sense of cached
78040         variable, so that the message makes sense.
78041
78042 2006-03-24  Simon Josefsson  <jas@extundo.com>
78043
78044         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78045         including some doc fixes.
78046         (base64_encode_alloc): Fix +1 bug on allocation failures.
78047
78048 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78049
78050         * lib/base64.c (base64_encode): Do not read past end of array with
78051         unsanitized input on systems with CHAR_BIT > 8.
78052
78053 2006-03-24  Eric Blake  <ebb9@byu.net>
78054
78055         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78056
78057 2006-03-22  Karl Berry  <karl@gnu.org>
78058
78059         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78060         * config/srclistvars.sh (COREUTILS): new var.
78061
78062 2006-03-17  Jim Meyering  <jim@meyering.net>
78063
78064         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78065         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78066
78067 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78068
78069         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78070         no longer needs it.  Instead, check that regoff_t is as least
78071         as wide as ptrdiff_t.
78072
78073         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78074         so that our regex.h stays compatible with the installed regex.
78075         This is helpful for installers who configure --without-included-regex.
78076         Problem reported by Emanuele Giaquinta.
78077
78078 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78079
78080         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78081         Typedef to long int, not to off_, as POSIX will likely change
78082         in that direction.
78083
78084 2006-03-15  Eric Blake  <ebb9@byu.net>
78085
78086         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78087
78088 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78089
78090         * lib/argp-help.c (validate_uparams): Fix typo
78091         * lib/argp-parse.c (argp_default_options): Consistently begin help
78092         messages with a lowercase letter.
78093
78094 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78097         overrun buffers and shouldn't be used (much as gets shouldn't be
78098         used).
78099         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78100
78101 2006-03-08  Simon Josefsson  <jas@extundo.com>
78102
78103         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78104         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78105
78106 2006-03-08  Simon Josefsson  <jas@extundo.com>
78107
78108         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78109         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78110
78111 2006-03-08  Simon Josefsson  <jas@extundo.com>
78112
78113         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78114         signal that configure disabled the device.
78115
78116 2006-03-08  Simon Josefsson  <jas@extundo.com>
78117
78118         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78119         languages.
78120
78121 2006-03-07  Simon Josefsson  <jas@extundo.com>
78122
78123         * modules/getopt (Depends-on): Add unistd.
78124
78125         * modules/unistd: New file.
78126
78127 2006-03-07  Simon Josefsson  <jas@extundo.com>
78128
78129         * modules/gc-random: New file.
78130
78131 2006-03-07  Simon Josefsson  <jas@extundo.com>
78132
78133         * m4/unistd_h.m4: New file.
78134
78135 2006-03-07  Simon Josefsson  <jas@extundo.com>
78136
78137         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78138         test to be side-effect free by storing the result in the cache
78139         variable gl_cv_lib_readline, and moving the assignment of
78140         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78141         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78142
78143 2006-03-07  Simon Josefsson  <jas@extundo.com>
78144
78145         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78146         error on missing devices (the functions will return an error).
78147
78148         * m4/gc.m4: Move random stuff to gc-random.m4
78149
78150 2006-03-07  Simon Josefsson  <jas@extundo.com>
78151
78152         * lib/unistd_.h: New file.
78153
78154 2006-03-07  Simon Josefsson  <jas@extundo.com>
78155
78156         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78157
78158 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78161         Problem reported by Juan Manuel Guerrero.
78162
78163 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78166         the unistd module.
78167         * lib/getlogin_r.c: Likewise.
78168         * lib/getlogin_r.h: Likewise.
78169         * lib/glob.c: Likewise.
78170         * lib/pagealign_alloc.c: Likewise.
78171         * lib/unistd_.h: Remove; no longer needed.
78172
78173 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78176         Add unistd.
78177         * modules/c-stack (Depends-on): Add unistd.
78178         * modules/getlogin_r: Likewise.
78179         * modules/glob: Likewise.
78180         * modules/pagealign_alloc: Likewise.
78181         * modules/unistd (Files): Remove lib/unistd_.h.
78182         (EXTRA_DIST): Remove.
78183         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78184         need unistd_.h.
78185         (MOSTLYCLEANFILES): Remove unistd.h-t.
78186
78187 2006-03-03  Simon Josefsson  <jas@extundo.com>
78188
78189         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78190
78191 2006-03-03  Simon Josefsson  <jas@extundo.com>
78192
78193         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78194         libidn and bison.
78195
78196 2006-03-03  Simon Josefsson  <jas@extundo.com>
78197
78198         * build-aux/maint.mk: Add indent target.
78199
78200 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78201
78202         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78203         our replacement poll.h in any case, to avoid a differing
78204         declaration from a system header.  Seen on AIX.
78205
78206 2006-03-01  Simon Josefsson  <jas@extundo.com>
78207
78208         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78209         <kasal@ucw.cz>.
78210
78211 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78212
78213         * modules/gettime (Depends-on): Add extensions module.
78214         * modules/nanosleep (Depends-on): Likewise.
78215         * modules/settime (Depends-on): Likewise.
78216
78217 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78220         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78221         pedantically.
78222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78223         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78224
78225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78226         not "==".  Reported by Ralf Wildenhues.
78227
78228 2006-03-01  Karl Berry  <karl@gnu.org>
78229
78230         * doc/Copyright/request-*: new files, synced from gnuorg.
78231
78232 2006-03-01  Karl Berry  <karl@gnu.org>
78233
78234         * config/srclist.txt (Copyright/*): new entries.
78235
78236 2006-02-28  Simon Josefsson  <jas@extundo.com>
78237
78238         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78239
78240 2006-02-27  Simon Josefsson  <jas@extundo.com>
78241
78242         * lib/base64.h: Indent #define's.  From Jim Meyering
78243         <jim@meyering.net>.
78244
78245 2006-02-27  Jim Meyering  <jim@meyering.net>
78246
78247         Revert the change of 2006-02-24, so these files can continue
78248         to be sync'd from gettext.
78249         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78250         of `config.h'.
78251
78252 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78253
78254         * modules/intprops: New file.
78255         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78256         Add intprops.
78257         * modules/getloadavg (Files): Remove lib/intprops.h.
78258         (Depends-on): Add intprops.
78259         * modules/human: Likewise.
78260         * modules/inttostr: Likewise.
78261         * modules/openat: Likewise.
78262         * modules/sig2str: Likewise.
78263         * modules/userspec: Likewise.
78264         * modules/utimecmp: Likewise.
78265         * modules/xnanosleep: Likewise.
78266         * modules/xstrtol: Likewise.
78267
78268 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78269
78270         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78271         * modules/lock-tests (TESTS): Use $(EXEEXT).
78272         * modules/tls-tests: Likewise.
78273         * modules/argp-tests: Likewise.
78274         (check_PROGRAMS): New var, replacing...
78275         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78276
78277 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78278
78279         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78280         `config.h'.
78281
78282 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78285
78286 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78287
78288         Sync from coreutils.
78289         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78290         gl_CHDIR_SAFER.
78291
78292 2006-02-22  Jim Meyering  <jim@meyering.net>
78293
78294         Sync from coreutils.
78295         * m4/chdir-safer.m4: New file.
78296
78297 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78298
78299         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78300         AT_FDCWD exceeds INT_MAX.
78301         * lib/openat.h (AT_FDCWD): Likewise.
78302
78303 2006-02-17  Eric Blake  <address@hidden>
78304
78305         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78306
78307 2006-02-16  Simon Josefsson  <jas@extundo.com>
78308
78309         * modules/getaddrinfo (Depends-on): Add sys_socket.
78310
78311 2006-02-15  Simon Josefsson  <jas@extundo.com>
78312
78313         * build-aux/maint.mk: Add dsyntax-check rule.
78314
78315 2006-02-15  Eric Blake  <ebb9@byu.net>
78316
78317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78318         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78319         'present but cannot compile' warnings on cygwin.
78320         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78321         use ws2tcpip.h if sys/socket.h works.
78322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78323         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78324
78325 2006-02-14  Simon Josefsson  <jas@extundo.com>
78326
78327         * modules/maintainer-makefile (Files): Rename.
78328
78329         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78330         and (the local) Makefile.cfg to maint-cfg.mk.
78331
78332         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78333         to the latter.
78334
78335         * modules/maintainer-makefile: New module.
78336
78337         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78338         severaly stripped to make it possible to build it up from scratch
78339         with reliable tests.
78340
78341         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78342         fixes to permit overriding the default actions when configure and
78343         makefile are not available.
78344
78345 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         Sync from coreutils.
78348         * modules/lstat (Depends-on): Don't depend on xalloc.
78349         (License): Change from GPL to LGPL, since this is now simply a
78350         replacement for a libc function.
78351
78352 2006-02-14  Jim Meyering  <jim@meyering.net>
78353
78354         Sync from coreutils.
78355
78356         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78357         failure on deficient systems, and simplify gnulib lgpl dependencies.
78358         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78359         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78360
78361         * lib/xalloc-die.c: Remove unused definition of N_.
78362
78363 2006-02-14  Jim Meyering  <jim@meyering.net>
78364
78365         Sync from coreutils.
78366         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78367         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78368         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78369         double-quote uses of that variable, to accommodate the rare case in
78370         which getmntent is available in none of the libraries checked.  This
78371         happens at least on FreeBSD 5.0.
78372
78373 2006-02-13  Simon Josefsson  <jas@extundo.com>
78374
78375         * gnulib-tool (Usage): Fix --import, from
78376         karl@freefriends.org (Karl Berry).
78377
78378 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78379
78380         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78381
78382 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78383
78384         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78385         "autoupdate" on 2005-12-12.
78386
78387 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * modules/closeout (Depends-on): Remove atexit.
78390
78391 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78392
78393         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78394         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78395
78396 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78399         __EXTENSIONS__ if this causes compilation to fail.  Problem
78400         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78401         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78402
78403 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78406         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78408         All uses changed.
78409
78410 2006-01-26  Simon Josefsson  <jas@extundo.com>
78411
78412         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78413         prototype is visible on mingw32.
78414
78415         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78416         for mingw32.
78417
78418         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78419         mingw32).
78420
78421 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78424         attempt to open for write; this always fails, at least on POSIX
78425         hosts.  This reinstates the 2006-01-09 change, which was
78426         inadvertently removed.
78427
78428 2006-01-26  Bruno Haible  <bruno@clisp.org>
78429
78430         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78431         Reported by Paul Eggert.
78432
78433 2006-01-26  Bruno Haible  <bruno@clisp.org>
78434             Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * lib/stdbool_.h (_Bool)
78437         [(! (defined __cplusplus || defined __BEOS__)
78438           && !defined __GNUC__
78439           && !(defined __HP_cc || defined __xlc__
78440                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78441                || defined __sgi))]:
78442         #define to signed char in these cases too; this simplifies
78443         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78444         etc., separately) and makes it more conservative.
78445
78446 2006-01-25  Simon Josefsson  <jas@extundo.com>
78447
78448         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78449         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78450         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78451
78452 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78453
78454         * lib/argp-namefrob.h: Bugfix. Remove stray #
78455
78456 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78459         so that we test the test.
78460         Check for yet another HP-UX cc bug involving *bool |= bool.
78461
78462 2006-01-25  Karl Berry  <karl@gnu.org>
78463
78464         * config/srclist.txt (vasnprintf.c): sync lost.
78465
78466 2006-01-25  Jim Meyering  <jim@meyering.net>
78467
78468         Sync from the stable (b5) branch of coreutils:
78469
78470         * lib/fts.c (fts_children): Don't let close() clobber errno from
78471         failed fchdir().
78472
78473         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78474         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78475         a dangling symlink.  That can also happen at least for ELOOP.
78476         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78477         FYI, this bug predates the inclusion of fts.c in coreutils.
78478
78479         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78480         in their own block, so pre-c99 compilers don't object.
78481
78482         Avoid the double-free (first in fts_read, second in fts_close) that
78483         would occur when an `active' directory is made inaccessible (e.g.,
78484         via chmod a-x) during a traversal.
78485         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78486         before returning.  Reproduce this failure by
78487         mkdir -p a/b; cd a; chmod a-x . b
78488         Reported by Stavros Passas.
78489
78490 2006-01-25  Jim Meyering  <jim@meyering.net>
78491
78492         * lib/fileblocks.c: Remove more useless parentheses.
78493         * lib/readutmp.h: Likewise.
78494
78495 2006-01-25  Bruno Haible  <bruno@clisp.org>
78496
78497         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78498         warnings.
78499         Reported by Paul Eggert.
78500
78501 2006-01-25  Bruno Haible  <bruno@clisp.org>
78502
78503         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78504         rid of a trap command. For Solaris sh.
78505         Reported by Mark D. Baushke <mdb@gnu.org>.
78506
78507 2006-01-24  Simon Josefsson  <jas@extundo.com>
78508
78509         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78510         Bruno.
78511
78512 2006-01-24  Karl Berry  <karl@gnu.org>
78513
78514         * config/srclist.txt (argp-namefrob.h): sync lost.
78515
78516 2006-01-24  Jim Meyering  <jim@meyering.net>
78517
78518         * modules/openat (Files): Add lib/intprops.h.
78519         From Mark D. Baushke.
78520
78521 2006-01-24  Jim Meyering  <jim@meyering.net>
78522
78523         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78524         Reported by Mark D. Baushke.
78525
78526 2006-01-24  Jim Meyering  <jim@meyering.net>
78527
78528         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78529
78530 2006-01-24  Bruno Haible  <bruno@clisp.org>
78531
78532         * modules/strnlen (Maintainer): Change from glibc to all.
78533
78534 2006-01-24  Bruno Haible  <bruno@clisp.org>
78535
78536         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78537         Patch by Paul Eggert.
78538
78539 2006-01-24  Bruno Haible  <bruno@clisp.org>
78540
78541         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78542         already has it.
78543         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78544         2005-11-26.
78545
78546         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78547         'signed char' to avoid problems with the built-in _Bool type.
78548         Reported by Paul Eggert on 2005-11-26.
78549
78550 2006-01-24  Bruno Haible  <bruno@clisp.org>
78551
78552         * gnulib-tool (func_import): Avoid constructing complicated sed
78553         expressions inside backquote.
78554         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78555
78556 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78557
78558         These changes imported from libc.
78559         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78560         test and two separate function calls.
78561         * lib/strndup.c (__strndup): Add libc_hidden_def.
78562
78563 2006-01-23  Simon Josefsson  <jas@extundo.com>
78564
78565         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78566         Remove the test_*_SOURCES variable: automake infers it by default.
78567         * modules/tls-tests: Likewise.
78568
78569 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78570
78571         Work around porting bugs reported by Dieter in
78572         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78573         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78574         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78575         Include "getopt.h" first, to check interface.
78576         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78577         !HAVE_DECL_GETENV.
78578         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78579         (__strndup): Revert to K&R-style function dfns, the glibc style.
78580         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78581         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78582         Include strnlen.h first, to get prototype properly.
78583         (strnlen): Renamed from __strnlen.
78584         Remove weak alias.
78585
78586 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78589
78590 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         * config/srclist.txt: Adjust to reflect glibc reorganization.
78593         This affects only comments.
78594
78595 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78596
78597          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78598          Reported by Bruce Korb <bkorb@gnu.org>.
78599
78600 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78603         to pacify gcc -Wswitch-default.
78604
78605 2006-01-22  Bruno Haible  <bruno@clisp.org>
78606
78607         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78608         temporary buffer for sprintf, take into account the precision also
78609         for 'd', 'i', 'u', 'o', 'x', 'X'.
78610
78611 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78612
78613         * modules/argp-tests: New module
78614         * tests/test-argp.c: New file
78615         * tests/test-argp-2.sh: New file
78616
78617 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78618
78619         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78620         (__argp_base_name): Removed
78621         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78622         typo.
78623         (__argp_base_name): Provide macro definition or extern declaration
78624         depending on the configuration
78625
78626 2006-01-20  Simon Josefsson  <jas@extundo.com>
78627
78628         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78629
78630 2006-01-20  Simon Josefsson  <jas@extundo.com>
78631
78632         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78633
78634 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78637         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78638         Suggested by Bruno Haible.
78639
78640 2006-01-20  Karl Berry  <karl@gnu.org>
78641
78642         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78643         until changes propagate, I guess.
78644
78645 2006-01-19  Simon Josefsson  <jas@extundo.com>
78646
78647         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78648
78649 2006-01-19  Simon Josefsson  <jas@extundo.com>
78650
78651         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78652
78653 2006-01-19  Simon Josefsson  <jas@extundo.com>
78654
78655         * gnulib-tool: Set check_PROGRAMS.
78656
78657         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78658         modules/des-tests, modules/gc-arcfour-tests,
78659         modules/gc-arctwo-tests, modules/gc-des-tests,
78660         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78661         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78662         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78663         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78664         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78665         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78666         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78667         test_*_SOURCES.
78668
78669 2006-01-18  Simon Josefsson  <jas@extundo.com>
78670
78671         * modules/socklen (Depends-on): Depend on sys_socket.
78672
78673 2006-01-18  Simon Josefsson  <jas@extundo.com>
78674
78675         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78676         modules/des-tests, modules/gc-arcfour-tests,
78677         modules/gc-arctwo-tests, modules/gc-des-tests,
78678         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78679         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78680         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78681         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78682         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78683         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78684         $(EXEEXT) to automake TESTS variable, for mingw32.
78685
78686 2006-01-17  Simon Josefsson  <jas@extundo.com>
78687
78688         * modules/socklen (Include): Need sys/socket.h.
78689
78690 2006-01-17  Bruno Haible  <bruno@clisp.org>
78691
78692         * modules/ssize_t (Include): Add <sys/types.h>.
78693
78694 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78697         it's not portable and it doesn't work with cross-compiles.
78698         Problem reported by Bruno Haible.  Fix missing-$ typo in
78699         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78700         -zignore from being used with Sun's C compiler.
78701
78702 2006-01-12  Simon Josefsson  <jas@extundo.com>
78703
78704         * lib/base64.c: Fix warning, reported by Bruno Haible
78705         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78706
78707 2006-01-12  Bruno Haible  <bruno@clisp.org>
78708
78709         * modules/ldd: New file.
78710         * build-aux/ldd.sh.in: New file.
78711         * MODULES.html.sh (Support for building libraries and executables): Add
78712         ldd.
78713
78714 2006-01-12  Bruno Haible  <bruno@clisp.org>
78715
78716         * m4/ldd.m4: New file.
78717
78718 2006-01-12  Bruno Haible  <bruno@clisp.org>
78719
78720         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78721         endless loop while replacing $auxdir with build-aux.
78722
78723 2006-01-11  Simon Josefsson  <jas@extundo.com>
78724
78725         * lib/stdint_.h (SIZE_MAX): Add missing (.
78726
78727 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78728
78729         Sync from coreutils.
78730         * lib/md5.c: Fix commentary typos.
78731         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78732         * lib/md5.h (__attribute__): Remove; unused.
78733         * lib/sha1.c: Fix commentary to match md5 better.
78734         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78735         so that we don't need to worry about alignment.  All uses changed.
78736         This merges the 2005-10-28 md5 change into sha1.
78737
78738 2006-01-11  Jim Meyering  <jim@meyering.net>
78739
78740         Sync from coreutils.
78741         * lib/md5.c (OP): Fix spacing.
78742
78743 2006-01-11  Bruno Haible  <bruno@clisp.org>
78744
78745         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78746         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78747         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78748
78749 2006-01-11  Bruno Haible  <bruno@clisp.org>
78750
78751         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78752         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78753         the "early" section as well.
78754
78755 2006-01-11  Bruno Haible  <bruno@clisp.org>
78756
78757         Avoid "ar: no archive members specified" error on MacOS X.
78758         * gnulib-tool (func_modules_add_dummy): New function.
78759         (func_import, func_create_testdir): Invoke it.
78760
78761 2006-01-11  Bruno Haible  <bruno@clisp.org>
78762
78763         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78764         with $auxdir in AC_CONFIG_FILES statements.
78765
78766 2006-01-11  Bruno Haible  <bruno@clisp.org>
78767
78768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78769         Initialize also noinst_HEADERS to empty.
78770
78771 2006-01-11  Bruno Haible  <bruno@clisp.org>
78772
78773         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78774         variables.
78775         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78776         autoreconf.
78777
78778 2006-01-11  Bruno Haible  <bruno@clisp.org>
78779
78780         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78781         overridable by the user.
78782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78783
78784 2006-01-10  Simon Josefsson  <jas@extundo.com>
78785
78786         * modules/sys_socket: New file.
78787
78788 2006-01-10  Simon Josefsson  <jas@extundo.com>
78789
78790         * m4/sys_socket_h.m4: New file.
78791
78792 2006-01-10  Simon Josefsson  <jas@extundo.com>
78793
78794         * lib/socket_.h: New file.
78795
78796 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78797
78798         * modules/readutmp (Maintainer): Add myself.
78799
78800 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78801
78802         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78803         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78804         People who are still concerned with buggy memcmp implementations
78805         can invoke gl_FUNC_MEMCMP themselves.
78806
78807 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78808
78809         * lib/regex_internal.h (BITSET_WORD_BITS):
78810         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78811         preprocessor mishandles large unsigned values as if they were signed.
78812         Problem reported by Claudio Fontana in
78813         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78814
78815 2006-01-10  Jim Meyering  <jim@meyering.net>
78816
78817         Avoid the double-free (first in fts_read, second in fts_close) that
78818         would occur when an `active' directory is made inaccessible (e.g.,
78819         via chmod a-x) during a traversal.
78820         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78821         before returning.  Reproduce this failure by
78822         mkdir -p a/b; cd a; chmod a-x . b
78823         Reported by Stavros Passas.
78824
78825         Sync from coreutils.
78826         * lib/sha1.c: Tweak grammar in a comment.
78827
78828 2006-01-10  Jim Meyering  <jim@meyering.net>
78829
78830         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78831         Patch by Joerg Sonnenberger.
78832
78833 2006-01-10  Bruno Haible  <bruno@clisp.org>
78834
78835         * modules/readutmp: Depend on module free.
78836         * modules/strtok_r: Depend on module restrict.
78837
78838 2006-01-10  Bruno Haible  <bruno@clisp.org>
78839
78840         * modules/gettext (configure.ac): Add an invocation of
78841         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78842
78843 2006-01-10  Bruno Haible  <bruno@clisp.org>
78844
78845         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78846         Reported by Werner Lemberg <wl@gnu.org>.
78847
78848 2006-01-10  Bruno Haible  <bruno@clisp.org>
78849
78850         * lib/localcharset.c: Update from GNU gettext.
78851
78852 2006-01-10  Bruno Haible  <bruno@clisp.org>
78853
78854         * lib/argp.h (__const): Remove macro. Use const instead.
78855         * lib/argp-fmtstream.h (__const): Likewise.
78856         * lib/glob_.h (__const): Remove macro.
78857         * lib/glob-libc.h: Use const instead of __const.
78858
78859 2006-01-10  Bruno Haible  <bruno@clisp.org>
78860
78861         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78862         variable.
78863         Needed to avoid an automake error regarding the 'gettext' module.
78864
78865 2006-01-09  Simon Josefsson  <jas@extundo.com>
78866
78867         * modules/inet_ntop (Depends-on): Add restrict.
78868
78869 2006-01-09  Simon Josefsson  <jas@extundo.com>
78870
78871         * modules/gc-rijndael-tests (License): Put under LGPL.
78872
78873         * modules/gc-des-tests (License): Likewise.
78874
78875         * modules/gc-arcfour-tests (License): Likewise.
78876
78877         * modules/gc-arctwo-tests (License): Likewise.
78878
78879         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78880
78881         * modules/gc-hmac-sha1-tests (Files): Likewise.
78882
78883         * modules/gc-hmac-md5-tests (License): Likewise.
78884
78885         * modules/gc-sha1-tests (License): Likewise.
78886
78887         * modules/gc-md5-tests (License): Likewise.
78888
78889         * modules/gc-md4-tests (License): Likewise.
78890
78891         * modules/gc-md2-tests (License): Likewise.
78892
78893         * modules/gc-tests (License): Likewise.
78894
78895         * modules/des-tests (License): Likewise.
78896
78897         * modules/md4-tests (License): Likewise.
78898
78899         * modules/md2-tests (License): Likewise.
78900
78901 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         Sync from coreutils:
78904
78905         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78906         * modules/lib-ignore: New file.
78907         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78908         chdir-safer.m4, lchmod.m4.
78909         * modules/openat: Add mkdirat.c, openat-priv.h.
78910
78911 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         Sync from coreutils.
78914         * m4/lib-ignore.m4: New file.
78915         * m4/lchmod.m4: New file.
78916
78917 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78918
78919         Sync from coreutils.
78920         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78921         for write access: POSIX says that must fail.
78922         * lib/fts.c (diropen): Likewise.
78923         * lib/save-cwd.c (save_cwd): Likewise.
78924         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78925         well, for minor improvements on hosts that lack O_DIRECTORY.
78926         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78927         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78928         Fall back on chown if open failed with EACCES.
78929
78930         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78931         Report an error at compile-time if only a 1-second nominal clock
78932         resolution is found.
78933
78934         * lib/lchmod.h: New file.
78935         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78936         (make_dir_parents): Use lchown rather than chown, and
78937         lchmod rather than chmod.
78938
78939         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78940         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78941         "proc" reported by n0dalus.
78942
78943         * lib/mountlist.c: Include <limits.h>.
78944         (dev_from_mount_options)
78945         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78946         New function.  It no longer assumes "dev=" has the System V meaning
78947         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78948         (read_file_system_list)
78949         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78950         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78951         dev= in that case.
78952
78953         * lib/posixtm.h (PDS_PRE_2000): New macro.
78954         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78955         allow_century.  All usages changed.  Reject dates outside the range
78956         1969-1999 if PDS_PRE_2000 is used.
78957
78958 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         Sync from coreutils.
78961         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78962         (Time of day items): Mention the possibility of leap seconds.
78963         Problem reported by Dr. David Alan Gilbert.
78964
78965 2006-01-09  Jim Meyering  <jim@meyering.net>
78966
78967         Sync from coreutils.
78968
78969         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78970
78971         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78972
78973         * lib/modechange.c (mode_compile): Reject an invalid mode string
78974         that starts with an octal digit.  From Andreas Gruenbacher.
78975
78976         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78977         and dup to open_safer and dup_safer, respectively.
78978         (openat_permissive): Fix typo in comment.
78979
78980         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78981         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78982         (_): Remove; no longer needed.
78983         (openat): Renamed from rpl_openat; no need for rpl_openat
78984         since openat.h renames openat for us.
78985         Replace most of the body with a call to openat_permissive,
78986         to avoid duplicate code.
78987         Port to (probably hypothetical) environments were mode_t is
78988         wider than int.
78989         (openat_permissive): Require mode arg, so that we can check
78990         types better.  Put it just after flags.  Change cwd failure
78991         indicator from pointer-to-bool to pointer-to-errno-value.
78992         All callers changed.
78993         Invoke openat_save_fail and/or openat_restore_fail if
78994         cwd_errno is null, so that openat can call us.
78995         (openat_permissive, fdopendir, fstatat, unlinkat):
78996         Simplify errno handling to avoid some duplicate code,
78997         as it's OK to set errno on success.
78998         * lib/openat.h: Revamp code so that function macros depend on
78999         __OPENAT_PREFIX only, not also on AT_FDCWD.
79000         (openat_ro): Remove.  Caller changed to use openat_permissive.
79001         (openat_permissive): Now a macro, if not a function.
79002         (openat_restore_fail, openat_save_fail): Now always functions,
79003         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79004
79005         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79006         and openat.c.
79007         * lib/mkdirat.c: Include openat-priv.h.
79008         Remove definitions of macros defined therein.
79009         * lib/openat.c: Likewise.
79010
79011         * lib/mkdirat.c (mkdirat): New file and function.
79012         * lib/openat.h (mkdirat): Declare.
79013
79014         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79015
79016         * lib/openat.h (openat_permissive): Declare.
79017         (openat_ro): Define.
79018
79019         * lib/openat.c (EXPECTED_ERRNO): New macro.
79020         (openat_permissive): New function -- used in remove.c rewrite.
79021         (all functions): Set errno just before returning, only if there
79022         was an actual failure.
79023         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79024
79025         Emulate openat-family functions using Linux's procfs, if possible.
79026         Idea and some code based on Ulrich Drepper's glibc changes.
79027
79028         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79029         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79030         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79031         before falling back on save_cwd and restore_cwd.
79032         (fdopendir, fstatat, unlinkat): Likewise.
79033
79034         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79035         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79036
79037         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79038         as second argument to va_arg.  Otherwise, some versions of gcc
79039         warn that `if this code is reached, the program will abort'.
79040
79041 2006-01-09  Jim Meyering  <jim@meyering.net>
79042
79043         Sync from coreutils.
79044         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79045         Require openat-priv.h.
79046
79047 2006-01-09  Bruno Haible  <bruno@clisp.org>
79048
79049         * modules/strnlen (Include): Use strnlen.h.
79050
79051 2006-01-09  Bruno Haible  <bruno@clisp.org>
79052
79053         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79054
79055 2006-01-09  Bruno Haible  <bruno@clisp.org>
79056
79057         * lib/sysexit_.h (EX_OK): New macro.
79058         Suggested by Martin Lambers <marlam@marlam.de>.
79059
79060 2006-01-09  Bruno Haible  <bruno@clisp.org>
79061
79062         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79063         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79064
79065 2006-01-09  Bruno Haible  <bruno@clisp.org>
79066
79067         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79068         numbers.
79069
79070 2006-01-09  Bruno Haible  <bruno@clisp.org>
79071
79072         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79073         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79074         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79075         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79076
79077 2006-01-09  Bruno Haible  <bruno@clisp.org>
79078
79079         * build-aux/javacomp.sh.in: New file, moved from lib/.
79080         * modules/javacomp-script (Files): Update.
79081         (configure.ac): Add AC_CONFIG_FILES invocation.
79082         (EXTRA_DIST): Remove variable.
79083
79084         * build-aux/javaexec.sh.in: New file, moved from lib/.
79085         * modules/javaexec (Files): Update.
79086         (configure.ac): Add AC_CONFIG_FILES invocation.
79087         (EXTRA_DIST): Remove javaexec.sh.in.
79088
79089         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79090         * modules/csharpcomp-script (Files): Update.
79091         (configure.ac): Add AC_CONFIG_FILES invocation.
79092         (EXTRA_DIST): Remove variable.
79093
79094         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79095         * modules/csharpexec (Files): Update.
79096         (configure.ac): Add AC_CONFIG_FILES invocation.
79097         (EXTRA_DIST): Remove csharpexec.sh.in.
79098
79099 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79100
79101         Sync from coreutils.
79102
79103         Add POSIX ACL support
79104         * lib/acl.h (copy_acl, set_acl): Add declarations.
79105         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79106         systems other than Linux.
79107         (chmod_or_fchmod): New function: use fchmod when possible,
79108         and chmod otherwise.
79109         (file_has_acl): Add a POSIX ACL implementation, with a
79110         Linux-specific subcase.
79111         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79112         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79113         acls are unsupported.
79114         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79115         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79116         are unsupported.
79117
79118 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79119
79120         Sync from coreutils.
79121         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79122
79123 2006-01-07  Bruno Haible  <bruno@clisp.org>
79124
79125         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79126         gl_EARLY.
79127
79128 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79131         Problem reported for Mingw by Mark Junker.
79132
79133 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         * README: Gnulib normally doesn't generate a tarball.
79136
79137 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79140         long int, not int, for nanosecond counts, so that people who are
79141         used to POSIX struct timespec won't be surprised.  Reported by Jim
79142         Meyering.
79143
79144 2005-12-28  Bruno Haible  <bruno@clisp.org>
79145
79146         * build-aux/config.rpath: Update from GNU gettext.
79147
79148 2005-12-16  Jim Meyering  <jim@meyering.net>
79149
79150         * modules/fprintftime: New module.
79151         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79152
79153 2005-12-16  Jim Meyering  <jim@meyering.net>
79154
79155         * m4/fprintftime.m4: New file.
79156
79157 2005-12-16  Jim Meyering  <jim@meyering.net>
79158
79159         * lib/fprintftime.c, lib/fprintftime.h: New files.
79160
79161 2005-12-15  Simon Josefsson  <jas@extundo.com>
79162
79163         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79164         new m4/socklen.m4.
79165
79166 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79167
79168         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79169         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79170
79171 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79172
79173         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79174         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79175         struct uparams is valid. Fall back to the default values if it is
79176         not.
79177
79178 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79179
79180         * modules/argp (Files): Add argp-pin.c
79181         (Depends-on): dirname
79182         (lib_SOURCES): Add argp-pin.c
79183
79184 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79185
79186         * m4/argp.m4:  Check if program_invocation_name and
79187         program_invocation_short_name are declared and define appropriate
79188         macros if they are not.
79189
79190 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79191
79192         * lib/argp-help.c (__argp_base_name): New function
79193         (__argp_short_program_name): Rewrite using __argp_base_name
79194         * lib/argp-namefrob.h: Define program_invocation_name and
79195         program_invocation_short_name if requested
79196         (__argp_base_name): Add prototype
79197         * lib/argp-parse.c (argp_def): Use gettext wrappers
79198         (argp_default_parser): Use __argp_base_name
79199         * lib/argp-pin.c: New file. Defines program_invocation_name and
79200         program_invocation_short_name on systems that lack them.
79201
79202 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79205         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79206         porting problem reported by Georg Schwarz in
79207         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79208
79209 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79212         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79213         porting problem reported by Georg Schwarz in
79214         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79215
79216 2005-12-05  Bruno Haible  <bruno@clisp.org>
79217
79218         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79219         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79220         Reported by Mark Junker <mjscod@gmx.de>.
79221
79222 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79223
79224         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79225         Use implementation from Albert Chin, with some
79226         comments/corrections by Stepan Kasal and myself.
79227
79228 2005-12-02  Bruno Haible  <bruno@clisp.org>
79229
79230         * gnulib-tool (func_import): Accept GPLed build tool modules when
79231         --lgpl is given.
79232         * modules/csharpcomp-script: New file.
79233         * modules/csharpcomp: Depend on it.
79234         * modules/javacomp-script: New file.
79235         * modules/javacomp: Depend on it.
79236         Suggested by Simon Josefsson.
79237
79238 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79241         statement, to work around an HP-UX 10.20 compiler bug reported by
79242         Peter O'Gorman.
79243
79244 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * modules/savedir (Depends-on): Add openat.
79247
79248 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79249
79250         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79251         (uintmax_t) [defined uintmax_t]: Do not declare.
79252         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79253         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79254         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79255         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79256         sake of portability to weird hosts that C allows (though we don't
79257         know of any practical examples).
79258
79259         * lib/savedir.h (fdsavedir): New decl.
79260         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79261         contains most of the former guts of savedir.
79262         (savedir): Use savedirstream.
79263         Include "openat.h".
79264
79265 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * modules/obstack (Files): Add m4/ulonglong.m4.
79268         Problem reported by Davide Angelocola.
79269
79270 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79271
79272         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79273         coreutils no longer futzes with rounding modes.
79274
79275 2005-11-14  Jim Meyering  <jim@meyering.net>
79276
79277         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79278         replacement of mkstemp.
79279
79280 2005-11-10  Simon Josefsson  <jas@extundo.com>
79281
79282         * lib/readline.c: Remove EOL.
79283
79284 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79285
79286         * modules/gethrxtime (Depends-on): Add gettime.
79287
79288 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79291         or gettimeofday; no longer needed.
79292
79293 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79296         time business.
79297         (gethrxtime) [! (HAVE_NANOUPTIME
79298         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79299         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79300         our own approximation.
79301
79302 2005-11-08  Eric Blake  <ebb9@byu.net>
79303
79304         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79305
79306 2005-11-08  Eric Blake  <ebb9@byu.net>
79307
79308         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79309
79310 2005-11-04  Bruno Haible  <bruno@clisp.org>
79311
79312         * gnulib-tool: Implement --update mode.
79313
79314 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         Fix porting problem reported by Theodoros V. Kalamatianos.
79317         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79318         Don't assume that futimes failing means we must fail.
79319
79320 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79323         variables to suggest the intended function of the PATH_MAX check.
79324
79325 2005-10-30  Kean Johnston  <jkj@sco.com>
79326
79327         Trivial changes to support SCO systems.
79328         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79329         as PATH_MAX.
79330         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79331         where __ptr is null when no I/O is pending.
79332
79333 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79336         leave errno alone.  Problem reported by Dmitry V. Levin.
79337
79338 2005-10-28  Simon Josefsson  <jas@extundo.com>
79339
79340         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79341         Test more.
79342
79343         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79344
79345         * modules/md2, modules/md2-tests: New files.
79346
79347 2005-10-28  Simon Josefsson  <jas@extundo.com>
79348
79349         * m4/inet_ntop.m4: More tests.
79350
79351         * m4/gc-md2.m4, md2.m4: New file.
79352
79353 2005-10-28  Simon Josefsson  <jas@extundo.com>
79354
79355         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79356         "restrict" keywords, as per POSIX.  Protect the function
79357         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79358         Don't use K&R prototypes.  Check the sprintf return values.
79359         Re-define EAFNOSUPPORT if not present.  Indent.
79360
79361         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79362         suggested by Bruno Haible <bruno@clisp.org>.
79363
79364         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79365
79366         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79367
79368         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79369         libgcrypt).
79370
79371         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79372
79373         * lib/md2.h, lib/md2.c: New files.
79374
79375 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79378         errno alone.  Problem reported by Frederic Jolliton.
79379
79380 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * modules/verify (License): Change from GPL to LGPL.  This is a
79383         tiny module and there are apparently near-equivalents that are
79384         under the BSD license.
79385
79386 2005-10-24  Simon Josefsson  <jas@extundo.com>
79387
79388         * modules/sha1: Relicense to LGPL.
79389
79390 2005-10-24  Simon Josefsson  <jas@extundo.com>
79391
79392         * lib/md4.h: Shrink buffer size, now that we changed the type.
79393
79394 2005-10-23  Simon Josefsson  <jas@extundo.com>
79395
79396         * gnulib-tool (func_import): Fix --tests-base.
79397
79398 2005-10-22  Simon Josefsson  <jas@extundo.com>
79399
79400         * modules/arcfour (Depends-on): Need stdint.
79401
79402 2005-10-22  Simon Josefsson  <jas@extundo.com>
79403
79404         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79405         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79406
79407 2005-10-22  Simon Josefsson  <jas@extundo.com>
79408
79409         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79410         suggested by Bruno Haible <bruno@clisp.org>.
79411
79412 2005-10-22  Simon Josefsson  <jas@extundo.com>
79413
79414         * lib/crc.h: Include stddef.h, for size_t.
79415
79416 2005-10-22  Simon Josefsson  <jas@extundo.com>
79417
79418         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79419         arcfour_context struct (simplify test vector testing in GNU
79420         Shishi).
79421
79422 2005-10-21  Simon Josefsson  <jas@extundo.com>
79423
79424         * modules/des, modules/des-tests: New files.
79425
79426         * modules/gc-des, modules/gc-des-tests: New files.
79427
79428         * tests/test-des.c, tests/test-gc-des.c: New file.
79429
79430 2005-10-21  Simon Josefsson  <jas@extundo.com>
79431
79432         * modules/arctwo, modules/arctwo-tests: New files.
79433
79434         * tests/test-arctwo.c: New file.
79435
79436         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79437
79438         * tests/test-gc-arctwo.c: New file.
79439
79440 2005-10-21  Simon Josefsson  <jas@extundo.com>
79441
79442         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79443         Bruno Haible <bruno@clisp.org>.
79444
79445         * m4/gc-des.m4: New file.
79446
79447 2005-10-21  Simon Josefsson  <jas@extundo.com>
79448
79449         * m4/arctwo.m4: New file.
79450
79451         * m4/gc-arctwo.m4: New file.
79452
79453 2005-10-21  Simon Josefsson  <jas@extundo.com>
79454
79455         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79456         block.
79457
79458 2005-10-21  Simon Josefsson  <jas@extundo.com>
79459
79460         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79461         <bruno@clisp.org>.
79462
79463         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79464
79465         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79466         Bruno Haible <bruno@clisp.org>.
79467
79468         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79469         <bruno@clisp.org>.
79470
79471 2005-10-21  Simon Josefsson  <jas@extundo.com>
79472
79473         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79474
79475 2005-10-21  Simon Josefsson  <jas@extundo.com>
79476
79477         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79478
79479 2005-10-21  Simon Josefsson  <jas@extundo.com>
79480
79481         * lib/des.h, lib/des.c: New files.
79482
79483         * lib/gc-gnulib.c: Support DES.c
79484
79485 2005-10-21  Simon Josefsson  <jas@extundo.com>
79486
79487         * lib/arctwo.h, lib/arctwo.c: New files.
79488
79489         * lib/gc-gnulib.c: Support ARCTWO.
79490
79491 2005-10-21  Simon Josefsson  <jas@extundo.com>
79492
79493         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79494         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79495
79496 2005-10-21  Simon Josefsson  <jas@extundo.com>
79497
79498         * gnulib-tool (func_import, func_create_testdir): Define automake
79499         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79500         Makefile.am snippet),
79501         suggested by Bruno Haible <bruno@clisp.org>.
79502
79503         * modules/gc (Makefile.am): Use it.
79504
79505 2005-10-21  Bruno Haible  <bruno@clisp.org>
79506
79507         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79508         patch.
79509
79510 2005-10-19  Simon Josefsson  <jas@extundo.com>
79511
79512         * tests/test-gc-rijndael.c: New file.
79513
79514         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79515
79516 2005-10-19  Simon Josefsson  <jas@extundo.com>
79517
79518         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79519         interface too.
79520
79521 2005-10-19  Simon Josefsson  <jas@extundo.com>
79522
79523         * tests/test-gc-arcfour.c: New file.
79524
79525         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79526
79527 2005-10-19  Simon Josefsson  <jas@extundo.com>
79528
79529         * modules/gc-md4, modules/gc-md4-tests: New file.
79530
79531         * tests/test-gc-md4.c: New file.
79532
79533 2005-10-19  Simon Josefsson  <jas@extundo.com>
79534
79535         * m4/gc-md4.m4: New file.
79536
79537 2005-10-19  Simon Josefsson  <jas@extundo.com>
79538
79539         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79540         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79541         <kasal@ucw.cz>.
79542
79543 2005-10-19  Simon Josefsson  <jas@extundo.com>
79544
79545         * m4/gc-arcfour.m4: New file.
79546
79547         * m4/gc-rijndael.m4: New file.
79548
79549 2005-10-19  Simon Josefsson  <jas@extundo.com>
79550
79551         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79552
79553 2005-10-19  Simon Josefsson  <jas@extundo.com>
79554
79555         * lib/gc-gnulib.c: Support ARCFOUR.
79556
79557 2005-10-19  Simon Josefsson  <jas@extundo.com>
79558
79559         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79560         support.
79561
79562         * lib/gc.h: Add ECB enum type.
79563
79564         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79565
79566 2005-10-18  Simon Josefsson  <jas@extundo.com>
79567
79568         * tests/test-md5.c: New file.
79569
79570         * modules/md5-tests: New file.
79571
79572 2005-10-18  Simon Josefsson  <jas@extundo.com>
79573
79574         * tests/test-md4.c: New file.
79575
79576         * modules/md4, modules/md4-tests: New files.
79577
79578 2005-10-18  Simon Josefsson  <jas@extundo.com>
79579
79580         * m4/md4.m4: New file.
79581
79582 2005-10-18  Simon Josefsson  <jas@extundo.com>
79583
79584         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79585
79586 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79587
79588         * gnulib-tool (func_create_testdir): Omit the second check whether
79589         BUILT_SOURCES in nonempty.
79590
79591 2005-10-17  Simon Josefsson  <jas@extundo.com>
79592
79593         * tests/test-rijndael.c: New file.
79594
79595 2005-10-17  Simon Josefsson  <jas@extundo.com>
79596
79597         * modules/sha1: Depend on stdint instead of md5.
79598
79599         * modules/md5: Depend on stdint, remove uint32_t.
79600
79601 2005-10-17  Simon Josefsson  <jas@extundo.com>
79602
79603         * modules/gc-sha1-tests: New file.
79604
79605         * tests/test-gc-sha1.c: New file.
79606
79607 2005-10-17  Simon Josefsson  <jas@extundo.com>
79608
79609         * m4/md5.m4: Remove call to uint32_t.m4.
79610
79611 2005-10-17  Simon Josefsson  <jas@extundo.com>
79612
79613         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79614
79615         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79616         md5.h.
79617
79618         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79619
79620         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79621
79622 2005-10-17  Simon Josefsson  <jas@extundo.com>
79623
79624         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79625
79626 2005-10-17  Simon Josefsson  <jas@extundo.com>
79627
79628         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79629
79630 2005-10-17  Simon Josefsson  <jas@extundo.com>
79631
79632         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79633
79634         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79635
79636 2005-10-17  Bruno Haible  <bruno@clisp.org>
79637
79638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79639         that it can also be used in a test.
79640
79641 2005-10-16  Bruno Haible  <bruno@clisp.org>
79642
79643         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79644         TESTS_ENVIRONMENT, so that individual tests can augment it.
79645
79646         * gnulib-tool (func_create_testdir): Use an intermediate target for
79647         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79648         macros, like $(ALLOCA_H), which cannot be passed through the command
79649         line.
79650
79651 2005-10-15  Simon Josefsson  <jas@extundo.com>
79652
79653         * modules/rijndael-tests: New file.
79654
79655         * modules/rijndael: New file.
79656
79657 2005-10-15  Simon Josefsson  <jas@extundo.com>
79658
79659         * m4/rijndael.m4: New file.
79660
79661 2005-10-15  Simon Josefsson  <jas@extundo.com>
79662
79663         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79664
79665         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79666
79667 2005-10-14  Simon Josefsson  <jas@extundo.com>
79668
79669         * tests/test-arcfour.c: New file.
79670
79671         * modules/arcfour, modules/arcfour-tests: New files.
79672
79673 2005-10-14  Simon Josefsson  <jas@extundo.com>
79674
79675         * m4/arcfour.m4: New file.
79676
79677 2005-10-14  Simon Josefsson  <jas@extundo.com>
79678
79679         * lib/arcfour.h, lib/arcfour.c: New files.
79680
79681 2005-10-14  Roland McGrath  <roland@redhat.com>
79682
79683         Import from libc.  [BZ #1331]
79684         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79685         macro argument.
79686         Reported by Matej Vela <vela@debian.org>.
79687
79688 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79689
79690         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79691         include <wchar.h>; no longer needed.
79692
79693 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79696
79697 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79698         and  Ulrich Drepper  <drepper@redhat.com>
79699
79700         Import from libc.
79701         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79702         instead of inline stream orientation test and two separate
79703         function calls.  Pay no attention to USE_IN_LIBIO.
79704
79705 2005-10-13  Simon Josefsson  <jas@extundo.com>
79706
79707         * modules/gc-hmac-md5-tests: New file.
79708
79709         * tests/test-gc-hmac-sha1.c: New file.
79710
79711         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79712
79713         * modules/gc-hmac-md5-tests: New file.
79714
79715         * tests/test-gc-md5.c: New file.
79716
79717         * modules/gc-md5-tests: New file.
79718
79719 2005-10-13  Simon Josefsson  <jas@extundo.com>
79720
79721         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79722         Move memory allocation outside of loop.
79723
79724 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79727         intermediate directory is in a read-only file system.  Problem
79728         reported by Eric Blake.
79729
79730 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79731
79732         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79733
79734 2005-10-12  Simon Josefsson  <jas@extundo.com>
79735
79736         * tests/test-hmac-sha1.c: New file.
79737
79738         * modules/hmac-sha1-tests: New file.
79739
79740         * modules/hmac-sha1: New file.
79741
79742 2005-10-12  Simon Josefsson  <jas@extundo.com>
79743
79744         * modules/gc-sha1: New file.
79745
79746 2005-10-12  Simon Josefsson  <jas@extundo.com>
79747
79748         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79749
79750         * tests/test-gc-pbkdf2-sha1.c: New file.
79751
79752 2005-10-12  Simon Josefsson  <jas@extundo.com>
79753
79754         * modules/gc-md5, modules/gc-hmac-md5: New files.
79755
79756         * modules/gc (Files): Remove md5, memxor and hmac files.
79757
79758 2005-10-12  Simon Josefsson  <jas@extundo.com>
79759
79760         * m4/gc-pbkdf2-sha1.m4: New file.
79761
79762         * m4/gc-hmac-sha1.m4: New file.
79763
79764         * m4/gc-sha1: New file.
79765
79766         * m4/hmac-sha1.m4: New file.
79767
79768 2005-10-12  Simon Josefsson  <jas@extundo.com>
79769
79770         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79771
79772         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79773
79774 2005-10-12  Simon Josefsson  <jas@extundo.com>
79775
79776         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79777         suggested by Bruno Haible <bruno@clisp.org>.
79778
79779 2005-10-12  Simon Josefsson  <jas@extundo.com>
79780
79781         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79782
79783 2005-10-12  Simon Josefsson  <jas@extundo.com>
79784
79785         * lib/gc-pbkdf2-sha1.c: New file.
79786
79787         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79788
79789 2005-10-12  Simon Josefsson  <jas@extundo.com>
79790
79791         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79792
79793         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79794
79795 2005-10-12  Simon Josefsson  <jas@extundo.com>
79796
79797         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79798         GC_USE_HMAC_MD5, respectively.
79799
79800         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79801         (gc_md5): Fix typo.
79802
79803         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79804
79805         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79806
79807         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79808
79809 2005-10-12  Bruno Haible  <bruno@clisp.org>
79810
79811         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79812         Reported by Stepan Kasal <kasal@ucw.cz>.
79813
79814 2005-10-11  Simon Josefsson  <jas@extundo.com>
79815
79816         * tests/test-crc.c: New file.
79817
79818         * modules/crc, modules/crc-tests: New files.
79819
79820 2005-10-11  Simon Josefsson  <jas@extundo.com>
79821
79822         * m4/crc.m4: New file.
79823
79824 2005-10-11  Simon Josefsson  <jas@extundo.com>
79825
79826         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79827
79828         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79829
79830         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79831
79832 2005-10-11  Simon Josefsson  <jas@extundo.com>
79833
79834         * lib/crc.h, lib/crc.c: New files.
79835
79836         * lib/gc.h (gc_hash_buffer): Add doc.
79837
79838 2005-10-11  Bruno Haible  <bruno@clisp.org>
79839
79840         * modules/c-strcasestr: New file.
79841         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79842
79843 2005-10-11  Bruno Haible  <bruno@clisp.org>
79844
79845         * modules/c-strcase: New file.
79846         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79847
79848 2005-10-11  Bruno Haible  <bruno@clisp.org>
79849
79850         * lib/strcasecmp.c: Include limits.h.
79851         (strcasecmp): Avoid integer overflow on exotic platforms.
79852         * lib/strncasecmp.c: Include limits.h.
79853         (strncasecmp): Avoid integer overflow on exotic platforms.
79854         Reported by Paul Eggert.
79855
79856 2005-10-11  Bruno Haible  <bruno@clisp.org>
79857
79858         * lib/c-strcasestr.h: New file, from GNU gettext.
79859         * lib/c-strcasestr.c: New file, from GNU gettext.
79860
79861 2005-10-11  Bruno Haible  <bruno@clisp.org>
79862
79863         * lib/c-strcase.h: New file, from GNU gettext.
79864         * lib/c-strcasecmp.c: New file, from GNU gettext.
79865         * lib/c-strncasecmp.c: New file, from GNU gettext.
79866
79867 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * modules/mempcpy (License): GPL -> LGPL.
79870         * modules/strchrnul (License): Likewise.
79871         * modules/sysexits (License): Likewise.
79872
79873 2005-10-08  Simon Josefsson  <jas@extundo.com>
79874
79875         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79876
79877 2005-10-07  Simon Josefsson  <jas@extundo.com>
79878
79879         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79880
79881 2005-10-06  Simon Josefsson  <jas@extundo.com>
79882
79883         * tests/test-hmac-md5.c: New file.
79884
79885         * modules/hmac-md5-tests: New file.
79886
79887         * modules/hmac-md5: New file.
79888
79889 2005-10-06  Simon Josefsson  <jas@extundo.com>
79890
79891         * m4/hmac-md5.m4: New file.
79892
79893         * m4/memxor.m4: Require gl_C_RESTRICT.
79894
79895 2005-10-06  Simon Josefsson  <jas@extundo.com>
79896
79897         * lib/memxor.c (memxor): Avoid casts and warnings.
79898
79899 2005-10-06  Simon Josefsson  <jas@extundo.com>
79900
79901         * lib/hmac-md5.c: New file.
79902
79903         * lib/hmac.h: New file.
79904
79905 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79908         promotes to int, not unsigned int, to catch the AIX 5.3
79909         compiler bug.
79910
79911 2005-10-05  Simon Josefsson  <jas@extundo.com>
79912
79913         * modules/memxor: New file.
79914
79915         * modules/iconv (Files): Move config.rpath to havelib, it is used
79916         there.
79917
79918         * modules/havelib (Files): Add config.rpath.
79919
79920 2005-10-05  Simon Josefsson  <jas@extundo.com>
79921
79922         * m4/memxor.m4: New file.
79923
79924 2005-10-05  Simon Josefsson  <jas@extundo.com>
79925
79926         * lib/memxor.c (memxor): Fix compiler error.
79927
79928         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79929         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79930
79931         * lib/memxor.h, lib/memxor.c: New files.
79932
79933         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79934         we assume all systems have it, suggested by Jim Meyering
79935         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79936         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79937         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79938         same reasons.
79939
79940 2005-10-05  Simon Josefsson  <jas@extundo.com>
79941
79942         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79943
79944 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79947         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79948         needed, since the source code now assumes these .h files.
79949
79950 2005-10-05  Derek Price  <derek@ximbiot.com>
79951
79952         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79953
79954 2005-10-05  Bruno Haible  <bruno@clisp.org>
79955
79956         * modules/stdint (License): Change to LGPL.
79957
79958 2005-10-04  Simon Josefsson  <jas@extundo.com>
79959
79960         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79961         D. Baushke" <mdb@gnu.org>.
79962
79963 2005-10-04  Bruno Haible  <bruno@clisp.org>
79964
79965         * lib/verify.h (verify_true): Provide alternative definition for C++.
79966
79967 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79970         (SSIZE_MAX): New macro, if not already defined.
79971         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79972         than 2 GiB.
79973
79974 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79975
79976         Sync from coreutils.
79977         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79978         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79979         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79980         ULLONG_MAX doesn't work with 2.7.2.1.
79981
79982 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79985         From Ben Pfaff.
79986
79987         * modules/exclude (Depends-on): Depend on verify.
79988         * modules/strtoimax (Depends-on): Likewise.
79989         * modules/utimecmp (Depends-on): Likewise.
79990
79991 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * lib/exclude.c: Include verify.h.
79994         (verify): Remove.  All callers changed to use verify.h's version.
79995         * lib/strtoimax.c: Likewise.
79996         * lib/utimecmp.c: Likewis.e
79997
79998         Sync from coreutils.
79999         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80000         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80001         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80002         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80003         bother returning ENOSYS if settimeofday or stime fails; just let
80004         them return whatever errno they want to return.
80005         * lib/utimens.c: Include unistd.h, for dup2.
80006         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80007         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80008
80009 2005-10-02  Jim Meyering  <jim@meyering.net>
80010
80011         Sync from coreutils.
80012         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80013         from glibc-2.2.5 that fails for read-only files.
80014
80015 2005-10-02  Jim Meyering  <jim@meyering.net>
80016
80017         Sync from coreutils.
80018         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80019         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80020         `#if HAVE_CONFIG_H'.
80021         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80022         Remove AT_FDCWD test.
80023         Do not consume the fd unless successful.
80024         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80025         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80026         block, so that we don't even try to compile it if settimeofday is
80027         available.  This works around a compilation failure on OSF1 V5.1,
80028         due to stime requiring a `long int*' while tv_sec is `int'.
80029
80030 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80031
80032         Sync from coreutils.
80033         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80034         against `yes', rather than just testing for nonempty.
80035
80036 2005-10-01  Simon Josefsson  <jas@extundo.com>
80037
80038         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80039         and Darwin.
80040
80041         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80042         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80043         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80044         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80045         Check if struct addrinfo is declared.
80046
80047 2005-10-01  Simon Josefsson  <jas@extundo.com>
80048
80049         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80050         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80051         AI_* and EAI_* definitions.  Protect function declarations.
80052
80053 2005-10-01  Jim Meyering  <jim@meyering.net>
80054
80055         Sync from coreutils.
80056
80057         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80058         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80059         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80060         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80061         in the inet and nsl libraries.  Required on Solaris 5.7.
80062
80063 2005-10-01  Jim Meyering  <jim@meyering.net>
80064
80065         Sync from coreutils.
80066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80067         in the inet and nsl libraries.  Required on Solaris 5.7.
80068
80069 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80070
80071         * lib/getdelim.c (getdelim): Remove unused variables.
80072
80073 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80074
80075         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80076         so that the code works even with ancient cpp.  Portability problem
80077         with GCC 2.7.2.1 reported by Thomas M.Ott.
80078
80079 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * modules/regex (Depends-on): Add strcase.
80082
80083         * modules/gethostname (Licence): Change from GPL to LGPL, since
80084         gethostname.c is a trivial implementation of a standard library
80085         function.
80086         * modules/poll (License): Change from GPL to LGPL, since it's
80087         derived from LGPL code.
80088
80089 2005-09-27  Jim Meyering  <jim@meyering.net>
80090
80091         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80092         HAVE_CONFIG_H.
80093
80094         * lib/intprops.h (signed_type_or_expr__): Define.
80095         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80096         for unsigned types.
80097
80098 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * lib/verify.h (verify_expr): Remove, replacing with:
80101         (verify_true): New macro that returns true instead of void.
80102         (verify_type__): Remove.
80103         (verify): Use verify_true rather than verify_type__.
80104
80105 2005-09-26  Bruno Haible  <bruno@clisp.org>
80106
80107         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80108         is necessary.
80109         (lib_SOURCES): Remove mbchar.c.
80110         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80111         (Files): Add m4/mbrtowc.m4.
80112         * modules/mbiter: Likewise.
80113         * modules/mbuiter: Likewise.
80114
80115 2005-09-26  Bruno Haible  <bruno@clisp.org>
80116
80117         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80118         compile mbchar.c if they are not both present.
80119         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80120         * m4/mbiter.m4 (gl_MBITER): Likewise.
80121         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80122         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80123         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80124
80125 2005-09-25  Jim Meyering  <jim@meyering.net>
80126
80127         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80128         also uses socklen_t.
80129
80130 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80131
80132         * lib/utimens.c (ENOSYS): Define if not already defined.
80133         (futimens): Support having a null PATH if the file descriptor
80134         is nonnegative.
80135
80136         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80137         Remove.
80138         (__attribute): Define to empty unless GCC 3.1 or later.
80139         This works around a core dump on OpenBSD 3.4, which has GCC
80140         2.95.3, which dumps core when given __attribute__(()).  It also
80141         simplifies other tests, since we really don't want to bother with
80142         worrying about which ancient version of GCC supported what.
80143         Original problem reported by Yoann Vandoorselaere, with part of
80144         the fix suggested by Derek Price.
80145
80146 2005-09-24  Jim Meyering  <jim@meyering.net>
80147
80148         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80149         so we can once again use a positive bitfield width of 1 -- now we
80150         don't have to explain why we were using a bitfield width of 2.
80151
80152 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80153
80154         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80155         and similarly for the other external symbols.  Problem reported
80156         by James Gallager.
80157
80158         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80159         bug reported by Jim Meyering.
80160
80161         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80162         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80163         not needed, since socklen is a prerequisite module.
80164
80165 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80168         Problem reported by Eric Blake.
80169         (getaddrinfo): Initialize se so that it's not garbage.
80170         Redo internal storage allocation so that it doesn't make unportable
80171         assumptions about alignment.
80172         Fix a memory leak.
80173
80174         * lib/utimens.c (futimens): Use futimesat if available.
80175         Prefer it to futimes since it doesn't have the futimes bug.
80176
80177         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80178         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80179         Instead, declare a function that returns a pointer to an array,
80180         and use verify_type__ to declare the size of the array.
80181         Problem and germ of a solution reported by Bruno Haible.
80182         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80183         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80184
80185 2005-09-23  Jim Meyering  <jim@meyering.net>
80186
80187         Sync from coreutils.
80188         Correct build failure (socklen_t not defined) on at least
80189         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80190         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80191
80192 2005-09-23  Jim Meyering  <jim@meyering.net>
80193
80194         * modules/getaddrinfo (Depends-on): Add socklen.
80195
80196 2005-09-23  Bruno Haible  <bruno@clisp.org>
80197
80198         * tests/test-verify.c: New file.
80199
80200 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80201
80202         Sync from coreutils.
80203
80204         * modules/argmatch (Depends-on): Add verify.
80205         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80206         unistd-safer.
80207         * modules/save-cwd (Depends-on): Likewise.
80208
80209         * modules/openat (Files): Add lib/openat-die.c.
80210         (Depends-on): Remove error, exitfail.
80211         Add dirname.
80212
80213         * modules/verify: New file.
80214         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80215         with "verify" module.
80216
80217 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80218
80219         Sync from coreutils.
80220
80221         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80222         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80223         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80224         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80225         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80226         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80227         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80228         Don't bother checking for string.h, stdlib.h, unistd.h.
80229         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80230         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80231         module's job.
80232         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80233         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80234
80235         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80236         (gl_GETDATE): Use it.
80237
80238         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80239
80240 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80241
80242         Sync from coreutils.
80243
80244         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80245         stat-time.h.
80246         * lib/argmatch.h: Include verify.h
80247         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80248         (ARGMATCH_ASSERT): Remove; unused.
80249         * lib/canonicalize.c: Assume STDC_HEADERS.
80250         * lib/exclude.c: Include "strcase.h".
80251         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80252         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80253         and stdio-safer.h.
80254         (getusershell): Call fopen, not fopen_safer.
80255         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80256         Do not include unistd-safer.h.
80257         (save_cwd): Don't call fd_safer; no longer needed
80258         now that we include fcntl--.h.
80259
80260         * lib/getdate.y (relative_time): New type.
80261         (RELATIVE_TIME_0): New constant.
80262         (parser_control): Use relative_time instead of doing it ourselves.
80263         (%union): Add new relative_time rel member.
80264         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80265         Now typeless.
80266         (relunit, relunit_snumber): Now of type rel.
80267         (zone, rel, relunit, get_date): Adjust to above changes.
80268
80269         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80270         Do not include unistd-safer.h.
80271         (getloadavg): Don't call fd_safer; no longer needed
80272         now that we include fcntl--.h.
80273
80274         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80275         (make_dir_parents): Treat ENOSYS like EEXIST.
80276
80277         Improve quality of diagnostics on restore_cwd failure.
80278         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80279         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80280         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80281         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80282         each time through the loop.  Do not diagnose restore_cwd failure;
80283         that is the caller's job (and perhaps the caller does not care).
80284
80285         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80286         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80287         If the file already exists but is not a directory, don't bother
80288         to try to make its parents.
80289         Close potential file descriptor leak if we can't chdir("/") (!).
80290         Don't always return true if chdir($PWD) fails; return true only
80291         if the requested action was done successfully (except for the
80292         chdir($PWD)).
80293         Don't log final directory unless we actually made it.
80294         Refactor to avoid duplicate code to fix up permissions.
80295         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80296
80297         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80298         to make it a bit faster and (I hope) clearer.
80299         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80300         Fix bug in formats like %2N.
80301
80302         * lib/verify.h: New file.
80303
80304 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80305
80306         Sync from coreutils.
80307         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80308
80309 2005-09-22  Jim Meyering  <jim@meyering.net>
80310
80311         Sync from coreutils.
80312
80313         * m4/lstat.m4 (gl_FUNC_LSTAT):
80314         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80315         Remove obsolete comment.
80316         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80317         * m4/xstrtod.m4: Likewise.
80318
80319         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80320
80321 2005-09-22  Jim Meyering  <jim@meyering.net>
80322
80323         Sync from coreutils.
80324
80325         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80326
80327         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80328         the .tm_year member, since otherwise gcc-4.0 would now warn about
80329         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80330
80331         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80332         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80333
80334         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80335         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80336         when run in a time zone for which daylight savings time is in effect
80337         for the starting date.
80338
80339         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80340         stop us from restricting permissions of just-created absolute-named
80341         directories.
80342         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80343         to restore initial working directory.
80344         * lib/mkdir-p.c (make_dir_parents): New parameter:
80345         different_working_dir, to tell caller if/when we change the working
80346         directory and are unable to return to the initial one.
80347         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80348         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80349         `return false'.  This fixes a bug introduced on 2004-07-30.
80350
80351         * lib/openat.c (fdopendir): Be sure to close the supplied
80352         file descriptor before returning.  This makes our replacement
80353         implementation a little closer to Solaris's, where fdopendir
80354         ties the file descriptor to the returned DIR* pointer.
80355         * lib/openat.c (unlinkat): New function.
80356         * lib/openat.h (unlinkat): Add prototype.
80357         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80358         (openat_restore_fail): Rename from openat_restore_die.
80359         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80360
80361         Provide an alternative to exiting immediately upon save_cwd or
80362         restore_cwd failure.  Now, an application can arrange e.g.,
80363         to perform a longjump in that case.
80364         * lib/openat.c: Include dirname.h.
80365         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80366         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80367         and openat_restore_die rather than calling error directly.
80368         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80369
80370         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80371         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80372         define.
80373
80374         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80375         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80376                             int utc, int nanoseconds);
80377         Background:
80378         date should not have to allocate a megabyte of virtual memory to
80379         handle a format argument like +%1048575T.  When implemented with
80380         strftime, it must allocate such a buffer, use strftime to fill it
80381         in, print it, then free it.
80382         With fprintftime, it simply prints everything and exits.
80383         With no need for memory allocation, that's one fewer way to fail.
80384         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80385         optional field width, not before, so we accept %9:z, not %:9z.
80386         (my_strftime): Be sure to use L_('x') for literals.
80387
80388         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80389         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80390         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80391         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80392         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80393         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80394         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80395         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80396         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80397         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80398         * lib/xgethostname.c, lib/xreadlink.c:
80399         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80400
80401         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80402         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80403         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80404         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80405         and don't include <sys/file.h>).
80406
80407 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80408
80409         Sync from coreutils.
80410
80411         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80412         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80413         [!LDAV_DONE]: Avoid unused variable warning.
80414
80415 2005-09-21  Bruno Haible  <bruno@clisp.org>
80416
80417         * lib/unicodeio.h (unicode_to_mb): New declaration.
80418
80419 2005-09-20  Derek Price  <derek@ximbiot.com>
80420
80421         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80422         getaddrinfo.h.
80423
80424 2005-09-20  Bruno Haible  <bruno@clisp.org>
80425
80426         * gnulib-tool: Remove trailing slashes from the values specified for
80427         --source-base, --m4-base, --tests-base, --aux-dir.
80428         Suggested by Simon Josefsson <jas@extundo.com>.
80429
80430 2005-09-20  Bruno Haible  <bruno@clisp.org>
80431
80432         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80433         func_modules_to_filelist, func_import, func_create_testdir): Make all
80434         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80435         change when gnulib-tool is invoked in a different locale.
80436
80437 2005-09-19  Simon Josefsson  <jas@extundo.com>
80438
80439         * m4/socklen.m4: Fix typo.
80440
80441 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80442
80443         Use a consistent style for including <config.h>.
80444         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80445         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80446         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80447         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80448         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80449         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80450         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80451         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80452         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80453         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80454         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80455         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80456         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80457         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80458         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80459         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80460         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80461         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80462         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80463         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80464         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80465         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80466         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80467         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80468         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80469         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80470         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80471         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80472         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80473         lib/xstrtoumax.c, lib/yesno.c:
80474         Standardize inclusion of config.h.
80475         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80476         lib/inttostr.h:  Removed inclusion of config.h from header files.
80477         * lib/inttostr.c:  Adjusted in-tree users.
80478         * lib/timespec.h: Remove superfluous warning to include config.h.
80479         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80480         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80481         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80482         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80483         config.h with HAVE_CONFIG_H.
80484
80485 2005-09-19  Jim Meyering  <jim@meyering.net>
80486
80487         * modules/pathmax (License): Change to LGPL.
80488
80489 2005-09-19  Derek Price  <derek@ximbiot.com>
80490
80491         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80492
80493 2005-09-19  Bruno Haible  <bruno@clisp.org>
80494
80495         * gnulib-tool (import): Provide default for --tests-base.
80496
80497 2005-09-19  Bruno Haible  <bruno@clisp.org>
80498
80499         * doc/quote.texi: New file, extracted from gnulib.texi.
80500         * doc/ctime.texi: New file, extracted from gnulib.texi.
80501         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80502         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80503         * doc/gnulib.texi: Include them.
80504
80505 2005-09-18  Bruno Haible  <bruno@clisp.org>
80506
80507         Portability fix.
80508         * gnulib-tool (func_readlink): New function.
80509         (func_ln_if_changed): Use it.
80510
80511 2005-09-18  Bruno Haible  <bruno@clisp.org>
80512
80513         * gnulib-tool: Support --with-tests also with --import.
80514         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80515         (func_import): Use variables $testsbase and $inctests. Emit a
80516         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80517         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80518         SUBDIRS += $testsdir.
80519         (func_create_testdir): Update.
80520
80521 2005-09-18  Bruno Haible  <bruno@clisp.org>
80522
80523         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80524         instead of $dry_run.
80525         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80526         (func_ln_if_changed): Don't handle dry-run here.
80527         (func_import): In dry-run mode, detect more precisely which actions
80528         would be performed, and don't use "...ing" verbs.
80529
80530 2005-09-18  Bruno Haible  <bruno@clisp.org>
80531
80532         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80533         (func_import): Use join on two temporary files instead of three nested
80534         loops, in order to determine which files are new or old.
80535
80536 2005-09-18  Bruno Haible  <bruno@clisp.org>
80537
80538         * gnulib-tool (func_import): Comment out code that spits out the
80539         new files with --dry-run.
80540
80541 2005-09-18  Bruno Haible  <bruno@clisp.org>
80542
80543         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80544
80545 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * lib/stat-time.h: New file.
80548         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80549         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80550         in a different way.
80551         (timespec_cmp): New function.
80552         * lib/utimecmp.c: Include stat-time.h.
80553         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80554         members exist, not on the obsolescent ST_MTIM_NSEC.
80555         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80556
80557 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80560
80561 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * MODULES.html.sh (File system functions): Add stat-time.
80564         * modules/stat-time: New file.
80565         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80566         is now done in a different way, by the stat-time module.
80567         * modules/utimecmp (Depends-on): Add stat-time.
80568
80569 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * m4/st_mtim.m4: Remove.  Superseded by...
80572         * m4/stat-time.m4: New file.
80573         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80574         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80575
80576 2005-09-15  Derek Price  <derek@ximbiot.com>
80577
80578         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80579
80580 2005-09-15  Derek Price  <derek@ximbiot.com>
80581
80582         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80583         * lib/regex_internal.c: Ditto, using this...
80584         (__GNUC_PREREQ): ...new macro.
80585         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80586         using...
80587         (__GNUC_PREREQ): ...this new macro.
80588
80589         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80590
80591 2005-09-15  Derek Price  <derek@ximbiot.com>
80592             Paul Eggert  <eggert@cs.ucla.edu>
80593
80594         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80595         changes, consolidating in...
80596         * lib/regex_internal.h: ...this file.
80597
80598 2005-09-13  Jim Meyering  <jim@meyering.net>
80599
80600         * lib/canon-host.c: Filter through gnu indent and reword comments
80601         slightly.
80602         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80603
80604 2005-09-13  Derek Price  <derek@ximbiot.com>
80605
80606         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80607         failure.
80608         Reported by Jim Meyering  <jim@meyering.net>.
80609
80610 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80611
80612         * lib/base64.c: Typo.
80613         (base64_encode): Put b64str in initialized data section.
80614
80615 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80616
80617         Merge glibc and coreutils changes into gnulib, plus a few
80618         extra fixes.
80619         * lib/md5.c: Use #error rather than a string.
80620         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80621         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80622         (__attribute__): Define to empty for non recent-GCC.
80623         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80624         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80625         Renamed from their non-__ counterparts, with new macros replacing
80626         them if not _LIBC.  Add __THROW attribute.
80627         (rol): Remove.
80628         (struct md5_ctx): Align buffer if using GCC.
80629         * lib/sha1.h (struct sha1_ctx): Likewise.
80630         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80631         The old name was backwards.
80632         (NOTSWAP): Remove; not used.
80633         (rol): New macro, moved here from md5.h.
80634         (sha1_process_block): Remove a FIXME that doesn't make sense.
80635
80636 2005-09-12  Derek Price  <derek@ximbiot.com>
80637
80638         Return usable errors from canon-host.
80639         * lib/canon-host.h: New file.
80640         * lib/canon-host.c (canon_host): Wrap...
80641         (canon_host_r): ...this new function, which now relies exclusively on
80642         getaddrinfo.
80643         (ch_strerror): New function.
80644         (last_cherror): New global.
80645         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80646         interface.
80647         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80648         void *.
80649         (freeaddrinfo): Free ai->ai_canonname when set.
80650
80651 2005-09-12  Derek Price  <derek@ximbiot.com>
80652
80653         Make canon-host require getaddrinfo.
80654         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80655         AC_LIBSOURCE canon-host.h.  Call...
80656         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80657         gl_GETADDRINFO.
80658         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80659
80660 2005-09-12  Derek Price  <derek@ximbiot.com>
80661
80662         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80663         LGPL.
80664         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80665
80666 2005-09-12  Derek Price  <derek@ximbiot.com>
80667
80668         * lib/gai_strerror.c: Include config.h when available.  Include
80669         getaddrinfo.h before other headers to test interface.
80670         Reported by Larry Jones <lawrence.jones@ugs.com>.
80671
80672 2005-09-12  Derek Price  <derek@ximbiot.com>
80673             Paul Eggert  <eggert@cs.ucla.edu>
80674
80675         * modules/glob (Files): Add glob-libc.h.
80676
80677 2005-09-12  Derek Price  <derek@ximbiot.com>
80678             Paul Eggert  <eggert@cs.ucla.edu>
80679
80680         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80681         glob_.h, glob-libc.h.
80682         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80683
80684 2005-09-12  Derek Price  <derek@ximbiot.com>
80685             Paul Eggert  <eggert@cs.ucla.edu>
80686
80687         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80688         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80689         protecting things that should be done only in gnulib contexts.
80690         * lib/glob_.h: New file, containing only the glob things needed for
80691         gnulib.
80692         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80693         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80694         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80695         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80696         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80697         and to respect the namespace rules better.
80698
80699 2005-09-08  Simon Josefsson  <jas@extundo.com>
80700
80701         * modules/socklen: New file.
80702
80703 2005-09-08  Simon Josefsson  <jas@extundo.com>
80704
80705         * m4/socklen.m4: New file.
80706
80707 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * modules/utimens (Files): Add m4/utimbuf.m4, since
80710         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80711         Reported by Sergey Poznyakoff.
80712
80713 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80716         definitions, since that's the preferred style in glibc.
80717         Fix a minor spacing issue, and update copyright notice to match
80718         glibc's.
80719
80720 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80723
80724 2005-09-06  Simon Josefsson  <jas@extundo.com>
80725
80726         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80727         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80728
80729 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80730
80731         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80732         warning.
80733
80734 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * config/srclist.txt: Add glibc bug 1302.
80737
80738 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80739
80740         Change bitset word type from unsigned int to unsigned long int,
80741         as this has better performance on typical 64-bit hosts.
80742         Port bitset code to hosts with unusual word sizes.
80743         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80744         (build_collating_symbol):
80745         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80746         argument is a bitset.  This is merely a style issue, but it makes
80747         it clearer that an entire array is expected.
80748         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80749         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80750         Port to the case where bitset_word is not the same as unsigned int.
80751         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80752         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80753         Likewise.
80754         * lib/regexec.c (check_dst_limits_calc_pos_1,
80755         check_subexp_matching_top):
80756         (build_trtable, group_nodes_into_DFAstates):
80757         Likewise.
80758         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80759         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80760         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80761         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80762         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80763         * lib/regcomp.c (optimize_subexps, lower_subexp):
80764         Work even if bitset_word has holes in its bitwise representation.
80765         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80766         * lib/regexec.c (check_dst_limits_calc_pos_1,
80767         check_subexp_matching_top):
80768         Likewise.
80769         * lib/regex_internal.c (re_string_reconstruct):
80770         Don't assume UCHAR_MAX == 255.
80771         * lib/regex_internal.h (bitset_set_all): Likewise.
80772         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80773         All uses changed.
80774         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80775         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80776         All uses changed.
80777         (BITSET_WORD_MAX): New macro.
80778         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80779         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80780         (bitset_empty, bitset_copy):
80781         Prefer sizeof (bitset) to multiplying it out ourselves.
80782         (bitset_not_merge): Remove; unused.
80783         (bitset_contain): Return bool, not unsigned int with one bit on.
80784         All callers changed.
80785         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80786         alignment than re_node_set; do this by defining a new internal
80787         type struct dests_alloc and using it to allocate memory.
80788
80789 2005-09-05  Bruno Haible  <bruno@clisp.org>
80790
80791         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80792         links.
80793
80794 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80795
80796         * modules/size_max (Makefile.am): Add size_max.h
80797
80798 2005-09-04  Derek Price  <derek@ximbiot.com>
80799
80800         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80801
80802 2005-09-03  Simon Josefsson  <jas@extundo.com>
80803
80804         * gnulib-tool: Fix typo.
80805
80806 2005-09-03  Simon Josefsson  <jas@extundo.com>
80807
80808         * config/srclist.txt: Add glibc bug 1293.
80809
80810 2005-09-03  Derek Price  <derek@ximbiot.com>
80811
80812         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80813         From Larry Jones <lawrence.jones@ugs.com>.
80814
80815 2005-09-02  Simon Josefsson  <jas@extundo.com>
80816
80817         * modules/socklen: New file.
80818
80819 2005-09-02  Simon Josefsson  <jas@extundo.com>
80820
80821         * modules/havelib: New module.
80822
80823         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80824         Use havelib.
80825
80826 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80827
80828         Check for arithmetic overflow when calculating sizes, to prevent
80829         some buffer-overflow issues.  These patches are conservative, in the
80830         sense that when I couldn't determine whether an overflow was possible,
80831         I inserted a run-time check.
80832         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80833         macros.
80834         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80835         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80836         (re_xnrealloc, re_x2nrealloc): New inline functions.
80837         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80838         parse_bracket_exp):
80839         (build_equiv_class, build_charclass): Check for arithmetic overflow
80840         in size expression calculations.
80841         * lib/regex_internal.c (re_string_realloc_buffers):
80842         (build_wcs_upper_buffer, re_node_set_add_intersect):
80843         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80844         (re_dfa_add_node, register_state): Likewise.
80845         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80846         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80847         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80848         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80849
80850 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80851
80852         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80853         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80854
80855 2005-09-02  Bruno Haible  <bruno@clisp.org>
80856
80857         Support for lib vs. lib64 distinction on biarch platforms.
80858         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80859         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80860         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80861
80862 2005-09-02  Bruno Haible  <bruno@clisp.org>
80863
80864         * gnulib-tool (import): In the other first-use case, provide defaults
80865         as well.
80866
80867 2005-09-02  Bruno Haible  <bruno@clisp.org>
80868
80869         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80870         patches not yet found in the latest gettext release.
80871
80872 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80873
80874         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80875         to avoid a collision with bits/local_lim.h in glibc.
80876         All uses changed.  Problem reported by Dmitry V. Levin in
80877         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80878
80879         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80880         bugs in int versus size_t comparisons.
80881         (re_string_context_at): Fix bug where the code assumed that
80882         Idx is signed.
80883
80884         Use bool where appropriate.
80885         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80886         All callers changed.
80887         (calc_eclosure_iter): Likewise, for ROOT arg.
80888         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80889         (build_charclass_op): Likewise, for NON_MATCH arg.
80890         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80891         (re_string_construct_common): Likewise, for ICASE arg.
80892         * lib/regexec.c (re_search_2_stub, re_search_stub):
80893         Likewise, for RET_LEN arg.
80894         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80895         (set_regs): Likewise, for FL_BACKTRACK arg.
80896         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80897         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80898         (calc_eclosure_iter, parse_bracket_exp):
80899         Use bool for internal variables that are booleans.
80900         * lib/regexec.c (re_search_internal, check_matching,
80901         proceed_next_node):
80902         (set_regs, build_sifted_states, sift_states_bkref):
80903         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80904         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80905         (find_collation_sequence_value):
80906         Likewise.
80907         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80908         (re_node_set_compare):
80909         Return bool, not int. All callers changed.
80910         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80911         (build_trtable, check_node_accept): Likewise.
80912         * lib/regex_internal.h: Include stdbool.h.
80913
80914         Fix bugs uncovered when converting to bool.
80915         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80916         failure instead of charging ahead blindly.
80917         * lib/regex_internal.c (register_state): Likewise.
80918         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80919         for freeing internal storage.
80920         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80921         bitset pieces used as boolean, to avoid undefined behavior
80922         on hosts that do int overflow checking.
80923
80924 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80925
80926         * config/srclist.txt: Add glibc bugs 1285-1287.
80927
80928 2005-09-01  Jim Meyering  <jim@meyering.net>
80929
80930         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80931         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80932         Require gl_STAT_MACROS, too.
80933
80934 2005-09-01  Bruno Haible  <bruno@clisp.org>
80935
80936         * gnulib-tool (import): In the first-use case, provide defaults.
80937
80938 2005-09-01  Bruno Haible  <bruno@clisp.org>
80939
80940         * gnulib-tool (func_import): Remove the .tmp files.
80941
80942 2005-09-01  Bruno Haible  <bruno@clisp.org>
80943
80944         * gnulib-tool (func_import): Fix handling of symbolic links.
80945
80946 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80949         old glibc regex code mishandles strings longer than 2**31 bytes.
80950         This patch fixes this when the regex code is used in gnulib
80951         (i.e., outside glibc).
80952
80953         This patch should not affect the use of the regex code inside
80954         glibc.  No doubt this problem also needs to be handled for glibc
80955         as well, but the result will be an incompatible change to the
80956         glibc ABI, and the old ABI will have to be supported too.  That
80957         can be the the subject for another patch.
80958
80959         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80960         governing whether the rest of this patch is active.  By default,
80961         the macro is disabled and the patch has no effect.
80962         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80963         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80964         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80965         (re_match_2, re_set_registers): Use the new types.
80966         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80967         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80968         New macros.
80969         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80970         (re_string_context_at, bin_tree_t, re_dfastate_t):
80971         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80972         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80973         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80974         (re_string_char_size_at, re_string_wchar_at):
80975         (re_string_elem_size_at):
80976         Use the new types and macros to port to 64-bit hosts.
80977         Use unsigned types for internal values, so that the code
80978         mostly works even for arrays larger than SSIZE_MAX.
80979         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80980         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80981         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80982         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80983         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80984         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80985         (calc_inveclosure, parse_dup_op, build_range_exp):
80986         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80987         (fetch_number, create_token_tree, mark_opt_subexp):
80988         Likewise.
80989         * lib/regex_internal.c (re_string_construct_common,
80990         create_ci_newstate):
80991         (create_cd_newstate, re_string_allocate, re_string_construct):
80992         (re_string_realloc_buffers, build_wcs_upper_buffer):
80993         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80994         (re_string_reconstruct, re_string_peek_byte_case):
80995         (re_string_fetch_byte_case, re_string_context_at):
80996         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80997         (re_node_set_init_copy, re_node_set_add_intersect):
80998         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80999         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81000         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81001         (re_acquire_state, re_acquire_state_context, register_state):
81002         Likewise.
81003         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81004         search_cur_bkref_entry):
81005         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81006         (re_search_internal, re_search_2_stub, re_search_stub)
81007         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81008         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81009         (update_cur_sifted_state, check_dst_limits):
81010         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81011         (check_subexp_limits, sift_states_bkref, merge_state_array):
81012         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81013         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81014         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81015         (expand_bkref_cache, check_node_accept_bytes):
81016         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81017         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81018         (acquire_init_state_context, check_halt_node_context):
81019         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81020         (sift_states_backward, clean_state_log_if_needed):
81021         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81022         (find_recover_state, transit_state_sb, transit_state_mb):
81023         (transit_state_bkref, build_trtable, match_ctx_clean):
81024         Likewise.
81025         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81026         to work around an assumption that REG_MISSING is negative.
81027
81028         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81029         (seek_collating_symbol_entry) [defined _LIBC]:
81030         (lookup_collation_sequence_value) [defined _LIBC]:
81031         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81032         Use prototypes rather than old-style function definitions.
81033         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81034         (transit_state_sb) [0]:
81035         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81036
81037         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81038         rm_eo.
81039
81040         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81041         (optimize_subexps, lower_subexp):
81042         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81043         since the signed shift might overflow.  Use 1u<<31 instead.
81044         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81045         Likewise.
81046         * lib/regexec.c (check_dst_limits_calc_pos_1,
81047         check_subexp_matching_top): Likewise.
81048
81049         * lib/regcomp.c (optimize_subexps, lower_subexp):
81050         Use CHAR_BIT rather than 8, for clarity.
81051         * lib/regexec.c (check_dst_limits_calc_pos_1):
81052         (check_subexp_matching_top): Likewise.
81053         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81054         have to worry about portability issues when shifting it left.
81055         Remove no-longer-needed test for table_size > 0.
81056         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81057         in a word, as the resulting behavior is undefined.
81058         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81059         in one case, a <= should have been an <, and in another case the
81060         whole test was missing.
81061         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81062         the standard name CHAR_BIT.
81063         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81064         this is not true on one's complement and signed-magnitude hosts.
81065
81066         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81067         next_last_offset.
81068         (struct re_dfa_t): Remove unused member states_alloc.
81069         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81070
81071 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81072
81073         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81074         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81075         and large-file glibc and in 32-bit large-file Solaris.
81076
81077 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81080         lengths fit in regoff_t; this isn't true if regoff_t is the same
81081         width as size_t.
81082         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81083         (= START + RANGE) instead of RANGE.  This avoids overflow
81084         problems when regoff_t is the same width as size_t.
81085         All callers changed.
81086         (re_search_2_stub): Check for overflow when adding the
81087         sizes of the two strings.
81088         (re_search_stub): Check for overflow when adding START
81089         to RANGE; if it occurs, substitute the extreme value.
81090
81091 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81092
81093         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81094
81095 2005-08-31  Jim Meyering  <jim@meyering.net>
81096
81097         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81098         a pointer-to-const.
81099         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81100         (register_state): Likewise.
81101         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81102         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81103         (group_nodes_into_DFAstates): Likewise.
81104
81105 2005-08-31  Jim Meyering  <jim@meyering.net>
81106
81107         * check-module: Add a FIXME comment.
81108
81109 2005-08-31  Eric Blake  <ebb9@byu.net>
81110
81111         * modules/unistd-safer (Files): Add unistd--.h.
81112         * modules/stdio-safer (Files): Add stdio--.h.
81113
81114 2005-08-31  Derek Price  <derek@ximbiot.com>
81115
81116         * lib/getdelim.c (getdelim): Return EOF on EOF.
81117         Reported by Larry Jones <lawrence.jones@ugs.com>.
81118
81119 2005-08-31  Bruno Haible  <bruno@clisp.org>
81120
81121         Avoid unnecessary diffs in the generated lib/Makefile.am.
81122         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81123         the generated files.
81124         (func_import): Don't set cmd.
81125
81126 2005-08-31  Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/strstr.c: Include <stddef.h>, for NULL.
81129         * lib/strcasestr.c: Likewise.
81130         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81131
81132 2005-08-31  Bruno Haible  <bruno@clisp.org>
81133
81134         * gnulib-tool: New option --macro-prefix.
81135         (func_import): Use macro_prefix.
81136         (import): Handle option --macro-prefix.
81137
81138 2005-08-31  Bruno Haible  <bruno@clisp.org>
81139
81140         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81141         Also use new variables cached_lgpl, cached_libtool.
81142
81143 2005-08-31  Bruno Haible  <bruno@clisp.org>
81144
81145         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81146         always instantiating them.
81147
81148 2005-08-31  Bruno Haible  <bruno@clisp.org>
81149
81150         * gnulib-tool (func_import): Read the previous cached settings
81151         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81152         earlier added by gnulib but are now dropped. Warn when a gnulib file
81153         overwrites a non-gnulib file.
81154
81155 2005-08-31  Bruno Haible  <bruno@clisp.org>
81156
81157         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81158         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81159         projects that don't keep autogenerated files in CVS. Put into
81160         actioncmd only the specified modules, not the transitive closure.
81161
81162 2005-08-31  Bruno Haible  <bruno@clisp.org>
81163
81164         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81165         Create directories that shall be filled.
81166         (import): Don't look for gl_* macros in configure.ac. Recurse across
81167         all directories containing a gnulib-cache.m4 files, if meaningful.
81168
81169 2005-08-31  Bruno Haible  <bruno@clisp.org>
81170
81171         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81172         (import): Set seen_libtool when we see gl_LIBTOOL.
81173
81174 2005-08-31  Bruno Haible  <bruno@clisp.org>
81175
81176         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81177         declaration macro definitions from generated gnulib.m4.
81178
81179 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81180
81181         * lib/iconvme.h: Add prototype for iconv_alloc.
81182
81183 2005-08-29  Simon Josefsson  <jas@extundo.com>
81184
81185         * lib/iconvme.c: Fix errno.
81186
81187 2005-08-29  Bruno Haible  <bruno@clisp.org>
81188
81189         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81190         that it works when the directory contains spaces.
81191
81192 2005-08-29  Bruno Haible  <bruno@clisp.org>
81193
81194         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81195
81196 2005-08-29  Bruno Haible  <bruno@clisp.org>
81197
81198         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81199         Emit more advice.
81200
81201 2005-08-29  Bruno Haible  <bruno@clisp.org>
81202         and Stepan Kasal  <kasal@ucw.cz>
81203
81204         * check-module: If more parameters are given, check each of them
81205         separately; add more exceptions, as noted by Jim Meyering.
81206         (check_module): New procedure.
81207         (%exempt_header): Now contains all exceptions.
81208
81209 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81210
81211         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81212
81213 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81214
81215         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81216
81217 2005-08-28  Bruno Haible  <bruno@clisp.org>
81218
81219         * m4/gnulib-tool.m4: New file.
81220
81221 2005-08-27  Jim Meyering  <jim@meyering.net>
81222
81223         * modules/unistd-safer (Files): Add pipe-safer.c.
81224         * modules/fcntl-safer (Files): Add creat-safer.c.
81225
81226 2005-08-27  Jim Meyering  <jim@meyering.net>
81227
81228         * m4/stdlib-safer.m4: New file.  From coreutils.
81229         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81230         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81231         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81232         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81233         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81234
81235 2005-08-27  Jim Meyering  <jim@meyering.net>
81236
81237         * lib/fopen-safer.c: Merge minor changes from coreutils.
81238         * lib/dup-safer.c: Likewise.
81239         * lib/fd-safer.c: Likewise.
81240
81241         Merge from coreutils.
81242         * lib/stdio--.h: New file.
81243         * lib/stdlib--.h: New file.
81244         * lib/mkstemp-safer.c: New file.
81245
81246         GNU tar needs these.
81247         * lib/pipe-safer.c: New file.
81248         * lib/creat-safer.c: New file.
81249         * lib/fcntl--.h (creat): Define to creat_safer.
81250         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81251         * lib/unistd--.h (pipe): Define to pipe_safer.
81252         * lib/unistd-safer.h: Declare pipe_safer.
81253
81254 2005-08-26  Simon Josefsson  <jas@extundo.com>
81255
81256         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81257         Haible <bruno@clisp.org>.
81258
81259 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         * lib/regex_internal.h: Remove all references to
81262         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81263         or better.
81264         (bitset_not, bitset_merge, bitset_not_merge):
81265         (bitset_mask, re_string_allocate, re_string_construct):
81266         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81267         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81268         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81269         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81270         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81271         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81272         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81273         (re_acquire_state_context):
81274         Remove unnecessary forward decls.
81275         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81276         Put __attribute at function definition,
81277         now that the function decl has been removed.
81278         * lib/regex_internal.c (re_string_peek_byte_case):
81279         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81280         Likewise.
81281
81282 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81283
81284         * m4/regex.m4: Add AC_PREREQ(2.50).
81285         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81286
81287 2005-08-25  Simon Josefsson  <jas@extundo.com>
81288
81289         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81290         __fsetlocking.
81291
81292 2005-08-25  Simon Josefsson  <jas@extundo.com>
81293
81294         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81295         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81296         GLIBC specific code.
81297
81298 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81299
81300         Make regex safe for g++.  This fixes one real bug (an "err"
81301         that should have been "*err").  g++ problem reported by
81302         Sam Steingold.
81303         * lib/regex_internal.h (re_calloc): New macro, consistent with
81304         re_malloc etc.  All callers of calloc changed to use re_calloc.
81305         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81306         not int.  All callers changed.
81307         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81308         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81309         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81310         (find_recover_state): Change "err" to "*err"; this fixes what
81311         appears to be a real bug.
81312         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81313         versus int.
81314
81315 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81316
81317         * modules/regex (Depends-on): Add malloc, since the code
81318         assumes that !malloc(0) means failure.
81319
81320 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81321
81322         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81323
81324         alloca modernization/simplification for regex.
81325         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81326         needs to be at the start of the file, and can be moved into
81327         regex_internal.h and simplified.
81328         * lib/regex_internal.h: Include <alloca.h>.
81329         (__libc_use_alloca) [!defined _LIBC]: New macro.
81330         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81331         now works outside glibc.
81332
81333 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * config/srclist.txt: Add glibc bugs 1241, 1245.
81336
81337 2005-08-25  Jim Meyering  <jim@meyering.net>
81338
81339         * lib/open-safer.c: Include <config.h>.
81340         Otherwise, we'd lose LARGEFILE support in any file using
81341         e.g. "fcntl--.h"
81342
81343 2005-08-25  Bruno Haible  <bruno@clisp.org>
81344
81345         * m4/minmax.m4: Require autoconf 2.52.
81346         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81347         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81348         alternatives of translit over the alphabet.
81349         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81350
81351 2005-08-24  Simon Josefsson  <jas@extundo.com>
81352
81353         * tests/test-getpass.c: New file.
81354
81355 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81356
81357         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81358         for GNU regex features.
81359
81360 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81363         * lib/regex.h (regerror): Likewise.
81364
81365         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81366         requires this.  (The code never needed it.)
81367
81368         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81369         All uses of recently-renamed identifiers changed to use the new,
81370         POSIX-compliant names.  The code will build and run just fine
81371         without these changes, but it's better to eat our own dog food
81372         and use the standard-conforming names.
81373
81374         * lib/regex.h: Fix a multitude of POSIX name space violations.
81375         These changes have an effect only for programs that define
81376         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81377         do not change anything for programs compiled in the normal way.
81378         Also, there is no effect on the ABI.
81379
81380         (_REGEX_SOURCE): New macro.
81381         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81382         defined and _GNU_SOURCE is not; this fixes a name space violation.
81383
81384         Rename the following macros to obey POSIX requirements.
81385         The old names are still visible as macros if _REGEX_SOURCE is defined.
81386         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81387         RE_BACKSLASH_ESCAPE_IN_LISTS.
81388         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81389         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81390         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81391         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81392         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81393         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81394         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81395         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81396         (REG_INTERVALS): renamed from RE_INTERVALS.
81397         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81398         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81399         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81400         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81401         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81402         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81403         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81404         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81405         RE_UNMATCHED_RIGHT_PAREN_ORD.
81406         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81407         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81408         (REG_DEBUG): renamed from RE_DEBUG.
81409         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81410         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81411         unusual, since we can't clash with the POSIX REG_ICASE.
81412         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81413         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81414         (REG_NO_SUB): renamed from RE_NO_SUB.
81415         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81416         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81417         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81418         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81419         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81420         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81421         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81422         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81423         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81424         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81425         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81426         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81427         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81428         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81429         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81430         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81431         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81432         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81433         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81434         (REG_FIXED): Renamed from REGS_FIXED.
81435         (REG_NREGS): Renamed from RE_NREGS.
81436
81437         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81438         of other REG_* macros, since POSIX says the user is allowed to
81439         #undef these macros selectively.
81440
81441         (reg_errcode_t): Update comment stating what other tables need
81442         to be consistent.
81443
81444         Rename the following enum values to obey POSIX requirements.
81445         The old names are still visible as macros.
81446         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81447         is not defined, since GNU is supposed to be a superset of POSIX as
81448         much as possible, and since we want reg_errcode_t to be a signed
81449         type for implementation consistency.
81450         (_REG_NOERROR): Renamed from REG_NOERROR.
81451         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81452         (_REG_BADPAT): Renamed from REG_BADPAT.
81453         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81454         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81455         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81456         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81457         (_REG_EBRACK): Renamed from REG_EBRACK.
81458         (_REG_EPAREN): Renamed from REG_EPAREN.
81459         (_REG_EBRACE): Renamed from REG_EBRACE.
81460         (_REG_BADBR): Renamed from REG_BADBR.
81461         (_REG_ERANGE): Renamed from REG_ERANGE.
81462         (_REG_ESPACE): Renamed from REG_ESPACE.
81463         (_REG_BADRPT): Renamed from REG_BADRPT.
81464         (_REG_EEND): Renamed from REG_EEND.
81465         (_REG_ESIZE): Renamed from REG_ESIZE.
81466         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81467         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81468         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81469         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81470         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81471
81472         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81473         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81474         changed.  But support the old name if the new one is not defined
81475         and if _REGEX_SOURCE.
81476
81477         Change the following member names in struct re_pattern_buffer.
81478         The old names are still supported if !_REGEX_SOURCE.
81479         The new names are always supported, regardless of _REGEX_SOURCE.
81480         (re_buffer): Renamed from buffer.
81481         (re_allocated): Renamed from allocated.
81482         (re_used): Renamed from used.
81483         (re_syntax): Renamed from syntax.
81484         (re_fastmap): Renamed from fastmap.
81485         (re_translate): Renamed from translate.
81486         (re_can_be_null): Renamed from can_be_null.
81487         (re_regs_allocated): Renamed from regs_allocated.
81488         (re_fastmap_accurate): Renamed from fastmap_accurate.
81489         (re_no_sub): Renamed from no_sub.
81490         (re_not_bol): Renamed from not_bol.
81491         (re_not_eol): Renamed from not_eol.
81492         (re_newline_anchor): Renamed from newline_anchor.
81493
81494         Change the following member names in struct re_registers.
81495         The old names are still supported if !_REGEX_SOURCE.
81496         The new names are always supported, regardless of _REGEX_SOURCE.
81497         (rm_num_regs): Renamed from num_regs.
81498         (rm_start): Renamed from start.
81499         (rm_end): Renamed from end.
81500
81501         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81502         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81503         Prepend __ to parameter names.
81504
81505         Undo yesterday's changes.
81506
81507 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81508
81509         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81510         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81511         lib/regex.c.
81512
81513 2005-08-24  Jim Meyering  <jim@meyering.net>
81514
81515         Sync from coreutils.
81516         * m4/fcntl-safer.m4: New file.
81517
81518         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81519         and object files for this module.
81520
81521 2005-08-24  Jim Meyering  <jim@meyering.net>
81522
81523         Sync from coreutils.
81524         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81525
81526 2005-08-24  Jim Meyering  <jim@meyering.net>
81527
81528         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81529         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81530
81531 2005-08-24  Jim Meyering  <jim@meyering.net>
81532
81533         * modules/fcntl-safer: New module.
81534         * modules/fts (Depends-on): Add fcntl-safer.
81535         * MODULES.html.sh (File descriptor based Input/Output):
81536         Add fcntl-safer.
81537
81538 2005-08-24  Bruno Haible  <bruno@clisp.org>
81539
81540         Support for unit test modules.
81541         * modules/README: Mention tests modules.
81542         * modules/TEMPLATE-TESTS: New file.
81543         * gnulib-tool: New options --extract-tests-module, --with-tests and
81544         --tests-base (unused for the moment).
81545         (testsbase, inctests): New variables.
81546         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81547         (func_verify_module): Exclude TEMPLATE-TESTS.
81548         (func_verify_nontests_module, func_verify_tests_module): New functions.
81549         (func_get_dependencies): Add implicit dependency for tests modules.
81550         (func_get_tests_module): New function.
81551         (func_modules_transitive_closure): When --with-tests was specified,
81552         include the unit tests as well, unless explicitly avoided.
81553         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81554         (func_emit_tests_Makefile_am): New function.
81555         (func_create_testdir): When --with-tests was specified, emit a
81556         tests/ directory.
81557         * MODULES.html.sh (Future developments): Update.
81558
81559 2005-08-24  Bruno Haible  <bruno@clisp.org>
81560
81561         * modules/tls-tests: New file.
81562         * tests/test-tls.c: New file, from GNU gettext.
81563
81564 2005-08-24  Bruno Haible  <bruno@clisp.org>
81565
81566         * modules/lock-tests: New file.
81567         * tests/test-lock.c: New file, from GNU gettext.
81568
81569 2005-08-24  Bruno Haible  <bruno@clisp.org>
81570
81571         * lib/lock.h: Add multiple inclusion guard.
81572         * lib/tls.h: Add multiple inclusion guard.
81573
81574 2005-08-24  Bruno Haible  <bruno@clisp.org>
81575
81576         * gnulib-tool: Add support for the --aux-dir option to
81577         --create-testdir, --create-megatestdir, --test, --megatest.
81578         (func_create_testdir, func_create_megatestdir): Optionally emit a
81579         AC_CONFIG_AUX_DIR directive.
81580         (create-testdir, create-megatestdir, test, megatest): Provide a
81581         default value for $auxdir.
81582
81583 2005-08-24  Bruno Haible  <bruno@clisp.org>
81584
81585         * gnulib-tool (import): Use compound statement instead of subshell
81586         where possible.
81587
81588 2005-08-24  Bruno Haible  <bruno@clisp.org>
81589
81590         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81591
81592 2005-08-24  Bruno Haible  <bruno@clisp.org>
81593
81594         * gnulib-tool (func_version): Update.
81595
81596 2005-08-24  Bruno Haible  <bruno@clisp.org>
81597
81598         * gnulib-tool (func_import, func_create_testdir,
81599         func_create_megatestdir): Quote all autoconf macro arguments.
81600
81601 2005-08-24  Bruno Haible  <bruno@clisp.org>
81602
81603         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81604         option --force, because --force causes the aclocal.m4 of each
81605         subdirectory to be newer than the corresponding config.h.in.
81606
81607 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81608
81609         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81610         All contents moved to gl_REGEX.
81611         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81612         assume that it does.
81613
81614 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         * lib/regex.h (REG_NOSYS)
81617         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81618         Define, since POSIX requires it as of 2001.
81619         (_REG_ENOSYS)
81620         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81621         New private symbol, used to keep the enum signed in all cases.
81622         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81623         Youngman in
81624         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81625
81626         * lib/regex_internal.c (re_string_skip_chars, register_state):
81627         (calc_state_hash):
81628         Remove forward decls; no longer needed now that we use prototypes.
81629         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81630         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81631         (clean_state_log_if_needed): Likewise.
81632
81633 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81634
81635         * config/srclist.txt: Add glibc bugs 1231-1233.
81636
81637 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         Fix problems reported by Sam Steingold in
81640         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81641         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81642         assumed that reg_errcode_t is a signed type, which is not
81643         necessarily true if _XOPEN_SOURCE is not defined.
81644         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81645         since some compilers warn about it otherwise.
81646
81647 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81650         (init_word_char, create_initial_state, duplicate_node_closure):
81651         (fetch_token, peek_token_bracket, build_range_exp):
81652         (build_collating_symbol): Remove forward decls; no longer needed
81653         now that we use prototypes.
81654
81655         * lib/regcomp.c:
81656         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81657         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81658         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81659         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81660         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81661         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81662         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81663         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81664         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81665         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81666         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81667         (build_charclass, build_charclass_op, fetch_number, create_tree):
81668         (create_token_tree, mark_opt_subexp, duplicate_tree):
81669         Use prototypes rather than old-style definitions.
81670
81671         * lib/regex_internal.c:
81672         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81673         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81674         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81675         (re_string_reconstruct, re_string_peek_byte_case):
81676         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81677         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81678         (re_node_set_init_copy, re_node_set_add_intersect):
81679         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81680         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81681         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81682         (re_acquire_state, re_acquire_state_context, register_state):
81683         (create_ci_newstate, create_cd_newstate, free_state):
81684         Likewise.
81685         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81686         re_search_2):
81687         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81688         (re_search_internal, prune_impossible_nodes):
81689         (acquire_init_state_context, check_matching, static):
81690         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81691         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81692         (update_regs, sift_states_backward, build_sifted_states):
81693         (clean_state_log_if_needed, merge_state_array):
81694         (update_cur_sifted_state, add_epsilon_src_nodes):
81695         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81696         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81697         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81698         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81699         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81700         (check_arrival, check_arrival_add_next_nodes):
81701         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81702         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81703         (check_node_accept_bytes, check_node_accept, extend_buffers):
81704         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81705         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81706         (sift_ctx_init):
81707         Likewise.
81708
81709         * lib/regex_internal.h:
81710         (re_string_allocate, re_string_construct, re_string_reconstruct):
81711         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81712         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81713         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81714         (re_string_context_at, re_string_peek_byte_case):
81715         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81716         is defined, since we now use prototypes always.
81717
81718         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81719         C89 or better.  All uses removed.
81720
81721 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * config/srclist.txt: Add glibc bugs 1220-1227.
81724
81725 2005-08-20  Jim Meyering  <jim@meyering.net>
81726
81727         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81728         of unused local, dfa.
81729
81730 2005-08-20  Bruno Haible  <bruno@clisp.org>
81731
81732         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81733
81734 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81735
81736         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81737         (re_node_set_insert_last, re_dfa_add_node):
81738         Rename local variables to avoid GCC shadowing warnings.
81739
81740 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81743         [defined lint]: Suppress bogus uninitialized-variable warnings.
81744
81745         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81746         and let the caller return REG_ESPACE if out of space.  This
81747         removes an uninitialied-variable warning with GCC 4.0.1, and also
81748         avoids taking the address of a local variable.  All callers
81749         changed.
81750
81751 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81754         $LIBCSRC/posix/regexec.c.
81755         Add glibc bug 1217 for regcomp.c.
81756
81757 2005-08-19  Jim Meyering  <jim@meyering.net>
81758
81759         * lib/regexec.c (proceed_next_node): Redo local variables to
81760         avoid GCC shadowing warnings.
81761
81762 2005-08-18  Bruno Haible  <bruno@clisp.org>
81763
81764         * lib/strstr.c (strstr): Fix return value in multibyte case.
81765         * lib/strcasestr.c (strcasestr): Likewise.
81766
81767 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81770
81771 2005-08-17  Jim Meyering  <jim@meyering.net>
81772
81773         Make the %s format (seconds since the epoch) work for a negative
81774         number and when used with a zero-padded field width, e.g. %015s.
81775
81776         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81777         label so that it precedes the code to set `digits'.  Otherwise,
81778         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81779         print `00-22'.  Now, it prints `-0022', as it should.
81780
81781 2005-08-17  Bruno Haible  <bruno@clisp.org>
81782
81783         * modules/strstr (Files): Add m4/mbrtowc.m4.
81784         (Depends-on): Add mbuiter.
81785
81786 2005-08-17  Bruno Haible  <bruno@clisp.org>
81787
81788         * modules/strcasestr: New file.
81789         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81790         strcasestr.
81791
81792 2005-08-17  Bruno Haible  <bruno@clisp.org>
81793
81794         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81795
81796 2005-08-17  Bruno Haible  <bruno@clisp.org>
81797
81798         * modules/mbuiter: New file.
81799         * MODULES.html.sh (Extended multibyte and wide character utilities):
81800         Add mbuiter.
81801
81802 2005-08-17  Bruno Haible  <bruno@clisp.org>
81803
81804         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81805         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81806
81807 2005-08-17  Bruno Haible  <bruno@clisp.org>
81808
81809         * m4/strcasestr.m4: New file.
81810
81811 2005-08-17  Bruno Haible  <bruno@clisp.org>
81812
81813         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81814         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81815
81816 2005-08-17  Bruno Haible  <bruno@clisp.org>
81817
81818         * lib/strcasestr.h: New file.
81819         * lib/strcasestr.c: New file.
81820
81821 2005-08-17  Bruno Haible  <bruno@clisp.org>
81822
81823         * lib/strcasecmp.c: Use mbuiter.h.
81824
81825 2005-08-17  Bruno Haible  <bruno@clisp.org>
81826
81827         * lib/mbuiter.h: New file.
81828
81829 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81830
81831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81832         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81833         and gl_GETOPT are both invoked via different paths (as happens
81834         with GNU tar CVS because it uses both argp and getopt), the former
81835         wins.
81836
81837 2005-08-16  Bruno Haible  <bruno@clisp.org>
81838
81839         * modules/tls: New file.
81840         * MODULES.html.sh (Multithreading): Add tls.
81841
81842 2005-08-16  Bruno Haible  <bruno@clisp.org>
81843
81844         * modules/strnlen1: New file.
81845         * MODULES.html.sh (String handling): Add strnlen1.
81846
81847 2005-08-16  Bruno Haible  <bruno@clisp.org>
81848
81849         * modules/strcase (Files): Add m4/mbrtowc.m4.
81850         (Depends-on): Add strnlen1, mbchar.
81851
81852 2005-08-16  Bruno Haible  <bruno@clisp.org>
81853
81854         * modules/mbiter: New file.
81855         * MODULES.html.sh (Extended multibyte and wide character utilities):
81856         Add mbiter.
81857
81858 2005-08-16  Bruno Haible  <bruno@clisp.org>
81859
81860         * modules/mbfile: New file.
81861         * MODULES.html.sh (Extended multibyte and wide character utilities):
81862         Add mbfile.
81863
81864 2005-08-16  Bruno Haible  <bruno@clisp.org>
81865
81866         * modules/mbchar: New file.
81867         * MODULES.html.sh (Extended multibyte and wide character utilities):
81868         New section.
81869
81870 2005-08-16  Bruno Haible  <bruno@clisp.org>
81871
81872         * m4/tls.m4: New file, from GNU gettext.
81873
81874 2005-08-16  Bruno Haible  <bruno@clisp.org>
81875
81876         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81877         always.
81878         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81879
81880 2005-08-16  Bruno Haible  <bruno@clisp.org>
81881
81882         * m4/mbiter.m4: New file.
81883
81884 2005-08-16  Bruno Haible  <bruno@clisp.org>
81885
81886         * m4/mbfile.m4: New file.
81887
81888 2005-08-16  Bruno Haible  <bruno@clisp.org>
81889
81890         * m4/mbchar.m4: New file.
81891
81892 2005-08-16  Bruno Haible  <bruno@clisp.org>
81893
81894         * lib/tls.h: New file, from GNU gettext.
81895         * lib/tls.c: New file, from GNU gettext.
81896
81897 2005-08-16  Bruno Haible  <bruno@clisp.org>
81898
81899         * lib/strnlen1.h: New file.
81900         * lib/strnlen1.c: New file.
81901
81902 2005-08-16  Bruno Haible  <bruno@clisp.org>
81903
81904         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81905         (mbi_init): Update.
81906         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81907         NUL byte, not after it.
81908
81909 2005-08-16  Bruno Haible  <bruno@clisp.org>
81910
81911         * lib/strcase.h (strcasecmp): Add note in comments.
81912         * lib/strncasecmp.c: Use code from strcasecmp.c.
81913         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81914         (strcasecmp): Work correctly in multibyte locales.
81915
81916 2005-08-16  Bruno Haible  <bruno@clisp.org>
81917
81918         * lib/mbiter.h: New file.
81919
81920 2005-08-16  Bruno Haible  <bruno@clisp.org>
81921
81922         * lib/mbfile.h: New file.
81923
81924 2005-08-16  Bruno Haible  <bruno@clisp.org>
81925
81926         * lib/mbchar.h: New file.
81927         * lib/mbchar.c: New file.
81928
81929 2005-08-16  Bruno Haible  <bruno@clisp.org>
81930
81931         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81932         the valid ones. Makes the comparison operations transitive:
81933         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81934         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81935
81936 2005-08-15  Simon Josefsson  <jas@extundo.com>
81937
81938         * modules/ssize_t (License): Change to 'unlimited'.
81939
81940         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81941
81942 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81945         Add comments for each pending glibc patch.
81946
81947 2005-08-15  Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81950         __cplusplus is defined.
81951
81952 2005-08-14  Jim Meyering  <jim@meyering.net>
81953
81954         Sync from coreutils.
81955
81956         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81957         Use the hash-table-based cycle-detection code not just when
81958         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81959         Reported by James Youngman in
81960         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81961         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81962         FTS_TIGHT_CYCLE_CHECK.
81963         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81964         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81965         once again.
81966         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81967         * lib/fts.c (fd_safer): Remove decl.
81968         Include fcntl--.h rather than unistd-safer.h
81969         (fts_safe_changedir): Don't call fd_safer; no longer needed
81970         now that we include fcntl--.h.
81971
81972 2005-08-12  Simon Josefsson  <jas@extundo.com>
81973
81974         * modules/getndelim2: Use ssize_t module.
81975         * modules/getnline: Likewise.
81976         * modules/safe-read: Likewise.
81977         * modules/xreadlink: Likewise.
81978
81979         * modules/ssize_t: New file.
81980
81981 2005-08-12  Simon Josefsson  <jas@extundo.com>
81982
81983         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81984
81985 2005-08-12  Simon Josefsson  <jas@extundo.com>
81986
81987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81988         ssize_t.
81989
81990 2005-08-12  Simon Josefsson  <jas@extundo.com>
81991
81992         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81993         readline, getdelim and check_version.
81994         (Support for systems lacking ISO C 99: Sizes of integer types):
81995         Add size_max.
81996
81997 2005-08-12  Bruno Haible  <bruno@clisp.org>
81998
81999         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82000
82001 2005-08-11  Simon Josefsson  <jas@extundo.com>
82002
82003         * modules/readline: New file.
82004
82005         * modules/strnlen (Files): Add strnlen.h.
82006
82007 2005-08-11  Simon Josefsson  <jas@extundo.com>
82008
82009         * m4/readline.m4: New file.
82010
82011 2005-08-11  Simon Josefsson  <jas@extundo.com>
82012
82013         * lib/readline.h, readline.c: New file.
82014
82015 2005-08-11  Simon Josefsson  <jas@extundo.com>
82016
82017         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82018         gl_AVOID.
82019
82020 2005-08-11  Bruno Haible  <bruno@clisp.org>
82021
82022         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82023
82024 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82025
82026         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82027
82028 2005-08-10  Simon Josefsson  <jas@extundo.com>
82029
82030         * tests/test-iconvme.c: New file.
82031
82032 2005-08-10  Simon Josefsson  <jas@extundo.com>
82033
82034         * m4/strnlen.m4: New file.
82035
82036         * m4/strndup.m4: Don't check for strnlen declaration, done in
82037         strnlen.m4.
82038
82039 2005-08-10  Simon Josefsson  <jas@extundo.com>
82040
82041         * lib/strndup.c: Use strnlen.h.
82042
82043         * lib/strnlen.h: New file.
82044
82045 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82046
82047         * README: Typos.
82048
82049 2005-08-02  Simon Josefsson  <jas@extundo.com>
82050
82051         * modules/readline: New file.
82052
82053 2005-08-02  Simon Josefsson  <jas@extundo.com>
82054
82055         * modules/getdelim: New file.
82056
82057         * modules/getline: Rewrite, don't use getndelim2.
82058
82059 2005-08-02  Simon Josefsson  <jas@extundo.com>
82060
82061         * m4/getline.m4: Separate out getdelim stuff into separate module.
82062
82063         * m4/getdelim.m4: New file.
82064
82065 2005-08-02  Simon Josefsson  <jas@extundo.com>
82066
82067         * lib/getline.h, getline.c: Rewrite.
82068
82069         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82070
82071 2005-07-31  Bruno Haible  <bruno@clisp.org>
82072
82073         * lib/lock.h (gl_lock_initializer): New macro.
82074         (gl_lock_define_initialized): Use it.
82075         (gl_rwlock_initializer): New macro.
82076         (gl_rwlock_define_initialized): Use it.
82077         (gl_recursive_lock_initializer): New macro.
82078         (gl_recursive_lock_define_initialized): Use it.
82079
82080 2005-07-30  Karl Berry  <karl@gnu.org>
82081
82082         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82083         Report from Ben Pfaff, regarding getopt.
82084
82085 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82086
82087         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82088         normal way.
82089         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82090         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82091         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82092         (gl_GETOPT): Use the new macros.  Most of the implementation
82093         is moved to the new macros.  This is for programs like Emacs
82094         that don't want all the functionality of gl_GETOPT.
82095
82096 2005-07-26  Bruno Haible  <bruno@clisp.org>
82097
82098         * m4/lock.m4: Update from GNU gettext.
82099
82100 2005-07-26  Bruno Haible  <bruno@clisp.org>
82101
82102         * lib/lock.h: Update from GNU gettext.
82103         * lib/lock.c: Update from GNU gettext.
82104
82105 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82106
82107         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82108         obsolescent AC_TRY_RUN.  Include the default includes files, for
82109         'exit'.
82110
82111 2005-07-24  Bruno Haible  <bruno@clisp.org>
82112
82113         * modules/visibility: New file.
82114         * MODULES.html.sh (Misc): Add visibility.
82115
82116 2005-07-24  Bruno Haible  <bruno@clisp.org>
82117
82118         * m4/visibility.m4: New file.
82119
82120 2005-07-24  Bruno Haible  <bruno@clisp.org>
82121
82122         * doc/visibility.texi: New file.
82123
82124 2005-07-22  Bruno Haible  <bruno@clisp.org>
82125
82126         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82127         $(ALLOCA_H), redundant through BUILT_SOURCES.
82128         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82129         redundant through BUILT_SOURCES.
82130         * modules/byteswap (Makefile.am): Remove explicit dependency on
82131         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82132         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82133         $(FNMATCH_H), redundant through BUILT_SOURCES.
82134         * modules/getopt (Makefile.am): Remove explicit dependency on
82135         $(GETOPT_H), redundant through BUILT_SOURCES.
82136         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82137         redundant through BUILT_SOURCES.
82138         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82139         redundant through BUILT_SOURCES.
82140         * modules/stdbool (Makefile.am): Remove explicit dependency on
82141         $(STDBOOL_H), redundant through BUILT_SOURCES.
82142         * modules/stdint (Makefile.am): Remove explicit dependency on
82143         $(STDINT_H), redundant through BUILT_SOURCES.
82144         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82145         Remove explicit dependency on $(SYSEXITS_H).
82146         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82147
82148 2005-07-18  Simon Josefsson  <jas@extundo.com>
82149
82150         * lib/check-version.c (check_version): Accept identical versions too.
82151
82152 2005-07-18  Bruno Haible  <bruno@clisp.org>
82153
82154         * modules/lock: New file.
82155         * MODULES.html.sh (Multithreading): New section.
82156
82157 2005-07-18  Bruno Haible  <bruno@clisp.org>
82158
82159         * m4/lock.m4: New file, from GNU gettext.
82160
82161 2005-07-18  Bruno Haible  <bruno@clisp.org>
82162
82163         * lib/lock.h: New file, from GNU gettext.
82164         * lib/lock.c: New file, from GNU gettext.
82165
82166 2005-07-18  Bruno Haible  <bruno@clisp.org>
82167
82168         * lib/lock.h (gl_once_t): New type.
82169         (gl_once_define, gl_once): New macros.
82170         * lib/lock.c (fresh_once): New variable.
82171         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82172         functions.
82173
82174 2005-07-16  Simon Josefsson  <jas@extundo.com>
82175
82176         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82177         workaround, suggested by Bruno.
82178
82179 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82180
82181         * modules/xalloc (Depends-on): Add xalloc-die.
82182         * modules/xvasprintf (Depends-on): Add xalloc-die.
82183
82184 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82187         with a minor change.
82188
82189 2005-07-15  Bruno Haible  <bruno@clisp.org>
82190
82191         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82192         When using lib/poll.c, define poll as rpl_poll.
82193
82194 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82195
82196         * modules/argp (Depends-on): Remove unlocked-io.
82197
82198 2005-07-14  Derek Price  <derek@ximbiot.com>
82199
82200         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82201         for glob symlink bug.
82202
82203 2005-07-14  Bruno Haible  <bruno@clisp.org>
82204
82205         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82206         Instead, test for *_unlocked function declarations directly.
82207
82208 2005-07-11  Simon Josefsson  <jas@extundo.com>
82209
82210         * modules/size_max: New file.
82211
82212         * modules/xsize: Depend on size_max module for size_max.m4.
82213
82214 2005-07-11  Simon Josefsson  <jas@extundo.com>
82215
82216         * lib/size_max.h: New file.
82217
82218 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82221         copyright symbol and the year.
82222         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82223         (version_etc_va): Use parameterized copyright notice.
82224         Reword to conform to the current GNU coding standards.
82225
82226 2005-07-11  Karl Berry  <karl@gnu.org>
82227
82228         * doc/gnulib.texi (Quoting): new node.
82229         (Initial import): more info, from Patrice.
82230
82231 2005-07-11  Bruno Haible  <bruno@clisp.org>
82232
82233         * gnulib-tool (func_usage): Document option --avoid.
82234         (Command line options): Handle --avoid.
82235         (func_acceptable): New function.
82236         (func_modules_transitive_closure): Use it.
82237
82238 2005-07-11  Bruno Haible  <bruno@clisp.org>
82239
82240         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82241         Reported by Jim Meyering.
82242
82243 2005-07-10  Bruno Haible  <bruno@clisp.org>
82244
82245         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82246         Needed when size_t is smaller than 'unsigned int'.
82247         Reported by Paul Eggert.
82248
82249 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82250
82251         * modules/argp (Depends-on): Add unlocked-io
82252
82253 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82254
82255         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82256         block of defines.
82257
82258 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82259
82260         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82261         fix now.
82262
82263 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82264         and Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82267         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82268
82269 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82270
82271         * modules/regex (Files): Add lib/regex_internal.c,
82272         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82273         (Depends-on): Add extensions.
82274         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82275
82276 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82277
82278         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82279         pathconf.
82280         * m4/same.m4 (gl_SAME): Likewise.
82281         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82282
82283         * m4/regex.m4: Adjust to new libc regex implementation.
82284         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82285         all the .c and .h parts of (the new) regex.
82286         Quote the m4 stuff better.
82287         Check for RE_ICASE bug of old gnulib.
82288         Check for REG_STARTEND of recent libc.
82289         Rename local variables from jm_* to gl_*.
82290         Quote operand of "test -f".
82291         Say "recent enough" version of libc, not "version 2".
82292         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82293         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82294         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82295         Remove check for btowc, isascii.
82296         Require AM_LANGINFO_CODESET.
82297
82298 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82299
82300         * lib/regex.c, regex.h: Sync from libc.
82301         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82302         * lib/regexec.c:
82303         New files, synced from libc, except that regex_internal.h
82304         currently has a small porting fix.
82305
82306 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82307
82308         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82309         regex_internal.c, regexec.c.
82310         Add regex_internal.h too, but as a comment, since the libc version
82311         is currently broken in gnulib mode.
82312
82313 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82314
82315         Support programs like Emacs that use gnulib but not gettext.
82316         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82317         * modules/gettext-h: New file.
82318         * modules/gettext (Files): Remove lib/gettext.h.
82319         (Depends-on): Add gettext-h.
82320         (Makefile.am): Remove lib_SOURCES.
82321         * modules/argmatch, modules/c-stack, modules/closeout:
82322         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82323         * modules/execute, modules/file-type, modules/getaddrinfo:
82324         * modules/getopt, modules/human, modules/javacomp:
82325         * modules/javaexec, modules/mkdir-p, modules/obstack:
82326         * modules/openat, modules/pagealign_alloc, modules/pipe:
82327         * modules/quotearg, modules/regex, modules/rpmatch:
82328         * modules/unicodeio, modules/userspec, modules/version-etc:
82329         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82330         * modules/xsetenv:
82331         Depend on gettext-h, not gettext.
82332
82333 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82334
82335         * gnulib-tool (func_import): Add support for 'public domain' license.
82336         * modules/alloca, modules/atexit, modules/memmove:
82337         Now public domain, not GPL.
82338         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82339         * modules/realloc, modules/strerror, modules/strtod:
82340         Now LGPL, not GPL.
82341
82342 2005-07-05  Bruno Haible  <bruno@clisp.org>
82343
82344         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82345         autoconf CVS. Needed for mingw.
82346
82347 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82348
82349         Remove the dependency of the strftime module on the tzset module.
82350         * modules/strftime (Depends-on): Remove dependency on tzset.
82351
82352 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         Remove the dependency of the strftime module on the tzset module.
82355         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82356         gl_FUNC_TZSET_CLOBBER.
82357
82358 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82359
82360         Remove the dependency of the strftime module on the tzset module.
82361         * lib/strftime.c (my_strftime)
82362         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82363         Copy the input structure, to work around some of the bug with
82364         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82365         Solaris releases, you should also use the tzset module, but we won't
82366         require it as a dependency any more since we don't want LGPLed code
82367         to depend on GPLed code.
82368
82369 2005-07-02  Jim Meyering  <jim@meyering.net>
82370
82371         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82372         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82373         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82374         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82375
82376 2005-07-02  Jim Meyering  <jim@meyering.net>
82377
82378         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82379
82380 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82381
82382         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82383         declares only 'struct timespec;' (!).
82384
82385 2005-07-01  Jim Meyering  <jim@meyering.net>
82386
82387         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82388         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82389         * lib/save-cwd.c, tempname.c:
82390         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82391         and don't include <sys/file.h>).
82392
82393 2005-06-29  Jim Meyering  <jim@meyering.net>
82394
82395         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82396         type name.  Use the variable name instead.
82397         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82398         Likewise.
82399
82400 2005-06-28  Simon Josefsson  <jas@extundo.com>
82401
82402         * modules/check-version (Files): Add check-version.m4.
82403
82404 2005-06-28  Simon Josefsson  <jas@extundo.com>
82405
82406         * m4/check-version.m4: New file, suggested by Jim Meyering
82407         <jim@meyering.net>.
82408
82409 2005-06-28  Simon Josefsson  <jas@extundo.com>
82410
82411         * lib/check-version.h, lib/check-version.c: New files.
82412
82413 2005-06-28  Simon Josefsson  <jas@extundo.com>
82414
82415         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82416         collision with global variable.  Better indentation.  Don't
82417         increment buffer pointer beyond buffer end.  Based on comments
82418         from Paul Eggert <eggert@cs.ucla.edu>.
82419
82420         * lib/base64.h: Indent.
82421
82422 2005-06-28  Simon Josefsson  <jas@extundo.com>
82423
82424         * doc/gnulib.texi (Library version handling): New section.
82425
82426 2005-06-28  Jim Meyering  <jim@meyering.net>
82427
82428         * check-module (find_included_lib_files): Hard-code another
82429         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82430         but modules/fts-lgpl (correctly) does not list those files.
82431
82432         * modules/canonicalize (Files): Add lib/pathmax.h.
82433
82434 2005-06-25  Simon Josefsson  <jas@extundo.com>
82435
82436         * modules/check-version: New file.
82437
82438 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82439
82440         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82441         initializer of struct addrinfo, as an indication that we don't
82442         care how many members the structure has.
82443
82444 2005-06-24  Derek Price  <derek@ximbiot.com>
82445         and Bruno Haible  <bruno@clisp.org>
82446
82447         Remove stat module & update lstat.
82448         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82449         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82450         * m4/stat.m4: Remove this file.
82451
82452 2005-06-24  Derek Price  <derek@ximbiot.com>
82453         and Bruno Haible  <bruno@clisp.org>
82454
82455         Remove stat module & update lstat.
82456         * lib/stat.c: Remove this file...
82457         (slash_aware_lstat): ...moving this content and its support...
82458         * lib/lstat.c (rpl_lstat): ...into here.
82459         * lib/lstat.h: New file.
82460
82461 2005-06-24  Derek Price  <derek@ximbiot.com>
82462         and Bruno Haible  <bruno@clisp.org>
82463
82464         Remove stat module & update lstat.
82465         * config/srclist.txt (libc sources): Remove stat.
82466
82467 2005-06-24  Derek Price  <derek@ximbiot.com>
82468         and Bruno Haible  <bruno@clisp.org>
82469
82470         Remove stat module & update lstat.
82471         * MODULES.html.sh (stat): Remove.
82472         * MODULES.html: Regenerated.
82473         * modules/lstat (Description): Correct function name.
82474         (Files): Add "lstat.h".
82475         (Depends-on): Remove stat, add xalloc, stat-macros.
82476         * modules/stat: Remove this file.
82477         (Include): Add "lstat.h", remove <sys/stat.h>.
82478
82479 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82480
82481         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82482         (ranged_convert): Don't save conversion in a temporary struct.
82483         This causes a warning with GCC 4.0.0, and anyway in the typical
82484         case it's not worth the extra 100 bytes or so of code.
82485         (ranged_convert, __mktime_internal): When calling a function via a
82486         pointer P, use P () rather than (*P) (), as we now assume C89 or
82487         better.
82488
82489 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82492         "who -r" failed to give output.  Problem reported by Tim Waugh.
82493
82494         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82495         (xcalloc): Use it to avoid needless tests.
82496         Problem reported by Jim Meyering.
82497
82498 2005-06-20  Derek Price  <derek@ximbiot.com>
82499
82500         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82501         unnecessary for Autoconfs > 2.59c.
82502
82503 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82504
82505         * lib/argp.h (__option_is_short): Check upper limit of
82506         __key. Isprint() requires its argument to have the value
82507         of an unsigned char or EOF.
82508
82509 2005-06-16  Jim Meyering  <jim@meyering.net>
82510
82511         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82512         when either N or S is zero.
82513
82514 2005-06-16  Derek Price  <derek@ximbiot.com>
82515
82516         * m4/bison.m4: Declare YACC & YFLAGS precious.
82517
82518 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82519
82520         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82521         multibyte string or pattern, fall back on unibyte matching.
82522         Problem reported by James Youngman.
82523
82524 2005-06-08  Bruno Haible  <bruno@clisp.org>
82525
82526         * modules/csharpcomp: New file.
82527         * MODULES.html.sh (C#): Add csharpcomp.
82528
82529 2005-06-08  Bruno Haible  <bruno@clisp.org>
82530
82531         * m4/csharpcomp.m4: New file, from GNU gettext.
82532
82533 2005-06-08  Bruno Haible  <bruno@clisp.org>
82534
82535         * lib/csharpcomp.h: New file, from GNU gettext.
82536         * lib/csharpcomp.c: New file, from GNU gettext.
82537         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82538
82539 2005-06-08  Bruno Haible  <bruno@clisp.org>
82540
82541         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82542         warning on mingw.
82543
82544 2005-06-07  Derek Price  <derek@ximbiot.com>
82545
82546         Sync from CVS.
82547         * lib/glob_.h: Indent nested #ifdef.
82548
82549 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82550
82551         Sync from coreutils.
82552         Use "file name" when talking about file names, instead of "filename"
82553         or "path", as per the GNU coding standards.
82554         * lib/mkdir-p.c: Renamed from makepath.c.
82555         (make_dir_parents): Renamed from make_path.  All callers changed.
82556         * lib/mkdir-p.h: Likewise.  All includers changed.
82557         * lib/filenamecat.c: Renamed from path-concat.c.
82558         (file_name_concat): Renamed from path_concat.  All callers changed.
82559         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82560         * lib/filenamecat.h: Likewise.  All includers changed.
82561         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82562         in comments or local variable names.
82563         * lib/basename.c: Likewise.
82564         * lib/canonicalize.c, canonicalize.h: Likewise.
82565         * lib/dirname.c, dirname.h: Likewise.
82566         * lib/euidaccess.c: Likewise.
82567         * lib/exclude.c: Likewise
82568         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82569         * lib/fsusage.c, fsuage.h: Likewise.
82570         * lib/fts.c, fts_.h: Likewise.
82571         * lib/getcwd.c: Likewise.
82572         * lib/getloadavg.c: Likewise.
82573         * lib/mkstemp.c: Likewise.
82574         * lib/mountlist.c, mountlist.h: Likewise.
82575         * lib/openat.c, openat.h: Likewise.
82576         * lib/readlink-stub.c: Likewise.
82577         * lib/readutmp.c, readutmp.h: Likewise.
82578         * lib/rename.c: Likewise.
82579         * lib/rmdir.c: Likewise.
82580         * lib/same.c: Likewise.
82581         * lib/savedir.c: Likewise.
82582         * lib/stripslash.c: Likewise.
82583         * lib/tempname.c: Likewise.
82584         * lib/xreadlink.c: Likewise.
82585         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82586         All uses changed.
82587         * lib/exclude.h: Likewise.
82588
82589         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82590         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82591         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82592         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82593         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82594         files have been getting away with it for years (MORE/BSD 4.3
82595         is extinct now).
82596         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82597         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82598
82599         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82600         Define to 256, not 255, as per modern POSIX.
82601
82602 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82603
82604         Sync from coreutils.
82605         Use "file name" when talking about file names, instead of "filename"
82606         or "path", as per the GNU coding standards.
82607         * MODULES.html.sh: mkdir-p renamed from makepath.
82608         filenamecat renamed from path-concat.
82609         * modules/filenamecat: Renamed from modules/path-concat.
82610         (Files): filenamecat.h and filenamecat.c renamed from
82611         path-concat.h and path-concat.c.
82612         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82613         (Include): filenamecat.h, not path-concat.h.
82614         * modules/mkdir-p: Renamed from modules/makepath.
82615         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82616         makepath.c.
82617         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82618         (Include): mkdir-p.h, not makepath.h.
82619
82620 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82621
82622         Sync from coreutils.
82623         * m4/mkdir-p.m4: Renamed from makepath.m4.
82624         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82625         Rename files from makepath.c to mkdir-p.c, and from
82626         makepath.h to mkdir-p.h.
82627         * m4/filenamecat.m4: Renamed from path-concat.m4.
82628         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82629         Rename files from path-concat.c to filenamecat.c,
82630         and from path-concat.h to filenamecat.h.
82631         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82632         "file name" in local variables or comments.
82633         * m4/rename.m4: Likewise.
82634
82635 2005-06-01  Bruno Haible  <bruno@clisp.org>
82636
82637         * modules/csharpexec: New file.
82638         * MODULES.html.sh (C#): New section.
82639
82640 2005-06-01  Bruno Haible  <bruno@clisp.org>
82641
82642         * m4/csharp.m4: New file, from GNU gettext.
82643         * m4/csharpexec.m4: New file, from GNU gettext.
82644
82645 2005-06-01  Bruno Haible  <bruno@clisp.org>
82646
82647         * lib/csharpexec.h: New file, from GNU gettext.
82648         * lib/csharpexec.c: New file, from GNU gettext.
82649         * lib/csharpexec.sh.in: New file, from GNU gettext.
82650
82651 2005-05-31  Derek Price  <derek@ximbiot.com>
82652             Paul Eggert  <eggert@cs.ucla.edu>
82653
82654         Sync from cvs.
82655         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82656
82657 2005-05-31  Derek Price  <derek@ximbiot.com>
82658             Paul Eggert  <eggert@cs.ucla.edu>
82659
82660         Sync from cvs.
82661         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82662
82663 2005-05-29  Derek Price  <derek@ximbiot.com>
82664
82665         * config/srclist.txt (glob_.h, glob.c): Add these files.
82666
82667 2005-05-29  Derek Price  <derek@ximbiot.com>
82668
82669         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82670         * modules/glob: New file.
82671         * modules/getlogin_r: Add link to POSIX spec in description.
82672
82673 2005-05-29  Derek Price  <derek@ximbiot.com>
82674             Paul Eggert  <eggert@cs.ucla.edu>
82675
82676         * m4/glob.m4: New file.
82677
82678 2005-05-29  Derek Price  <derek@ximbiot.com>
82679             Paul Eggert  <eggert@cs.ucla.edu>
82680
82681         * lib/glob_.h, lib/glob.c: New files.
82682
82683 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82684
82685         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82686         * modules/fts-lgpl (Depends-on): Remove gettext.
82687
82688 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82691         and don't require gt_INTTYPES_PRI.
82692
82693 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82696
82697         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82698         the configuration hassle isn't worth it.
82699         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82700         (LONGEST_MODIFIER, PRIuMAX): Remove.
82701
82702 2005-05-27  Bruno Haible  <bruno@clisp.org>
82703
82704         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82705
82706 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82707
82708         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82709         _POSIX_PTHREAD_SEMANTICS for Solaris.
82710
82711 2005-05-25  Derek Price  <derek@ximbiot.com>
82712
82713         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82714
82715 2005-05-25  Derek Price  <derek@ximbiot.com>
82716             Paul Eggert  <eggert@cs.ucla.edu>
82717
82718         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82719         * lib/getlogin_r.c, getlogin_r.h: New files.
82720
82721 2005-05-25  Bruno Haible  <bruno@clisp.org>
82722             Derek Price  <derek@ximbiot.com>
82723
82724         * lib/getlogin_r.h: Simplify API documentation.
82725
82726 2005-05-23  Derek Price  <derek@ximbiot.com>
82727
82728         * modules/minmax (Files): Add m4/minmax.m4.
82729         (configure.ac): Add gl_MINMAX.
82730
82731 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82732
82733         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82734         so that unistd-safer.h (GPL'ed code) need not be included.
82735
82736 2005-05-22  Bruno Haible  <bruno@clisp.org>
82737
82738         * m4/minmax.m4: New file.
82739         Based on a patch by Derek Price <derek@ximbiot.com>.
82740
82741 2005-05-22  Bruno Haible  <bruno@clisp.org>
82742
82743         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82744         (INT64_MIN): Fix definition.
82745         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82746
82747         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82748         NEED_SIGNED_INT_TYPES.
82749
82750         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82751         HAVE_SYSTEM_INTTYPES.
82752
82753 2005-05-22  Bruno Haible  <bruno@clisp.org>
82754
82755         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82756         Also include <sys/param.h> if it defines MIN, MAX.
82757         Based on a patch by Derek Price <derek@ximbiot.com>.
82758
82759 2005-05-21  Jim Meyering  <jim@meyering.net>
82760
82761         * modules/fts (Files): Add m4/inttypes-pri.m4.
82762         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82763
82764 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82765
82766         New fts module.
82767         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82768         (setup_dir, free_dir): New functions.
82769         (enter_dir, leave_dir): Define trivial
82770         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82771         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82772         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82773         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82774         Move to fts-cycle.c.
82775         (fts_open): Use setup_dir.
82776         (fts_close): Use free_dir.
82777         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82778         This adds a label and some gotos, but the alternatives were messier.
82779         Check for memory allocation failure when entering a dir.
82780         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82781         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82782         (FTS): New member fts_cycle, that is a union that contains the
82783         old active_dir_ht and cycle_state.  All uses changed to mention
82784         fts_cycle.ht and fts_cycle.state.
82785         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82786         fts.c, with the following changes:
82787         (setup_dir, free_dir): New functions.
82788         (enter_dir): Now returns bool.  Return true if successful, false
82789         if memory exhausted.  All callers changed.
82790         Do not bother partly cleaning up on
82791         memory allocation failure; that is free_dir's job.
82792         However, free ad if hash_insert fails, to avoid memory leak.
82793         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82794         fts->fts_options to see which union member to use.
82795
82796 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82799         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82800
82801 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82802
82803         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82804
82805 2005-05-20  Jim Meyering  <jim@meyering.net>
82806
82807         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82808         Now a macro, to pacify GCC.
82809
82810 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82811
82812         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82813         of -1.
82814
82815 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82816
82817         * lib/chown.c (rpl_chown): Return -1 on failure.
82818
82819 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82822         Don't check for stddef.h.
82823         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82824         don't use its results.
82825         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82826         since we include them unconditionally.  Don't require
82827         AM_STDBOOL_H, since stdbool is a prerequisite.
82828         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82829         since we assume C89 or better.
82830         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82831         as we don't use their results.
82832         Don't check for fchdir, memmove, memset, strrchr, as we use
82833         them unconditionally.
82834         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82835         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82836
82837 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82840         Include <stddef.h> unconditionally, since we assume C89 now.
82841         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82842         * lib/fts.c: Include fts_.h first, to check interface.
82843         Do not include intprops.h; no longer needed.
82844         Include cycle-check.h and hash.h, since fts_.h no longer does.
82845         Remove unnecessary casts of closedir to void.
82846         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82847         decide whether to decrement nlinks.
82848         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82849         (FTS): Use struct hash_table * instead of Hash_table, so that
82850         we no longer need to include hash.h here.
82851
82852 2005-05-18  Jim Meyering  <jim@meyering.net>
82853
82854         * modules/dirfd (License): Change to LGPL.  Most of the code
82855         is already in the public domain.
82856
82857 2005-05-18  Jim Meyering  <jim@meyering.net>
82858
82859         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82860         Reported by Yoann Vandoorselaere.
82861
82862 2005-05-17  Jim Meyering  <jim@meyering.net>
82863
82864         * m4/fts.m4: New file, from coreutils.
82865
82866 2005-05-17  Jim Meyering  <jim@meyering.net>
82867
82868         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82869
82870 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82871
82872         Sync from coreutils.
82873         * m4/unlinkdir.m4: New file.
82874
82875 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82876
82877         Sync from coreutils.
82878         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82879         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82880         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82881         White space changes only.
82882         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82883         special.
82884         * lib/yesno.c: Include getline.h, not ctype.h.
82885         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82886         Use getline to remove arbitrary restriction on response length.
82887
82888 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82889
82890         * config/srclist-update: Spell out "Street" in FSF postal
82891         mail address; this is the style the FSF seems to prefer.
82892
82893         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82894         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82895         this updates FSF postal mail address.
82896
82897         Sync from coreutils.
82898         * modules/unlinkdir: New file.
82899         * modules/yesno (Depends-on): Add getline.
82900         * MODULES.html.sh (File system functions): Add unlinkdir.
82901
82902 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82905         lib/strsep.h:
82906         Change the initial comment to refer to GPL, not LGPL.
82907         gnulib-tool will change it to LGPL as needed.
82908
82909         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82910         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82911         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82912         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82913         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82914         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82915         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82916         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82917         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82918         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82919         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82920         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82921         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82922         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82923         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82924         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82925         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82926         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82927         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82928         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82929         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82930         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82931         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82932         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82933         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82934         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82935         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82936         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82937         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82938         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82939         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82940         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82941         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82942         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82943         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82944         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82945         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82946         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82947         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82948         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82949         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82950         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82951         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82952         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82953         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82954         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82955         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82956         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82957         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82958         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82959         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82960         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82961         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82962         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82963         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82964         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82965         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82966         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82967         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82968         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82969         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82970         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82971         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82972         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82973         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82974         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82975         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82976         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82977         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82978         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82979         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82980         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82981         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82982         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82983         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82984         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82985         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82986         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82987         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82988         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82989         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82990         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82991         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82992         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82993         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82994         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82995         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82996         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82997         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82998         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82999         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83000         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83001         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83002         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83003         lib/yesno.c, lib/yesno.h:
83004         Update FSF postal mail address.
83005
83006 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83007
83008         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83009         tests/test-memmem.c, tests/test-stpncpy.c:
83010         Update FSF postal mail address.
83011
83012 2005-05-13  Bruno Haible  <bruno@clisp.org>
83013
83014         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83015         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83016         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83017         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83018         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83019         Add support for 64-bit integers in the MSVC compiler.
83020
83021 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83022
83023         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83024
83025 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83026
83027         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83028
83029 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83030
83031         * doc/getdate.texi (General date syntax): Don't say that date
83032         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83033         Problem reported by Nic Ferrier.
83034
83035 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83036
83037         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83038         specified in ai_socktype. Fix invalid ai_protocol
83039         check. ai_protocol is usually set to 0 or depending on
83040         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83041         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83042         ai_socktype / ai_protocol in the returned addrinfo structure.
83043
83044 2005-05-10  Simon Josefsson  <jas@extundo.com>
83045
83046         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83047         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83048
83049 2005-05-10  Karl Berry  <karl@gnu.org>
83050
83051         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83052         (from http://www.gnu.org/licenses).
83053         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83054         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83055         fdl.texi suffices.
83056
83057 2005-05-10  Karl Berry  <karl@gnu.org>
83058
83059         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83060         (COPYING.DOC): remove.
83061
83062         * config/srclist-update: new FSF address.
83063
83064 2005-05-10  Derek Price  <derek@ximbiot.com>
83065
83066         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83067         possible.
83068
83069 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83070             Bruno Haible  <bruno@clisp.org>
83071
83072         * modules/inet_ntop: New file.
83073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83074         inet_ntop.
83075
83076 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83077             Bruno Haible  <bruno@clisp.org>
83078
83079         * m4/inet_ntop.m4: New file.
83080
83081 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83082             Bruno Haible  <bruno@clisp.org>
83083
83084         * lib/inet_ntop.h: New file.
83085         * lib/inet_ntop.c: New file, from glibc with modifications.
83086
83087 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83088
83089         * modules/time_r (License): Change to LGPL.
83090         * modules/extensions (License): Change to LGPL.  Actually,
83091         the license is more permissive than that, but currently gnulib-tool
83092         doesn't know how to handle more-permissive licenses.
83093
83094         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83095         Problem reported by Dave Love.
83096
83097 2005-05-08  Jim Meyering  <jim@meyering.net>
83098
83099         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83100         blank.
83101
83102 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83103
83104         * modules/argmatch (Depends-on): Add stdbool.
83105         * modules/backupfile (Depends-on): Likewise.
83106         * modules/chdir-long (Depends-on): Likewise.
83107         * modules/closeout (Depends-on): Likewise.
83108         * modules/cycle-check (Depends-on): Likewise.
83109         * modules/dirname (Depends-on): Likewise.
83110         * modules/fnmatch (Depends-on): Likewise.
83111         * modules/fsusage (Depends-on): Likewise.
83112         * modules/fwriteerror (Depends-on): Likewise.
83113         * modules/getcwd (Depends-on): Likewise.
83114         * modules/getloadavg (Depends-on): Likewise.
83115         * modules/hard-locale (Depends-on): Likewise.
83116         * modules/makepath (Depends-on): Likewise.
83117         * modules/mountlist (Depends-on): Likewise.
83118         * modules/nanosleep (Depends-on): Likewise.
83119         * modules/posixtm (Depends-on): Likewise.
83120         * modules/quotearg (Depends-on): Likewise.
83121         * modules/readtokens (Depends-on): Likewise.
83122         * modules/readtokens0 (Depends-on): Likewise.
83123         * modules/readutmp (Depends-on): Likewise.
83124         * modules/save-cwd (Depends-on): Likewise.
83125         * modules/strftime (Depends-on): Likewise.
83126         * modules/userspec (Depends-on): Likewise.
83127         * modules/utimecmp (Depends-on): Likewise.
83128         * modules/xgetcwd (Depends-on): Likewise.
83129         * modules/xnanosleep (Depends-on): Likewise.
83130         * modules/xstrtod (Depends-on): Likewise.
83131         * modules/yesno (Depends-on): Likewise.
83132
83133 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83134
83135         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83136         needless checks.
83137
83138 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83139
83140         Merge from coreutils.  Among other things,
83141         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83142         * lib/fd-safer.c: New file.
83143         * lib/fcntl-safer.h, open-safer.c: Remove.
83144         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83145         * lib/dup-safer.c: Include unistd-safer.h first.
83146         Don't include errno.h.
83147         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83148         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83149         * lib/file-type.c: Rely on file-type.h change.
83150         * lib/getloadavg.c: Include unistd-safer.h.
83151         (getloadavg): Use safer open.
83152         * lib/getusershell.c: Include "stdio-safer.h".
83153         (getusershell): Use safer fopen.
83154         * lib/long-options.c (long_options): Use NULL rather than 0.
83155         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83156         'free'.
83157         * lib/modechange.c: Likewise.
83158         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83159         (MODE_DONE): New constant.
83160         (struct mode_change): Remove 'next' member.
83161         (make_node_op_equals): New function; like the old one of the
83162         same name, except it allocates an array.
83163         (mode_compile, mode_create_from_ref): Use it.
83164         (mode_compile): Allocate result as an array, not a linked list.
83165         Parse octal string ourself, so that we catch mistakes like "+0".
83166         (mode_adjust): Arg is an array, not a linked list.
83167         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83168         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83169         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83170         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83171         Remove.  This is now stat-macros.h's job.
83172         (talloc): Remove.  All callers replaced by xalloc, so that
83173         our invokers don't have to worry about reporting memory failures.
83174         (make_node_op_equals): Remove.
83175         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83176         New constants.
83177         (struct mode_change): Moved here from modechange.h.
83178         (mode_append_entry): Remove.
83179         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83180         apps to have incorrect behavior.  Use simpler algorithm for head
83181         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83182         Detect more invalid usages rather than having somewhat-random behavior.
83183         Don't insert an "a=" action, as that leads to incorrect behavior.
83184         (mode_compile, mode_create_from_ref): Return NULL on error instead
83185         of an enum, since now there's only one way to have an error.  All
83186         callers changed.
83187         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83188         at the correct time.  Simplify calculation of "+u" and its ilk.
83189         Don't mishandle "+X".
83190         (mode_free): Remove "register" and localize decls.
83191         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83192         (struct mode_change): Move to modechange.c; callers don't
83193         need to see this stuff.
83194         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83195         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83196         (mode_change, mode_adjust): Reflect the new signatures noted above.
83197         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83198         that might redefine system include files.
83199         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83200         (my_usleep): Use NULL rather than (void *) 0.
83201         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83202         Use siginterrupt to specify that system calls should be interrupted.
83203         (rpl_nanosleep): Move initialization of suspended closer to call of
83204         my_usleep.
83205         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83206         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83207         (desirable_utmp_entry): New function.
83208         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83209         using x2nrealloc, to simplify logic.
83210         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83211         size calculation.  Do not assume utmp file is a regular file.
83212         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83213         (READ_UTMP_CHECK_PIDS): New constant.
83214         * lib/save-cwd.c: Include unistd-safer.h.
83215         (save_cwd): Use fd_safer.
83216         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83217         [!_LIBC] Include "stat-macros.h" instead.
83218         * lib/unistd-safer.h (fd_safer): New decl.
83219
83220 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83221
83222         * modules/getloadavg (Depends-on): Add unistd-safer.
83223         * modules/getusershell (Depends-on): Add stdio-safer.
83224         * modules/lstat (Depends-on): Remove xalloc.
83225         * modules/mkstemp (Depends-on): Add stat-macros.
83226         * modules/modechange (Depends-on): Remove xstrtol.
83227         Add stat-macros, xalloc.
83228         * modules/save-cwd (Depends-on): Add unistd-safer.
83229         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83230         * modules/unistd-safer (Files): Add lib/fd-safer.c
83231         (Makefile.am): Remove lib_SOURCES.
83232
83233         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83234         Remove fcntl-safer; unistd-safer supersedes it.
83235
83236 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83239         AC_HEADER_STAT.
83240         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83241         (gl_PREREQ_CHOWN): Remove.
83242         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83243         it.  Don't require AC_HEADER_STAT.
83244         (gl_PREREQ_LSTAT): Remove.
83245         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83246         Don't require AC_HEADER_STAT.
83247         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83248         (gl_PREREQ_RMDIR): Remove.
83249         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83250         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83251         the stat-macros module a prerequisite.
83252         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83253         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83254         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83255         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83256         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83257         variable names.
83258         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83259         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83260         variable prefixes.
83261         * m4/fcntl-safer.m4: Remove.
83262         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83263         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83264         Invoke gl_PREREQ_FD_SAFER.
83265         (gl_PREREQ_FD_SAFER): New macro.
83266         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83267         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83268         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83269         Remove duplicate call to AC_LIBOBJ(readutmp).
83270         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83271
83272         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83273         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83274
83275 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83276
83277         * MODULES.html.sh (Misc): Add byteswap.
83278
83279 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83280
83281         * modules/getcwd (Depends-on): Add extensions.
83282         * modules/openat (Depends-on): Likewise.
83283
83284 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83285
83286         * modules/byteswap: New file.
83287
83288 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83289
83290         * m4/byteswap.m4: New file.
83291
83292 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83293
83294         * lib/byteswap_.h: New file.
83295
83296 2005-04-25  Karl Berry  <karl@gnu.org>
83297
83298         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83299
83300 2005-04-25  Albert Chin  <china@thewrittenword.com>
83301
83302         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83303         Toolkit C bug.
83304
83305 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83306
83307         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83308         (func_ln_if_changed): Remove forcibly for no error message
83309         in case file does not exist.
83310
83311 2005-04-19  Simon Josefsson  <jas@extundo.com>
83312
83313         * gnulib-tool (Options): Make --symlink mean --symbolic.
83314
83315 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83316
83317         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83318
83319 2005-04-16  Simon Josefsson  <jas@extundo.com>
83320
83321         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83322
83323 2005-04-15  Simon Josefsson  <jas@extundo.com>
83324
83325         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83326
83327 2005-04-15  Simon Josefsson  <jas@extundo.com>
83328
83329         * gnulib-tool: Rename --symlink to --symbolic.
83330
83331 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83332
83333         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83334         symbolic links to files instead of copying/moving.  Add --aux-dir,
83335         specifying directory relative --dir where auxiliary build tools
83336         are placed.
83337
83338 2005-04-14  Bruno Haible  <bruno@clisp.org>
83339
83340         * modules/allocsa (License): Change to LGPL.
83341         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83342
83343 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83346         that "UTC +1 second" continues to work.  Problem reported
83347         by Dmitry V. Levin.
83348         (relunit_snumber): New rule.
83349         (relunit): Use it.
83350
83351 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * lib/getdate.y (universal_time_zone_table): New constant.
83354         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83355         universal_time_zone_table.
83356         (lookup_zone): Prefer universal_time_zone_table to
83357         local_time_zone_table, so that "GMT" time stamps are allowed in
83358         London during the summer.  Problem reported by Ian Abbott.
83359
83360 2005-04-12  Jim Meyering  <jim@meyering.net>
83361
83362         * lib/human.c (humblock): Set *options even when returning due to
83363         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83364         warning from gcc-4.
83365
83366 2005-04-09  Jim Meyering  <jim@meyering.net>
83367
83368         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83369         -Wuninitialized: initialize tm0.tm_year.
83370
83371 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83374         count, since there's no maximum.  All uses changed.
83375         Add member dsts_seen.
83376         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83377         not being INT_MAX.
83378         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83379         Use pc_rels_seen to decide whther a date is absolute.
83380
83381         * lib/getdate.y (number): Don't overwrite year.
83382         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83383         check.
83384
83385 2005-04-02  Simon Josefsson  <jas@extundo.com>
83386
83387         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83388         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83389
83390 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83391
83392         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83393         where no absolute path name can be longer than PATH_MAX.
83394
83395 2005-03-27  Jim Meyering  <jim@meyering.net>
83396
83397         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83398
83399 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83402         "one's complement" -> "ones' complement" in comment, as per Knuth.
83403         "value of type" -> "type or expression" in comment.
83404         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83405
83406 2005-03-26  Jim Meyering  <jim@meyering.net>
83407
83408         Comment nits.
83409         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83410         Correct typos: s/or/of/.
83411
83412 2005-03-26  Jim Meyering  <jim@meyering.net>
83413
83414         * modules/check-include-files: Move to ../ and rename to...
83415         * check-module: ...this.
83416
83417 2005-03-25  Jim Meyering  <jim@meyering.net>
83418
83419         * modules/xvasprintf (Files): Add xalloc.h.
83420
83421 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83422
83423         * modules/gettext (Files): config/config.rpath ->
83424         build-aux/config.rpath
83425         * modules/iconv (Files): Likewise.
83426         Problem reported by Oskar Liljeblad.
83427
83428 2005-03-23  Jim Meyering  <jim@meyering.net>
83429
83430         * modules/check-include-files: New script to check for
83431         missing dependencies, multiple includes, etc.
83432
83433         * modules/c-strtold (Depends-on): Add xalloc.
83434         * modules/c-strtod (Depends-on): Add xalloc.
83435         * modules/hash (Depends-on): Add xalloc.
83436         (Files): Remove lib/xalloc.h.
83437
83438         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83439         * modules/userspec (Files): Add lib/inttostr.h.
83440
83441 2005-03-23  Jim Meyering  <jim@meyering.net>
83442
83443         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83444
83445 2005-03-22  Jim Meyering  <jim@meyering.net>
83446
83447         * modules/stat-macros: New module.
83448         * modules/canonicalize, modules/euidaccess, modules/file-type,
83449         * modules/filemode, modules/lchown, modules/makepath,
83450         * modules/rmdir, modules/stat: Depend on new stat-macros module
83451         rather than listing lib/stat-macros.h manually.
83452         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83453
83454 2005-03-22  Jim Meyering  <jim@meyering.net>
83455
83456         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83457
83458 2005-03-22  Bruno Haible  <bruno@clisp.org>
83459
83460         * config/srclist.txt: Replace target directory 'config' with
83461         'build-aux'.
83462         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83463         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83464         ../build-aux/.
83465
83466 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83467
83468         * modules/chdir-long (Depends-on): Add mempcpy.
83469
83470         * modules/acl, modules/backupfile, modules/c-strtod,
83471         modules/c-strtold, modules/canon-host, modules/canonicalize,
83472         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83473         modules/exclude, modules/exitfail, modules/file-type,
83474         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83475         modules/getdate, modules/getline, modules/getpagesize,
83476         modules/getpass, modules/getugroups, modules/group-member,
83477         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83478         modules/inttostr, modules/long-options, modules/makepath,
83479         modules/md5, modules/memcasecmp, modules/memcoll,
83480         modules/modechange, modules/mountlist, modules/path-concat,
83481         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83482         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83483         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83484         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83485         modules/strftime, modules/strndup, modules/strverscmp,
83486         modules/timespec, modules/unlocked-io, modules/userspec,
83487         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83488         modules/yesno:
83489         Remove lib_SOURCES line from Makefile.am section, as this is now
83490         done automatically by the corresponding Autoconf macro.
83491
83492 2005-03-21  Jim Meyering  <jim@meyering.net>
83493
83494         Changes imported from coreutils.
83495
83496         * lib/cycle-check.c: Don't include xalloc.h.
83497
83498         * lib/path-concat.c: Don't include assert.h.
83499         (path_concat): Remove assertion that would have triggered
83500         for ABASE starting with more than one slash.
83501         Reported by Andreas Schwab.
83502
83503         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83504         properly when ABASE is an absolute file name.
83505         Correct the description of this function.
83506         Include <assert.h>.
83507         Add an assertion and a test driver.
83508         This fixes a bug introduced on 2004-07-02.
83509         Andreas Schwab reported the resulting failure of cp --parents:
83510         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83511
83512 2005-03-21  Jim Meyering  <jim@meyering.net>
83513
83514         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83515         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83516
83517 2005-03-21  Jim Meyering  <jim@meyering.net>
83518         and  Paul Eggert  <eggert@cs.ucla.edu>
83519
83520         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83521         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83522         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83523         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83524         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83525         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83526         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83527         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83528         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83529         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83530         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83531         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83532         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83533         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83534         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83535         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83536         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83537         for these modules.
83538
83539 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83540
83541         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83542         (which shouldn't happen), generate nothing instead of returning 0
83543         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83544
83545 2005-03-16  Bruno Haible  <bruno@clisp.org>
83546
83547         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83548         HAVE_LONGLONG_64BIT.
83549
83550 2005-03-16  Bruno Haible  <bruno@clisp.org>
83551
83552         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83553         HAVE_LONGLONG_64BIT.
83554
83555 2005-03-16  Bruno Haible  <bruno@clisp.org>
83556
83557         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83558         HAVE_LONGLONG_64BIT.
83559
83560 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83563         reliably distinguish strftime failure from empty output on POSIX
83564         hosts.
83565
83566 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83569         (iconv_string): Don't guess a size-zero buffer, as that might cause
83570         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83571         result would be 'too large', where 'too large' is (heuristically)
83572         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83573         overflow concerns.  This will prevent some unwanted malloc failures
83574         when the inputs are very large.
83575
83576 2005-03-15  Karl Berry  <karl@gnu.org>
83577
83578         * config/srclist.txt (config.rpath): from gettext.
83579         * config/config.rpath: update.
83580
83581 2005-03-15  Bruno Haible  <bruno@clisp.org>
83582
83583         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83584         to 'negate'.
83585
83586         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83587         variable.
83588
83589         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83590         results.
83591
83592 2005-03-14  Simon Josefsson  <jas@extundo.com>
83593
83594         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83595         <fx@gnu.org>.
83596
83597 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83598
83599         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83600         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83601         intprops.h.
83602         * lib/strtol.c: Likewise.
83603
83604 2005-03-14  Jim Meyering  <jim@meyering.net>
83605
83606         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83607         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83608         to be nonzero so that we (and caller) can detect the difference
83609         between a valid zero-length expansion and an error return, even
83610         when the underlying strftime fails before writing anything into
83611         that location.
83612
83613 2005-03-14  Bruno Haible  <bruno@clisp.org>
83614
83615         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83616         Update from GNU gettext 0.14.3.
83617
83618 2005-03-10  Jim Meyering  <jim@meyering.net>
83619
83620         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83621
83622 2005-03-10  Jim Meyering  <jim@meyering.net>
83623
83624         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83625         so that this module works on systems without fchdir.
83626
83627 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83628
83629         Factor int-properties macros into a single file, except for
83630         glibc-related files.
83631         * lib/intprops.h: New file.
83632         * lib/getloadavg.c: Include it instead of limits.h.
83633         (INT_STRLEN_BOUND): Remove.
83634         * lib/human.c: Include intprops.h.
83635         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83636         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83637         302/1000.
83638         * lib/inttostr.h: Include intprops.h instead of limits.h.
83639         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83640         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83641         for consistency with intprops.h.
83642         (time_t_is_integer, twos_complement_arithmetic): Use them.
83643         * lib/sig2str.h: Include <signal.h>, intprops.h.
83644         (INT_STRLEN_BOUND): Remove.
83645         * lib/strftime.c (TYPE_SIGNED): Remove.
83646         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83647         * lib/strtol.c: Adjust comments to match intprops.h.
83648         * lib/userspec.c: Include intprops.h.
83649         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83650         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83651         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83652         instead of rolling our own expressions.
83653         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83654
83655         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83656         instead of int.
83657         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83658         the right thing even if adding 1900 would overflow.  Similarly
83659         for tm_mon + 1 and tm_yday + 1.
83660         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83661         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83662         (DO_SIGNED_NUMBER): New macro.
83663         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83664
83665 2005-03-07  Bruno Haible  <bruno@clisp.org>
83666
83667         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83668
83669 2005-03-07  Bruno Haible  <bruno@clisp.org>
83670
83671         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83672
83673 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83674
83675         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83676         (func_import): Only replace files via --import when they have actually
83677         changed.
83678
83679 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83680
83681         * m4/mmap-anon.m4: New file.
83682         * m4/pagealign_alloc.m4: New file.
83683
83684 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83685             Bruno Haible  <bruno@clisp.org>
83686
83687         * modules/pagealign_alloc: New file.
83688         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83689
83690 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83691             Bruno Haible  <bruno@clisp.org>
83692
83693         * lib/pagealign_alloc.h: New file.
83694         * lib/pagealign_alloc.c: New file.
83695
83696 2005-03-03  Bruno Haible  <bruno@clisp.org>
83697
83698         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83699         Use an all-permissive copyright notice, recommended by RMS.
83700
83701 2005-03-02  Bruno Haible  <bruno@clisp.org>
83702
83703         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83704         of AIX, the replacement has to be done only after <string.h> is
83705         included, therefore not in config.h. stpncpy.h does the replacement,
83706         and stpncpy.c uses it.
83707
83708 2005-03-02  Bruno Haible  <bruno@clisp.org>
83709
83710         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83711         stpncpy.c uses it.
83712
83713 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83714
83715         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83716         The workaround isn't strictly needed for POSIX conformance, and
83717         it's too much of a pain to configure and maintain.  We'll ask
83718         people to fix their kernels instead.
83719         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83720         (NANOSLEEP_BUG_WORKAROUND): Remove.
83721         (xnanosleep): Remove the workaround.
83722
83723 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83724
83725         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83726         Reported by Derek Price.
83727         (Include): Add "timespec.h".
83728
83729         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83730
83731 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83732
83733         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83734         to detect nanosleep bug.
83735
83736 2005-03-01  Bruno Haible  <bruno@clisp.org>
83737
83738         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83739
83740 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * modules/gethrxtime: New file.
83743         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83744         (Depends-on): Add gethrxtime.
83745         (configure.ac): Add gl_XNANOSLEEP.
83746         (Makefile.am): Remove lib_SOURCES line.
83747
83748 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83751         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83752
83753 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83754
83755         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83756         * lib/timespec.h (gettime): Return void, since it always
83757         succeeds now.  All uses changed.
83758         * lib/gettime.c (gettime): Likewise.
83759         [HAVE_NANOTIME]: Prefer nanotime.
83760         Assume gettimeofday succeeds, as POSIX requires.
83761         Assime time () succeeds, since other code already does.
83762         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83763         (timespec_subtract): Remove.
83764         (NANOSLEEP_BUG_WORKAROUND): New constant.
83765         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83766         things considerably.  Use it only on GNU/Linux hosts, since the
83767         workaround shouldn't be needed elsewhere.
83768
83769 2005-02-24  Bruno Haible  <bruno@clisp.org>
83770
83771         * modules/gettext (Files): Add m4/glibc2.m4.
83772
83773 2005-02-24  Bruno Haible  <bruno@clisp.org>
83774
83775         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83776         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83777         * m4/progtest.m4:
83778         Update from GNU gettext 0.14.2.
83779         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83780
83781 2005-02-24  Bruno Haible  <bruno@clisp.org>
83782
83783         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83784         * lib/config.charset: Update from GNU gettext 0.14.2.
83785
83786 2005-02-24  Bruno Haible  <bruno@clisp.org>
83787
83788         * lib/gettext.h: Update from GNU gettext 0.14.2.
83789
83790 2005-02-23  Simon Josefsson  <jas@extundo.com>
83791
83792         * m4/iconvme.m4: New file.
83793
83794 2005-02-23  Jim Meyering  <jim@meyering.net>
83795
83796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83797         change.
83798         Thanks to Bruno Haible for catching it.
83799
83800 2005-02-22  Simon Josefsson  <jas@extundo.com>
83801
83802         * modules/iconvme: New file.
83803
83804         * MODULES.html.sh: Add iconvme.
83805
83806 2005-02-22  Simon Josefsson  <jas@extundo.com>
83807
83808         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83809
83810 2005-02-22  Simon Josefsson  <jas@extundo.com>
83811
83812         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83813
83814 2005-02-22  Jim Meyering  <jim@meyering.net>
83815
83816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83817         s/ifndef/ifdef/.
83818
83819 2005-02-20  Neil Conway  <neilc@samurai.com>
83820
83821         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83822         returned by OSX/Darwin if the specified buffer is not large
83823         enough for the hostname.
83824
83825 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83826
83827         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83828         pass it to _help, otherwise the latter coredumps trying to
83829         dereference state.root_argp.
83830
83831 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83832
83833         * modules/chdir-long (Depends-on): Add memrchr.
83834         * modules/memrchr (Files): Add lib/memrchr.h.
83835         (Include): "memrchr.h".
83836
83837 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83838
83839         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83840
83841 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         * lib/memrchr.h: New file.
83844         * lib/chdir-long.c: Include it.
83845         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83846         Don't bother including stddef.h.
83847
83848 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83849
83850         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83851         inclusion.
83852         Include <sys/types.h>, for dev_t.
83853         (ME_DUMMY, ME_REMOTE): Move from here....
83854         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83855         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83856         Dmitry V. Levin.
83857         Include mountlist.h first, to test the interface.
83858
83859 2005-01-29  Bruno Haible  <bruno@clisp.org>
83860
83861         * lib/progname.c (program_name): Initialize.
83862         Needed when linking statically on MacOS X.
83863
83864 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83865
83866         Sync from coreutils.
83867         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83868         (Depends-on): Add c-strtod.
83869         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83870
83871 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         Sync from coreutils.
83874         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83875
83876         Remove files that are specific to coreutils.
83877         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83878
83879 2005-01-28  Bruno Haible  <bruno@clisp.org>
83880
83881         * modules/javacomp: New file.
83882         * MODULES.html.sh (Java): Add javacomp.
83883
83884 2005-01-28  Bruno Haible  <bruno@clisp.org>
83885
83886         * m4/javacomp.m4: New file, from GNU gettext.
83887
83888 2005-01-28  Bruno Haible  <bruno@clisp.org>
83889
83890         * lib/javacomp.sh.in: New file, from GNU gettext.
83891         * lib/javacomp.h: New file, from GNU gettext.
83892         * lib/javacomp.c: New file, from GNU gettext.
83893
83894 2005-01-26  Simon Josefsson  <jas@extundo.com>
83895
83896         * lib/gai_strerror.c: Use GPL in header.
83897
83898 2005-01-26  Bruno Haible  <bruno@clisp.org>
83899
83900         * modules/javaexec: New file.
83901         * MODULES.html.sh (Java): Add javaexec.
83902
83903 2005-01-26  Bruno Haible  <bruno@clisp.org>
83904
83905         * m4/javaexec.m4: New file, from GNU gettext.
83906
83907 2005-01-26  Bruno Haible  <bruno@clisp.org>
83908
83909         * lib/javaexec.sh.in: New file, from GNU gettext.
83910         * lib/javaexec.h: New file, from GNU gettext.
83911         * lib/javaexec.c: New file, from GNU gettext.
83912
83913 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83914
83915         * modules/lchown (Depends-on): Remove lchown.h
83916
83917 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83918
83919         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83920         must be defined if the header file was not found, in order
83921         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83922
83923 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83924
83925         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83926         initializers for struct pentry_state.
83927         (__argp_error): Check return value of __asprintf
83928         (__argp_failure): Translate error message
83929
83930         * lib/argp-parse.c: Removed braces around the expansion of N_()
83931
83932 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83933
83934         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83935         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83936         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83937         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83938         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83939         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83940         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83941         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83942         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83943         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83944         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83945         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83946         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83947         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83948         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83949         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83950         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83951         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83952         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83953         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83954         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83955         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83956         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83957         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83958         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83959         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83960         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83961         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83962         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83963         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83964         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83965         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83966         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83967         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83968         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83969         Use an all-permissive copyright notice, recommended by RMS.
83970
83971 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         * modules/chdir-long (Depends-on): Remove mempcpy.
83974
83975 2005-01-21  Jim Meyering  <jim@meyering.net>
83976
83977         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83978         same value as for Solaris 9.
83979
83980         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83981         component length.  This included changing the parameter to be
83982         of type `char *' rather than `char const *'.
83983         * lib/chdir-long.h (chdir_long): Update prototype.
83984
83985         * lib/openat.c (fdopendir, fstatat): New functions.
83986         * lib/openat.h: Include headers required for use of DIR and struct
83987         stat.
83988         [AT_SYMLINK_NOFOLLOW]: Define.
83989         (fdopendir, fstatat): Add prototypes.
83990
83991 2005-01-21  Bruno Haible  <bruno@clisp.org>
83992
83993         * modules/classpath: New file.
83994         * MODULES.html.sh (Java): Add classpath.
83995
83996 2005-01-21  Bruno Haible  <bruno@clisp.org>
83997
83998         * lib/classpath.h: New file, from GNU gettext.
83999         * lib/classpath.c: New file, from GNU gettext.
84000
84001 2005-01-20  Simon Josefsson  <jas@extundo.com>
84002
84003         * modules/version-etc-fsf: New file.
84004
84005 2005-01-20  Simon Josefsson  <jas@extundo.com>
84006
84007         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84008         * lib/version-etc.c: Remove version_etc_copyright.
84009         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84010         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84011
84012 2005-01-20  Simon Josefsson  <jas@extundo.com>
84013
84014         * lib/base64.h (isbase64): Add.
84015
84016         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84017         using a unsigned prototype, don't inline.
84018         (base64_decode): Use it.
84019
84020 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84023         it.
84024
84025 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84026
84027         * lib/save-cwd.c (save_cwd): Remove code to support the case
84028         where fchdir is missing or flaky.
84029
84030 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84031
84032         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84033
84034 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84035
84036         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84037         AC_LIBSOURCES now does this.
84038         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84039         with new ullong_max module.
84040
84041 2005-01-19  Bruno Haible  <bruno@clisp.org>
84042
84043         * modules/sh-quote: New file.
84044         * MODULES.html.sh (Executing programs): Add sh-quote.
84045
84046 2005-01-19  Bruno Haible  <bruno@clisp.org>
84047
84048         * lib/sh-quote.h: New file, from GNU gettext.
84049         * lib/sh-quote.c: New file, from GNU gettext.
84050
84051 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         Merge from coreutils.
84054         * m4/ullong_max.m4: New file.
84055         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84056         (gl_MACROS): Assume localeconv exists.
84057
84058 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         Merge changes from coreutils, as described below in several
84061         changelogs dated today.
84062
84063         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84064         (O_DIRECTORY): Remove; not needed here, since "." must be
84065         a directory.  All uses removed.
84066         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84067         universal on Suns, and we also need to test for IRIX.
84068         Revamp code to use 'if' rather than '#if'.
84069         Avoid unnecessary comparison of cwd->desc to 0.
84070
84071         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84072         for known valid error numbers rather than observed invalid ones.
84073
84074 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         * modules/ullong_max: New file.
84077
84078         * modules/chdir-long, modules/openat: New files.
84079         * modules/save-cwd (Depends-on): Depend on chdir-long.
84080         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84081
84082 2005-01-18  Jim Meyering  <jim@meyering.net>
84083
84084         Merge from coreutils.
84085         * m4/chdir-long.m4, m4/openat.m4: New files.
84086         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84087         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84088         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84089         is sane and DOES follow symlinks.  Besides, testing 20 different
84090         systems found no broken chown implementations.
84091         Prompted by a change in rsync's copy of this macro.
84092         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84093
84094         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84095
84096         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84097         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84098         NULL-means-set-to-current-time semantics.
84099         Remove temporary file immediately, rather than waiting
84100         for configure's at-exit trap code to do it.
84101
84102 2005-01-18  Jim Meyering  <jim@meyering.net>
84103
84104         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84105
84106         * lib/utimens.c (futimens): Account for the fact that futimes
84107         can also fail with errno == ENOSYS or errno == ENOENT.
84108         Patch from Dmitry V. Levin.
84109
84110         Change the name of the robust chdir function from chdir to chdir_long.
84111         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84112         (restore_cwd): Use chdir_long, not chdir.
84113         * lib/chdir-long.c: Renamed from chdir.c.
84114         * lib/chdir-long.h: Renamed from chdir.h.
84115         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84116         Hurd.
84117
84118 2005-01-18  Bruno Haible  <bruno@clisp.org>
84119
84120         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84121         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84122         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84123         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84124         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84125         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84126         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84127         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84128         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84129         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84130         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84131         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84132         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84133         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84134         Use an all-permissive copyright notice, recommended by RMS.
84135
84136 2005-01-18  Bob Proulx  <bob@proulx.com>
84137
84138         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84139         simplify offsetof() macro construct to avoid compile failure with
84140         native HP-UX 11.0 ANSI C compiler.
84141
84142 2005-01-17  Bruno Haible  <bruno@clisp.org>
84143
84144         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84145         redundant because stpncpy.m4 takes care of it.
84146
84147 2005-01-17  Bruno Haible  <bruno@clisp.org>
84148
84149         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84150
84151 2005-01-17  Bruno Haible  <bruno@clisp.org>
84152
84153         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84154         used.
84155
84156 2005-01-17  Bruno Haible  <bruno@clisp.org>
84157
84158         * lib/fwriteerror.h (fwriteerror): Change specification to include
84159         fclose.
84160         * lib/fwriteerror.c: Include <stdbool.h>.
84161         (fwriteerror): At the end, close the file stream. Record whether
84162         stdout was already closed.
84163
84164 2005-01-17  Bruno Haible  <bruno@clisp.org>
84165
84166         * lib/execute.c (environ): Declare if needed.
84167         * lib/pipe.c (environ): Likewise.
84168         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84169
84170 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84171
84172         * modules/argp: Depend on vsnprintf
84173
84174 2005-01-10  Jim Meyering  <jim@meyering.net>
84175
84176         * modules/closeout (Depends-on): Add atexit.
84177
84178 2005-01-06  Bruno Haible  <bruno@clisp.org>
84179
84180         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84181
84182 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84185         definitions to be after all include files, to avoid collisions.
84186         Problem reported by Bob Proulx.
84187
84188 2005-01-04  Jim Meyering  <jim@meyering.net>
84189
84190         Changes imported from coreutils.
84191         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84192         as the mkstemp template, use a temporary directory and an
84193         8.3-friendly template to avoid trouble on systems like DJGPP.
84194         Reported by Juan M. Guerrero via Stepan Kasal.
84195         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84196         close. Remove the temporary directory right away, rather than waiting
84197         for configure's at-exit trap code to do it.
84198         Suggestion from Stepan Kasal.
84199
84200 2005-01-01  Simon Josefsson  <jas@extundo.com>
84201
84202         * gnulib-tool: Print #include directives when --import'ing.
84203
84204 2004-12-28  Simon Josefsson  <jas@extundo.com>
84205
84206         * tests/test-base64.c: Include required header files.  Remove
84207         unused variables.
84208
84209 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * modules/error (Depends-on): Remove gettext.
84212
84213 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84214
84215         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84216         not needed.  This removes a dependency on the gettext module.
84217         [defined _LIBC]: Do not include <libintl.h>; not needed.
84218
84219 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84220
84221         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84222         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84223
84224 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84225
84226         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84227         HAVE_DECL_STRTOLD.
84228
84229 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         * modules/getdate (Depends-on): Remove alloca-opt.
84232
84233 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84234
84235         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84236
84237 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/argp-parse.c: Include <stddef.h>.
84240         (alignof, alignto): New macros.
84241         (parser_init): Don't assume that void * is aligned sufficiently
84242         for struct option.
84243
84244         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84245         need to extend the stack.
84246         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84247         large.
84248
84249 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84250
84251         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84252
84253 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84256         (2004-10-24) change.  Apparently this was a false alarm.
84257
84258         * modules/getdate: Depend on alloca-opt, not alloca.
84259
84260 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84263         Remove now-obsolete comment about AIX.
84264         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84265         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84266         (YYMAXDEPTH): New macro.
84267
84268 2004-12-18  Simon Josefsson  <jas@extundo.com>
84269
84270         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84271
84272 2004-12-18  Bruno Haible  <bruno@clisp.org>
84273
84274         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84275
84276 2004-12-18  Bruno Haible  <bruno@clisp.org>
84277
84278         * lib/fatal-signal.c (fatal_signals): Make non-const.
84279         (init_fatal_signals): New function.
84280         (uninstall_handlers, install_handlers): Ignore signals that were set to
84281         SIG_IGN.
84282         (at_fatal_signal): Call init_fatal_signals.
84283         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84284         SIG_IGN.
84285         Reported by Paul Eggert.
84286
84287 2004-12-18  Bruno Haible  <bruno@clisp.org>
84288
84289         * doc/alloca.texi: New file.
84290         * doc/alloca-opt.texi: New file.
84291
84292 2004-12-17  Jim Meyering  <jim@meyering.net>
84293
84294         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84295         Otherwise, install-sh could exit with improper exit status when
84296         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84297
84298 2004-12-16  Simon Josefsson  <jas@extundo.com>
84299
84300         * tests/test-base64.c: Add license.
84301
84302 2004-12-15  Stepan Kasal  <address@hidden>
84303
84304         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84305
84306 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84307
84308         * modules/getcwd (Files): Add m4/d-ino.m4.
84309         Suggested by Mark D. Baushke.
84310
84311 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         * lib/getdate.y (textint): New member "negative".
84314         (time_zone_hhmm): New function.
84315         Expect 14 shift-reduce conflicts, not 13.
84316         (o_colon_minutes): New rule.
84317         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84318         (yylex): Set the "negative" member of signed numbers.
84319
84320 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * doc/getdate.texi (Time of day items, Time zone items):
84323         Describe new formats +00:00, UTC+00:00.
84324
84325 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84326
84327         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84328         spurious "-l"s.  Problem reported by Stepan Kasal.
84329
84330 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84331
84332         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84333         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84334
84335 2004-12-04  Simon Josefsson  <jas@extundo.com>
84336
84337         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84338         Vandoorselaere <yoann@prelude-ids.org>.
84339
84340 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84341
84342         Changes imported from coreutils.
84343         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84344         exist.
84345         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84346
84347 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         Changes imported from coreutils.
84350         * lib/hard-locale.c: Assume <locale.h> exists.
84351         Include "strdup.h".
84352         (GLIBC_VERSION): New macro.
84353         (hard_locale): Assume setlocale exists.
84354         Rewrite to avoid #ifdef.
84355         Use strdup rather than malloc + strcpy.
84356         * lib/human.c: Assume <locale.h> exists.
84357         (human_readable): Assume localeconv exists.
84358
84359 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84360
84361         * modules/hard-locale (Depends-on): Add strdup.
84362
84363 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84364
84365         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84366         convert T2, not T.  (Imported from libc.)
84367
84368 2004-11-30  Simon Josefsson  <jas@extundo.com>
84369
84370         * modules/restrict (License): Change to LGPL.
84371
84372 2004-11-30  Simon Josefsson  <jas@extundo.com>
84373
84374         * m4/restrict.m4: Add copyright and copying conditions.
84375
84376 2004-11-30  Simon Josefsson  <jas@extundo.com>
84377
84378         * m4/base64.m4: New file.
84379
84380 2004-11-30  Simon Josefsson  <jas@extundo.com>
84381
84382         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84383         base64.
84384
84385         * tests/test-base64.c: New file.
84386
84387         * modules/base64: New file.
84388
84389 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84390
84391         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84392         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84393
84394         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84395
84396 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84399         (__getcwd.c): Don't restore errno; glibc doesn't.
84400         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84401         first, falling back to our code only if its results look suspicious.
84402         Ensure that the resulting buffer is only as large as necessary.
84403
84404         * lib/readutmp.c: Include readutmp.h first.
84405         Include <errno.h>, since readutmp.h no longer does that.
84406         * lib/readutmp.h: Don't include <errno.h>,
84407         <sys/param.h>, <time.h>; not needed to establish interface.
84408         (errno): Remove decl.
84409         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84410         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84411         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84412
84413 2004-11-28  Simon Josefsson  <jas@extundo.com>
84414
84415         * lib/base64.h, base64.c: New file.
84416
84417 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84418
84419         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84420
84421 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84422
84423         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84424         (Depends-on): Remove pathmax, same.  Add mempcpy.
84425         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84426         (Makefile.am): Append getcwd.h to lib_SOURCES.
84427         (Include): Add getcwd.h.
84428         (Maintainer): Change from Jim Meyering to "all, glibc",
84429         since getdate now uses intended-for-glibc code.
84430         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84431         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84432
84433 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84434
84435         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84436         HP's ANSI C compiler.
84437         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84438         Declaring int functions causes warnings on some modern systems and
84439         shouldn't be needed to compile on ancient ones.
84440         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84441         defined.
84442
84443         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84444         with the following changes.
84445         (__set_errno): Parenthesize properly.
84446         Include <stdbool.h>.
84447         (MIN, MAX, MATCHING_INO): New macros.
84448         (__getcwd): Define with prototype, not K&R form.
84449         Use heuristics to allocate default buffer on stack if possible.
84450         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84451         behavior, and to avoid the PATH_MAX limit when computing
84452         ../../../../...
84453         Use MATCHING_INO to compare inode number to file.
84454         Check for arithmetic overflow in size calculations.
84455         Fix bug in reallocation of dot array that caused getcwd to fail
84456         on directories nested deeper than 75.
84457         Be more careful about saving errno on error.
84458         Do not use realloc; use only free+malloc, as this is a bit
84459         more flexible and avoids a needless copy operation.
84460         Do not inspect st_dev and st_ino for symbolic links; POSIX
84461         doesn't specify the latter.
84462         Check for closedir errors.
84463         Avoid needless casts.
84464         Use "#ifdef weak_alias" around weak_alias, to be like other
84465         glibc code.
84466         The following changes to getcwd.c have effect only when used in
84467         gnulib; they have no effect inside glibc proper.
84468         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84469         as alloca isn't used.
84470         (alloca, __alloca): Likewise.
84471         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84472         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84473         unconditionally, as gnulib assumes C89 or better.
84474         Do not include <sys/param.h>.
84475         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84476         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84477         better.
84478         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84479         Include <dirent.h> in a way that is compatible with modern Autoconf.
84480         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84481         New macros, if not already defined.
84482         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84483         Use "_LIBC", not "defined _LIBC", for consistency.
84484         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84485         a mempcpy module.
84486         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84487         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84488         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84489         credit only to Jim Meyering and adjust the copyright dates.
84490         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84491         <stdlib.h>, <unistd.h>, "pathmax.h".
84492         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84493         (INITIAL_BUFFER_SIZE): Remove.
84494         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84495
84496 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84497
84498         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84499         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84500         Use the _ONCE methods, for efficiency.
84501         Check for fcntl.h.  In test program, include <errno.h>
84502         and <fcntl.h> if available.  Remove old K&R cruft from
84503         test program.  Check for common errors in GNU/Linux,
84504         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84505         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84506         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84507         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84508         name accordingly.
84509         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84510         accommodate new getcwd.c.
84511         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84512         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84513         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84514         that's all we need now.
84515
84516 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84517
84518         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84519         argp-parse.c depends on getopt internals, that means we should
84520         always use our getopt, to be on the safe side.
84521         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84522         order not to spoil the result of an eventual previous invocation
84523         of gl_GETOPT_SUBSTITUTE.
84524
84525 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84526
84527         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84528         redefinition warnings. To avoid them, include the defines
84529         in `#if !defined __need_getopt ... #endif'. The only place
84530         where __getopt_argv_const is used is in definitions
84531         of getopt_long and getopt_long_only below, which are as well
84532         protected by `#ifndef __need_getopt'.
84533         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84534         __need_getopt after including <stdio.h> and <unistd.h> These
84535         headers might have defined it.
84536
84537 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84538
84539         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84540
84541 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84542
84543         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84544         (futimens): New function, which uses futimes if available.
84545         (futimens, utimens): Support timespec==NULL, with same semantics
84546         as utime and utimens.
84547         * lib/utimens.h (futimens): New decl.
84548
84549 2004-11-23  Jim Meyering  <jim@meyering.net>
84550
84551         * lib/getopt_.h: Remove trailing blanks.
84552
84553 2004-11-23  Jim Meyering  <jim@meyering.net>
84554
84555         * lib/__fpending.c: Add comment.
84556
84557 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84558
84559         * modules/canonicalize (Depends-on): Add xreadlink.
84560         Problem reported by James Youngman.
84561
84562 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84563
84564         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84565         New macros.
84566         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84567         optopt): Use them instead of invoking ## directly; otherwise, the
84568         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84569
84570 2004-11-19  Bruno Haible  <bruno@clisp.org>
84571
84572         * lib/strtok_r.c: Move comments from here...
84573         * lib/strtok_r.h: ... to here.
84574
84575 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84578         implementations that mishandle size_t overflow.
84579
84580 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84581
84582         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84583         might fail.  Problem reported by Yoann Vandoorselaere.
84584         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84585         implementations that mishandle size_t overflow.
84586
84587 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84588
84589         * modules/canon-host (Depends-on): Add strdup.
84590
84591 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84592
84593         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84594
84595 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84596
84597         * lib/canon-host.c: Include "strdup.h".
84598         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84599         Use strdup instead of malloc/strcpy to duplicate strings.
84600
84601         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84602         (human_space_before_unit): New constant.
84603         * lib/human.c (human_readable): Support it.
84604
84605         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84606         (xgetcwd): Set errno correctly when failing.
84607         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84608         the failure is actually due to a PATH_MAX problem.
84609
84610         Further getopt changes to make it more likely that glibc will
84611         buy the changes back.
84612         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84613         (getopt): Use it, so to preserve glibc semantic
84614         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84615         when compiling for libc.
84616         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84617         (getopt_long, getopt_long_only): Use it.
84618
84619         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84620         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84621         (getopt): Argv is now char * const *, as per standard.
84622         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84623         not char *__getopt_argv_const *.
84624         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84625         _getopt_long_only_r): Likewise.
84626         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84627         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84628         _getopt_long_r, _getopt_long_only_r): Likewise.
84629         * lib/getopt_.h (__getopt_argv_const): Remove.
84630         (getopt): Argv is now char * const *, as per standard.
84631
84632         * lib/getdate.y (tORDINAL): New token.
84633         (day, relunit): Allow it for relative times.
84634         (relative_time_table): Use tORDINAL for ordinals.
84635
84636 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84637
84638         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84639         Document that "second" isn't allowed as an ordinal number.
84640
84641 2004-11-16  Jim Meyering  <jim@meyering.net>
84642
84643         * modules/closeout (Depends-on): Add fpending.
84644
84645 2004-11-15  Jim Meyering  <jim@meyering.net>
84646
84647         * lib/closeout.c: Include "__fpending.h" once again.
84648         Include <stdbool.h>.
84649         (close_stdout): Don't fail just because stdout was closed initially,
84650         since some programs don't write to stdout in the normal course of
84651         operation (other than --version and --help), and we don't want this
84652         function to make e.g. `touch file >&-' fail.
84653         But do fail if it was closed and someone has tried to write to it.
84654         E.g., `printf foo >&-' must fail.
84655
84656 2004-11-13  Jim Meyering  <jim@meyering.net>
84657
84658         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84659
84660 2004-11-12  Simon Josefsson  <jas@extundo.com>
84661
84662         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84663         small doc fix is still pending.
84664
84665 2004-11-11  Simon Josefsson  <jas@extundo.com>
84666
84667         * modules/strtok_r: New file.
84668
84669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84670         strtok_r.
84671
84672 2004-11-11  Simon Josefsson  <jas@extundo.com>
84673
84674         * m4/strtok_r.m4: New file.
84675
84676         * m4/getopt.m4: Replace opterr.
84677
84678 2004-11-11  Simon Josefsson  <jas@extundo.com>
84679
84680         * lib/strtok_r.h, strtok_r.c: New file.
84681
84682 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84683
84684         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84685         of replacing opterr, getopt, etc.  This should handle the
84686         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84687
84688 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84689
84690         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84691         we can stop lying to compilers about the constness of argv when we
84692         are compiled outside glibc.
84693         (getopt, getopt_long, getopt_long_only): Use it.
84694         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84695         _getopt_internal, getopt): Likewise.
84696         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84697         _getopt_long_only_r): Likewise.
84698         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84699         _getopt_long_r, _getopt_long_only_r): Likewise.
84700
84701         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84702         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84703         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84704         the other external symbols.
84705         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84706         declaration, since the above renaming now works around collisions.
84707
84708 2004-11-11  Jim Meyering  <jim@meyering.net>
84709
84710         * lib/linebreak.c: Remove trailing blanks.
84711         * lib/alloca_.h: Likewise.
84712         * lib/acosl.c: Likewise.
84713         * lib/euidaccess.c: Likewise.
84714         * lib/allocsa.h: Likewise.
84715
84716 2004-11-10  Simon Josefsson  <jas@extundo.com>
84717
84718         * m4/getaddrinfo.m4: New file.
84719
84720 2004-11-10  Simon Josefsson  <jas@extundo.com>
84721
84722         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84723
84724 2004-11-10  Simon Josefsson  <jas@extundo.com>
84725
84726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84727         getaddrinfo.
84728
84729         * modules/getaddrinfo: New file.
84730
84731 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84732
84733         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84734
84735 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84736
84737         * lib/mktime.c (SHR): New macro, which is a portable
84738         substitute for >> that should work even on Crays.
84739         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84740         Problem reported by Mark D. Baushke in
84741         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84742         * lib/getdate.y (SHR): Likewise.
84743         (tm_diff): Use it.
84744         * lib/strftime.c (SHR): Likewise.
84745         (tm_diff): Use it.
84746         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84747         quote_these_too, so that right shifts are well defined.  All uses
84748         changed.
84749
84750 2004-11-10  Jim Meyering  <jim@meyering.net>
84751
84752         Ensure that no close failure goes unreported.
84753         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84754         return early when it seems there's nothing to flush.
84755         Don't include __fpending.h.
84756
84757 2004-11-10  Jim Meyering  <jim@meyering.net>
84758
84759         * modules/closeout (Depends-on): Remove fpending.
84760
84761 2004-11-10  Jim Meyering  <jim@meyering.net>
84762
84763         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84764
84765 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84766
84767         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84768         gl_FUNC_STRFTIME.
84769         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84770         and AC_REQUIRE when possible, to avoid duplicate checks.
84771         Check for <wchar.h>.
84772
84773 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84774
84775         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84776
84777 2004-11-09  Bruno Haible  <bruno@clisp.org>
84778
84779         * m4/sockpfaf.m4: New file.
84780
84781 2004-11-05  Bruno Haible  <bruno@clisp.org>
84782
84783         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84784         Reported by Mark D. Baushke <mdb@cvshome.org>.
84785
84786 2004-11-04  Bruno Haible  <bruno@clisp.org>
84787
84788         2004-09-11  Bruno Haible  <bruno@clisp.org>
84789                 * allocsa.valgrind: New file.
84790         2004-02-06  Bruno Haible  <bruno@clisp.org>
84791                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84792                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84793                 Reported by Christopher Seip <chris.seip@hp.com>.
84794
84795 2004-11-04  Bruno Haible  <bruno@clisp.org>
84796
84797         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84798         (Makefile.am): Distribute it.
84799
84800 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84801
84802         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84803         with errno == ERANGE if the buffer is too small.
84804         Problem reported by Mark D. Baushke.
84805
84806 2004-11-03  Albert Chin  <china@thewrittenword.com>
84807             Paul Eggert  <eggert@cs.ucla.edu>
84808
84809         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84810         equivalent, substitute $ac_type for equivalent type rather than
84811         blindly using uint32_t *always* which won't work if uint32_t is not
84812         available.  Define _UINT32_T to work around typedef of uint32_t if
84813         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84814         2.5.1.
84815
84816 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         * m4/jm-macros.m4: Sync from coreutils.
84819         (gl_MACROS): Check for mbrlen, for pathchk.
84820         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84821
84822 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84823
84824         * lib/xreadlink.c (MAXSIZE): New macro.
84825         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84826         size does not exceed MAXSIZE.  Avoid cast.
84827         As suggested by Mark D. Baushke in
84828         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84829         if readlink fails with buffer size just under MAXSIZE, try again
84830         with MAXSIZE.
84831
84832 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84833
84834         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84835
84836 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84837         and  Paul Eggert  <eggert@cs.ucla.edu>
84838
84839         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84840         (get_date): Overparenthesize to avoid GCC warning.
84841
84842 2004-11-02  Bruno Haible  <bruno@clisp.org>
84843
84844         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84845         returns void.
84846
84847 2004-11-02  Bruno Haible  <bruno@clisp.org>
84848
84849         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84850         function returns void.
84851
84852 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84853
84854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84855         fflush_unlocked, flockfile, funlockfile, funlockfile,
84856         fputs_unlocked, putc_unlocked.
84857
84858 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84861         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84862         already declared.
84863
84864 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84865
84866         * modules/getdate (Files): Add doc/getdate.texi.
84867         (Depends-on): Add setenv, xalloc.
84868
84869 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84870
84871         * lib/getdate.y: Add support for TZ="foo" within a date string.
84872         Fix some bugs near time_t boundaries.  Reject dates with
84873         out-of-range components, e.g., "Sept 31".
84874         Include <stdlib.h>, "setenv.h", "xalloc.h".
84875         (ISDIGIT_LOCALE): Remove; unused.
84876         Note that the TZ and time functions used here are not reentrant.
84877         (mktime_ok, get_tz): New functions.
84878         (TZBUFSIZE): New constant.
84879         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84880         This requires that we sometimes generate our own TZ="XXX..." setting.
84881
84882 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         * doc/getdate.texi: New file, from coreutils with modifications for
84885         the new TZ parsing.
84886
84887 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84888
84889         * lib/mktime.c (not_equal_tm): Remove redundant check.
84890
84891 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84892
84893         * modules/regex (lib_SOURCES): Add regex.c.
84894         Reported by James Youngman in
84895         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84896
84897 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         * lib/getdate.y: Use Bison 1.875 features, and some minor
84900         code cleanups.  This change does not affect semantics.
84901         Don't include <stdlib.h>; no longer needed.
84902         Don't include unlocked-io.h; only the "#if TEST" code uses
84903         stdio, and performance isn't crucial there.
84904         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84905         Bison 1.875 features as described below.
84906         All uses of "PC." replaced by "pc->".
84907         (YYSTYPE): Add a forward declaration.
84908         (yylex, yyerror): Use full prototypes in forward decls.
84909         Use "%pure-parser" rather than obsolescent "%pure_parser".
84910         Use %parse-param and %lex-param instead of obsolescent
84911         YYPARSE_PARAM and YYLEX_PARAM.
84912         (meridian_table, month_and_day_table, time_units_table,
84913         relative_time_table, time_zone_table, military_table,
84914         lookup_zone, lookup_word, get_date):
84915         Use NULL instead of 0 where appropriate.
84916         (to_hour): Avoid abort (), to avoid a dependency on
84917         stdlib.h.
84918         (yyerror, yylex): Now accepts parser_control * arg.
84919         (main) [TEST]: Use '\0' rather than 0 for char.
84920
84921 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84922
84923         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84924
84925 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84926
84927         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84928         It's now the caller's responsibility to handle the case where
84929         !HAVE_GETPAGESIZE && !defined getpagesize.
84930
84931         * lib/mktime.c (leapyear): Arg is long int, not int.
84932
84933 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84936
84937 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84940         missing.  Problem reported by James Youngman.
84941
84942 2004-10-16  Simon Josefsson  <jas@extundo.com>
84943
84944         * gnulib-tool: Fix comments.  Fix parse problem.
84945         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84946
84947 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84950         implementation of getopt_long.  Problem reported by Alexander Taler in:
84951         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84952
84953 2004-10-15  Bruno Haible  <bruno@clisp.org>
84954
84955         * gnulib-tool: Untabify. Initialize supplied_libname.
84956         (func_usage): More homogenous output.
84957         (func_modules_transitive_closure, func_modules_to_filelist,
84958         func_emit_lib_Makefile_am): New functions.
84959         (func_import): New function, extracted from big case statement. Use
84960         func_get_license, func_modules_transitive_closure,
84961         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84962         opt_lgpl. Don't use test -a, as it's not portable.
84963         (func_create_testdir): Use func_modules_transitive_closure,
84964         func_modules_to_filelist, func_emit_lib_Makefile_am.
84965
84966 2004-10-15  Bruno Haible  <bruno@clisp.org>
84967
84968         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84969
84970 2004-10-15  Bruno Haible  <bruno@clisp.org>
84971
84972         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84973         the portions belonging to each module.
84974         Suggested by Derek Robert Price <derek@ximbiot.com>.
84975
84976 2004-10-12  Simon Josefsson  <jas@extundo.com>
84977
84978         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84979         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84980         to real functions.
84981
84982 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84983
84984         * modules/vsnprintf: New file.
84985
84986 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84987
84988         * m4/vsnprintf.m4: New file.
84989
84990 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84991
84992         * lib/vsnprintf.h: New file.
84993         * lib/vsnprintf.c: New file.
84994
84995 2004-10-11  Bruno Haible  <bruno@clisp.org>
84996
84997         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84998         vsnprintf.
84999
85000 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85001
85002         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85003
85004 2004-10-07  Bruno Haible  <bruno@clisp.org>
85005
85006         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85007         fits into the provided buffer.
85008
85009 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85010
85011         * lib/diacrit.c, diacrit.h: Add GPL notice.
85012
85013         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85014         notice.
85015         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85016         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85017         This avoids a potential constant-folding bug.
85018
85019 2004-10-05  Bruno Haible  <bruno@clisp.org>
85020
85021         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85022         for the declaration of strsep.
85023
85024 2004-10-05  Bruno Haible  <bruno@clisp.org>
85025
85026         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85027
85028 2004-10-04  Simon Josefsson  <jas@extundo.com>
85029
85030         * modules/memmem: New file.
85031         * tests/test-memmem.c: New file.
85032         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85033
85034 2004-10-04  Simon Josefsson  <jas@extundo.com>
85035
85036         * m4/memmem.m4: New file.
85037
85038 2004-10-04  Simon Josefsson  <jas@extundo.com>
85039
85040         * lib/memmem.h: New file.
85041         * lib/memmem.c: New file, taken from glibc.
85042
85043 2004-10-04  Simon Josefsson  <jas@extundo.com>
85044
85045         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85046         '#ifdef USE_UNLOCKED_IO'.
85047
85048 2004-10-04  Simon Josefsson  <jas@extundo.com>
85049
85050         * config/srclist.txt: Add memmem from glibc.
85051
85052 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85053
85054         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85055
85056         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85057         modules/exclude, modules/getdate, modules/getline,
85058         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85059         modules/getusershell, modules/linebuffer, modules/md5,
85060         modules/mountlist, modules/posixtm, modules/readtokens,
85061         modules/readutmp, modules/regex, modules/sha1,
85062         modules/version-etc, modules/yesno:
85063         Remove dependency on unlocked-io.
85064
85065 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85066
85067         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85068
85069         * m4/unlocked-io.m4: Add copyright notice.
85070         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85071
85072 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85073
85074         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85075         * lib/xmalloc.c (xmemdup): Likewise.
85076         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85077         XFREE): Remove these long-obsolescent macros.
85078         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85079         * lib/xstrdup.c: Remove.
85080
85081         * lib/regex.c (re_comp): Cast gettext return value to char *,
85082         Problem reported by Martin Neitzel via Mark D. Baushke.
85083
85084 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85087         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85088         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85089         regex.c, sha1.c, version-etc.c, yesno.c:
85090         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85091         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85092         the includer's responsibility.
85093
85094         Sync from coreutils.
85095
85096         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85097         points to the start of a string, as the C Standard says the
85098         resulting behavior is undefined.
85099
85100         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85101         simple -> simple_backups, numbered_existing ->
85102         numbered_existing_backups, numbered -> numbered_backups
85103         to avoid shadowing problems.  All uses changed.
85104         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85105         * lib/backupfile.c (check_extension, numbered_backup):
85106         Rename locals to avoid shadowing 'basename'.
85107         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85108         once.
85109
85110         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85111         * lib/.cvsignore: Add getopt.h.
85112
85113 2004-10-04  Bruno Haible  <bruno@clisp.org>
85114
85115         * modules/README: New file.
85116         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85117         not a module.
85118
85119 2004-10-02  Jim Meyering  <jim@meyering.net>
85120
85121         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85122
85123 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85124
85125         * modules/strsep: New file.
85126
85127 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85128
85129         * m4/strsep.m4: New file.
85130
85131 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85132
85133         * lib/strsep.h: New file.
85134         * lib/strsep.c: New file.
85135
85136 2004-10-01  Simon Josefsson  <jas@extundo.com>
85137
85138         * lib/snprintf.c (snprintf): Handle size==0.
85139
85140 2004-10-01  Simon Josefsson  <jas@extundo.com>
85141             Bruno Haible  <bruno@clisp.org>
85142
85143         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85144         (snprintf): Declare 'args'.
85145
85146 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85147
85148         * lib/snprintf.c: Remove comments as to why each header is needed.
85149
85150 2004-10-01  Bruno Haible  <bruno@clisp.org>
85151
85152         * MODULES.html.sh: Add strsep.
85153
85154 2004-09-30  Simon Josefsson  <jas@extundo.com>
85155
85156         * modules/snprintf: New file.
85157
85158 2004-09-30  Simon Josefsson  <jas@extundo.com>
85159
85160         * m4/snprintf.m4: New file.
85161
85162 2004-09-30  Simon Josefsson  <jas@extundo.com>
85163
85164         * lib/snprintf.h, lib/snprintf.c: New files.
85165
85166 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85167
85168         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85169         (hol_entry_help): Never translate an empty string.
85170         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85171         * lib/argp.h (OPTION_NO_TRANS): New option.
85172
85173 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85174
85175         * modules/argp (Maintainer): Replace Simon Josefsson
85176         by Sergey Poznyakoff.
85177
85178 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85181         changes merged back into glibc.
85182
85183 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85186
85187 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85188
85189         * lib/xvasprintf.c: Include xalloc.h.
85190         (xvasprintf): Use xalloc_die, not xmalloc_die.
85191
85192 2004-09-29  Bruno Haible  <bruno@clisp.org>
85193
85194         * modules/alloca-opt: New file, derived from modules/alloca.
85195         * modules/allocsa: Depend on alloca-opt instead of alloca.
85196         * modules/setenv: Likewise.
85197         * modules/vasnprintf: Likewise.
85198         * MODULES.html.sh: Add alloca-opt.
85199
85200 2004-09-28  Simon Josefsson  <jas@extundo.com>
85201
85202         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85203         LGPL, and to replace license template from GPL to LGPL.
85204
85205 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85206
85207         * modules/dummy: Change license to LGPL.
85208
85209 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85212
85213 2004-09-24  Simon Josefsson  <jas@extundo.com>
85214
85215         * modules/minmax (License): Change from GPL to LGPL.
85216
85217 2004-09-23  Simon Josefsson  <jas@extundo.com>
85218
85219         * gnulib-tool (--import): Typo.
85220
85221 2004-09-23  Simon Josefsson  <jas@extundo.com>
85222
85223         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85224
85225 2004-09-22  Bruno Haible  <bruno@clisp.org>
85226
85227         * modules/*: Add 'License' field.
85228         * gnulib-tool: Accept --extract-license option.
85229         (func_get_license): New function.
85230
85231 2004-09-21  Bruno Haible  <bruno@clisp.org>
85232
85233         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85234         Reported by Simon Josefsson.
85235
85236 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85237
85238         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85239         gl_AC_TYPE_LONG_LONG.
85240
85241 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85242
85243         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85244
85245 2004-09-18  Simon Josefsson  <jas@extundo.com>
85246         and  Paul Eggert  <eggert@cs.ucla.edu>
85247
85248         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85249         calls with autoreconf.  Define GL_LIB.
85250
85251 2004-09-14  Karl Berry  <karl@gnu.org>
85252
85253         * config/srclist.txt: unsync setenv.c, sigh.
85254
85255 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85256
85257         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85258         Problem reported by Bruno Haible in:
85259         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85260
85261 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85262
85263         * config/srclist.txt: Comment out argp-pvh.c.
85264
85265 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85266
85267         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85268         in case some system header has #define'd it.  Problem reported by
85269         Soeren D. Schulze in
85270         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85271
85272 2004-09-09  Karl Berry  <karl@gnu.org>
85273
85274         * regex.[ch]: delete from the root.  These were supposed to be
85275                 synced with emacs cvs, but this has not happened for about
85276                 a year, and anyway nothing else uses emacs regex.[ch].
85277                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85278                 lib/regex[.ch] is untouched.
85279
85280 2004-09-09  Bruno Haible  <bruno@clisp.org>
85281
85282         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85283
85284 2004-09-09  Bruno Haible  <bruno@clisp.org>
85285
85286         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85287         modifications.
85288         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85289
85290 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85291
85292         * modules/xvasprintf: New file.
85293         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85294
85295 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85296
85297         * lib/xvasprintf.h: New file.
85298         * lib/xvasprintf.c: New file.
85299         * lib/xasprintf.c: New file.
85300
85301 2004-09-08  Bruno Haible  <bruno@clisp.org>
85302
85303         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85304
85305 2004-09-08  Bruno Haible  <bruno@clisp.org>
85306
85307         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85308         length is > INT_MAX.
85309         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85310         more.
85311
85312 2004-09-08  Bruno Haible  <bruno@clisp.org>
85313
85314         * lib/stdint_.h: New file, taken from GNU clisp.
85315
85316 2004-09-08  Bruno Haible  <bruno@clisp.org>
85317             Oskar Liljeblad  <oskar@osk.mine.nu>
85318
85319         * modules/stdint: New file.
85320         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85321
85322 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         Import from coreutils.
85325         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85326         strings on unbounded length.  alloca's performance benefits aren't
85327         that important here.
85328         (V_STRDUP): Remove.
85329         (parse_with_separator): New function, with most of the internals
85330         of the old parse_user_spec.  Allow user to omit both user and group,
85331         for compatibility with FreeBSD.
85332         Clone only the user name, not the entire spec.
85333         Do not set *uid, *gid unless entirely successful.
85334         Avoid memory leak in some failing cases.
85335         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85336         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85337         (parse_user_spec): Rewrite to use parse_with_separator.
85338
85339 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85340
85341         * modules/userspec: Don't depend on alloca.
85342
85343 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85344
85345         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85346
85347 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85348
85349         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85350         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85351         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85352
85353 2004-08-16  Simon Josefsson  <jas@extundo.com>
85354
85355         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85356         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85357         Add --dry-run for --import.
85358         Let user provided command line parameters override configure.ac
85359         settings.
85360
85361 2004-08-12  Simon Josefsson  <jas@extundo.com>
85362
85363         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85364         as discussed with Paul Eggert in threads rooted at
85365         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85366         and
85367         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85368         Before, the test was empty, and relied on ELIDE_CODE in source
85369         code.)
85370         (gl_PREREQ_GETOPT): New macro.
85371         (gl_GETOPT): Use them.
85372
85373 2004-08-12  Simon Josefsson  <jas@extundo.com>
85374
85375         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85376         * lib/getopt_.h: Renamed from getopt.h.
85377
85378 2004-08-12  Simon Josefsson  <jas@extundo.com>
85379
85380         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85381         Change default library name from libfoo to libgnu.
85382         Now, if you have a configure.ac that says:
85383                 gl_SOURCE_BASE(gl)
85384                 gl_M4_BASE(gl/m4)
85385                 gl_MODULES(error getopt etcetera)
85386                 gl_INIT
85387         you can import all you need by running:
85388                 ../gnulib/gnulib-tool --import
85389
85390         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85391         (Makefile.am): Rewrite, use logic from argz.
85392         (Include): Use <getopt.h> instead of "getopt.h".
85393
85394 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85395
85396         * modules/argp (Files): Add m4/unlocked-io.m4.
85397         (Depends-on): Add extensions.
85398
85399 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85400
85401         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85402         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85403         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85404         Check for program_invocation_name, program_invocation_short_name,
85405         flockfile, funlockfile, features.h, _getopt_long_only_r.
85406
85407 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85410         its complicated substitute.
85411         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85412         and program_invocation_name.
85413         (__argp_basename) [!_LIBC]: Remove; the only use was
85414         replaced by its body.
85415         (__argp_short_program_name): Change condition from
85416         !defined __argp_short_program_name to
85417         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85418         to match argp-namefrob.h.
85419         (__argp_failure): Don't assume strerror_r returns char *.
85420         * lib/argp-parse.c (N_): Define unconditionally.
85421         (argp_default_options): Fill out initializers with 0 to avoid
85422         gcc warnings.
85423
85424 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85425
85426         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85427         getopt1.c.
85428
85429 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85430
85431         Merge from coreutils.
85432
85433         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85434
85435         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85436         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85437
85438 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85439
85440         Merge from coreutils.
85441
85442         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85443         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85444         for Reliant Unix 5.43.
85445
85446         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85447         (union fooround): Use uintmax_t, not long int.
85448         The rest is a merge from libc:
85449         [defined _LIBC]: Include <shlib-compat.h>.
85450         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85451
85452         * lib/settime.c (settime): Recode to avoid warning with
85453         Sun Forte C 6U2.
85454
85455         * lib/strverscmp.c: Convert to UTF-8.
85456
85457 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85458
85459         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85460         m4/uintmax_t.m4.
85461
85462 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85463
85464         * modules/xalloc-die: New file.
85465         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85466
85467         * modules/md5 (Files): Add m4/uint32_t.m4.
85468         * modules/sha1: Renamed from modules/sha.
85469         (Files):
85470         Rename lib/sha.h to lib/sha1.h.
85471         Rename lib/sha.c to lib/sha1.c.
85472         Rename m4/sha.m4 to m4/sha1.m4.
85473         (lib_SOURCES): Likewise.
85474         (configure.ac): Rename gl_SHA to gl_SHA1.
85475         (Include): sha.h -> sha1.h.
85476
85477 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85478
85479         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85480         * m4/sha1.m4: Renamed from sha.m4.
85481         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85482
85483 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85484
85485         * lib/obstack.h (obstack_empty_p):
85486         Don't assume that chunk->contents is suitably aligned.
85487         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85488         Likewise. Problem reported by Benno in
85489         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85490
85491         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85492         readable.  This could be improved further but it'd take some work.
85493
85494 2004-08-08  Simon Josefsson  <jas@extundo.com>
85495
85496         * modules/xgethostname (Depends-on): Remove exit and error (not
85497         used).
85498
85499         * modules/getpass-gnu: Add getpass.h.
85500         (Depends-on): Add stdbool.
85501         * modules/getpass: Add getpass.h.
85502
85503 2004-08-08  Simon Josefsson  <jas@extundo.com>
85504
85505         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85506         Check getpass declaration.
85507
85508 2004-08-08  Simon Josefsson  <jas@extundo.com>
85509
85510         * lib/xgethostname.c: Don't include error.h (not used).
85511
85512         * lib/getpass.h: Add.
85513         * lib/getpass.c: Include getpass.h first.
85514
85515 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85516
85517         * lib/xalloc-die.c: New file.
85518         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85519         All uses removed.
85520         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85521         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85522         xalloc-die.c.
85523         (_, N_, xalloc_die): Move to xalloc-die.c.
85524         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85525         so that we needn't mess with xalloc_msg_memory_exhausted.
85526
85527         * lib/sha1.h: Renamed from sha.h.
85528         (SHA1_H): Renamed from _SHA_H.
85529         (sha1_ctx): Renamed from sha_ctx.
85530         (sha1_init_ctx): Renamed from sha_init_ctx.
85531         (sha1_process_block): Renamed from sha_process_block.
85532         (sha1_process_bytes): Renamed from sha_process_bytes.
85533         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85534         (sha1_read_ctx): Renamed from sha_read_ctx.
85535         (sha1_stream): Renamed from sha_stream.
85536         (sha1_buffer): Renamed from sha_buffer.
85537         * lib/sha1.c: Likewise; renamed from sha.c.
85538         Do not include <sys/types.h>.
85539         Include <stddef.h> rather than <stdlib.h>.
85540
85541 2004-08-08  Bruno Haible  <bruno@clisp.org>
85542
85543         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85544         FILESYSTEM_PREFIX_LEN.
85545         * lib/progreloc.c: Likewise.
85546         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85547
85548 2004-08-06  Simon Josefsson  <jas@extundo.com>
85549
85550         * modules/progname (Depends-on): Don't depend on stdbool.
85551
85552 2004-08-06  Simon Josefsson  <jas@extundo.com>
85553
85554         * modules/getsubopt: New file.
85555         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85556         getsubopt.
85557
85558 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85559
85560         More merge from coreutils.
85561
85562         * m4/utimens.m4, m4/utimecmp.m4: New files.
85563         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85564         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85565         prereq.m4, sha.m4: Import changes from coreutils.
85566
85567 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         More merge from coreutils.
85570         * modules/raise, modules/readtokens0, modules/utimens:
85571         * modules/utimecmp, module/xnanosleep: New files.
85572         * modules/strftime: Add lib/strftime.h.
85573         Change include from <time.h> to "strftime.h".
85574         * modules/yesno: Add lib/yesno.h.
85575         * modules/backupfile: Remove lib/addext.c.
85576         * modules/euidaccess: Add stat-macros.h.
85577         * modules/canonicalize, modules/euidaccess,
85578         modules/filemode, modules/lchown, modules/makepath,
85579         modules/rmdir, modules/stat: Likewise.
85580
85581 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85582
85583         Merge from tar.
85584         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85585         SIZE_MAX is a valid preprocessor constant.
85586         (__argp_basename): Change from "#ifndef _LIBC"
85587         to "#ifndef __argp_short_program_name", so that
85588         we don't compile these functions for tar.
85589
85590         More merges from coreutils.
85591         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85592         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85593         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85594         * lib/addext.c: Remove; no longer needed.
85595         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85596         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85597         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85598         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85599         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85600         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85601         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85602         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85603         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85604         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85605         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85606         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85607         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85608         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85609         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85610         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85611         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85612         Import changes from coreutils.
85613
85614 2004-08-05  Simon Josefsson  <jas@extundo.com>
85615
85616         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85617
85618 2004-08-05  Simon Josefsson  <jas@extundo.com>
85619
85620         * m4/getsubopt.m4: New file.
85621
85622 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85623
85624         Merge from coreutils.
85625
85626         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85627         * m4/getcwd-path-max.m4: New files.
85628
85629         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85630         FILESYSTEM_PREFIX_LEN ->
85631         FILE_SYSTEM_PREFIX_LEN.
85632         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85633         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85634         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85635         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85636
85637         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85638         prerequisite modules now handle the DOS stuff.
85639         Don't check for unistd.h.
85640
85641 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85642
85643         Merge from coreutils.
85644
85645         * lib/.gdb-history: Remove; this doesn't belong here.
85646
85647         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85648         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85649         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85650         * lib/getcwd.c: New files.
85651
85652         * lib/dirname.h: Include <stdbool.h>.
85653         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85654         for consistency with POSIX terminology.  All uses changed.
85655         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85656         (strip_trailing_slashes): Use bool for booleans.
85657         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85658
85659         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85660         sometimes returns a positive errno value even when it succeeds.
85661         (print_errno_message) [!LIBC]: Fall back on strerror if
85662         __strerror_r fails.
85663
85664         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85665         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85666         (longest_relative_suffix): New function.
85667         (path_concat): Use it.  Assume first argument is not NULL.
85668         Port to DOS.  Omit redundant separators.
85669         Report an error instead of returning NULL.
85670         Use mempcpy instead of memcpy.
85671         (xpath_concat): Remove: not declared or used.
85672
85673         * lib/same.h: Include <stdbool.h>
85674         (same_name): Return bool, not int.
85675         * lib/same.c (same_name): Likewise.
85676         (errno): Don't declare; we assume C89 or better now.
85677
85678         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85679         if not already defined.
85680
85681         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85682         * lib/dup-safer.c (errno): Likewise.
85683
85684 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85685
85686         Merge from coreutils.
85687         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85688         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85689         * modules/path-concat: Don't depend on strdup.
85690
85691 2004-08-03  Simon Josefsson  <jas@extundo.com>
85692
85693         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85694         * lib/progname.h: Don't include stdbool.h.
85695
85696 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85697
85698         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85699         * MODULES.html.sh (func_all_modules): Remove fatal.
85700
85701 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85702
85703         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85704
85705 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85706
85707         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85708         working.
85709
85710 2004-08-02  Simon Josefsson  <jas@extundo.com>
85711
85712         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85713         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85714         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85715
85716 2004-08-01  Simon Josefsson  <jas@extundo.com>
85717
85718         * lib/xgetdomainname.c: Include stdlib.h, for free().
85719
85720 2004-07-19  Bruno Haible  <bruno@clisp.org>
85721
85722         * MODULES.html.sh (func_all_modules): Add dummy.
85723
85724 2004-07-16  Simon Josefsson  <jas@extundo.com>
85725
85726         * modules/dummy: New file.
85727
85728 2004-07-16  Simon Josefsson  <jas@extundo.com>
85729
85730         * lib/dummy.c: New file.
85731
85732 2004-07-16  Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/backupfile.h: Add extern "C" for C++.
85735         * lib/closeout.h: Likewise.
85736         * lib/copy-file.h: Likewise.
85737         * lib/findprog.h: Likewise.
85738         * lib/full-write.h: Likewise.
85739         * lib/pathname.h: Likewise.
85740         * lib/progname.h: Likewise.
85741         * lib/stpcpy.h: Likewise.
85742         * lib/stpncpy.h: Likewise.
85743         * lib/strcase.h: Likewise.
85744         * lib/strstr.h: Likewise.
85745         * lib/xalloc.h: Likewise.
85746
85747         * lib/mbswidth.h: Add extern "C" for C++.
85748         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85749
85750 2004-07-13  Robert Millan  <robertmh@gnu.org>
85751
85752         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85753
85754 2004-07-09  Simon Josefsson  <jas@extundo.com>
85755
85756         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85757         failed without this.)
85758
85759 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85760
85761         * modules/chown (Files): Add lib/fchown-stub.c, since
85762         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85763
85764 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85765
85766         * lib/fchown-stub.c: New file.
85767
85768 2004-06-24  Jim Meyering  <jim@meyering.net>
85769
85770         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85771
85772 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85773
85774         * modules/argz: Omit "#include".
85775
85776         * MODULES.html.sh (func_all_modules): Add calloc, to match
85777         2004-06-01 addition of calloc module.
85778
85779 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85780
85781         * m4/argz.m4: New file, which is autoupdated from libtool.
85782
85783 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85784
85785         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85786         libtool.
85787
85788 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85789
85790         * config/srclist-update: Don't insist on "USA." before the
85791         close-comment, as libtool omits the period and puts the */ on a
85792         separate line.
85793         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85794         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85795
85796 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85797
85798         * modules/argz: New file.
85799         * MODULES.html.sh (func_all_modules): Add argz.
85800
85801 2004-06-12  Jim Meyering  <jim@meyering.net>
85802         and  Paul Eggert  <eggert@cs.ucla.edu>
85803
85804         * modules/hash (Files): Add lib/xalloc.h.
85805         * modules/pipe (Depends-on): Add wait-process.
85806         * modules/stat (Depends-on): Add xalloc.
85807         * modules/userspec (Files): Add lib/userspec.h.
85808         * modules/xstrto
85809
85810         Upgrade from gettext-0.13.
85811         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85812         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85813         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85814
85815 2004-06-10  Jim Meyering  <jim@meyering.net>
85816
85817         * lib/calloc.c: New file.
85818
85819 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * lib/getdate.y (yylex): Allow space between sign and number.
85822         Problem reported by Dan Jacobson.
85823
85824 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85825
85826         Merge from coreutils CVS.
85827
85828         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85829         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85830         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85831         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85832         xstrtol.m4: Fix copyright date and/or serial number.
85833
85834         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85835         See if we need an fchown replacement.
85836         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85837         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85838         and use the replacement function if we detect either defect.
85839
85840         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85841         gl_UTIMECMP.
85842
85843 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85844         and  Jim Meyering  <jim@meyering.net>
85845
85846         Merge from coreutils CVS.
85847
85848         * lib/stat-macros.h: New file, with contents from file-type.h
85849         and coreutils' system.h.
85850         * lib/file-type.c: Include "stat-macros.h".
85851         * lib/file-type.h (file_type): Move all macro definitions to new file,
85852         stat-macros.h.
85853
85854         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85855         Wrap old code with this conditional.
85856         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85857         function that does not dereference symlinks.
85858         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85859
85860         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85861         dependency problems.
85862         (xreadlink): Accept new arg SIZE, for efficiency.
85863         All decls and uses changed.
85864         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85865
85866         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85867         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85868
85869         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85870         sysexits.h.
85871
85872 2004-06-01  Jim Meyering  <jim@meyering.net>
85873
85874         * m4/calloc.m4: New file.
85875
85876 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85879         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85880         Also, fix a typo in a diagnostic.
85881
85882 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85885         or AC_FUNC_REALLOC.
85886
85887 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85888
85889         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85890         macros to be defined.
85891         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85892         the allocator returns NULL because the requested size is zero.
85893
85894 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85895
85896         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85897         var.  Add comment explaining why libc still defines it.  This
85898         merges the following patch from glibc:
85899         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85900
85901 2004-05-20  Andreas Schwab  <schwab@suse.de>
85902
85903         * m4/free.m4: Replace free if it not known to work, not the other
85904         way round.
85905
85906 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85907
85908         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85909         present in glibc since revision 1.1 of this file.
85910         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85911         obstack_alignment_mask, obstack_alloc, obstack_base,
85912         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85913         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85914         obstack_grow0, obstack_init, obstack_int_grow,
85915         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85916         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85917         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85918         nonexistent functions.
85919
85920 2004-05-18  Karl Berry  <karl@gnu.org>
85921
85922         * config/srclist.txt: break link for vasnprintf.c.
85923
85924 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85925
85926         Port obstack to the AS/400, where pointers are 16 bytes wide and
85927         you cannot cast an integer to a valid pointer.  This patch is
85928         currently waiting to be integrated into glibc; see
85929         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85930
85931         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85932         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85933         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85934         (struct obstack): temp member is now a union of a pointer and
85935         an integer, instead of an integer.  All integer uses changed.
85936         This does not affect the physical layout of struct obstack,
85937         except on hosts (like the AS/400) where the size or alignment of
85938         void * is greater than that of ptrdiff_t.
85939         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85940         __STDC__)]: Store temporary in pointer member of union, not
85941         integer member.
85942         * lib/obstack.c: Include <stddef.h>, for offsetof.
85943         (struct fooalign): Remove; it doesn't need a name.
85944         (union fooround): Change double to long double, and add void *.
85945         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85946         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85947         not a macro.  Hence the values are always int; so remove all
85948         casts-to-int in uses.
85949
85950 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85951
85952         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85953         we can get this patch merged into glibc.
85954
85955 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85956             Paul Eggert  <eggert@cs.ucla.edu>
85957
85958         * m4/argp: Depend on alloca.
85959
85960 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85961             Paul Eggert  <eggert@cs.ucla.edu>
85962
85963         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85964         freecoding.
85965
85966 2004-05-17  Bruno Haible  <bruno@clisp.org>
85967
85968         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85969         precision that consists of a '.' followed by an empty digit string.
85970         Patch by Tor Lillqvist <tml@iki.fi>.
85971
85972 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85973
85974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85975         for backward compatibility with older code.  We need our own
85976         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85977         it under some other name, and our alloca.h will define it.
85978
85979 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85980             Derek Price  <derek@ximbiot.com>
85981
85982         * lib/alloca.c: Include <alloca.h>, to get our interface.
85983         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85984         include <alloca.h> first.  Use C89 prototype for alloca; this
85985         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85986         Use #elif for simplicity, since we can assume C89 now.
85987         Don't try to source the system alloca.h since it will not be found
85988         and to prevent recursively including its replacement.
85989         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85990         * lib/regex.c: Likewise.
85991
85992 2004-05-16  Derek Price  <derek@ximbiot.com>
85993             Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         getline cleanup.  This changes the getndelim2 API: both order of
85996         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85997         no delimiter).
85998
85999         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86000         interface does that.
86001         (getline): Always use getdelim, so that we don't have two
86002         copies of this code.
86003         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86004         if available.
86005         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86006         (GETNDELIM2_MAXIMUM): New macro.
86007         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86008         instead of the old practice of delim2==0.  All callers changed.
86009         Return -1 on overflow, instead of returning junk.
86010         Do not set *linesize unless allocation succeeds.
86011         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86012         that we include sys/types.h.
86013         * lib/getnline.h: Likewise.
86014         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86015         (getndelim2): Reorder arguments.
86016         * lib/getnline.c (getnline, getndelim):
86017         Don't discard the NMAX argument.
86018         (getnline): Invoke getndelim, to avoid code duplication.
86019         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86020         of (size_t) -1 by callers of the getnline family.
86021
86022 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86023
86024         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86025         Check for gettimeofday.
86026         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86027         Check for settimeofday, stime.
86028
86029 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86030
86031         * lib/nanosleep.c (suspended): Change its type from int to
86032         sig_atomic_t volatile.
86033         (first_call): Make it private to rpl_nanosleep, and have it
86034         be zero initially as that's a bit faster.
86035         (my_usleep): Round up fractional times instead of truncating them,
86036         as this is the usual meaning for 'sleep'.
86037
86038         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86039         doesn't work.
86040         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86041         (ENOSYS): Define if not defined.
86042         (settime): Fall back on stime if it exists and settimeofday fails.
86043         But don't bother with fallbacks if a method fails with errno == EPERM.
86044
86045 2004-05-11  Jim Meyering  <jim@meyering.net>
86046
86047         Prior to this change, the save_cwd caller required read access to the
86048         current directory on most systems (ones with the fchdir function).
86049
86050         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86051         fails, try write-only, and finally, resort to using xgetcwd.
86052
86053 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86054
86055         * lib/obstack.c, obstack.h: Import changes from libc.
86056
86057 2004-04-28  Bruno Haible  <bruno@clisp.org>
86058
86059         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86060         also implicitly appends .exe to executables.
86061         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86062         accepts Windows pathnames.
86063         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86064         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86065         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86066         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86067         Reported by Derek Robert Price <derek@ximbiot.com>.
86068
86069 2004-04-21  Karl Berry  <karl@gnu.org>
86070
86071         * config/srclist.txt (localcharset.c): break sync.
86072
86073 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86074
86075         * m4/host-os.m4: Add a copyright notice.
86076
86077 2004-04-20  Jim Meyering  <jim@meyering.net>
86078
86079         Change UTILS_ to gl_ in AC_DEFINE'd names.
86080         Change utils_- and jm_-prefixed variables, too.
86081         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86082         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86083         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86084
86085         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86086         Don't emit trailing blanks.
86087         Also rename jm_-prefixed variables to have gl_ prefix.
86088
86089         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86090         Also rename jm_-prefixed variables to have gl_ prefix.
86091
86092         * m4/jm-macros.m4: Reflect the renamings.
86093         * m4/prereq.m4: Likewise.
86094
86095 2004-04-20  Jim Meyering  <jim@meyering.net>
86096
86097         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86098         memory.
86099
86100 2004-04-20  Jim Meyering  <jim@meyering.net>
86101             Bruno Haible  <bruno@clisp.org>
86102
86103         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86104         memory when realloc fails.
86105
86106 2004-04-19  Jim Meyering  <jim@meyering.net>
86107
86108         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86109         now that readutmp.c may call `free (0)'.
86110
86111 2004-04-19  Bruno Haible  <bruno@clisp.org>
86112
86113         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86114         * m4/inttypes_h.m4: Likewise.
86115         * m4/stdint_h.m4: Likewise.
86116         * m4/intmax_t.m4: Likewise.
86117         * m4/uintmax_t.m4: Likewise.
86118
86119 2004-04-18  Jim Meyering  <jim@meyering.net>
86120
86121         * m4/prereq.m4: Don't forbid jm_ prefix.
86122
86123         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86124         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86125         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86126         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86127         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86128         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86129         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86130         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86131         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86132         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86133         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86134         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86135         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86136         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86137         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86138         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86139         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86140         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86141         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86142
86143 2004-04-18  Jim Meyering  <jim@meyering.net>
86144
86145         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86146         failure, don't leak memory and do call END_UTMP_ENT.
86147
86148 2004-04-16  Jim Meyering  <jim@meyering.net>
86149
86150         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86151         coreutils' stat program.
86152         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86153
86154 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86155
86156         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86157         C89.
86158         (CHAR_BIT): Remove, since we assume C89.
86159         Include <stdint.h> if available, as per current Autoconf CVS advice.
86160
86161 2004-03-31  Jim Meyering  <jim@meyering.net>
86162
86163         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86164         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86165         * m4/xalloc.m4: Likewise.
86166
86167 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86168
86169         Merge from coreutils.
86170
86171         * m4/inttostr.m4: New file.
86172         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86173         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86174         Require gl_CLOCK_TIME.
86175         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86176
86177 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86178
86179         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86180         not bool, to be more consistent with Unix conventions.
86181         Suggested by Bruno Haible.
86182
86183         Merge from coreutils.
86184
86185         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86186         * lib/umaxtostr.c: New files.
86187
86188         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86189         the usual <time.h> dance.
86190         (get_date): Change signature to support fractional time stamps.
86191         All callers changed.
86192         * lib/getdate.y: Include "getdate.h" first, as we can now
86193         assume C89 and don't need to worry about 'const'.
86194         Similarly, include "unlocked-io.h" near start, not in middle.
86195         Include <limits.h>.
86196         (textint.value): Use long int rather than int.
86197         (textint.digits): Use size_t rather than int.
86198         (BILLION, LOG10_BILLION): New constants.
86199         (parser_control): New member rel_ns.  Members day_ordinal,
86200         time_zone, month, day, hour, minutes, rel_year, rel_month,
86201         rel_day, rel_hour, rel_minutes, rel_seconds
86202         are now long int, not int.  Member seconds is now struct timespec,
86203         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86204         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86205         not int.
86206         (%union.intval): Now long int, not int.
86207         New member timespec.
86208         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86209         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86210         (spec): Now is a timespec or an item list.
86211         (timespec, items): New nonterminals.
86212         (time, rel, relunit, number, get_date):
86213         Add support for fractional seconds.
86214         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86215         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86216         (to_hour): First arg is now long int, not int.
86217         (to_year): Returns long int, not int.
86218         Don't treat year -70 like 70.
86219         (tm_diff): Returns long int, not int.
86220         (lookup_word): Use bool instead of int when appropriate.
86221         (yylex): Use size_t for count, not int.
86222         Detect overflow when parsing large integer constants.
86223         Add support for fractions.
86224         (get_date): Make pointers 'const' if possible.
86225         Use more-portable code to detect integer overflow.
86226         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86227         Don't use ctime; it's not reliable if the year has >4 digits.
86228
86229         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86230         This is for compatibility with BSD.
86231
86232         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86233         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86234         From coreutils' system.h.
86235
86236         * lib/userspec.c: Don't include "posixver.h".
86237         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86238         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86239         compatible extension.  Simplify code by removing a boolean int
86240         that was always nonzero if a string was nonnull.
86241
86242 2004-03-30  Jim Meyering  <jim@meyering.net>
86243
86244         Merge from coreutils.
86245
86246         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86247         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86248         on some systems one must include <grp.h> before it.
86249         Reported by Christian Krackowizer.
86250
86251 2004-03-30  Jim Meyering  <jim@meyering.net>
86252
86253         Merge from coreutils.
86254
86255         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86256
86257         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86258         an empty input stream.
86259
86260         * lib/readtokens.c: Include <stdbool.h>.
86261         (readtoken): Use `size_t' rather than int/long.
86262         All callers adjusted.
86263         Use `bool' rather than `int' where appropriate.
86264         Use memset rather than an explicit loop.
86265         Use x2nrealloc rather than xrealloc.
86266         Allow the use of `\0' as a delimiter.
86267         (readtokens): Likewise.
86268         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86269
86270 2004-03-30  Jim Meyering  <jim@meyering.net>
86271
86272         * m4/realloc.m4: Remove file, since now it does no more than
86273         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86274         the `configure.ac' section of module/realloc.
86275         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86276
86277 2004-03-30  Bruno Haible  <bruno@clisp.org>
86278
86279         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86280         nonnull.
86281
86282 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86283
86284         Merge changes to getloadavg.c from coreutils and Emacs.
86285
86286         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86287         Define to an expression, not to the empty string.
86288         Include cloexec.h and xalloc.h.
86289         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86290         Use set_cloexec_flag rather than rolling our own.
86291         * lib/cloexec.c, lib/cloexec.h: New files.
86292
86293 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86294
86295         * m4/cloexec.m4: New file.
86296
86297 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86298
86299         * lib/getopt.h: Sync with libc CVS.
86300
86301 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86302             Bruno Haible  <bruno@clisp.org>
86303
86304         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86305         mbswidth.
86306
86307 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86308             Bruno Haible  <bruno@clisp.org>
86309
86310         * lib/mbswidth.h: Include <wchar.h> only if
86311         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86312         <wchar.h>.
86313         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86314
86315 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86316
86317         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86318         Sync with libc CVS.
86319         * lib/getopt_int.h: New file, also synced from libc.
86320
86321 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86322
86323         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86324         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86325         Bring back getopt.c, getopt.h, getopt1.c.
86326
86327 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86328
86329         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86330         All uses changed.  Check for sa_sigaction member; this fixes
86331         a bug first reported by Jason Andrade in
86332         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86333
86334 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86335
86336         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86337         '#if' expressions.  Unlike the code it replaces, it does not
86338         depend on (defined _SC_PAGESIZE).  However, it does depend on
86339         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86340         first reported by Jason Andrade in
86341         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86342
86343 2004-02-25  Simon Josefsson  <jas@extundo.com>
86344
86345         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86346
86347 2004-02-25  Simon Josefsson  <jas@extundo.com>
86348
86349         * lib/strdup.h: New file.
86350         * lib/strdup.c: Include it.
86351         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86352         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86353
86354 2004-02-23  Karl Berry  <karl@gnu.org>
86355
86356         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86357         (from fencepost.gnu.org:/gd/gnuorg).
86358
86359 2004-02-23  Karl Berry  <karl@gnu.org>
86360
86361         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86362         * config/srclist.txt: add maintain/standards documents.
86363
86364 2004-02-18  Bruno Haible  <bruno@clisp.org>
86365
86366         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86367         Reported by Derek Robert Price <derek@ximbiot.com>.
86368
86369 2004-02-16  Karl Berry  <karl@gnu.org>
86370
86371         * config/mkinstalldirs, install-sh: update from automake.
86372
86373 2004-02-06  Karl Berry  <karl@gnu.org>
86374
86375         * m4/po.m4: update from gettext 0.14.1.
86376
86377 2004-02-06  Karl Berry  <karl@gnu.org>
86378
86379         * lib/config.charset: update from gettext 0.14.1.
86380
86381 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86382
86383         Add comments and code, prompted by suggestions from Bruno Haible
86384         for sh-quote.
86385         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86386         describing the enum quoting_style values.
86387         * lib/quotearg.c (quotearg_alloc): New function.
86388         (quotearg_buffer_restyled): Treat lone { and } as special.
86389         Treat = as special.  Work around bug with older shells
86390         that "see" a '\' that is really the 2nd byte of a multibyte char.
86391         Quote empty string with shell_quoting_style.
86392
86393 2004-02-03  Bruno Haible  <bruno@clisp.org>
86394
86395         * m4/pipe.m4: New file, from GNU gettext.
86396
86397 2004-02-03  Bruno Haible  <bruno@clisp.org>
86398
86399         * lib/pipe.h: New file, from GNU gettext.
86400         * lib/pipe.c: New file, from GNU gettext.
86401
86402 2004-01-27  Bruno Haible  <bruno@clisp.org>
86403
86404         * m4/execute.m4: New file, from GNU gettext.
86405
86406 2004-01-27  Bruno Haible  <bruno@clisp.org>
86407
86408         * lib/execute.h: New file, from GNU gettext.
86409         * lib/execute.c: New file, from GNU gettext.
86410         * lib/w32spawn.h: New file, from GNU gettext.
86411
86412 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86413
86414         Merge from diffutils.
86415
86416         * lib/file-type.c (file_type): Add typed memory objects.
86417         * lib/file-type.h (S_TYPEISTMO): New macro.
86418
86419         * lib/c-stack.h (c_stack_action): Remove argv argument.
86420         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86421         (die): Don't calculate message unless segv_action returns.
86422         (get_stack_location, min_address_from_argv, max_address_from_argv,
86423         volatile stack_base, volatile_stack_size): Remove.
86424         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86425         that every segmentation violation is a stack overflow.  (Ouch!)
86426         See Debian bug 136249 (still outstanding) for more info about why
86427         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86428
86429 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86430
86431         Exit-status fix from coreutils.
86432
86433         Use exit_failure consistently in place of EXIT_FAILURE,
86434         so that program exit statuses are consistent on failure.
86435
86436         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86437         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86438         * lib/argmatch.h: Comment fix to match the above.
86439         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86440         Now a macro referring to exit_failure, instead of a separate
86441         variable.  Include "exitfail.h" to get it.
86442         * lib/xstrtol.h: Include "exitfail.h".
86443         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86444
86445         * lib/long-options.c (parse_long_options): Use prototype
86446         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86447         for clarity.
86448
86449 2004-01-21  Jim Meyering  <jim@meyering.net>
86450
86451         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86452         so as not to conflict with a different-sized __mktime_internal
86453         function in GNU libc.
86454         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86455         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86456
86457 2004-01-20  Karl Berry  <karl@gnu.org>
86458
86459         * config/config.guess: update from config.
86460
86461         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86462
86463 2004-01-20  Bruno Haible  <bruno@clisp.org>
86464
86465         Safer stack allocation.
86466         * lib/setenv.c: Include allocsa.h.
86467         (alloca): Remove fallback definition.
86468         (freea): Remove macro.
86469         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86470         instead of freea.
86471
86472 2004-01-20  Bruno Haible  <bruno@clisp.org>
86473
86474         * m4/eealloc.m4: New file, from GNU gettext.
86475
86476 2004-01-20  Bruno Haible  <bruno@clisp.org>
86477
86478         * m4/allocsa.m4: New file, from GNU gettext.
86479
86480 2004-01-20  Bruno Haible  <bruno@clisp.org>
86481
86482         * lib/xallocsa.h: New file, from GNU gettext.
86483         * lib/xallocsa.c: New file, from GNU gettext.
86484
86485 2004-01-20  Bruno Haible  <bruno@clisp.org>
86486
86487         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86488
86489 2004-01-20  Bruno Haible  <bruno@clisp.org>
86490
86491         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86492         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86493         specially.
86494
86495 2004-01-20  Bruno Haible  <bruno@clisp.org>
86496
86497         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86498         patch.
86499
86500 2004-01-20  Bruno Haible  <bruno@clisp.org>
86501
86502         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86503
86504 2004-01-20  Bruno Haible  <bruno@clisp.org>
86505
86506         * lib/eealloc.h: New file.
86507
86508 2004-01-20  Bruno Haible  <bruno@clisp.org>
86509
86510         * lib/binary-io.h: Avoid warnings on Cygwin.
86511
86512 2004-01-20  Bruno Haible  <bruno@clisp.org>
86513
86514         * lib/allocsa.h: New file, from GNU gettext.
86515         * lib/allocsa.c: New file, from GNU gettext.
86516
86517 2004-01-18  Karl Berry  <karl@gnu.org>
86518
86519         * doc/gpl.texi, doc/lgpl.texi: new files.
86520
86521 2004-01-18  Karl Berry  <karl@gnu.org>
86522
86523         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86524         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86525
86526 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86527
86528         Merge from coreutils.
86529
86530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86531         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86532         (gl_DEFAULT_POSIX2_VERSION): Move
86533         the documentation from 'configure' into 'config.hin',
86534         so that 'configure --help' isn't burdened by it and
86535         we don't have to worry about its formatting there.
86536         Reword the documentation so that it's more succinct
86537         and can be run together into a single paragraph.
86538         * m4/same.m4 (gl_SAME): Check for pathconf.
86539
86540 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86541
86542         Merge from coreutils.
86543
86544         * lib/posixver.c: Include posixver.h.
86545
86546         * lib/same.c: Include <stdbool.h>, <limits.h>.
86547         (_POSIX_NAME_MAX): Define if not defined.
86548         (MIN): New macro.
86549         (same_name): If file names are silently truncated, report
86550         that the file names are the same if they are the same after
86551         the silent truncation.
86552
86553         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86554         conversion function.
86555         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86556         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86557         longer needed.
86558
86559 2004-01-15  Jim Meyering  <jim@meyering.net>
86560
86561         Merge from coreutils.
86562
86563         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86564         if no library is required.
86565         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86566         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86567         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86568         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86569         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86570         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86571         value, $ac_cv_search_crypt, if it's "none required".
86572         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86573         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86574         not gl_FUNC_GETLOADAVG.
86575         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86576         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86577
86578 2004-01-15  Jim Meyering  <jim@meyering.net>
86579
86580         Merge from coreutils.
86581
86582         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86583         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86584         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86585
86586         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86587         optional configure-time default.
86588
86589         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86590
86591         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86592
86593 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86594
86595         Merge from coreutils.
86596
86597         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86598         value, $ac_cv_search_nanosleep, if it's "none required".
86599
86600 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86601
86602         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86603         with like-named macro in fnmatch.c.
86604         (EXT): Use an internal constant instead.
86605
86606         Merge fnmatch patches from glibc.
86607         * lib/fnmatch.c (mbsinit): Remove define.
86608         Add libc_hidden_ver (__fnmatch, fnmatch).
86609         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86610         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86611
86612 2004-01-14  Karl Berry  <karl@gnu.org>
86613
86614         * config/install-sh: update from automake.
86615
86616 2004-01-13  Karl Berry  <karl@gnu.org>
86617
86618         * config/install-sh: update from automake.
86619
86620 2004-01-09  Karl Berry  <karl@gnu.org>
86621
86622         * config/install-sh: update from automake.
86623
86624 2004-01-05  Karl Berry  <karl@gnu.org>
86625
86626         * config/config.{sub,guess}: update from config.
86627
86628 2003-12-31  Karl Berry  <karl@gnu.org>
86629
86630         * config/depcomp: update from automake.
86631
86632 2003-12-14  Karl Berry  <karl@gnu.org>
86633
86634         * lib/config.charset: update from gettext-runtime.
86635
86636 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86637
86638         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86639         Bug reported by Alfred M. Szmidt.
86640
86641 2003-12-03  Bruno Haible  <bruno@clisp.org>
86642
86643         * m4/gettext.m4: Upgrade from gettext-0.13.
86644         * m4/po.m4: Upgrade from gettext-0.13.
86645         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86646         * m4/intmax.m4: New file, from gettext-0.13.
86647         * m4/printf-posix.m4: New file, from gettext-0.13.
86648
86649 2003-11-29  Karl Berry  <karl@gnu.org>
86650
86651         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86652
86653 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86654             Bruno Haible  <bruno@clisp.org>
86655
86656         * lib/printf-parse.h: Don't include sys/types.h.
86657         (ARG_NONE): New macro.
86658         (char_directive): Change type of *arg_index fields to size_t.
86659         * lib/printf-parse.c: Don't include sys/types.h.
86660         (SSIZE_MAX): Remove macro.
86661         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86662         Remove unnecessary overflow check.
86663         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86664         fields.
86665
86666 2003-11-25  Bruno Haible  <bruno@clisp.org>
86667
86668         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86669
86670 2003-11-25  Bruno Haible  <bruno@clisp.org>
86671
86672         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86673         gt_TYPE_SSIZE_T.
86674
86675 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86676
86677         * modules/alloca: Remove dependency on xalloc.
86678
86679 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86680
86681         * lib/alloca.c: Remove dependency on xalloc module.
86682         (xalloc_die): Remove.
86683         (memory_full) [!defined emacs]: New macro.
86684         [!defined emacs]: Don't include xalloc.h.
86685         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86686         address arithmetic overflows.  Change datatypes a bit to avoid
86687         unnecessary casts.
86688
86689 2003-11-22  Jim Meyering  <jim@meyering.net>
86690
86691         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86692         s/size/size_t/.
86693
86694 2003-11-21  Karl Berry  <karl@gnu.org>
86695
86696         * config/config.{sub,guess}: update from config.
86697
86698 2003-11-18  Karl Berry  <karl@gnu.org>
86699
86700         * config/config.{sub,guess}: update from config.
86701
86702         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86703
86704 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86705
86706         * README: Mention that S+T cannot overflow if S is the size of
86707         an existing object and T is sufficiently small.
86708
86709 2003-11-17  Jim Meyering  <jim@meyering.net>
86710
86711         On systems without utime and without a utimes function capable of
86712         dealing with a NULL struct utimbuf* argument, this utime replacement
86713         could -- in unusual circumstances -- leak a file descriptor.
86714         * lib/utime.c: Include <unistd.h> and <errno.h>.
86715         (utime_null): Be sure to close `fd' and to preserve errno.
86716         Reported by Geoff Collyer via Arnold Robbins.
86717
86718 2003-11-17  Bruno Haible  <bruno@clisp.org>
86719
86720         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86721         (Depends-on): Add xsize.
86722
86723 2003-11-17  Bruno Haible  <bruno@clisp.org>
86724
86725         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86726
86727 2003-11-17  Bruno Haible  <bruno@clisp.org>
86728
86729         * lib/vasnprintf.c (alloca): Remove fallback definition.
86730         (freea): Remove definition.
86731         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86732         Reported by Paul Eggert.
86733
86734 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86735             Bruno Haible  <bruno@clisp.org>
86736
86737         Protect against address arithmetic overflow.
86738         * lib/printf-args.h: Include stddef.h.
86739         (arguments): Change type of field 'count' to size_t.
86740         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86741         'unsigned int' where appropriate.
86742         * lib/printf-parse.h: Include sys/types.h.
86743         (char_directive): Change type of *arg_index fields to ssize_t.
86744         (char_directives): Change type of fields 'count', max_*_length to
86745         size_t.
86746         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86747         (SSIZE_MAX): Define fallback value.
86748         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86749         instead of 'int' where appropriate. Check a_allocated, d_allocated
86750         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86751         * lib/vasnprintf.c: Include xsize.h.
86752         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86753         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86754         overflow. Avoid wraparound when converting a width or precision from
86755         decimal to binary.
86756
86757 2003-11-16  Bruno Haible  <bruno@clisp.org>
86758
86759         Update from GNU gettext.
86760         * lib/printf-parse.c: Generalize to it can be compiled for wide
86761         strings.
86762         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86763         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86764         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86765         SNPRINTF): New macros.
86766         Don't include <alloca.h> if the file is used inside libintl.
86767         (local_wcslen): New function, for Solaris 2.5.1.
86768         (VASNPRINTF): Use it instead of wcslen.
86769
86770 2003-11-16  Bruno Haible  <bruno@clisp.org>
86771
86772         * lib/xsize.h (xmax): New function.
86773         (xsum, xsum3, xsum4): Declare as "pure" functions.
86774
86775 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86776
86777         * modules/xalloc (Files): Undo latest change, since xalloc.h
86778         no longer needs SIZE_MAX or PTRDIFF_MAX.
86779
86780 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86781
86782         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86783         gl_PTRDIFF_MAX.
86784
86785 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86786
86787         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86788         "return", to pacify some unknown compiler.  Problem reported
86789         by Joerg Schilling.
86790
86791 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86792
86793         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86794         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86795         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86796         heuristic is just as accurate as far as we know, and it removes a
86797         dependency on size_max.m4 and ptrdiff_max.m4.
86798
86799 2003-11-11  Bruno Haible  <bruno@clisp.org>
86800
86801         * modules/xsize (Files): Add m4/size_max.m4.
86802         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86803
86804 2003-11-11  Bruno Haible  <bruno@clisp.org>
86805
86806         * m4/size_max.m4: New file.
86807         * m4/ptrdiff_max.m4: New file.
86808         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86809         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86810         (gl_XALLOC): Invoke it.
86811
86812 2003-11-11  Bruno Haible  <bruno@clisp.org>
86813
86814         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86815         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86816         defined.
86817
86818 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86819
86820         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86821         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86822         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86823         From Bruno Haible.
86824         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86825         not (size_t) -1, since it's defined here.
86826
86827 2003-11-09  Karl Berry  <karl@gnu.org>
86828
86829         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86830
86831 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86832
86833         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86834         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86835         Reject sizes of exactly SIZE_MAX bytes.
86836         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86837         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86838
86839 2003-11-05  Bruno Haible  <bruno@clisp.org>
86840
86841         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86842         SIZE_MAX defined in <limits.h> on Solaris.
86843
86844 2003-11-04  Jim Meyering  <jim@meyering.net>
86845
86846         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86847         variable names, rather than @VAR@.
86848         * modules/poll: Likewise.
86849
86850 2003-11-04  Bruno Haible  <bruno@clisp.org>
86851
86852         * modules/xsize: New file.
86853         * modules/linebreak: Depend on xsize.
86854         * MODULES.html.sh (func_all_modules): Add xsize.
86855
86856 2003-11-04  Bruno Haible  <bruno@clisp.org>
86857
86858         * m4/xsize.m4: New file.
86859
86860 2003-11-04  Bruno Haible  <bruno@clisp.org>
86861
86862         * lib/xsize.h: New file.
86863         * lib/linebreak.c: Include xsize.h.
86864         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86865         argument for overflow.
86866         Suggested by Paul Eggert.
86867
86868 2003-11-03  Karl Berry  <karl@gnu.org>
86869
86870         * config/config.{guess,sub}: update from config.
86871
86872 2003-11-03  Jim Meyering  <jim@meyering.net>
86873
86874         * modules/userspec (lib_SOURCES): Add userspec.h.
86875         (Include): Add "userspec.h".
86876         Improve description.
86877
86878 2003-11-03  Jim Meyering  <jim@meyering.net>
86879
86880         * lib/userspec.c: Include "userspec.h".
86881         * lib/userspec.h: New file.
86882
86883 2003-11-03  Bruno Haible  <bruno@clisp.org>
86884
86885         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86886
86887 2003-11-03  Bruno Haible  <bruno@clisp.org>
86888
86889         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86890         available, to avoid (extremely rare) race condition.
86891         Suggested by Paul Eggert.
86892
86893 2003-11-02  Karl Berry  <karl@gnu.org>
86894
86895         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86896
86897 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86898
86899         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86900         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86901         (read_filesystem_list): Set and use me_type_malloced.
86902         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86903         whatever the type happens to be), for brevity and consistency.
86904         Check for size calculation overflow on Alphas running OSF/1.
86905
86906 2003-10-31  Jim Meyering  <jim@meyering.net>
86907
86908         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86909
86910         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86911
86912 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86913             Bruno Haible  <bruno@clisp.org>
86914
86915         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86916         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86917
86918 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86919
86920         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86921         netbsd*-gnu*.  Suggested by Robert Millan.
86922
86923 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86924
86925         * modules/group-member: Depend on stdbool.
86926
86927 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86928
86929         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86930
86931 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86932
86933         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86934         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86935         after the 'gnu' in these cases.  This fixes some bugs in the
86936         previous change, and is based on suggestions by Robert Millan.
86937
86938 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86939
86940         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86941         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86942         no longer needed.
86943         * lib/quotearg.c (quotearg_n_options): Use it.
86944         * lib/group-member.c: Include <stdbool.h>.
86945         (free_group_info): Arg is now const *; don't free arg.
86946         (get_group_info): Now returns bool and accepts struct group_info *,
86947         rather than returning a malloc'ed struct group_info *.
86948         All uses changed.  Check for overflow in internal size calculation.
86949
86950         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86951         rather than xmalloc/xrealloc.
86952         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86953         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86954         conformance bug: the old code used a pointer after freeing the
86955         storage that it addressed.
86956         * lib/hash.c (hash_initialize): Simplify the code by using
86957         xalloc_oversized rather than doing it by hand.
86958         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86959         the buffer preserved.  Use free and xmalloc instead.
86960         * lib/quotearg.c (quotearg_n_options): Likewise.
86961         Use a simpler test for size overflow.  Don't use xalloc_oversized
86962         because unsigned int might be wider than size_t (!); this suggests
86963         that we should switch from unsigned int to size_t for slot numbers.
86964
86965 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86966
86967         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86968         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86969         NetBSD kernels.  Requested by Richard Stallman.
86970
86971 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86972
86973         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86974         to allocate the returned structure.  Do not allocate a subarray,
86975         as x2nrealloc will do that.
86976         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86977         instead of xnrealloc.
86978         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86979
86980 2003-10-27  Bruno Haible  <bruno@clisp.org>
86981
86982         * lib/stdbool_.h: Better support for BeOS.
86983
86984 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86985
86986         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86987         now uses inline.
86988
86989 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86992         callers that want to do their own size-overflow checking.  Include
86993         <stdbool.h>, since xalloc_oversized returns bool.
86994         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86995         to use xalloc_oversized.
86996
86997         Add two functions x2realloc, x2nrealloc, for programs that grow
86998         arrays dynamically by doubling their sizes.
86999         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87000         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87001         New functions.
87002
87003         Port to C99 semantics for 'inline' of external functions.
87004         Bug reported by Bruno Haible.
87005         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87006         with the old contents of xnmalloc.
87007         (xnmalloc, xmalloc): Use it.
87008         (xnrealloc_inline): New static inline function,
87009         with the old contents of xnrealloc.
87010         (xnrealloc, xrealloc): Use it.
87011
87012         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87013         that.
87014
87015 2003-10-26  Karl Berry  <karl@gnu.org>
87016
87017         * config/srclist.txt (COPYING.DOC): no longer available from
87018         /gd/gnuorg; don't know where the ultimate source is.
87019
87020 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87021
87022         Fix several address-calculation bugs in the hash modules,
87023         plus some minor code cleanup.
87024
87025         * lib/hash.h: Include <stdbool.h>, for bool.
87026         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87027         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87028         hash_get_n_entries, hash_get_max_bucket_length,
87029         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87030         hash_rehash): Use size_t rather than unsigned.
87031         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87032         hash_get_n_buckets_used, hash_get_n_entries,
87033         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87034         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87035         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87036         Likewise.
87037         (SIZE_MAX): Define if not defined.
87038         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87039         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87040         hash_print):
87041         Use const * when possible.
87042         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87043         (check_tuning): Fix bug: if tuning parameters were very close to
87044         0 or 1, rounding errors could have caused subscript violations.
87045         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87046         (hash_initialize): Add 'fail:' label
87047         to free table and return NULL, and use it to simplify code.
87048         Use calloc rather than clearing the storage ourself.
87049         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87050         buffer size calculations.
87051         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87052         Include <stddef.h>, for size_t.
87053         * lib/hash-pjw.c (hash_pjw): Likewise.
87054         Switch to method described by Bruno Haible.
87055         Include <limits.h>, for CHAR_BIT.
87056         (SIZE_BITS): New macro.
87057
87058 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87059
87060         * m4/getline.m4 (AM_FUNC_GETLINE):
87061         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87062         hosts.  Problem reported by Derek Robert Price in
87063         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87064         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87065         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87066
87067 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87068
87069         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87070         ceiling the allocation at NMAX bytes rather than silently
87071         discarding input bytes before NMAX is reached.  This makes
87072         a difference only if NMAX exceeds SIZE_MAX / 2.
87073
87074         * lib/obstack.c: Merge from glibc.
87075         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87076         Add libc_hidden_def (_obstack_newchunk).
87077         (_obstack_free) [! defined _LIBC]: Remove.
87078         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87079         a clone of the function body.
87080         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87081         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87082
87083         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87084         glibc.
87085         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87086         arg to memcpy.
87087
87088         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87089         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87090         Don't use lvalue casts, as GCC plans to remove support for them
87091         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87092         was also present in the non-GCC version, indicating that this
87093         code had always been buggy and had never been widely used.
87094         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87095         Use the fast variant of each macro, rather than copying the
87096         definiens of the fast variant; that way, we'll be more likely to
87097         catch future bugs in the fast variants.
87098
87099 2003-10-20  Bruno Haible  <bruno@clisp.org>
87100
87101         * modules/wait-process: New file.
87102         * MODULES.html.sh (func_all_modules): Add wait-process.
87103
87104 2003-10-20  Bruno Haible  <bruno@clisp.org>
87105
87106         * m4/wait-process.m4: New file.
87107
87108 2003-10-20  Bruno Haible  <bruno@clisp.org>
87109
87110         * lib/wait-process.h: New file, from GNU gettext.
87111         * lib/wait-process.c: New file, from GNU gettext.
87112
87113 2003-10-19  Jim Meyering  <jim@meyering.net>
87114
87115         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87116         HPUX 10.20.
87117
87118 2003-10-18  Karl Berry  <karl@gnu.org>
87119
87120         * config/config.guess: update from config.
87121
87122 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87123
87124         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87125         (getgroups): First arg is int, not size_t.
87126         Don't let 'free' mangle errno.
87127
87128 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87129
87130         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87131
87132 2003-10-16  Karl Berry  <karl@gnu.org>
87133
87134         * config/config.{guess,sub}: update from config.
87135
87136 2003-10-16  Jim Meyering  <jim@meyering.net>
87137
87138         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87139         memcpy.
87140
87141 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87142
87143         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87144         (SIZE_MAX): Remove.
87145         (new_exclude, add_exclude_file): Initial size no longer needs to
87146         be a power of 2.
87147         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87148         our own address arithmetic overflow checking.
87149
87150         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87151         (fnmatch): Do not alloca more than 2000 wide characters;
87152         instead, use malloc for large buffers.
87153         Check for address arithmetic overflow, and return -1
87154         with errno set to ENOMEM in that case.
87155         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87156         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87157         instead, return -1.  Check for address arithmetic overflow.
87158
87159 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87160
87161         Handle invalid suffixes and overflow independently, so that
87162         callers can treat them independently as needed.  Fix some bugs in
87163         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87164         suffix for a human-readable blocksize.  The major caller-visible
87165         change is the addition of a new
87166         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87167         that both overflow and suffix chars were found.
87168
87169         * lib/human.c (humblock): Don't check separately for invalid suffix
87170         char; that is xstrtoumax's job (now that its bug is fixed).
87171         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87172         INTMAX_MAX]: New macros.
87173         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87174         TYPE_MAXIMUM): New macros.
87175         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87176         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87177         if overflow occurs, as it's what __strtol does and it's more useful
87178         in practice.
87179         (__xstrtol): If __strtol reports some error other than ERANGE,
87180         reflect it to the caller as LONGINT_INVALID.  If it reports
87181         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87182         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87183         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87184         value.
87185         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87186         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87187         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87188         [defined UINTMAX_MAX]: New macros.
87189
87190 2003-10-14  Bruno Haible  <bruno@clisp.org>
87191
87192         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87193
87194 2003-10-14  Bruno Haible  <bruno@clisp.org>
87195
87196         * m4/sig_atomic_t: New file, from GNU gettext.
87197         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87198
87199 2003-10-14  Bruno Haible  <bruno@clisp.org>
87200
87201         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87202         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87203         Also use volatile where needed.
87204
87205 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87206
87207         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87208         Change maintainer from Bruno Haible to 'all'.
87209
87210 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87211
87212         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87213
87214 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87215
87216         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87217         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87218         and define in terms of the other primitives.
87219         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87220         (SIZE_MAX): Define if not already defined.
87221         (array_size_overflow): New function.
87222         (xalloc_die): Abort instead of exiting if 'error' returns.
87223         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87224         (xmalloc, xrealloc): Use them.
87225         (xcalloc): Check for address arithmetic overflow.
87226         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87227         a bit faster than strcpy.
87228
87229 2003-10-10  Simon Josefsson  <jas@extundo.com>
87230
87231         * modules/argp (Depends-on): Add restrict and strcase.
87232
87233 2003-10-10  Simon Josefsson  <jas@extundo.com>
87234
87235         * m4/argp.m4: Add AC_C_INLINE.
87236
87237 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87238
87239         Merge getpass from libc, plus a few fixes.
87240
87241         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87242         Include <stdbool.h>.
87243         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87244         __fsetlocking to empty.
87245         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87246         do include <bits/libc-lock.h>.
87247         Do not include <fcntl.h>; not needed.
87248         [_LIBC]: Include <wchar.h>.
87249         (NOTCANCEL_MODE): New macro.
87250         (flockfile, funlockfile) [_LIBC]: New macros.
87251         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87252         [!_LIBC]: New macros.
87253         (call_fclose): New function.
87254         (getpass): Use it.  Save tty stream separately; this simplifies the
87255         code and makes it more reliable if stdin happens to equal stdout.
87256         Invoke __fsetlocking on tty.
87257         Handle thread cancellation if needed.
87258         Namespace cleanup (use __tcgetattr, __getline).
87259         Use bool for Booleans.
87260         [USE_IN_LIBIO]: Handle wide streams.
87261         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87262         stream might go where.
87263
87264         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87265         doesn't have to include <stdio.h> before us.
87266         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87267         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87268         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87269         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87270         if not declared, so that we can use getpass.c code from libc without
87271         rewriting it.
87272         (flockfile, ftrylockfile, funlockfile): New macros.
87273
87274 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87275
87276         * modules/getpass: Depend on stdbool.
87277
87278 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87279
87280         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87281
87282 2003-10-07  Karl Berry  <karl@gnu.org>
87283
87284         * config/config.{guess,sub}: update from config.
87285
87286 2003-10-06  Jim Meyering  <jim@meyering.net>
87287             Bruno Haible  <bruno@clisp.org>
87288
87289         This lets translators provide better translations for the
87290         "Written by ..." part of --version output.
87291         * lib/version-etc.h: Include stdarg.h.
87292         (version_etc_copyright): Declare as readonly.
87293         (version_etc): Make this function variadic with a NULL-terminated list
87294         of author name strings.
87295         (version_etc_va): New declaration.
87296         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87297         (version_etc_copyright): Declare as readonly.
87298         (version_etc_va): New function. Provide a different translatable string
87299         for each possible number of authors < 10. Abbreviate when there are 10
87300         authors or more.
87301         (version_etc): Make this function variadic. Call version_etc_va.
87302         Suggestion from Gary V. Vaughan.
87303
87304         * lib/long-options.h (parse_long_options): Change prototype: the
87305         authors string is moved to the end and becomes variadic.
87306         * lib/long-options.c: Include stdarg.h.
87307         (parse_long_options): Make this function variadic, too.
87308         Call version_etc_va, not version_etc.
87309
87310 2003-10-06  Bruno Haible  <bruno@clisp.org>
87311
87312         * modules/version-etc-2: Remove file.
87313         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87314
87315 2003-10-06  Bruno Haible  <bruno@clisp.org>
87316
87317         * modules/fatal-signal: New file.
87318         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87319
87320 2003-10-06  Bruno Haible  <bruno@clisp.org>
87321
87322         * m4/fatal-signal.m4: New file.
87323         * m4/signalblocking.m4: New file, from GNU gettext.
87324
87325 2003-10-06  Bruno Haible  <bruno@clisp.org>
87326
87327         * lib/version-etc-2.h: Remove file.
87328         * lib/version-etc-2.c: Remove file.
87329
87330 2003-10-06  Bruno Haible  <bruno@clisp.org>
87331
87332         * lib/fatal-signal.h: New file, from GNU gettext.
87333         * lib/fatal-signal.c: New file, from GNU gettext.
87334
87335 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87336
87337         * README: Rework advice for preventing empty .o files.
87338         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87339         not <sys/types.h>.
87340
87341 2003-10-04  Karl Berry  <karl@gnu.org>
87342
87343         * lib/argp*: update from libc.
87344
87345 2003-10-04  Karl Berry  <karl@gnu.org>
87346
87347         * config/config.{guess,sub}: update from config.
87348
87349 2003-10-02  Bruno Haible  <bruno@clisp.org>
87350
87351         * modules/lchown (Include): Add lchown.h.
87352         * modules/time_r (Include): Use "..." syntax.
87353         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87354
87355 2003-10-01  Simon Josefsson  <jas@extundo.com>
87356
87357         * MODULES.html.sh (func_all_modules): Move gethostname from section
87358         'based on' to section 'lacking' POSIX:2001.
87359
87360 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87361
87362         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87363         to output mode on the same stream.
87364
87365 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87366
87367         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87368         Fix arg typo in previous patch.
87369
87370 2003-09-28  Jim Meyering  <jim@meyering.net>
87371
87372         * lib/error.c: Correct cpp indentation.
87373
87374 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87375
87376         * modules/free: New file.
87377
87378 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87379
87380         * m4/free.m4: New file.
87381
87382 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87383
87384         * lib/minmax.h (MIN, MAX)
87385         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87386         Omit the special code that used __typeof__, since we worry that
87387         it could be more trouble than it's worth.  See:
87388         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87389         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87390
87391         * lib/free.c: New file.
87392
87393 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87394
87395         Trivial fixes to Makefile.am parts of module listings.
87396         * modules/strstr: Append strstr.h to lib_SOURCES.
87397         * modules/strcase: Likewise, for strcase.h.
87398
87399 2003-09-27  Karl Berry  <karl@gnu.org>
87400
87401         * config/mkinstalldirs: update from automake.
87402
87403 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87404
87405         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87406         (error_tail): Do not loop, reallocating temporary buffer, since
87407         the output cannot contain more wide characters than the input
87408         contains bytes, the size must be big enough already.  This avoids
87409         one potential size overflow calculation.  Check for size overflow
87410         when calculating temporary buffer size.  Free temporary buffer
87411         when done, if it was allocated with malloc; this plugs a memory
87412         leak.  Remove casts from void * to pointers, that are no longer
87413         needed now that we're assuming C89 or better.
87414
87415         Merge error changes from glibc.
87416
87417         * lib/error.c, error.h: Update copyright notice header to match glibc.
87418         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87419         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87420         Disable cancellation while printing error.
87421         * lib/error.h: Prepend __ to parameter names.
87422
87423 2003-09-26  Jim Meyering  <jim@meyering.net>
87424
87425         * lib/error.c (error_tail): Move some declarations
87426         into inner scope where the local variables are used.
87427
87428 2003-09-26  Bruno Haible  <bruno@clisp.org>
87429
87430         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87431         stpncpy().
87432         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87433
87434 2003-09-26  Bruno Haible  <bruno@clisp.org>
87435
87436         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87437         (stpncpy): Define as alias for gnu_stpncpy.
87438         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87439
87440 2003-09-25  Simon Josefsson  <jas@extundo.com>
87441
87442         * lib/xgetdomainname.h: New file.
87443         * lib/xgetdomainname.c: New file.
87444
87445 2003-09-25  Simon Josefsson  <jas@extundo.com>
87446             Bruno Haible  <bruno@clisp.org>
87447
87448         * modules/getdomainname: New file.
87449         * modules/xgetdomainname: New file.
87450         * MODULES.html.sh (func_all_modules): Add getdomainname,
87451         xgetdomainname.
87452
87453 2003-09-25  Simon Josefsson  <jas@extundo.com>
87454             Bruno Haible  <bruno@clisp.org>
87455
87456         * m4/getdomainname.m4: New file.
87457
87458 2003-09-25  Simon Josefsson  <jas@extundo.com>
87459             Bruno Haible  <bruno@clisp.org>
87460
87461         * lib/getdomainname.h: New file.
87462         * lib/getdomainname.c: New file.
87463
87464 2003-09-25  Karl Berry  <karl@gnu.org>
87465
87466         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87467
87468 2003-09-25  Karl Berry  <karl@gnu.org>
87469
87470         * config/install-sh: update from automake.
87471
87472 2003-09-25  Bruno Haible  <bruno@clisp.org>
87473
87474         * modules/version-etc-2: New file, from modules/version-etc with
87475         modifications.
87476         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87477
87478 2003-09-25  Bruno Haible  <bruno@clisp.org>
87479
87480         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87481         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87482
87483 2003-09-24  Simon Josefsson  <jas@extundo.com>
87484
87485         * modules/xgethostname: Add xgethostname.h.
87486
87487 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87488
87489         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87490         the buffer associated with the argument.  Bug reported by
87491         Simon Josefsson.
87492
87493 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87494
87495         * README: Document assumptions that 'int' is at least 32 bits
87496         wide, that integer arithmetic is 2's complement without overflow,
87497         that there are no holes in integer values, that adding sizes of
87498         two nonoverlapping objects can't overflow, and that all-bits-zero
87499         yields scalar zero.  Fix spelling and capitalization typos.
87500
87501 2003-09-19  Karl Berry  <karl@gnu.org>
87502
87503         * lib/argp.h: update from libc.
87504
87505 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87506
87507         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87508         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87509         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87510
87511 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87512
87513         * gnulib-tool: Use "test -h", not "test -L", for portability
87514         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87515         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87516         (sed_extract_prog): Issue s commands one-by-one, rather than
87517         using \| in one s command.
87518
87519 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87520
87521         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87522         input error, instead of returning NULL the next time we are called
87523         (and therefore losing track of errno).
87524
87525 2003-09-16  Bruno Haible  <bruno@clisp.org>
87526
87527         * gnulib-tool (func_create_testdir): Warn about duplicated
87528         dependencies.
87529
87530 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87531
87532         * modules/argmatch, modules/fatal, modules/obstack,
87533         modules/xalloc, modules/xgethostname: Sort dependencies by
87534         importance, not alphabetically.
87535
87536 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87537
87538         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87539         fails, so that the caller gets the proper errno.
87540
87541         * lib/readutmp.c (read_utmp): Likewise.
87542         Check for fstat error.  Close stream and free storage
87543         when failing.
87544
87545 2003-09-14  Karl Berry  <karl@gnu.org>
87546
87547         * config/srclist.txt (strdup.c): disable for c89 changes.
87548
87549 2003-09-14  Jim Meyering  <jim@meyering.net>
87550
87551         * lib/getloadavg.c: Correct cpp indentation.
87552         * lib/strdup.c: Likewise.
87553         * lib/vasnprintf.c: Likewise.
87554
87555 2003-09-14  Bruno Haible  <bruno@clisp.org>
87556
87557         * modules/fwriteerror: New file.
87558         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87559
87560 2003-09-14  Bruno Haible  <bruno@clisp.org>
87561
87562         * lib/fwriteerror.h: New file.
87563         * lib/fwriteerror.c: New file.
87564
87565 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87566
87567         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87568         modules/xgethostname, modules/xalloc: Depend on exit.
87569
87570 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87571
87572         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87573
87574         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87575         and AC_MINIX, too, so that their extensions are available.
87576
87577         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87578         This macro has been superseded by gl_BACKUPFILE.
87579
87580         More patches to assume C89 or better.
87581
87582         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87583
87584         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87585         unconditionally.
87586         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87587         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87588         Include <string.h>, <stdlib.h> unconditionally.
87589         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87590         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87591         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87592         headers or for string.h.
87593         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87594         or strtoul.
87595
87596         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87597         headers.
87598         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87599         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87600         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87601         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87602         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87603         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87604         memcpy, memset.
87605         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87606         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87607         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87608         strtol.
87609         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87610         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87611         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87612         strtoul.
87613
87614 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87615
87616         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87617         * lib/obstack.c [!defined _LIBC]: Likewise.
87618         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87619         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87620         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87621
87622         More changes to assume C89 or better.
87623
87624         * lib/error.c (error_tail): Assume vprintf.
87625
87626         * lib/argmatch.c (getenv): Remove decl.
87627         * lib/progreloc.c (get_full_program_name): Define via prototype.
87628         * lib/setenv.c (clearenv): Likewise.
87629         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87630         needed.
87631         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87632         (malloc, memcpy): Remove decls.
87633         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87634         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87635         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87636         (memcpy): Remove macro.
87637         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87638         (__P): Remove.  All uses removed.
87639         (PTR): Remove.  All uses changed to void *.
87640         (CHAR_BIT, NULL): Remove.
87641         (spaces, zeros, memset_space, memset_zero)
87642         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87643         Remove.
87644         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87645         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87646         Define with prototype.
87647         Remove now-unnecessary prototype decl.
87648         (extra_args_spec): Assume ANSI C.  All uses changed.
87649         (extra_args_spec_iso): Remove.
87650         (my_strftime, emacs_strftimeu): Define via prototype.
87651         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87652         unconditionally.
87653         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87654         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87655         (strtoul, strtol): Remove decls.
87656         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87657         LONG_MAX): Remove.
87658         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87659         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87660         (LOCALE_PARAM_PROTO): New macro.
87661         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87662         (INTERNAL (strtol), strtol): Define with a prototype.
87663         (PARAMS): Remove.  All uses removed.
87664         * lib/tempname.c: Include <string.h> unconditionally.
87665         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87666         * lib/xgethostname.c (main): Define with a prototype.
87667         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87668         Include <stdlib.h> unconditionally.
87669         (calloc, malloc, realloc, free): Remove decls.
87670         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87671         Include <stdlib.h> unconditionally.  Sort include file names.
87672         (strtod): Remove.
87673         (xstrtod): Define with a prototype.
87674         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87675         (strtol, strtoul): Remove decls.
87676
87677 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87678
87679         More patches to assume C89 or better.
87680         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87681         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87682         string.h, memchr, STDC_HEADERS.
87683
87684 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87685
87686         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87687         Include <stdlib.h>, <string.h> unconditionally.
87688         Remove now-unnecessary cast to char *.
87689         * lib/strnlen.c: Include <string.h> unconditionally.
87690         * lib/yesno.c (yesno): Define with a prototype.
87691
87692 2003-09-11  Bruno Haible  <bruno@clisp.org>
87693
87694         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87695
87696 2003-09-10  Jim Meyering  <jim@meyering.net>
87697
87698         * lib/error.c: Correct indentation of cpp directives.
87699
87700 2003-09-10  Bruno Haible  <bruno@clisp.org>
87701
87702         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87703         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87704         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87705         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87706         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87707         <stdlib.h> and <string.h> checks.
87708         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87709         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87710
87711 2003-09-10  Bruno Haible  <bruno@clisp.org>
87712
87713         * lib/strcspn.c: Include <string.h> unconditionally.
87714         * lib/strpbrk.c: Include <string.h> unconditionally.
87715         * lib/strstr.c: Include <string.h> unconditionally.
87716         * lib/unicodeio.c: Include <string.h> unconditionally.
87717         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87718         * lib/unsetenv.c: Likewise.
87719         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87720         * lib/yesno.c: Include <stdlib.h> unconditionally.
87721         (rpmatch): Add prototype.
87722
87723 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87724
87725         More patches to assume C89 or better.
87726         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87727         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87728         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87729         or for string.h.
87730         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87731         stdlib.h.
87732         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87733         C headers.
87734         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87735         string.h.
87736         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87737         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87738         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87739         or for string.h.
87740         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87741         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87742         C headers.
87743         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87744         memcpy.
87745         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87746         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87747         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87748         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87749         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87750         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87751         string.h, free.
87752         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87753         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87754         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87755         C headers, or for string.h.
87756         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87757         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87758         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87759         headers, memory.h, stdlib.h, string.h, strings.h.
87760         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87761         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87762         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87763         strchr.
87764         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87765         headers, memory.h, string.h.
87766         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87767         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87768         free.
87769         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87770         headers.
87771         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87772         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87773         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87774         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87775         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87776
87777 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87778
87779         More K&R removal.
87780
87781         * lib/acosl.c (main): Use a prototype.
87782         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87783         tanl.c: Likewise.
87784
87785         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87786
87787         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87788         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87789         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87790         with a prototype.
87791         * lib/getopt.c (const): Remove macro.
87792         Include <string.h> unconditionally.
87793         (my_index): Remove; all uses changed to strchr.
87794         (strlen): Remove decl.
87795         (exchange): Remove forward decl; no longer needed.
87796         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87797         Define with prototype.
87798         * lib/getopt1.c (const): Remove macro.
87799         (getopt_long, getopt_long_only, main): Define with prototype.
87800
87801         * lib/getugroups.c: Include <string.h> unconditionally.
87802
87803         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87804         (getusershell, setusershell, endusershell, readname, main):
87805         Define with prototypes.
87806
87807         * lib/group-member.c: Include group-member.h first.
87808         Include <stdlib.h> unconditionally.
87809
87810         * lib/hard-locale.c: Include hard-locale.h first.
87811         Include <stdlib.h>, <string.h> unconditionally.
87812
87813         * lib/hash.c (free, malloc): Remove decls.
87814         Include <stdlib.h> unconditionally.
87815
87816         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87817         (getenv): Do not declare.
87818
87819         * lib/idcache.c: Include <string.h> unconditionally.
87820
87821         * lib/long-options.c: Include long-options.h first, to test interface.
87822         Include <stdlib.h> unconditionally.
87823
87824         * lib/makepath.c: Include makepath.h first, to test interface.
87825         Include <stdlib.h> and <string.h> unconditionally.
87826
87827         * lib/linebuffer.c: Include <stdlib.h>.
87828         (free): Remove decl.
87829
87830         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87831         stddef.h. rpl_malloc returns void *, not char *.
87832         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87833         prototype.
87834
87835         * lib/md5.h: Include <limits.h> unconditionally.
87836         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87837         (__P): Remove; all uses removed.
87838         * lib/md5.c: Include "md5.h" first.
87839         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87840         md5_buffer, md5_process_bytes, md5_process_block):
87841         Define with prototypes.
87842         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87843         * lib/sha.c: Include "sha.h" first.
87844         Include <stdlib.h>, <string.h> unconditionally.
87845
87846         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87847         * lib/memcmp.c (__ptr_t): Likewise.
87848         * lib/memrchr.c (__ptr_t): Likewise.
87849         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87850         Include <string.h> unconditionally.
87851         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87852         * lib/memchr.c: Include <stdlib.h> unconditionally.
87853         * lib/memchr.c (LONG_MAX): Remove.
87854         * lib/memrchr.c (LONG_MAX): Likewise.
87855         * lib/memchr.c (__memchr): Define via a prototype.
87856         * lib/memrchr.c (__memrchr): Likewise.
87857         * lib/memcmp.c (__P): Remove, and remove all uses.
87858         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87859         Remove forward decls; no longer needed.
87860         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87861         Use types required by C89 in prototype.
87862
87863         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87864         * lib/savedir.c: Likewise.
87865         * lib/mkdir.c (free): Remove decl.
87866         * lib/rmdir.c (rmdir): Define with a prototype.
87867         * lib/savedir.c: Include savedir.h first, to test interface.
87868
87869         * lib/mktime.c (STDC_HEADERS): Remove.
87870         Include <stdlib.h>, <string.h> unconditionally.
87871
87872         * lib/modechange.c: Include <stdlib.h> unconditionally.
87873         (malloc): Remove decl.
87874
87875         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87876         (free): Remove decl.
87877
87878         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87879         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87880         (This type really should be intptr_t, but that's a C99ism.)
87881         (_obstack_memcpy): Remove: all uses changed to memcpy.
87882         Include <string.h> unconditionally.
87883         (struct obstack): Assume __STDC__ for types of members
87884         chunkfun, freefun, extra_arg.
87885         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87886         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87887         obstack_begin, obstack_specify_allocation,
87888         obstack_specify_allocation_with_arg, obstack_chunkfun,
87889         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87890         Remove unprototyped decls and the macros that use them.
87891         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87892         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87893         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87894         (defined __STDC__ && __STDC__)]:
87895         Remove nonprototyped code.
87896         Include <stdlib.h> unconditionally.
87897         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87898         _obstack_allocated_p, _obstack_free, obstack_free,
87899         _obstack_memory_used, print_and_abort):
87900         Define using prototypes.
87901         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87902         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87903         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87904         obstack_next_free, obstack_object_size, obstack_room) [0]:
87905         Remove unused, unprototyped code.
87906
87907         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87908
87909         * lib/physmem.c (physmem_total, physmem_available, main): Define
87910         with prototypes.
87911
87912         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87913         (main): Define with a prototype.
87914
87915         * lib/posixver.c (getenv): Remove decl.
87916
87917         * lib/putenv.c (malloc): Returns void *, not char *.
87918         Include <string.h> unconditionally.
87919         (strchr, memcpy, NULL): Do not define.
87920
87921         * lib/readtokens.c: Include readtokens.h first, to test interface.
87922         Include <stdlib.h>, <string.h> unconditionally.
87923         (init_tokenbuffer): Define with a prototype.
87924
87925         * lib/regex.c (PARAMS): Remove.  All uses removed.
87926         All uses of _RE_ARGS removed, too.
87927         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87928         unconditionally.
87929         (bzero): Assume memset exists.
87930         (memcmp, memcpy, NULL): Remove.
87931         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87932         char, or assignments to local vars of type signed char.
87933         (init_syntax_once, PREFIX(extract_number_and_incr),
87934         PREFIX(print_partial_compiled_pattern),
87935         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87936         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87937         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87938         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87939         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87940         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87941         wcs_compile_range, byte_compile_range, truncate_wchar,
87942         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87943         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87944         count_mbs_length, wcs_re_match_2_internal,
87945         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87946         PREFIX(alt_match_null_string_p),
87947         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87948         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87949         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87950         now-unnecessary declaration, if any.
87951         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87952         regcomp, regexec):
87953         Remove now-unnecessary casts among pointer types.
87954         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87955
87956         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87957         (free): Remove decl.
87958
87959         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87960
87961         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87962         (free): Remove decl.
87963
87964         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87965         * lib/xgetcwd.c: Likewise.
87966
87967         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87968         (free): Remove decl.
87969
87970         * lib/strchrnul.c (strchrnul): Define with a prototype.
87971         Fix bug: c_in was not converted to char before searching.
87972
87973         The following changes are not K&R related:
87974
87975         * lib/group-member.h: Include <sys/types.h>, so that this file is
87976         self-contained.
87977         * lib/makepath.h: Likewise.
87978
87979         * lib/getusershell.c (readname, default_index, line_size, readname):
87980         Use size_t, not int, for sizes.
87981         (readname): If the size overflows, report an error instead of
87982         looping forever.
87983
87984 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87985
87986         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87987         libc.
87988
87989 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87990
87991         * README: New section: portability guidelines.
87992
87993 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87994
87995         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87996         C89 spec.
87997
87998 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87999
88000         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88001
88002 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88003
88004         Assume C89 or better; remove K&R cruft.
88005         A few of these changes were first proposed by Derek Robert Price
88006         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88007
88008         * lib/addext.c: Include <string.h> unconditionally.
88009         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88010         Don't declare getenv or malloc.
88011
88012         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88013         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88014         (NULL): Remove.
88015         (find_stack_direction, alloca): Use prototypes.
88016
88017         * lib/atexit.c (atexit): Define using a prototype.
88018
88019         * lib/basename.c, dirname.c, stripslash.c:
88020         Include <string.h> unconditionally.
88021
88022         * lib/bcopy.c: Include <stddef.h>.
88023         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88024
88025         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88026
88027         * lib/error.h (error, error_at_line, error_print_progname)
88028         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88029         * lib/error.c: Include error.h first, to check interface.
88030         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88031         (VA_START): Remove; all uses changeed to va_start.
88032         (exit, strerror): Remove decls.
88033         (error_print_progname): Prototype uncondionally.
88034         Don't include <errno.h>; no longer needed.
88035         (private_strerror): Remove.
88036         (error_tail): Always define.
88037         (error, error_at_line): Assume C89 or better; always use prototypes.
88038         * lib/fatal.c: Include "fatal.h" first, to test interface.
88039         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88040         (VA_START): Remove; all uses changed to va_start.
88041         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88042         this case.
88043         (exit): Remove decl.
88044         (fatal): Prototype unconditionally.  Assume va_start works.
88045         Abort at end, to pacify gcc.
88046
88047         * lib/euidaccess.c (main): Define with a prototype.
88048
88049         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88050
88051         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88052
88053         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88054         prototypes.
88055         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88056         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88057         (getenv): Remove decl.
88058         (fnmatch): Define using a prototype.
88059         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88060         (FCT): Define using a prototype.
88061
88062         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88063
88064         * lib/gethostname.c: Include <stddef.h>.
88065         (gethostname): Define with prototype.  Length is size_t, not int.
88066
88067 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88068
88069         Assume C89 or better; remove K&R cruft.
88070         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88071         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88072         string.h, getenv, malloc.
88073         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88074         headers.
88075         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88076         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88077         do not check for strerror.
88078         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88079         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88080         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88081         do not check for doprnt or vprintf.
88082         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88083         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88084
88085 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88086
88087         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88088         getversion.c should have been removed then, but was accidentally
88089         preserved.
88090
88091         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88092         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88093
88094 2003-09-08  Karl Berry  <karl@gnu.org>
88095
88096         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88097                 config, forget about prep.
88098
88099         * config/depcomp, missing: update from automake.
88100
88101 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88102
88103         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88104         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88105
88106 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88107
88108         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88109         copy_tm_result.  Bug reported by Simon Josefsson in
88110         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88111
88112 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88113
88114         * m4/time_r.m4: New file.
88115         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88116         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88117         is. Check for timegm declaration.
88118         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88119         Do not check for gmtime_r.
88120         Replace mktime if __mktime_internal does not exist and if mktime
88121         hasn't been replaced already.
88122
88123 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88124
88125         * lib/time_r.c, lib/time_r.h: New files.
88126
88127         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88128         __localtime_r.
88129         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88130         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88131
88132         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88133         __gmtime_r.
88134         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88135         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88136         Include <time_r.h>.
88137
88138         * lib/timegm.c: Switch to glibc implementation, with the following
88139         changes:
88140         [defined HAVE_CONFIG_H]: Include <config.h>.
88141         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88142         (__mktime_internal) [!defined _LIBC]: New decl.
88143         (__gmtime_r) [!defined _LIBC]: New macro and function.
88144         (timegm): Use a prototype, since gnulib assumes C89.
88145         Do not bother declaring tmp to be const, as it's not really usefu.
88146         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88147         (timegm): Declare only if HAVE_DECL_TIMEGM.
88148
88149 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88150
88151         * MODULES.html.sh (func_all_modules): Add time_r.
88152         * modules/time_r: New file.
88153         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88154         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88155
88156 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88157
88158         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88159         Bug reported by Lute Kamstra in
88160         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88161
88162         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88163         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88164         course with correspondingly smaller numbers for tomorrow and
88165         yesterday.  From Tadayoshi Funaba.  Originally installed into
88166         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88167         coreutils merge?).
88168
88169 2003-08-31  Simon Josefsson  <jas@extundo.com>
88170
88171         * modules/timegm: New file.
88172         * MODULES.html.sh (func_all_modules): Add timegm.
88173
88174 2003-08-31  Simon Josefsson  <jas@extundo.com>
88175
88176         * m4/timegm.m4: New file.
88177
88178 2003-08-31  Simon Josefsson  <jas@extundo.com>
88179
88180         * lib/timegm.h: New file.
88181         * lib/timegm.c: New file.  Based on
88182         wget-1.8.2/src/http.c:mktime_from_utc.
88183
88184 2003-08-31  Karl Berry  <karl@gnu.org>
88185
88186         * lib/argp.h: update from libc.
88187
88188 2003-08-28  Bruno Haible  <bruno@clisp.org>
88189
88190         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88191         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88192         followed by '#define fnmatch fnmatch_posix' gives an error.
88193
88194 2003-08-28  Bruno Haible  <bruno@clisp.org>
88195
88196         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88197         warning on QNX, which defines O_BINARY to 000000.
88198
88199 2003-08-27  Jim Meyering  <jim@meyering.net>
88200
88201         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88202         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88203         would fail after 32.  Reported by Danny Levinson.  Details here:
88204         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88205
88206 2003-08-24  Bruno Haible  <bruno@clisp.org>
88207
88208         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88209         MSVC7 <stdio.h> is included later.
88210
88211 2003-08-22  Simon Josefsson  <jas@extundo.com>
88212
88213         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88214
88215 2003-08-20  Karl Berry  <karl@gnu.org>
88216
88217         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88218
88219 2003-08-20  Bruno Haible  <bruno@clisp.org>
88220
88221         * modules/progname: New file.
88222         * MODULES.html.sh (func_all_modules): Add progname.
88223
88224 2003-08-20  Bruno Haible  <bruno@clisp.org>
88225
88226         * lib/progname.h: New file, from GNU gettext.
88227         * lib/progname.c: New file, from GNU gettext.
88228         * lib/progreloc.c: New file, from GNU gettext.
88229
88230 2003-08-19  Jim Meyering  <jim@meyering.net>
88231
88232         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88233         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88234
88235 2003-08-19  Bruno Haible  <bruno@clisp.org>
88236
88237         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88238         more.
88239
88240 2003-08-19  Bruno Haible  <bruno@clisp.org>
88241
88242         * lib/xstrdup.c: Assume <string.h> exists.
88243
88244 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88245
88246         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88247         in makefile rules.
88248
88249 2003-08-18  Jim Meyering  <jim@meyering.net>
88250
88251         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88252         * m4/lib-ld.m4: Likewise.
88253
88254 2003-08-18  Jim Meyering  <jim@meyering.net>
88255
88256         * lib/setenv.h: Indent nested cpp directive.
88257         * lib/vasnprintf.c: Remove trailing blanks.
88258
88259 2003-08-17  Simon Josefsson  <jas@extundo.com>
88260
88261         * modules/xstrndup: New file.
88262         * MODULES.html.sh (func_all_modules): Add xstrndup.
88263
88264 2003-08-17  Simon Josefsson  <jas@extundo.com>
88265
88266         * modules/argp: Fix autoconf macro name. Add more dependencies.
88267
88268 2003-08-17  Simon Josefsson  <jas@extundo.com>
88269
88270         * m4/xstrndup.m4: New file.
88271
88272 2003-08-17  Simon Josefsson  <jas@extundo.com>
88273
88274         * m4/argp.m4: New file.
88275
88276 2003-08-17  Simon Josefsson  <jas@extundo.com>
88277             Bruno Haible  <bruno@clisp.org>
88278
88279         * lib/xstrndup.h: New file.
88280         * lib/xstrndup.c: New file.
88281
88282 2003-08-17  Bruno Haible  <bruno@clisp.org>
88283
88284         * modules/strndup (Files, Include): Add lib/strndup.h.
88285
88286 2003-08-17  Bruno Haible  <bruno@clisp.org>
88287
88288         * modules/euidaccess (Files): Add lib/euidaccess.h.
88289
88290 2003-08-17  Bruno Haible  <bruno@clisp.org>
88291
88292         * lib/strndup.h: New file.
88293
88294 2003-08-17  Bruno Haible  <bruno@clisp.org>
88295
88296         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88297         like AC_GNU_SOURCE.
88298         * modules/extensions (configure.ac): Comment out the invocation of
88299         gl_USE_SYSTEM_EXTENSIONS.
88300
88301 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88302
88303         Merges from coreutils, etc.
88304         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88305         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88306         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88307         fixing a typo.
88308         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88309         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88310
88311 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88312
88313         Document merge from coreutils.
88314         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88315         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88316         * modules/utime: Add m4/utimes-null.m4.
88317
88318 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88319
88320         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88321         space, undoing this 2003-08-12 change:
88322         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88323
88324 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88325
88326         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88327         strtoul.c from libc, undoing this 2003-08-12 change:
88328         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88329
88330 2003-08-16  Jim Meyering  <jim@meyering.net>
88331
88332         Merges from coreutils.
88333         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88334         prefix.  Adjust cache variables similarly.  Create 500 rather than
88335         just 300 files, to exercise bug on Darwin6.5, too.
88336         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88337         $missing_dir.
88338         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88339         AM_SYS_POSIX_TERMIOS.
88340         Reported by mkc@mathdogs.com.
88341         Also change use of $am_cv_sys_posix_termios
88342         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88343         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88344         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88345         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88346         in /proc/mounts until it finds one with matching device number.  This
88347         is unnecessary when the FILE argument *is* a mount point.  No stat call
88348         is necessary in that case.  So, disable the statvfs-testing code on
88349         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88350         as RedHat bug# 84846.
88351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88352         to 1MB, so as not to render systems with no stack size limit (e.g.,
88353         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88354         Include <unistd.h>.  On some systems,
88355         it is required for the definition of _SC_PAGESIZE.
88356
88357 2003-08-16  Jim Meyering  <jim@meyering.net>
88358
88359         Merge from coreutils.
88360         * lib/xstrtoimax.c: #else #if -> #elif.
88361         * lib/xstrtoumax.c: Likewise.
88362
88363 2003-08-16  Jim Meyering  <jim@meyering.net>
88364
88365         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88366         * m4/utimes.m4: Removed.
88367         * m4/utimes-null.m4: Renamed from utimes.m4.
88368
88369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88370         to 1MB, so as not to render systems with no stack size limit (e.g.,
88371         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88372         Include <unistd.h>.  On some systems,
88373         it is required for the definition of _SC_PAGESIZE.
88374
88375 2003-08-16  Jim Meyering  <jim@meyering.net>
88376         and Paul Eggert  <eggert@cs.ucla.edu>
88377
88378         Merges from coreutils, etc.
88379
88380         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88381         using the latest version from cvs.  This avoids problems with #line
88382         directives using a vendor (Sun) compiler.
88383         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88384         Don't set GETGROUPS_LIB here; now it's
88385         done via getgroups.m4's wrapper function.
88386         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88387         rather than just in sh-util/configure.in, so that the
88388         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88389         same.
88390         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88391         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88392         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88393         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88394         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88395         Remove code that is now done by the newly-required macros.
88396         Append $(EXEEXT) to DF_PROG.
88397         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88398         Do not invoke or require the following here,
88399         since prereq.m4 or some gnulib .m4 now does this for us:
88400         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88401         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88402         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88403         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88404         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88405         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88406         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88407         AC_FUNC_OBSTACK.
88408         Do not replace the following functions, as this is now the job
88409         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88410         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88411         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88412         atexit getpass, strdup, getpagesize.
88413         Replace 'raise'.
88414         Do not check for the following functions, as this is now the job
88415         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88416         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88417         setregid.
88418         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88419         Check for sys/sysctl.h.
88420         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88421         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88422         of checking for ssize_t ourselves.
88423
88424         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88425         Require every macro that gnulib/modules/* suggests for us.
88426         (jm_PREREQ_ADDEXT): New macro.
88427         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88428         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88429
88430         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88431         (gl_PHYSMEM): Use it.
88432         Also check for `table' function.
88433         Check for new headers and functions.
88434         Add check for sys/sysmp.h.
88435         With suggestions from Kaveh Ghazi.
88436         Ignore headers that are present but cannot be compiled.  This
88437         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88438         C 5.4.
88439
88440 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88441
88442         Document merge from coreutils.
88443         * modules/userspec: Depend on posixver.
88444         * modules/strftime: Depend on tzset.
88445
88446 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88447
88448         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88449         rather than tab, after '#' in shell-script copyright notices.
88450         Suggested by Bruno Haible.
88451
88452 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88453
88454         * config/srclist-update: Use three spaces, rather than tab, after '#'
88455         in shell-script copyright notices.  Suggested by Bruno Haible.
88456         Remove unnecessary parenthesization in regular expression.
88457
88458 2003-08-15  Jim Meyering  <jim@meyering.net>
88459
88460         Merge from coreutils.
88461         * lib/xgethostname.c: Include <stdlib.h>.
88462         (xghostname): Don't exit for anything other than memory-related
88463         failure; just return NULL.
88464         * lib/userspec.c: Include "posixver.h".
88465         (parse_user_spec): Accept `.' as a separator only
88466         in pre-POSIX-200112 mode.
88467         * lib/strtoimax.c: Use #elif rather than #else #if.
88468         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88469         Remove function, now that we can rely on a working tzset function.
88470         [!_LIBC]: Ensure that the required autoconf test has been run.
88471         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88472         Use underlying_strftime for %r.
88473         * lib/sha.c: Merge in some clean-up and optimization changes from
88474         glibc.
88475         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88476         Ensure that it is a multiple of 64.
88477         Rearrange loop exit tests so as to avoid performing an
88478         additional fread after encountering an error or EOF.
88479         * lib/realloc.c: Update copyright date.
88480
88481 2003-08-15  Jim Meyering  <jim@meyering.net>
88482         and Paul Eggert  <eggert@twinsun.com>
88483
88484         Merge from coreutils.
88485         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88486         member but strut utmpx does not.  Needed for AIX 4.3.3.
88487         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88488
88489 2003-08-15  Jim Meyering  <jim@meyering.net>
88490         and Paul Eggert  <eggert@cs.ucla.edu>
88491
88492         Merges from coreutils, etc.
88493         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88494         Require gl_FUNC_TZSET_CLOBBER.
88495         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88496         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88497         members.
88498
88499 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88500
88501         Help the merge from coreutils.
88502         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88503         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88504         * m4/tzset.m4: Use it too.
88505
88506 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88507
88508         * modules/tzset: New file.
88509
88510 2003-08-14  Jim Meyering  <jim@meyering.net>
88511
88512         Merges from coreutils.
88513         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88514         variable names, rather than @FNMATCH_H@.
88515         * modules/alloca: Likewise for $(ALLOCA_H).
88516
88517         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88518         the three copies of the literal target, `fnmatch.h'.
88519         * modules/alloca (alloca.h): Likewise.
88520
88521 2003-08-14  Jim Meyering  <jim@meyering.net>
88522
88523         Merge from coreutils.
88524         * m4/tzset.m4: New file.
88525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88526         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88527         otherwise, AIX 5.1 systems would end up using the latter.
88528         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88529         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88530         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88531         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88532
88533 2003-08-14  Jim Meyering  <jim@meyering.net>
88534
88535         Merge from coreutils.
88536         * lib/obstack.h: Whitespace changes.
88537         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88538         and xcalloc return values.
88539         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88540         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88541         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88542         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88543         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88544         error from mntctl.
88545         Use mntctl's return value to drive the entry-processing loop, since
88546         we can't rely on the value of the vmt_length member in the last
88547         entry.  On some systems doing so could result in exhausting
88548         virtual memory.  Based in part on a patch from Mike Jetzer.
88549
88550 2003-08-14  Jim Meyering  <jim@meyering.net>
88551         and Paul Eggert  <eggert@twinsun.com>
88552
88553         Merges from coreutils, plus other fixes.
88554         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88555         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88556         for credits and details.  Thanks to Kaveh Ghazi for helping
88557         to keep these files in sync.
88558         (ARRAY_SIZE): Define it.
88559         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88560         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88561         (memcasecmp): Don't assume size_t fits in unsigned int.
88562         Remove casts and duplicate code.
88563         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88564         (memcpy): Remove definition.
88565         Merge in some clean-up and optimization changes from glibc.
88566         [BLOCKSIZE]: Move definition to top of file.
88567         Ensure that it is a multiple of 64.
88568         Rearrange loop exit tests so as to avoid performing an
88569         additional fread after encountering an error or EOF.
88570         * lib/md5.h (md5_uintptr): Define.
88571         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88572         return to the initial working directory.  Preserve errno
88573         for caller.
88574         * lib/idcache.c: Include "xalloc.h".
88575         (xmalloc, xrealloc): Remove decls.
88576         (getuser): Remove casts no longer required in C89.
88577         * lib/human.c: Include stdio.h, for sprintf.
88578         * lib/group-member.c: Include "xalloc.h".
88579         (xmalloc, xrealloc): Remove decls.
88580         (get_group_info): Remove casts no longer required in C89.
88581         * lib/getusershell.c (readname): Remove casts no longer required in
88582         C89.
88583         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88584         * lib/getline.c: Whitespace fix, from coreutils.
88585
88586 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88587
88588         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88589         Check for isascii.
88590
88591         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88592         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88593         Undo previous (whitespace-only) change.
88594
88595 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88596
88597         * lib/exclude.c: Include <ctype.h>
88598         (IN_CTYPE_DOMAIN): New macro.
88599         (is_space): New fn.
88600         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88601         and empty lines.
88602
88603         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88604         Undo previous (whitespace-only) change.
88605
88606 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88607
88608         * config/srclist-update: Change update back to the old behavior,
88609         leaving whitespace alone.  Use one 'sed' command rather than a
88610         pipeline.
88611         (fixlicense): Now a variable, not a function.
88612         (remove_trailing_blanks): Remove.
88613         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88614         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88615         Undo previous (whitespace-only) change.
88616
88617 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88618
88619         Merge from coreutils.
88620         * modules/euidaccess: Add lib_SOURCES, include for new
88621         file euidaccess.h
88622
88623 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88624
88625         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88626         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88627         Normalize leading white space and remove trailing white space.
88628
88629         Merge from coreutils
88630         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88631
88632         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88633         0.12.1.  These files are now being upgraded automatically by
88634         ../config/srclist-update.
88635
88636 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88637
88638         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88639         Normalize leading white space and remove trailing white space.
88640         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88641         notice, as per ../config/srclist-update.
88642
88643         Merge from coreutils.
88644         * lib/euidaccess.h: New file.
88645         * lib/euidaccess.c: Include it.
88646         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88647         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88648         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88649
88650 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88651
88652         * config/srclist-update: Add copyright notice.
88653         (remove_id_lines, remove_trailing_blanks): New constants.
88654         (fixfile): Use them to normalize spacing a bit in copied files.
88655         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88656         Normalize leading white space and remove trailing white space.
88657
88658         * config/texinfo.tex: Sync with texinfo.
88659
88660         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88661         strtoul.c from libc, to merge coreutils whitespace changes.
88662
88663         * config/srclist.txt: Get the following m4 files from gettext:
88664         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88665         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88666         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88667         wint_t.m4.
88668
88669 2003-08-12  Karl Berry  <karl@gnu.org>
88670
88671         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88672         been made.
88673
88674 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88675
88676         * modules/gnu-source, m4/gnu-source.m4:
88677         Remove; we're assuming Autoconf 2.54 or later now.
88678         Suggested by Bruno Haible.
88679         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88680
88681 2003-08-11  Bruno Haible  <bruno@clisp.org>
88682
88683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88684
88685 2003-08-11  Bruno Haible  <bruno@clisp.org>
88686
88687         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88688         (vasnprintf): Use it instead of wcslen.
88689
88690 2003-08-11  Bruno Haible  <bruno@clisp.org>
88691
88692         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88693         value to ensure that _Bool promotes to int. Use #define for _Bool when
88694         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88695
88696 2003-08-10  Karl Berry  <karl@gnu.org>
88697
88698         * lib/regex.h: update from libc (whitespace fix).
88699
88700 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88701
88702         Merge some files from coreutils.  These changes were
88703         originally made by Jim Meyering.
88704         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88705         many older Unixes require this.
88706         * lib/alloca.c (alloca): Remove cast to argument of free;
88707         no longer needed in C89.
88708         * lib/alloca_.h, regex.h: Fix white space to match
88709         what GNU indent does.
88710
88711 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88712
88713         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88714         apparently Emacs's Unicode mode got confused before my 2003-08-05
88715         checkin.
88716
88717 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88718
88719         * m4/extensions.m4: New file.
88720         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88721         Require gl_USE_SYSTEM_EXTENSIONS.
88722         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88723         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88724
88725 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88726
88727         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88728         * modules/extensions, modules/gnu-source: New files.
88729         * modules/timespec, modules/unlocked-io: Depend on extensions.
88730
88731 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88732
88733         * modules/restrict: New file.
88734         * MODULES.html.sh (func_all_modules): Add restrict.
88735         * modules/regex: Depend on restrict.
88736
88737 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88738
88739         * m4/restrict.m4: New file.
88740         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88741
88742 2003-08-07  Bruno Haible  <bruno@clisp.org>
88743
88744         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88745         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88746
88747 2003-08-07  Bruno Haible  <bruno@clisp.org>
88748
88749         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88750         makes the module 'getndelim2' compatible with the module 'getline'.
88751
88752 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88753
88754         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88755         byte with "\201" to avoid glitches when editing that source file
88756         with multi-gnome-terminal.
88757
88758 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88759
88760         * lib/bumpalloc.h: Remove.
88761
88762 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88763
88764         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88765         * modules/bumpalloc: Remove.
88766
88767 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88768
88769         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88770         GNU coding style.
88771
88772         Merge from coreutils.
88773         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88774         1. From glibc.
88775         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88776         from Karl Berry, implemented by Jim Meyering.
88777         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88778         from Dmitry V. Levin.
88779         Remove anachronistic cast of xrealloc.
88780         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88781         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88782         type. Otherwise, it wouldn't compile with at least /bin/cc on
88783         ymp-cray-unicos9.0.2.X.
88784         Combine two mostly-identical uses of alloca into one.
88785         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88786
88787 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88788
88789         [From Emacs.]
88790
88791         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88792         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88793         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88794         obsolete NLIST_NAME_UNION.
88795         [__GNU__]: Undef BSD and FSCALE.
88796         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88797
88798 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88799
88800         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88801         an enum type, so that it's guaranteed to promote to int.  See:
88802         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88803
88804 2003-08-03  Karl Berry  <karl@gnu.org>
88805
88806         * config/depcomp: update from automake.
88807
88808 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88809
88810         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88811         (strerror): Don't assume that a printable int fits in 14 bytes.
88812
88813 2003-07-31  Bruno Haible  <bruno@clisp.org>
88814
88815         * modules/getpass-gnu: New file.
88816         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88817
88818 2003-07-31  Bruno Haible  <bruno@clisp.org>
88819
88820         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88821
88822 2003-07-24  Karl Berry  <karl@gnu.org>
88823
88824         * config/missing: update from automake.
88825
88826 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88827             Bruno Haible  <bruno@clisp.org>
88828
88829         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88830         * lib/getline.c (getline, getdelim): Likewise.
88831         Remove _GNU_SOURCE define; now it's defined in config.h through
88832         m4/getline.m4.
88833
88834 2003-07-23  Karl Berry  <karl@gnu.org>
88835
88836         * config/config.sub: update from prep.
88837
88838 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88839
88840         * modules/xalloc (Depends-on): Add exitfail.
88841         * modules/xmemcoll: Likewise.
88842
88843 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88844
88845         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88846         over-parenthesization in macros.
88847
88848         Sync with coreutils.
88849
88850         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88851         required by C99.
88852
88853         Use `exit_failure' for xalloc and xmemcoll instead of their own
88854         private exit-failure variables.
88855         * lib/xalloc.h (xalloc_exit_failure): Remove.
88856         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88857         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88858         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88859         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88860         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88861
88862 2003-07-20  Jim Meyering  <jim@meyering.net>
88863
88864         * modules/closeout (Depends-on): Add exitfail.
88865         Suggestion from Bruno Haible.
88866
88867 2003-07-19  Karl Berry  <karl@gnu.org>
88868
88869         * config/config.sub: update from prep.
88870
88871 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88872
88873         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88874         Remove.
88875         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88876         to test that it can stand by itself.  Include "exitfail.h".
88877         Clients should set exit_failure instead.
88878         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88879
88880 2003-07-18  Bruno Haible  <bruno@clisp.org>
88881
88882         * modules/getndelim2: New file.
88883         * modules/getline: Share files with module getndelim2.
88884         * modules/getnline: Depend on getndelim2 instead of sharing files with
88885         it. Add getnline.c to lib_SOURCES.
88886         * MODULES.html.sh (func_all_modules): Add getndelim2.
88887
88888 2003-07-18  Bruno Haible  <bruno@clisp.org>
88889
88890         * m4/getndelim2.m4: New file.
88891         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88892         invoke gl_PREREQ_GETNDELIM2.
88893         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88894         gl_PREREQ_GETNDELIM2.
88895         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88896         gl_GETNDELIM2.
88897
88898 2003-07-18  Bruno Haible  <bruno@clisp.org>
88899
88900         * lib/getndelim2.h: New file.
88901         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88902         getndelim2.h.
88903         (getndelim2): Make non-static. Change return type to ssize_t.
88904         * lib/getline.h: Change argument names.
88905         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88906         * lib/getnline.c: Include getndelim2.h.
88907
88908 2003-07-18  Andreas Schwab  <schwab@suse.de>
88909
88910         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88911
88912 2003-07-17  Karl Berry  <karl@gnu.org>
88913
88914         * config/config.sub: update from prep.
88915
88916 2003-07-17  Bruno Haible  <bruno@clisp.org>
88917
88918         * modules/getnline: New file.
88919         * modules/getline: Add lib/getndelim2.c to source file list.
88920         * MODULES.html.sh (func_all_modules): Add getnline.
88921
88922 2003-07-17  Bruno Haible  <bruno@clisp.org>
88923
88924         * m4/getnline.m4: New file.
88925
88926 2003-07-17  Bruno Haible  <bruno@clisp.org>
88927
88928         * m4/Makefile.am.in: Remove file.
88929         * m4/Makefile.am: Remove file.
88930         * m4/Makefile.in: Remove file.
88931
88932 2003-07-17  Bruno Haible  <bruno@clisp.org>
88933
88934         * lib/getnline.h: New file.
88935         * lib/getnline.c: New file.
88936         * lib/getndelim2.c: New file, extracted from getline.c.
88937         (getndelim2): Renamed from getdelim2, with added nmax argument.
88938         * lib/getline.c: Include getndelim2.c.
88939         (getdelim2): Moved out to getndelim2.c.
88940         (getline, getdelim): Update.
88941
88942 2003-07-17  Bruno Haible  <bruno@clisp.org>
88943
88944         * lib/Makefile.am: Remove file.
88945         * lib/Makefile.in: Remove file.
88946
88947 2003-07-17  Bruno Haible  <bruno@clisp.org>
88948
88949         * configure.in: Remove file.
88950         * Makefile.in: Remove file.
88951
88952 2003-07-17  Bruno Haible  <bruno@clisp.org>
88953
88954         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88955
88956 2003-07-16  Karl Berry  <karl@gnu.org>
88957
88958         * config/srclist-update: was running fixlicense twice, which caused
88959                 texinfo.tex to be nullified for some reason.  Simplify,
88960                 $gplsrc is no longer needed as far as I can see?
88961
88962 2003-07-16  Jim Meyering  <jim@meyering.net>
88963
88964         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88965
88966 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88967
88968         * config/srclist.txt: Get the following files from gettext-runtime/intl
88969         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88970         ref-del.sin.  From Bruno Haible.
88971         * config/srclist-update (fixfile): Change grep pattern again, since the
88972         previous fix didn't work (there was another trailing $).  Use
88973         '[$]' to escape the $s.
88974
88975 2003-07-15  Karl Berry  <karl@gnu.org>
88976
88977         * lib/vasnprintf.c: update from gettext.
88978
88979 2003-07-15  Karl Berry  <karl@gnu.org>
88980
88981         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88982         gets expanded when surrounded by '$'.
88983
88984 2003-07-15  Jim Meyering  <jim@meyering.net>
88985
88986         * modules/save-cwd: Don't depend on error.  From Derek Price.
88987
88988 2003-07-15  Jim Meyering  <jim@meyering.net>
88989
88990         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88991
88992 2003-07-14  Simon Josefsson  <jas@extundo.com>
88993
88994         * modules/mempcpy: New file.
88995         * MODULES.html.sh (func_all_modules): Add mempcpy.
88996
88997 2003-07-14  Simon Josefsson  <jas@extundo.com>
88998
88999         * m4/mempcpy.m4: New file.
89000
89001 2003-07-14  Simon Josefsson  <jas@extundo.com>
89002
89003         * lib/mempcpy.h: New file.
89004         * lib/mempcpy.c: New file.
89005
89006 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89007
89008         * modules/getdate, modules/posixtm: Depend on mktime.
89009
89010 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89011
89012         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89013         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89014         unicodeio.c, unicodeio.h, unlocked-io.h:
89015         Switch from LGPL to GPL.
89016
89017 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89018
89019         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89020         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89021         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89022         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89023         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89024         updated automatically by ../config/srclist-update.  This changes
89025         their license from LPGL to GPL.
89026
89027 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89028
89029         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89030         assumed to refer to the root of the most recent stable gettext version.
89031         * config/srclistvars.sh: Add defaults for eggert.
89032         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89033         Match "This program" as well as "The program".  This is needed
89034         for gettext.
89035
89036 2003-07-14  Jim Meyering  <jim@meyering.net>
89037
89038         Don't emit diagnostics.  Let callers do that.
89039         * lib/save-cwd.c: Don't include "error.h".
89040         (save_cwd): Don't call error.  Ensure that errno is valid
89041         when returning nonzero.
89042
89043         * lib/save-cwd.h (restore_cwd): Update prototype.
89044         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89045         Simplify.  Don't call error upon failure.  Let callers do that.
89046         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89047         when auditing is enabled.  But don't bother updating the #if.
89048
89049 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89050
89051         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89052         it breaks C++ compilation.
89053         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89054
89055 2003-07-10  Simon Josefsson  <jas@extundo.com>
89056
89057         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89058
89059 2003-07-10  Jim Meyering  <jim@meyering.net>
89060
89061         * m4/clock_time.m4: Remove trailing blank.
89062         * m4/intmax_t.m4: Likewise.
89063
89064 2003-07-10  Jim Meyering  <jim@meyering.net>
89065
89066         * lib/vasnprintf.c: Remove trailing blanks.
89067         Make cpp indentation consistent.
89068
89069 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89070
89071         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89072         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89073         Switch from LGPL to GPL.
89074
89075 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89076
89077         * config/srclist.txt: Sort sublists.  Add
89078         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89079         that differ from gnulib for one reason or another; we'd like this list
89080         to be smaller but for now let's document what we have.
89081
89082 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89083
89084         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89085         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89086         and sweeter "eval x=$x".
89087         * config/srclist.txt: Get lib/argp* from glibc.
89088
89089 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89090
89091         * lib/mktime.c: Fix some boundary cases and remove need for floating
89092         point.
89093
89094         Issue a compile-time diagnostic if time_t is floating point, or if
89095         two's complement arithmetic is not in effect, or if arithmetic
89096         right shift does not propagate the sign.  These assumptions were
89097         all in the original code but they weren't checked.
89098
89099         (TIME_T_MIDPOINT, verify): New macros.
89100         (__isleap): Remove; it has integer overflow problems.
89101         (leapyear): New function, without those problems.
89102         (ydhms_tm_diff): Remove; splitting into two parts.
89103         (ydhms_diff): New function, containing the arithmetic part of
89104         the old ydhms_tm_diff function.  Issue a compile-time
89105         diagnostic if we are not using C99 integer division.
89106         Avoid casts when possible.
89107         (guess_time_tm): New function, containing the checking part of
89108         the old ydhms_tm_diff function.  Return the new value, rather than
89109         the difference between it and the old.  Accept a new argument T
89110         so that *T specifies the old value.  Check for overflow in the result.
89111
89112         (__mktime_internal): Use a time_t offset, not a long int offset.
89113         This undoes the 2003-06-04 change, which is no longer needed now
89114         that we have better overflow checking.
89115         (localtime_offset): Likewise.
89116
89117         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89118         and long are 64-bit but int is only 32-bit.
89119         (ydhms_diff): Use long int to store year1 and yday1.
89120         Issue a compile-time diagnostic if long int is not wide enough.
89121
89122         (__mktime_internal): Use long int to store adjusted year and yday.
89123         Use plain C rather than preprocessor commands, if that doesn't
89124         affect efficiency.
89125         Check for overflow (and try to repair) after each probe
89126         rather than checking only at the very end.  This avoids some bugs
89127         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89128         does not equal GMT offset at maximum time).
89129         Use integer to check for overflow rather than floating point; this
89130         is more portable to non-IEEE hosts, and is a tad faster.
89131         When we detect that we are oscillating between two values,
89132         don't check whether tm_isdst has the requested value, since
89133         we already know the answer.  When tm_isdst has the wrong value,
89134         use a different heuristic to find the right one, based on the
89135         extreme values actually observed in practice in tz2003a,
89136         rather than the (overly optimistic) "previous 3 calendar quarters".
89137
89138         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89139         "T const" to accommodate glibc style.
89140         (check_result): Use less-confusing report format.  "long" -> "long int.
89141         (main): Likewise.
89142         Don't loop if the iteration overflows time_t.
89143         Allow a negative step in the iteration.
89144
89145 2003-07-06  Karl Berry  <karl@gnu.org>
89146
89147         * config/depcomp: update from automake.
89148         * config/config.sub: update from prep.
89149
89150 2003-07-03  Karl Berry  <karl@gnu.org>
89151
89152         * config/config.guess: update from prep.
89153
89154 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89155
89156         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89157         xreadlink.c now includes it unconditionally.
89158
89159 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89160
89161         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89162         having it depend on HAVE_SYS_TYPES_H.
89163
89164 2003-07-01  Bruno Haible  <bruno@clisp.org>
89165
89166         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89167         <sys/types.h> should be sufficient.
89168         Reported by Paul Eggert.
89169
89170 2003-06-26  Karl Berry  <karl@gnu.org>
89171
89172         * config/depcomp: update from automake.
89173
89174 2003-06-26  Bruno Haible  <bruno@clisp.org>
89175
89176         * modules/human: Depend on module stdbool.
89177
89178 2003-06-25  Bruno Haible  <bruno@clisp.org>
89179
89180         * modules/readlink: New file.
89181         * modules/xreadlink: Depend on it.
89182         * MODULES.html.sh (func_all_modules): Add readlink.
89183
89184 2003-06-25  Bruno Haible  <bruno@clisp.org>
89185
89186         * m4/readlink.m4: New file.
89187
89188 2003-06-25  Bruno Haible  <bruno@clisp.org>
89189
89190         * lib/readlink.c: New file.
89191
89192 2003-06-22  Karl Berry  <karl@gnu.org>
89193
89194         * config/srclist.txt: update mkinstalldirs from automake.
89195         * config/mkinstalldirs: update.
89196
89197 2003-06-22  Bruno Haible  <bruno@clisp.org>
89198
89199         Portability to mingw32.
89200         * m4/ssize_t.m4: New file, from GNU gettext.
89201         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89202         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89203
89204 2003-06-22  Bruno Haible  <bruno@clisp.org>
89205
89206         * modules/safe-read: Add m4/ssize_t.m4.
89207         * modules/xreadlink: Add m4/ssize_t.m4.
89208
89209 2003-06-20  Bruno Haible  <bruno@clisp.org>
89210
89211         Assume C89, so PARAMS isn't needed.
89212         * lib/unicodeio.h (PARAMS): Remove.
89213         * lib/unicodeio.c: Don't use PARAMS.
89214
89215 2003-06-18  Karl Berry  <karl@gnu.org>
89216
89217         * config/config.{guess,sub}: update from prep.
89218
89219 2003-06-18  Jim Meyering  <jim@meyering.net>
89220
89221         Merge changes from coreutils.
89222         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89223         Remove explicit declarations of xmalloc and realloc.
89224         Include xalloc.h.
89225         (read_utmp): Remove anachronistic cast of xmalloc.
89226
89227 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89228
89229         Assume C89, so PARAMS isn't needed.
89230         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89231         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89232         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89233         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89234         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89235         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89236         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89237         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89238         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89239         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89240         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89241         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89242         no longer needed. Anyway, config.h should always be included before any
89243         other file.
89244
89245 2003-06-11  Simon Josefsson  <jas@extundo.com>
89246
89247         * modules/sysexits: New file.
89248         * MODULES.html.sh (func_all_modules): Add sysexits.
89249
89250 2003-06-11  Simon Josefsson  <jas@extundo.com>
89251
89252         * lib/sysexit_.h: New file.
89253
89254 2003-06-11  Derek Price  <derek@ximbiot.com>
89255
89256         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89257         necessary.
89258
89259 2003-06-11  Bruno Haible  <bruno@clisp.org>
89260
89261         * m4/sysexits.m4: New file.
89262
89263 2003-06-10  Simon Josefsson  <jas@extundo.com>
89264
89265         * lib/argp.h: New file, from glibc.
89266         * lib/argp-ba.c: New file, from glibc.
89267         * lib/argp-eexst.c: New file, from glibc.
89268         * lib/argp-fmtstream.c: New file, from glibc.
89269         * lib/argp-fmtstream.h: New file, from glibc.
89270         * lib/argp-fs-xinl.c: New file, from glibc.
89271         * lib/argp-help.c: New file, from glibc.
89272         * lib/argp-namefrob.h: New file, from glibc.
89273         * lib/argp-parse.c: New file, from glibc.
89274         * lib/argp-pv.c: New file, from glibc.
89275         * lib/argp-pvh.c: New file, from glibc.
89276         * lib/argp-xinl.c: New file, from glibc.
89277
89278 2003-06-10  Simon Josefsson  <jas@extundo.com>
89279
89280         * modules/strchrnul: New file.
89281
89282 2003-06-10  Simon Josefsson  <jas@extundo.com>
89283
89284         * modules/argp: New file.
89285
89286 2003-06-10  Simon Josefsson  <jas@extundo.com>
89287
89288         * m4/strchrnul.m4: New file.
89289
89290 2003-06-10  Simon Josefsson  <jas@extundo.com>
89291
89292         * lib/strchrnul.h: New file.
89293         * lib/strchrnul.c: New file.
89294
89295 2003-06-10  Bruno Haible  <bruno@clisp.org>
89296
89297         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89298
89299 2003-06-07  Karl Berry  <karl@gnu.org>
89300
89301         * config/config.{guess,sub}: update from prep.
89302
89303 2003-06-07  Jim Meyering  <jim@meyering.net>
89304
89305         * modules/strtod: Use $(...) notation, not @...@ for
89306         AC_REPLACE'd variables.
89307         * modules/localcharset: Likewise.
89308
89309 2003-06-07  Jim Meyering  <jim@meyering.net>
89310
89311         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89312         in place of my name in the copyright comment.
89313         Remove definition and uses of __P.
89314
89315         From coreutils.
89316         * lib/stat.c: Don't declare xmalloc explicitly.
89317         Instead, include "xalloc.h".
89318         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89319         xrealloc, and xcalloc return values.
89320         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89321         Improve comment.
89322         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89323
89324 2003-06-07  Bruno Haible  <bruno@clisp.org>
89325
89326         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89327         avoid AC_CONFIG_LINKS.
89328         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89329         fnmatch.h, to avoid AC_CONFIG_LINKS.
89330         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89331
89332 2003-06-07  Bruno Haible  <bruno@clisp.org>
89333
89334         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89335         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89336         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89337         directory.
89338         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89339         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89340         directory.
89341
89342 2003-06-06  Jim Meyering  <jim@meyering.net>
89343
89344         Merge from coreutils.
89345         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89346         Consolidate declarations and initializations of *_base* locals.
89347
89348         Merge from coreutils.
89349         This avoids a core dump on systems without GNU putenv,
89350         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89351         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89352         (unsetenv): New static function, from GNU libc.
89353         (rpl_putenv): Use it.
89354
89355         * lib/modechange.c: Remove trailing blanks.
89356
89357         Merge from coreutils.
89358         * lib/fsusage.c: Remove declaration of statfs.
89359         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89360
89361         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89362
89363 2003-06-06  Jim Meyering  <jim@meyering.net>
89364
89365         * lib/stdbool_.h: Renamed from stdbool.h.in.
89366
89367 2003-06-06  Jim Meyering  <jim@meyering.net>
89368             Bruno Haible  <bruno@clisp.org>
89369
89370         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89371         Adjust Makefile.am snippet not to redirect directly to target.
89372         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89373
89374 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89375
89376         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89377         mismatch, look in future quarters as well as past.  This fixes a
89378         bug when processing fall-backwards gaps immediately after a long
89379         period of daylight-saving time.
89380
89381         * lib/mktime.c: Assume freestanding C89 or better.
89382         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89383         (__P): Remove; not used.
89384         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89385         (mktime, not_equal_tm, print_tm, check_result,
89386         main): Use prototypes.  Use const * where appropriate.
89387         (main): Fix typo in testing code that uncovered by above changes.
89388         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89389
89390 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89391
89392         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89393         locale.h, localeconv.  This merges changes from coreutils.
89394
89395         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89396         It can be removed after the next Autoconf is released.
89397         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89398         needed.
89399
89400 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89401
89402         * lib/mktime.c: Fix Debian bug 177940
89403         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89404         (localtime_offset): Now long int, not time_t, because we want it
89405         to be guaranteed to be signed.  All uses changed.
89406         (__mktime_internal): If overflow would occur when adding offset,
89407         don't add it.
89408
89409         Merge 'human' changes from coreutils.  Rewrite to support
89410         locale-specific notations like thousands separators.
89411         * lib/human.c: Simplify authorship notice.
89412         Include human.h immediately after config.h.
89413         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89414         <limits.h>: Do not include, since human.h does.
89415         (SIZE_MAX, UINTMAX_MAX): New macros.
89416         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89417         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89418         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89419         (power_letter): Renamed from suffixes.
89420         (generate_suffix_backwards): Remove.
89421         (adjust_value): Now takes int style (because of human.h changes)
89422         and long double value (for greater precision on some platforms).
89423         (group_number): New function.
89424         (human_readable): Use it.  Use integer options, not enum.
89425         Put the options before the sizes in the arg list.
89426         Support all the new options.
89427         The old human_readable function has been removed;
89428         use inttostr.h instead.
89429         (human_readable, default_block_size, humblock):
89430         Use uintmax_t, not int, for block sizes.
89431         (human_readable_inexact, block_size_types): Remove.
89432         (block_size_opts): New constant.
89433         (human_options): Renamed from human_block_size, with new signature
89434         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89435         * lib/human.h: Add copyright and authorship notice.
89436         Include <limits.h> and <stdbool.h> unconditionally.
89437         (PARAMS): Remove.  All uses removed.
89438         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89439         (enum human_inexact_style): Remove tag; now a nameless enum.
89440         (human_floor, human_ceiling, human_round_to_even): Now have
89441         values 2, 0, 1 rather than -1, 1, 0.
89442         (human_group_digits, human_suppress_point_zero, human_autoscale,
89443         human_base_1024, human_SI, human_B): New constants.
89444         (human_readable_inexact, human_block_size): Remove.
89445         (human_readable): Size args are now uintmax_t, not int.
89446         (human_options): New decl.
89447
89448         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89449         unnecessary now that we assume C89 or better.  This change
89450         imported from coreutils.
89451
89452         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89453         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89454         in the 2003-05-30 sync from glibc.
89455
89456         .h files should stand alone, but we shouldn't include <sys/types.h>
89457         if we can get away with just <stddef.h>.
89458
89459         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89460         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89461         rather than <sys/types.h>, as we merely need size_t.
89462         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89463         to get size_t.
89464         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89465         Include <stdio.h>, to get FILE.
89466         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89467         memcasecmp.h has included <stddef.h> and all we need is size_t.
89468         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89469         our interface, instead of including <sys/types.h>
89470
89471 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89472
89473         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89474         now, as glibc mktime is buggy on non-glibc systems.
89475
89476 2003-06-03  Karl Berry  <karl@gnu.org>
89477
89478         * config/config.sub: update from prep.
89479
89480 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89481
89482         [from coreutils]
89483         Fix some minor time-related bugs with POSIX time arguments.
89484         Some valid time stamps were being rejected (notably -1, and
89485         time stamps before 1900 on 64-bit hosts).  And some invalid
89486         time stamps were being accepted, e.g. September 31.
89487
89488         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89489         that we can return (time_t) -1 successfully.
89490         * lib/posixtm.c: Likewise.
89491         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89492         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89493         (t): Remove static var.
89494         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89495         of static var.  All uses changed.
89496         (year): Do not reject years before 1900; they can occur with
89497         64-bit time_t.
89498         (posix_time_parse): Do not check for out-of-range components;
89499         that is now the caller's responsibility, since our checks were
89500         only approximations.
89501         (posixtime): Use mktime to check for out-of-range components,
89502         since it knows them exactly.
89503         If mktime returns (time_t) -1, check whether an error actually occurred
89504         by invoking localtime on -1.
89505         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89506         posixtime failures better.
89507         Improve the test data (in comments only).
89508
89509 2003-06-02  Karl Berry  <karl@gnu.org>
89510
89511         * config/mkinstalldirs (version): new variable.
89512         (--version): new option.
89513         (usage): improve message.
89514
89515 2003-05-30  Karl Berry  <karl@gnu.org>
89516
89517         * lib/mktime.c: update from libc.
89518
89519 2003-05-30  Bruno Haible  <bruno@clisp.org>
89520
89521         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89522         * config/config.rpath: Upgrade to gettext-0.12.1.
89523
89524 2003-05-30  Bruno Haible  <bruno@clisp.org>
89525
89526         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89527         * m4/nls.m4: New file, from gettext-0.12.1.
89528         * m4/po.m4: New file, from gettext-0.12.1.
89529         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89530
89531 2003-05-30  Bruno Haible  <bruno@clisp.org>
89532
89533         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89534         * lib/localcharset.h: Likewise.
89535         * lib/localcharset.c: Likewise.
89536
89537 2003-05-29  Karl Berry  <karl@gnu.org>
89538
89539         * config/config.rpath: update from gettext.
89540
89541 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89542
89543         Assume the headers required for C89 freestanding compilers.
89544         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89545         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89546         * m4/human.m4 (gl_HUMAN): Likewise.
89547         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89548         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89549         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89550         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89552         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89553
89554 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89555
89556         Assume the headers required for C89 freestanding compilers.
89557         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89558         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89559         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89560         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89561         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89562         define, since <limits.h> is guaranteed to do that.
89563         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89564         * lib/exclude.c: Include <stdbool.h> unconditionally.
89565         * lib/tempname.c: Include <stddef.h> unconditionally.
89566         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89567         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89568         <stddef.h> does that.
89569         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89570         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89571         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89572         needed.
89573         * lib/xstrtol.c: Likewise.
89574         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89575         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89576
89577         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89578         warnings on some platforms.
89579
89580         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89581         arbitrarily.
89582
89583 2003-05-26  Jim Meyering  <jim@meyering.net>
89584
89585         Merge in a change from coreutils:
89586         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89587         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89588         that condition, rather than `-1' which is slightly misleading.
89589         Change the name of the cache variable to have the gl_ prefix.
89590         Prompted by a patch from Richard Dawe for DJGPP.
89591
89592 2003-05-24  Karl Berry  <karl@gnu.org>
89593
89594         * config/config.guess: update from prep.
89595
89596 2003-05-22  Karl Berry  <karl@gnu.org>
89597
89598         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89599
89600 2003-05-20  Karl Berry  <karl@gnu.org>
89601
89602         * config/config.guess: update from prep.
89603
89604 2003-05-18  Karl Berry  <karl@gnu.org>
89605
89606         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89607         might actually be set by the user.
89608
89609         * config/depcomp, install-sh, mdate-sh: update from automake.
89610
89611 2003-05-17  Bruno Haible  <bruno@clisp.org>
89612
89613         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89614         invalid expansion for AC_EGREP_CPP.
89615         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89616         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89617         Suggested by Akim Demaille <akim@epita.fr> in
89618         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89619
89620 2003-05-12  Jim Meyering  <jim@meyering.net>
89621
89622         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89623         the space-padded-by-default conversion specifiers, %e, %k, %l.
89624
89625 2003-05-12  Bruno Haible  <bruno@clisp.org>
89626
89627         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89628         the string is longer than 4 KB.
89629
89630 2003-05-11  Karl Berry  <karl@gnu.org>
89631
89632         * config/config.{guess,sub}: update from prep.
89633
89634 2003-05-09  Bruno Haible  <bruno@clisp.org>
89635
89636         * modules/error: Add m4/strerror_r.m4 to file list.
89637
89638 2003-05-03  Bruno Haible  <bruno@clisp.org>
89639
89640         Upgrade to Unicode-4.0.
89641         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89642         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89643         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89644         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89645         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89646         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89647         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89648         Change width of U+E0100..U+E01EF from 1 to 0.
89649
89650 2003-04-25  Jim Meyering  <jim@meyering.net>
89651
89652         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89653         of type size_t, not int.
89654
89655 2003-04-25  Bruno Haible  <bruno@clisp.org>
89656
89657         * lib/copy-file.c: Include <stddef.h>, for size_t.
89658
89659 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89660
89661         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89662         code which expansion is under static control.  Patch imported from
89663         Akim Demaille's patch to Bison; see
89664         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89665
89666 2003-04-14  Bruno Haible  <bruno@clisp.org>
89667
89668         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89669
89670 2003-04-11  Jim Meyering  <jim@meyering.net>
89671
89672         Merge changes from Coreutils.
89673
89674         2003-03-22  Jim Meyering  <jim@meyering.net>
89675
89676         * lib/strftime.c (widen): Cast alloca return value to proper type.
89677
89678         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89679
89680         From GNU libc.
89681         * lib/strftime.c (my_strftime): Handle very large width
89682         specifications for numeric values correctly.  Improve checks for
89683         overflow.
89684
89685         2003-01-19  Jim Meyering  <jim@meyering.net>
89686
89687         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89688         definitions.
89689         (nl_get_alt_digit) [! defined my_strftime]: Define.
89690         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89691         _nl_get_alt_digit and _nl_get_walt_digit.
89692
89693         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89694         libc. These changes have no effect outside of _LIBC.
89695
89696 2003-04-10  Bruno Haible  <bruno@clisp.org>
89697
89698         * modules/findprog: New file.
89699         * MODULES.html.sh (func_all_modules): Add it.
89700
89701 2003-04-10  Bruno Haible  <bruno@clisp.org>
89702
89703         * m4/findprog.m4: New file.
89704         * m4/eaccess.m4: New file.
89705
89706 2003-04-10  Bruno Haible  <bruno@clisp.org>
89707
89708         * lib/findprog.h: New file, from GNU gettext.
89709         * lib/findprog.c: New file, from GNU gettext.
89710
89711 2003-04-05  Jim Meyering  <jim@meyering.net>
89712
89713         Merge changes from Coreutils.
89714
89715         * lib/exclude.h (PARAMS): Remove definition and uses.
89716         * lib/exclude.c: Remove uses of `PARAMS'.
89717
89718         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89719         Add test-cases for DOS filenames. Declare program_name.
89720         (main): Set up program_name.  Patch by Rich Dawe.
89721
89722         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89723         error from mntctl.
89724         Use mntctl's return value to drive the entry-processing loop, since
89725         we can't rely on the value of the vmt_length member in the last
89726         entry.  On some systems doing so could result in exhausting
89727         virtual memory.  Based in part on a patch from Mike Jetzer.
89728
89729 2003-04-04  Bruno Haible  <bruno@clisp.org>
89730
89731         * modules/linebreak: New file.
89732         * MODULES.html.sh (func_all_modules): Add it.
89733
89734 2003-04-04  Bruno Haible  <bruno@clisp.org>
89735
89736         * m4/linebreak.m4: New file.
89737
89738 2003-04-04  Bruno Haible  <bruno@clisp.org>
89739
89740         * lib/linebreak.h: New file, from GNU gettext.
89741         * lib/linebreak.c: New file, from GNU gettext with slight
89742         modifications.
89743         * lib/lbrkprop.h: New file, from GNU gettext.
89744
89745 2003-04-03  Bruno Haible  <bruno@clisp.org>
89746
89747         * modules/utf8-ucs4: New file.
89748         * modules/utf16-ucs4: New file.
89749         * modules/ucs4-utf8: New file.
89750         * modules/ucs4-utf16: New file.
89751         * MODULES.html.sh (func_all_modules): Add them.
89752
89753 2003-04-03  Bruno Haible  <bruno@clisp.org>
89754
89755         * m4/utf-ucs4.m4: New file.
89756         * m4/ucs4-utf.m4: New file.
89757
89758 2003-04-03  Bruno Haible  <bruno@clisp.org>
89759
89760         * lib/utf8-ucs4.h: New file, from GNU gettext.
89761         * lib/utf16-ucs4.h: New file, from GNU gettext.
89762         * lib/ucs4-utf8.h: New file, from GNU gettext.
89763         * lib/ucs4-utf16.h: New file, from GNU gettext.
89764
89765 2003-04-02  Bruno Haible  <bruno@clisp.org>
89766
89767         * modules/binary-io: New file.
89768         * MODULES.html.sh (func_all_modules): Add it.
89769
89770 2003-04-02  Bruno Haible  <bruno@clisp.org>
89771
89772         * lib/binary-io.h: New file, from GNU gettext.
89773
89774 2003-04-01  Bruno Haible  <bruno@clisp.org>
89775
89776         * modules/pathname: New file.
89777         * MODULES.html.sh (func_all_modules): Add it.
89778
89779 2003-04-01  Bruno Haible  <bruno@clisp.org>
89780
89781         * lib/pathname.h: New file, from GNU gettext.
89782         * lib/concatpath.c: New file, from GNU gettext.
89783
89784 2003-03-30  Bruno Haible  <bruno@clisp.org>
89785
89786         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89787
89788 2003-03-30  Bruno Haible  <bruno@clisp.org>
89789
89790         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89791         function chown() doesn't exist.
89792
89793 2003-03-28  Bruno Haible  <bruno@clisp.org>
89794
89795         * modules/copy-file: New file.
89796         * MODULES.html.sh (func_all_modules): Add it.
89797
89798 2003-03-28  Bruno Haible  <bruno@clisp.org>
89799
89800         * m4/copy-file.m4: New file.
89801
89802 2003-03-28  Bruno Haible  <bruno@clisp.org>
89803
89804         * lib/copy-file.h: New file, from GNU gettext.
89805         * lib/copy-file.c: New file, from GNU gettext.
89806
89807 2003-03-18  Jim Meyering  <jim@meyering.net>
89808
89809         * lib/quote.c (quote_n): Fix typo in comment.
89810
89811 2003-03-18  Bruno Haible  <bruno@clisp.org>
89812
89813         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89814         checking.
89815         * m4/onceonly_2_57.m4: Likewise.
89816
89817 2003-03-17  Bruno Haible  <bruno@clisp.org>
89818
89819         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89820         (m4_quote): Remove macro.
89821         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89822
89823 2003-03-14  Jim Meyering  <jim@meyering.net>
89824
89825         Merge changes from Coreutils.
89826         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89827         to be const, in order to avoid warnings.
89828         (obstack_room): Likewise.
89829         (obstack_empty_p): Likewise.
89830
89831 2003-03-14  Bruno Haible  <bruno@clisp.org>
89832
89833         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89834         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89835
89836 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89837
89838         Merge changes from Bison.
89839         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89840         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89841         when compiling Bison 1.875's `bitset bset = obstack_alloc
89842         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89843         * lib/hash.c: Include <stdbool.h> unconditionally.
89844
89845 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89846
89847         * m4/onceonly.m4 (m4_quote): New macro.
89848         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89849         Quote AC_FOREACH variable-expansions properly.
89850
89851 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89852
89853         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89854
89855 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89856
89857         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89858         Reported by Bruce Becker; see:
89859         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89860
89861 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89862             Bruno Haible  <bruno@clisp.org>
89863
89864         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89865         Reported by John Hughes, see
89866         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89867
89868 2003-02-20  Bruno Haible  <bruno@clisp.org>
89869
89870         * MODULES.html.sh (func_all_modules): Add poll.
89871
89872 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89873
89874         * modules/poll: New file.
89875
89876 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89877
89878         * lib/poll_.h: New file.
89879         * lib/poll.c: New file.
89880
89881 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89882
89883         * m4/poll.m4: New file.
89884
89885 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89886
89887         * modules/mathl: New file.
89888
89889 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89890
89891         * lib/mathl.h: New file.
89892         * lib/acosl.c: New file.
89893         * lib/asinl.c: New file.
89894         * lib/atanl.c: New file.
89895         * lib/ceill.c: New file.
89896         * lib/cosl.c: New file.
89897         * lib/expl.c: New file.
89898         * lib/floorl.c: New file.
89899         * lib/frexpl.c: New file.
89900         * lib/ldexpl.c: New file.
89901         * lib/logl.c: New file.
89902         * lib/sincosl.c: New file.
89903         * lib/sinl.c: New file.
89904         * lib/sqrtl.c: New file.
89905         * lib/tanl.c: New file.
89906         * lib/trigl.c: New file.
89907         * lib/trigl.h: New file.
89908
89909 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89910
89911         * m4/mathl.m4: New file.
89912
89913 2003-02-18  Bruno Haible  <bruno@clisp.org>
89914
89915         * MODULES.html.sh (func_all_modules): Add mathl.
89916
89917 2003-02-17  Bruno Haible  <bruno@clisp.org>
89918
89919         * modules/mkdtemp: New module.
89920         * MODULES.html.sh (func_all_modules): Add it.
89921
89922 2003-02-17  Bruno Haible  <bruno@clisp.org>
89923
89924         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89925
89926 2003-02-17  Bruno Haible  <bruno@clisp.org>
89927
89928         * lib/mkdtemp.h: New file, from GNU gettext.
89929         * lib/mkdtemp.c: New file, from GNU gettext.
89930
89931 2003-02-02  Jim Meyering  <jim@meyering.net>
89932
89933         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89934         e.g. glibc-2.2.93.
89935
89936 2003-01-31  Bruno Haible  <bruno@clisp.org>
89937
89938         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89939         'rpl_rename'.
89940         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89941         'rpl_strnlen'.
89942         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89943         'rpl_strtod'.
89944         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89945         'rpl_utime'.
89946
89947 2003-01-31  Bruno Haible  <bruno@clisp.org>
89948
89949         * lib/rename.c: #undef rename before defining rpl_rename.
89950         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89951
89952 2003-01-30  Bruno Haible  <bruno@clisp.org>
89953
89954         * modules/vasnprintf, modules/vasprintf: New modules.
89955         * MODULES.html.sh (func_all_modules): Add them.
89956
89957 2003-01-30  Bruno Haible  <bruno@clisp.org>
89958
89959         * m4/signed.m4: New file, from GNU gettext.
89960         * m4/longdouble.m4: New file, from GNU gettext.
89961         * m4/wchar_t.m4: New file, from GNU gettext.
89962         * m4/wint_t.m4: New file, from GNU gettext.
89963         * m4/vasnprintf.m4: New file.
89964         * m4/vasprintf.m4: New file.
89965
89966 2003-01-30  Bruno Haible  <bruno@clisp.org>
89967
89968         * lib/printf-args.h: New file, from GNU gettext.
89969         * lib/printf-args.c: New file, from GNU gettext.
89970         * lib/printf-parse.h: New file, from GNU gettext.
89971         * lib/printf-parse.c: New file, from GNU gettext.
89972         * lib/vasnprintf.h: New file, from GNU gettext.
89973         * lib/vasnprintf.c: New file, from GNU gettext.
89974         * lib/asnprintf.c: New file, from GNU gettext.
89975         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89976         * lib/vasprintf.c: New file, from GNU gettext.
89977         * lib/asprintf.c: New file, from GNU gettext.
89978
89979 2003-01-29  Bruno Haible  <bruno@clisp.org>
89980
89981         * modules/stpncpy: New module.
89982         * MODULES.html.sh (func_all_modules): Add it.
89983
89984 2003-01-29  Bruno Haible  <bruno@clisp.org>
89985
89986         * m4/stpncpy.m4: New file.
89987
89988 2003-01-29  Bruno Haible  <bruno@clisp.org>
89989
89990         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89991         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89992
89993 2003-01-28  Bruno Haible  <bruno@clisp.org>
89994
89995         * modules/c-ctype: New module.
89996         * MODULES.html.sh (func_all_modules): Add it.
89997
89998 2003-01-28  Bruno Haible  <bruno@clisp.org>
89999
90000         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90001         Paul Eggert.
90002         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90003         Paul Eggert.
90004
90005 2003-01-27  Bruno Haible  <bruno@clisp.org>
90006
90007         * modules/xsetenv: New module.
90008         * MODULES.html.sh (func_all_modules): Add it.
90009
90010 2003-01-27  Bruno Haible  <bruno@clisp.org>
90011
90012         * lib/xsetenv.h: New file, from GNU gettext.
90013         * lib/xsetenv.c: New file, from GNU gettext.
90014
90015 2003-01-23  Jim Meyering  <jim@meyering.net>
90016
90017         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90018         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90019
90020 2003-01-23  Bruno Haible  <bruno@clisp.org>
90021
90022         * modules/minmax: New module.
90023         * MODULES.html.sh (func_all_modules): Add it.
90024
90025 2003-01-23  Bruno Haible  <bruno@clisp.org>
90026
90027         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90028         Eggert.
90029
90030 2003-01-22  Bruno Haible  <bruno@clisp.org>
90031
90032         * modules/exit: New module.
90033         * MODULES.html.sh (func_all_modules): Add it.
90034
90035 2003-01-22  Bruno Haible  <bruno@clisp.org>
90036
90037         * lib/exit.h: New file, from GNU gettext.
90038
90039 2003-01-19  Bruno Haible  <bruno@clisp.org>
90040
90041         * gnulib-tool: Recognize option --extract-maintainer.
90042         (func_get_maintainer): New function.
90043         * modules/*: Add Maintainer entry.
90044
90045 2003-01-16  Jim Meyering  <jim@meyering.net>
90046
90047         * m4/regex.m4: The `regex' struct is both input and output.
90048         Initialize it before each use.  Patch by Tim Waugh.
90049
90050 2003-01-16  Bruno Haible  <bruno@clisp.org>
90051
90052         * MODULES.html.sh: Add a table of contents. Add the module name as
90053         leftmost column. Add hyperlinks.
90054
90055 2003-01-15  Bruno Haible  <bruno@clisp.org>
90056
90057         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90058
90059 2003-01-15  Bruno Haible  <bruno@clisp.org>
90060
90061         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90062         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90063         suffix.
90064
90065 2003-01-15  Bruno Haible  <bruno@clisp.org>
90066
90067         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90068
90069 2003-01-15  Bruno Haible  <bruno@clisp.org>
90070
90071         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90072         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90073
90074 2003-01-14  Jim Meyering  <jim@meyering.net>
90075
90076         * lib/same.c (same_name): Tweak a comment.
90077
90078 2003-01-14  Bruno Haible  <bruno@clisp.org>
90079
90080         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90081         when a string comparison is sufficient.
90082
90083 2003-01-14  Bruno Haible  <bruno@clisp.org>
90084
90085         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90086         'unsigned int'.
90087
90088 2003-01-14  Bruno Haible  <bruno@clisp.org>
90089
90090         * lib/hash-pjw.c: Add comment about low quality of this function.
90091
90092 2003-01-13  Bruno Haible  <bruno@clisp.org>
90093
90094         * modules/stpcpy: Distribute lib/stpcpy.h.
90095         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90096
90097 2003-01-13  Bruno Haible  <bruno@clisp.org>
90098
90099         * modules/*: Add a description.
90100         * modules/strpbrk: Fix Makefile.am snippet.
90101         * modules/strtoimax: Fix dependencies.
90102         * modules/strtoumax: Likewise.
90103
90104 2003-01-13  Bruno Haible  <bruno@clisp.org>
90105
90106         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90107         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90108         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90109
90110 2003-01-13  Bruno Haible  <bruno@clisp.org>
90111
90112         * gnulib-tool (func_create_testdir): Store config/* files in the main
90113         directory.
90114         * config.rpath: Move to ...
90115         * config/config.rpath: ... here.
90116         * modules/gettext: Contains config/config.rpath, not config.rpath.
90117         * modules/iconv: Likewise.
90118
90119 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90120
90121         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90122         to avoid collisions with libcurses and libreadline.
90123
90124         * m4/getstr.m4: Remove.
90125         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90126
90127 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90128
90129         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90130         to avoid collisions with libcurses and libreadline.
90131
90132         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90133         * lib/getstr.h, getstr.c: Remove.
90134         * lib/getline.c: Include "getline.h", to check interface.
90135         Move body of old getstr.c here: this defines MIN_CHUNK and
90136         declares getdelim2, which is renamed from getstr.
90137         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90138
90139         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90140         All uses changed.
90141         * lib/linebuffer.h: Likewise.
90142         (readline): Remove backward-compatibility macro.
90143
90144 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90145
90146         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90147         to avoid collisions with libcurses and libreadline.
90148         * getstr: Remove.
90149         * MODULES.html.sh: Remove getstr.
90150         * modules/getline: Depend on unlocked-io, not getstr.
90151
90152 2003-01-12  Jim Meyering  <jim@meyering.net>
90153
90154         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90155
90156 2003-01-10  Bruno Haible  <bruno@clisp.org>
90157
90158         * modules/alloca: Change Makefile.am requirements. Simplify Include
90159         requirements. Add lib/alloca_.h to file list.
90160
90161 2003-01-10  Bruno Haible  <bruno@clisp.org>
90162
90163         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90164
90165 2003-01-10  Bruno Haible  <bruno@clisp.org>
90166
90167         * lib/alloca_.h: New file.
90168         * lib/getdate.y: Unconditionally include alloca.h.
90169         * lib/makepath.c: Likewise.
90170         * lib/setenv.c: Likewise.
90171         * lib/userspec.c: Likewise.
90172
90173 2003-01-09  Karl Berry  <karl@gnu.org>
90174
90175         * MODULES.html.sh: include `dirname $0` in PATH, to find
90176         gnulib-tool.
90177
90178 2003-01-09  Bruno Haible  <bruno@clisp.org>
90179
90180         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90181         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90182
90183 2003-01-09  Bruno Haible  <bruno@clisp.org>
90184
90185         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90186
90187 2003-01-09  Bruno Haible  <bruno@clisp.org>
90188
90189         * lib/stdbool.h.in: New file.
90190
90191 2003-01-09  Bruno Haible  <bruno@clisp.org>
90192
90193         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90194         * MODULES.html.sh: Likewise.
90195
90196 2003-01-08  Jim Meyering  <jim@meyering.net>
90197
90198         * lib/full-write.c: Undefine and define-away `const' after inclusion
90199         of errno.h, not before.  Suggestion from Bruno Haible.
90200
90201 2003-01-08  Bruno Haible  <bruno@clisp.org>
90202
90203         * modules/full-read: Depend on full-write.
90204
90205 2003-01-08  Bruno Haible  <bruno@clisp.org>
90206
90207         * lib/safe-read.c: Include specification header first, to ensure its
90208         selfcontainedness.
90209         * lib/full-write.c: Likewise.
90210
90211 2003-01-07  Jim Meyering  <jim@meyering.net>
90212
90213         * lib/full-write.c: Rework so that it may serve to define full_read,
90214         too.
90215         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90216
90217 2003-01-07  Bruno Haible  <bruno@clisp.org>
90218
90219         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90220         <inttypes.h>.
90221         * lib/xstrtol.h: Likewise.
90222         * lib/xstrtoimax.c: Likewise.
90223         * lib/xstrtoumax.c: Likewise.
90224         * lib/human.h: Likewise.
90225
90226         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90227         on systems that have <inttypes.h> but not <stdint.h>.
90228
90229 2003-01-07  Bruno Haible  <bruno@clisp.org>
90230
90231         * MODULES.html.sh: Add copyright notice.
90232         (missed_files): Omit CVS directory entries.
90233         (func_module): Make it work with sed-3.02.
90234         * MODULES.txt: Remove file.
90235
90236 2003-01-06  Jim Meyering  <jim@meyering.net>
90237
90238         * lib/version-etc.c: Update year in translatable copyright string.
90239
90240 2003-01-03  Karl Berry  <karl@gnu.org>
90241
90242         * config/config.{guess,sub}: update from prep.
90243
90244 2003-01-02  Karl Berry  <karl@gnu.org>
90245
90246         * doc/COPYING.DOC: belatedly updated to 1.2.
90247
90248 2003-01-01  Karl Berry  <karl@gnu.org>
90249
90250         * gnulib-tool (func_verify_module): report module name $module in
90251         error message, not $1.
90252         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90253         be created, only if it doesn't exist.
90254         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90255
90256 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90257
90258         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90259
90260 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90261
90262         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90263         memcmp if strcoll doesn't work.
90264
90265 2002-12-31  Bruno Haible  <bruno@clisp.org>
90266
90267         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90268         nonempty.
90269
90270 2002-12-31  Bruno Haible  <bruno@clisp.org>
90271
90272         * lib/memcoll.c (STRCOLL): New macro.
90273         (memcoll): Use it.
90274
90275 2002-12-31  Bruno Haible  <bruno@clisp.org>
90276
90277         * lib/localcharset.h: New file.
90278         * lib/localcharset.c: Include it.
90279         * lib/unicodeio.c: Likewise.
90280
90281 2002-12-31  Bruno Haible  <bruno@clisp.org>
90282
90283         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90284         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90285
90286 2002-12-31  Bruno Haible  <bruno@clisp.org>
90287
90288         * lib/getline.h: Include <stddef.h>, for size_t.
90289
90290         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90291         * lib/unicodeio.c: Don't include <stddef.h>.
90292
90293 2002-12-31  Bruno Haible  <bruno@clisp.org>
90294
90295         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90296         HAVE_TM_ZONE.
90297
90298 2002-12-24  Karl Berry  <karl@gnu.org>
90299
90300         * config/config.guess: update from prep.
90301
90302 2002-12-24  Bruno Haible  <bruno@clisp.org>
90303
90304         General infrasructure.
90305         * m4/README: Rewritten.
90306         * m4/onceonly.m4: New file.
90307         * m4/onceonly_2_57.m4: New file.
90308
90309         Module atexit.
90310         * m4/atexit.m4: New file.
90311
90312         Module strtod.
90313         * m4/strtod.m4: New file.
90314
90315         Module strtol.
90316         * m4/strtol.m4: New file.
90317
90318         Module strtoul.
90319         * m4/strtoul.m4: New file.
90320
90321         Module memchr.
90322         * m4/memchr.m4: New file.
90323
90324         Module memcmp.
90325         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90326         (jm_FUNC_MEMCMP): Invoke it.
90327
90328         Module memcpy.
90329         * m4/memcpy.m4: New file.
90330
90331         Module memmove.
90332         * m4/memmove.m4: New file.
90333
90334         Module memset.
90335         * m4/memset.m4: New file.
90336
90337         Module strcspn.
90338         * m4/strcspn.m4: New file.
90339
90340         Module strpbrk.
90341         * m4/strpbrk.m4: New file.
90342
90343         Module strstr.
90344         * m4/strstr.m4: New file.
90345
90346         Module strerror.
90347         * m4/strerror.m4: New file.
90348
90349         Module mktime.
90350         * m4/mktime.m4: Renamed from jm-mktime.m4.
90351         (gl_PREREQ_MKTIME): New macro.
90352         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90353
90354         Module malloc.
90355         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90356         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90357         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90358
90359         Module realloc.
90360         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90361         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90362         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90363
90364         Module strftime.
90365         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90366         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90367         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90368         gl_TM_GMTOFF.
90369         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90370
90371         Module xalloc.
90372         * m4/xalloc.m4: New file.
90373
90374         Module alloca.
90375         * m4/alloca.m4: New file.
90376
90377         Module putenv.
90378         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90379         (jm_FUNC_PUTENV): Invoke it.
90380
90381         Module setenv.
90382         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90383         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90384         when invoked twice.
90385         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90386         gt_FUNC_SETENV.
90387
90388         Module memrchr.
90389         * m4/memrchr.m4: New file.
90390
90391         Module stpcpy.
90392         * m4/stpcpy.m4: New file.
90393
90394         Module strcase.
90395         * m4/strcase.m4: New file.
90396
90397         Module strdup.
90398         * m4/strdup.m4: New file.
90399
90400         Module strnlen.
90401         * m4/strnlen.m4: New file.
90402
90403         Module strndup.
90404         * m4/strndup.m4: New file.
90405
90406         Module xstrtod.
90407         * m4/xstrtod.m4: New file.
90408
90409         Module xstrtol.
90410         * m4/xstrtol.m4: New file.
90411
90412         Module getdate.
90413         * m4/getdate.m4: New file.
90414
90415         Module unlocked-io.
90416         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90417         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90418         * m4/jm-glibc-io.m4n: Remove file.
90419
90420         Module long-options.
90421         * m4/long-options.m4: New file.
90422
90423         Module md5.
90424         * m4/md5.m4: New file.
90425
90426         Module sha.
90427         * m4/sha.m4: New file.
90428
90429         Module getstr.
90430         * m4/getstr.m4: New file.
90431
90432         Module getline.
90433         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90434         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90435         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90436         simply getline. Infoke gl_PREREQ_GETLINE.
90437
90438         Module obstack.
90439         * m4/obstack.m4: New file.
90440
90441         Module hash.
90442         * m4/hash.m4: New file.
90443
90444         Module readtokens.
90445         * m4/readtokens.m4: New file.
90446
90447         Module strverscmp.
90448         * m4/strverscmp.m4: New file.
90449
90450         Module stdbool.
90451         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90452         OSF/1.
90453
90454         Module strtoll.
90455         * m4/strtoll.m4: New file.
90456
90457         Module strtoull.
90458         * m4/strtoull.m4: New file.
90459
90460         Module strtoimax.
90461         * m4/strtoimax.m4: New file.
90462
90463         Module strtoumax.
90464         * m4/strtoumax.m4: New file.
90465
90466         Module xstrtoimax.
90467         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90468         jm_AC_PREREQ_XSTRTOIMAX.
90469         Moved the strtol prerequisites to strtol.m4.
90470         Moved the strtoll prerequisites to strtoll.m4.
90471         Moved the strtoimax prerequisites to strtoimax.m4.
90472
90473         Module xstrtoumax.
90474         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90475         jm_AC_PREREQ_XSTRTOUMAX.
90476         Moved the strtoul prerequisites to strtoul.m4.
90477         Moved the strtoull prerequisites to strtoull.m4.
90478         Moved the strtoumax prerequisites to strtoumax.m4.
90479
90480         Module chown.
90481         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90482         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90483
90484         Module dup2.
90485         * m4/dup2.m4: New file.
90486
90487         Module ftruncate.
90488         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90489         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90490
90491         Module getgroups.
90492         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90493         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90494
90495         Module gettimeofday.
90496         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90497         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90498         gl_PREREQ_GETTIMEOFDAY.
90499
90500         Module mkdir.
90501         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90502         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90503
90504         Module mkstemp.
90505         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90506         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90507         jm_AC_TYPE_UINTMAX_T.
90508         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90509
90510         Module stat.
90511         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90512         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90513
90514         Module lstat.
90515         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90516         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90517
90518         Module timespec.
90519         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90520         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90521         * m4/st_mtim.m4: Indentation.
90522
90523         Module nanosleep.
90524         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90525         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90526         gl_PREREQ_NANOSLEEP.
90527
90528         Module regex.
90529         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90530         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90531         (gl_REGEX): New macro.
90532
90533         Module rename.
90534         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90535         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90536
90537         Module rmdir.
90538         * m4/rmdir.m4: New file.
90539
90540         Module utime.
90541         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90542         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90543         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90544
90545         Module dirname.
90546         * m4/dirname.m4: New file.
90547
90548         Module getopt.
90549         * m4/getopt.m4: New file.
90550
90551         Module unistd-safer.
90552         * m4/unistd-safer.m4: New file.
90553
90554         Module fnmatch.
90555         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90556         declaration.
90557         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90558         (gl_FUNC_FNMATCH_POSIX): New macro.
90559         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90560         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90561         simply fnmatch.
90562
90563         Module exclude.
90564         * m4/exclude.m4: New file.
90565
90566         Module human.
90567         * m4/human.m4: New file.
90568
90569         Module acl.
90570         * m4/acl.m4: Nop.
90571
90572         Module backupfile.
90573         * m4/backupfile.m4: New file.
90574         * m4/d-ino.m4: Indentation.
90575
90576         Module fsusage.
90577         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90578         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90579         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90580
90581         Module dirfd.
90582         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90583         requirements.
90584
90585         Module euidaccess.
90586         * m4/euidaccess.m4: New file.
90587
90588         Module file-type.
90589         * m4/file-type.m4: New file.
90590
90591         Module fileblocks.
90592         * m4/fileblocks.m4: New file.
90593
90594         Module filemode.
90595         * m4/filemode.m4: New file.
90596
90597         Module isdir.
90598         * m4/isdir.m4: New file.
90599
90600         Module lchown.
90601         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90602         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90603
90604         Module makepath.
90605         * m4/makepath.m4: New file.
90606
90607         Module modechange.
90608         * m4/modechange.m4: New file.
90609
90610         Module mountlist.
90611         * m4/mountlist.m4: New file.
90612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90613         Indentation.
90614
90615         Module path-concat.
90616         * m4/path-concat.m4: New file.
90617
90618         Module pathmax.
90619         * m4/pathmax.m4: New file.
90620
90621         Module same.
90622         * m4/same.m4: New file.
90623
90624         Module save-cwd.
90625         * m4/save-cwd.m4: New file.
90626
90627         Module savedir.
90628         * m4/savedir.m4: New file.
90629
90630         Module xgetcwd.
90631         * m4/xgetcwd.m4: New file.
90632         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90633
90634         Module xreadlink.
90635         * m4/xreadlink.m4: New file.
90636
90637         Module safe-read.
90638         * m4/safe-read.m4: New file.
90639
90640         Module safe-write.
90641         * m4/safe-write.m4: New file.
90642
90643         Module closeout.
90644         * m4/closeout.m4: New file.
90645
90646         Module stdio-safer.
90647         * m4/stdio-safer.m4: New file.
90648
90649         Module getpass.
90650         * m4/getpass.m4: New file.
90651
90652         Module getugroups.
90653         * m4/getugroups.m4: New file.
90654
90655         Module group-member.
90656         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90657         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90658
90659         Module idcache.
90660         * m4/idcache.m4: New file.
90661
90662         Module userspec.
90663         * m4/userspec.m4: New file.
90664
90665         Module gettime.
90666         * m4/clock_time.m4: New file.
90667         * m4/gettime.m4: New file.
90668
90669         Module settime.
90670         * m4/settime.m4: New file.
90671
90672         Module posixtm.
90673         * m4/posixtm.m4: New file.
90674
90675         Module gethostname.
90676         * m4/gethostname.m4: New file.
90677
90678         Module canon-host.
90679         * m4/canon-host.m4: New file.
90680
90681         Module gettext.
90682         * m4/codeset.m4: New file, from gettext-0.11.5.
90683         * m4/gettext.m4: New file, from gettext-0.11.5.
90684         * m4/glibc21.m4: New file, from gettext-0.11.5.
90685         * m4/iconv.m4: New file, from gettext-0.11.5.
90686         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90687         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90688         * m4/inttypes.m4: New file, from gettext-0.11.5.
90689         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90690         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90691         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90692         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90693         * m4/lib-link.m4: New file, from gettext-0.11.5.
90694         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90695         * m4/progtest.m4: New file, from gettext-0.11.5.
90696         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90697         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90698         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90699
90700         Module localcharset.
90701         * m4/localcharset.m4: New file.
90702
90703         Module hard-locale.
90704         * m4/hard-locale.m4: New file.
90705
90706         Module mbswidth.
90707         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90708         onceonly macros.
90709         * m4/mbrtowc.m4: Add comment.
90710
90711         Module memcasecmp.
90712         * m4/memcasecmp.m4: New file.
90713
90714         Module memcoll.
90715         * m4/memcoll.m4: New file.
90716
90717         Module unicodeio.
90718         * m4/unicodeio.m4: New file.
90719
90720         Module rpmatch.
90721         * m4/rpmatch.m4: New file.
90722
90723         Module yesno.
90724         * m4/yesno.m4: New file.
90725
90726         Module exitfail.
90727         * m4/exitfail.m4: New file.
90728
90729         Module c-stack.
90730         * m4/c-stack.m4 (gl_C_STACK): New macro.
90731         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90732
90733         Module error.
90734         * m4/error.m4 (gl_ERROR): New macro.
90735         (jm_PREREQ_ERROR): Use onceonly macros.
90736
90737         Module fatal.
90738         * m4/fatal.m4: New file.
90739
90740         Module getloadavg.
90741         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90742         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90743
90744         Module getpagesize.
90745         * m4/getpagesize.m4: New file.
90746
90747         Module getusershell.
90748         * m4/getusershell.m4: New file.
90749
90750         Module physmem.
90751         * m4/physmem.m4: New file.
90752
90753         Module posixver.
90754         * m4/posixver.m4: New file.
90755
90756         Module quotearg.
90757         * m4/quotearg.m4: New file.
90758
90759         Module quote.
90760         * m4/quote.m4: New file.
90761
90762         Module readutmp.
90763         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90764
90765         Module sig2str.
90766         * m4/sig2str.m4: New file.
90767
90768         Other.
90769         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90770         ulonglong.m4.
90771         * m4/intmax_t.m4: New file.
90772         * m4/d-type.m4: Indentation.
90773         * m4/jm-macros.m4: Update.
90774         * m4/prereq.m4 (jm_PREREQ): Update.
90775         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90776         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90777         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90778         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90779         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90780         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90781         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90782         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90783         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90784         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90785         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90786         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90787         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90788         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90789         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90790         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90791         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90792         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90793         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90794
90795 2002-12-24  Bruno Haible  <bruno@clisp.org>
90796
90797         * MODULES.txt: Update according to m4/ changes.
90798
90799         Module gettext.
90800         * config.rpath: New file, from gettext-0.11.5.
90801
90802         * modules/*: New module descriptions.
90803         * gnulib-tool: New file.
90804         * MODULES.html.sh: New file.
90805
90806 2002-12-21  Karl Berry  <karl@gnu.org>
90807
90808         * doc/fdl.texi: update to version 1.2.
90809
90810 2002-12-19  Karl Berry  <karl@gnu.org>
90811
90812         * config/config.guess: update from prep.
90813
90814 2002-12-18  Bruno Haible  <bruno@clisp.org>
90815
90816         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90817         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90818
90819 2002-12-17  Bruno Haible  <bruno@clisp.org>
90820
90821         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90822         stdlib.h, string.h.
90823
90824 2002-12-17  Bruno Haible  <bruno@clisp.org>
90825
90826         * lib/canon-host.c (strdup): Remove unused declaration.
90827
90828         * lib/fsusage.c: Include full_read.h.
90829         (get_fs_usage): Use full_read instead of safe_read.
90830
90831         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90832
90833 2002-12-12  Karl Berry  <karl@gnu.org>
90834
90835         * config/config.guess: update from prep.
90836
90837 2002-12-11  Bruno Haible  <bruno@clisp.org>
90838
90839         * m4/setenv.m4: New file, from gettext-0.11.5.
90840
90841 2002-12-11  Bruno Haible  <bruno@clisp.org>
90842
90843         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90844         not unsetenv().
90845         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90846         modifications:
90847
90848         2002-12-11  Bruno Haible  <bruno@clisp.org>
90849
90850                 * setenv.c (alloca): Fall back to malloc.
90851                 (freea): New macro.
90852                 (setenv): Use freea() to free memory allocated with alloca().
90853
90854         2002-11-13  Bruno Haible  <bruno@clisp.org>
90855
90856                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90857                 function declarations.
90858                 * unsetenv.c (unsetenv): Likewise.
90859
90860         2002-03-04  Bruno Haible  <bruno@clisp.org>
90861
90862                 Portability to AIX 4.3.3.
90863                 * unsetenv.c: New file, extracted from setenv.c.
90864                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90865
90866         2001-12-20  Bruno Haible  <bruno@clisp.org>
90867
90868                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90869                 use malloc instead. For SunOS 4.
90870
90871         2001-12-11  Bruno Haible  <bruno@clisp.org>
90872
90873                 * setenv.c: Declare alloca.
90874                 (compar_fn_t): New typedef.
90875                 (KNOWN_VALUE, STORE_VALUE): Use it.
90876
90877         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90878         setenv.h.
90879
90880 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90881
90882         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90883         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90884         Choose values that are less likely to collide with system fnmatch
90885         options.
90886         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90887         defined (e.g., a pure POSIX system).
90888         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90889         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90890
90891 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90892
90893         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90894         a pain in practice to deal with generated m4 files.  This change
90895         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90896
90897         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90898         and jm-glibc-io.m4, as they are no longer a special case.
90899         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90900         kludge and the auto-generation stuff.  Check only whether the
90901         functions are declared, not whether they exist, since older hosts
90902         that don't declare the functions can't use the optimization anyway.
90903
90904 2002-12-06  Jim Meyering  <jim@meyering.net>
90905
90906         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90907
90908         Merge in changes from libc's misc/error.c, in preparation
90909         for the merge of gnulib's changes back into libc.
90910
90911         * lib/error.c (_): Define only if not already defined.
90912         Move definition to follow all #include directives.
90913         Include unlocked-io.h only if !_LIBC.
90914         [_LIBC]: Include <libio/libioP.h>.
90915         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90916         (fflush): Tweak definition to use INTUSE.
90917         (putc): Define.
90918
90919 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90920
90921         * lib/alloca.c [defined emacs]: Include "lisp.h".
90922         (xalloc_die) [defined emacs]: New macro.
90923         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90924         [! defined emacs]: Include <xalloc.h>.
90925         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90926         (pointer): Typedef to POINTER_TYPE *.
90927         (malloc): Remove decl; we now always use xmalloc.
90928         (alloca): Use old-style definition, since Emacs needs this.
90929         Check for arithmetic overflow when computing combined size.
90930
90931 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90932
90933         Do not generate unlocked-io.h automatically, since it's easier to
90934         maintain it by hand.
90935
90936         * lib/unlocked-io.h: New file, from GNU diffutils,
90937         but with proper copyright notice and attribution.
90938         * lib/gen-uio: Remove.
90939         * lib/Makefile.am: Add copyright notice.
90940         (libfetish_a_SOURCES): Add unlocked-io.h.
90941         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90942         (DISTCLEANFILES, io_functions): Remove macros.
90943         (EXTRA_DIST): Remove gen_uio.
90944         (unlocked-io.h): Remove rule.
90945
90946 2002-12-04  Jim Meyering  <jim@meyering.net>
90947
90948         Reflect the fact that stat.c and lstat.c are no longer generated.
90949         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90950         (DISTCLEANFILES): Likewise.
90951         (EXTRA_DIST): Likewise.
90952         (all_local): Don't depend on stat.c or lstat.c.
90953         (stat.c, lstat.c): Remove rules.
90954         (EXTRA_DIST): Remove xstat.in.
90955
90956         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90957         * lib/stat.c: New file.  Contents mostly from xstat.in.
90958         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90959         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90960
90961         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90962         too.
90963         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90964
90965 2002-12-03  Jim Meyering  <jim@meyering.net>
90966
90967         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90968         but not semantics, to minimize the differences between these two files.
90969         (safe_read): Change comment to mention SAFE_READ_ERROR.
90970
90971         * lib/safe-read.c (IS_EINTR): Define.
90972         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90973
90974 2002-12-02  Jim Meyering  <jim@meyering.net>
90975
90976         * lib/safe-read.c (EINTR): Define.
90977         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90978         (INT_MAX): Provide fallback.
90979         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90980
90981         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90982
90983 2002-12-02  Bruno Haible  <bruno@clisp.org>
90984
90985         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90986         Define, taken from safe-read.c.
90987         (INT_MAX): Provide fallback.
90988         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90989         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90990
90991         * lib/safe-read.c (EINTR): Remove definition.
90992         (safe_read): Don't use EINTR if it is absent.
90993
90994 2002-12-01  Jim Meyering  <jim@meyering.net>
90995
90996         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90997         zero.
90998         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90999
91000 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91001
91002         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91003         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91004         with `if (! (value < limit)) abort ();', for readability.
91005
91006 2002-11-26  Karl Berry  <karl@gnu.org>
91007
91008         * lib/strdup.c: copy from libc again, with jim's ok.
91009         * lib/.cppi-disable: re-add strdup.c
91010
91011 2002-11-25  Karl Berry  <karl@gnu.org>
91012
91013         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91014         instead of "strtol.c".
91015
91016 2002-11-25  Karl Berry  <karl@gnu.org>
91017
91018         * config/install-sh: update from automake for variable quoting, $0 in
91019         error msgs, etc.
91020
91021         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91022         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91023         entry.
91024
91025 2002-11-25  Jim Meyering  <jim@meyering.net>
91026
91027         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91028
91029 2002-11-24  Karl Berry  <karl@gnu.org>
91030
91031         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91032         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91033
91034 2002-11-24  Jim Meyering  <jim@meyering.net>
91035
91036         Update from coreutils:
91037
91038         * lib/mktime.c: Merge in changes from libc.
91039
91040         Avoid a link-time failure on some Linux systems.
91041         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91042         (otherwise).
91043         (__mon_yday): Declare with the STATIC attribute.
91044         (__mktime_internal): Likewise.
91045         Based on a report from Greg Schafer.
91046
91047 2002-11-23  Jim Meyering  <jim@meyering.net>
91048
91049         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91050         Use `unsigned', not `int', as type of index.
91051
91052         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91053
91054         * lib/fsusage.c: Remove unneeded parentheses around operands of
91055         `defined'.
91056
91057 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91058
91059         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91060         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91061         so that we can be included first.
91062         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91063         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91064         No need to include stddef.h or sys/types.h any more.
91065         Surround local include files with "", not "<>".
91066         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91067         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91068         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91069         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91070         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91071         (ISPRINT): Remove; no longer needed now that we assume C89.
91072
91073         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91074         Preserve errno.
91075
91076         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91077         quotearg_char): Use SIZE_MAX rather than
91078         (size_t) -1 when we are talking about "infinity".
91079
91080         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91081
91082 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91083
91084         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91085         hint that one should use `if (! x) abort ();' rather than `assert
91086         (x);', and anyway it's one less thing to worry about configuring.
91087         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91088         hash_rehash, hash_insert): Use abort rather than assert.
91089
91090 2002-11-22  Bruno Haible  <bruno@clisp.org>
91091
91092         * lib/safe-read.h: Assume C89. Add comments.
91093         (safe_read): Change return type to size_t.
91094         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91095         byte counts > SSIZE_MAX correctly.
91096         * lib/safe-write.h: New file.
91097         * lib/safe-write.c: New file.
91098         * lib/full-read.h: New file.
91099         * lib/full-read.c: New file.
91100         * lib/full-write.h: Assume C89. Add comments.
91101         * lib/full-write.c: Include safe-write.h.
91102         (full_write): Rewritten to use safe_write.
91103         Suggested by Jim Meyering and Paul Eggert.
91104
91105 2002-11-21  Jim Meyering  <jim@meyering.net>
91106
91107         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91108
91109         Merge in changes from the coreutils.
91110
91111         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91112         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91113         <stdint.h>.
91114         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91115         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91116         int.  Work more efficiently if X is the same width as uintmax_t.
91117         Do not compare X to -1, to avoid bogus compiler warning.
91118         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91119         Don't assume that f_frsize and f_bsize are the same type.
91120
91121         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91122         warning on FreeBSD.
91123
91124         * lib/makepath.c (make_path): Restore umask *before* creating the final
91125         component.
91126         (make_path): Minor reformatting.
91127
91128         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91129         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91130         HAVE_MALLOC/HAVE_REALLOC.
91131
91132         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91133         dummy ones.  At least on GNU/Linux systems, `auto' means something
91134         else.
91135         From Michael Stone.
91136
91137 2002-11-21  Bruno Haible  <bruno@clisp.org>
91138
91139         Remove case insensitive option matching.
91140         * lib/argmatch.h (argcasematch): Remove declaration.
91141         (ARGCASEMATCH): Remove macro.
91142         (__xargmatch_internal): Remove case_sensitive argument.
91143         (XARGMATCH): Update.
91144         (XARGCASEMATCH): Remove macro.
91145         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91146         case_sensitive argument.
91147         (argcasematch): Remove function.
91148         (__xargmatch_internal): Remove case_sensitive argument.
91149         (main): Use XARGMATCH instead of XARGCASEMATCH.
91150
91151         * lib/xmalloc.c: Change compile-time error message. Add comment about
91152         required autoconf version.
91153
91154 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91155
91156         Merge argmatch cleanups from Bison.  Assume C89.
91157
91158         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91159         Include stdlib.h, for EXIT_FAILURE.
91160         Always include <string.h>, since we assume C89.
91161         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91162         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91163         Include <stddef.h> instead, since it's all we need for size_t.
91164         (PARAMS): Remove.  All uses removed.
91165         (ARRAY_CARDINALITY): Do not bother to #undef.
91166         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91167         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91168         Remove unnecessary parentheses.
91169         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91170         Insert necessary parentheses.
91171         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91172         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91173
91174 2002-11-19  Bruno Haible  <bruno@clisp.org>
91175
91176         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91177         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91178
91179         * lib/mbswidth.h (PARAMS): Remove macro.
91180         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91181         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91182
91183         * lib/gcd.h (PARAMS): Remove macro.
91184         (gcd): Use ANSI C function declarations.
91185         * lib/gcd.c (gcd): Likewise.
91186
91187 2002-11-15  Bruno Haible  <bruno@clisp.org>
91188
91189         * lib/strcspn.c: Include <stddef.h>.
91190         (strcspn): Use ANSI C function declaration. Change return type to
91191         size_t. Use NULL.
91192         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91193         (strpbrk): Use NULL.
91194         * lib/strpbrk.h (PARAMS): Remove macro.
91195         (strpbrk): Use ANSI C function declaration.
91196         * lib/strstr.c: Don't include <sys/types.h>.
91197         * lib/strstr.h (PARAMS): Remove macro.
91198         (strstr): Use ANSI C function declarations.
91199
91200 2002-11-14  Karl Berry  <karl@gnu.org>
91201
91202         * config/mkinstalldirs: `do' on separate line, instead of
91203         `for var; do'.
91204
91205 2002-11-06  Bruno Haible  <bruno@clisp.org>
91206
91207         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91208         * lib/gcd.c (gcd): Likewise.
91209
91210 2002-11-05  Bruno Haible  <bruno@clisp.org>
91211
91212         * lib/gcd.h: New file, from gettext-0.11.5.
91213         * lib/gcd.c: New file, from gettext-0.11.5.
91214
91215 2002-11-05  Bruno Haible  <bruno@clisp.org>
91216
91217         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91218         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91219         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91220         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91221
91222         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91223         <libintl.h>.
91224         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91225         <libintl.h>.
91226
91227         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91228         * lib/human.c: Include gettext.h instead of <libintl.h>.
91229         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91230         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91231         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91232         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91233         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91234         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91235         (textdomain): Remove definition.
91236         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91237
91238         * lib/long-options.c: Remove include of <libintl.h> and definition of
91239         _.
91240         * lib/same.c: Remove include of <libintl.h> and definition of _.
91241
91242 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91243
91244         * lib/config.charset: A few additions for Solaris.
91245
91246 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91247
91248         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91249         * lib/localcharset.c (locale_charset): Declare as extern "C".
91250
91251 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91252
91253         * lib/config.charset: msdos in uk_UA uses CP1125.
91254
91255 2002-11-04  Bruno Haible  <bruno@clisp.org>
91256
91257         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91258         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91259         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91260         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91261         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91262
91263 2002-11-04  Bruno Haible  <bruno@clisp.org>
91264
91265         * lib/localcharset.c (locale_charset): Don't return an empty string.
91266
91267 2002-11-04  Bruno Haible  <bruno@clisp.org>
91268
91269         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91270         aliases.
91271
91272 2002-11-04  Bruno Haible  <bruno@clisp.org>
91273
91274         * lib/config.charset: Update for newest glibc. Add canonical names
91275         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91276
91277 2002-11-04  Bruno Haible  <bruno@clisp.org>
91278
91279         * lib/config.charset: Add support for NetBSD.
91280
91281 2002-11-04  Bruno Haible  <bruno@clisp.org>
91282
91283         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91284
91285 2002-11-01  Bruno Haible  <bruno@clisp.org>
91286
91287         * configure.in: Add AC_CONFIG_AUX_DIR call.
91288         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91289         test/Makefile.
91290         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91291
91292 2002-09-28  Karl Berry  <karl@gnu.org>
91293
91294         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91295         installed automake until the next release, since changes have been
91296         made.
91297
91298 2002-09-25  Karl Berry  <karl@gnu.org>
91299
91300         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91301         * lib/getopt*: copy from libc/posix.
91302         * lib/gettext.h: copy from gettext.
91303         * lib/.cppi-disable: add strdup.c, gettext.h.
91304
91305 2002-09-25  Karl Berry  <karl@gnu.org>
91306
91307         * config/srclist.txt: enable gettext.h check.
91308         * config/config.{guess,sub}: update from prep.
91309         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91310                 from automake 1.6.3.
91311         See srclist*.
91312
91313 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91314
91315         * regex.c (PATFETCH): Remove the translating fetch.
91316         (PATFETCH_RAW): Rename to PATFETCH.
91317         (set_image_of_range): New fun.
91318         (SET_RANGE_TABLE_WORK_AREA): Use it.
91319         (regex_compile): Don't translate the pattern chars so eagerly.
91320         Only do it when inserting an `exactn' bytecode or when handling
91321         a char-range.
91322         (mutually_exclusive_p): Avoid empty statement.
91323
91324 2002-07-06  Jim Meyering  <meyering@lucent.com>
91325
91326         * m4/README: Don't mention Makefile.am.in.
91327         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91328
91329 2002-07-01  Jim Meyering  <meyering@lucent.com>
91330
91331         * lib/c-stack.c: Include sys/time.h.
91332         From Volker Borchert.
91333
91334 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91335
91336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91337
91338 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91339
91340         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91341         New macro.  Use it uniformly instead of
91342         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91343         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91344         reported by Vin Shelton.
91345
91346 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91347
91348         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91349         Do not assume SA_SIGINFO behavior.
91350         Bug reported by Jim Meyering on NetBSD 1.5.2.
91351
91352 2002-06-22  Jim Meyering  <meyering@lucent.com>
91353
91354         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91355         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91356
91357         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91358         now that configure.ac uses AC_GNU_SOURCE.
91359         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91360         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91361
91362         Update to latest tools.  Suggestions from Paul Eggert.
91363         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91364         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91365         * m4/fnmatch.m4: Likewise.
91366         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91367         to AC_HEADER_STDBOOL
91368
91369 2002-06-22  Jim Meyering  <meyering@lucent.com>
91370
91371         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91372         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91373
91374 2002-06-22  Jim Meyering  <meyering@lucent.com>
91375
91376         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91377
91378         * lib/exitfail.c, exitfail.h: Likewise.
91379         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91380
91381         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91382         of fnmatch.h.
91383         (EXTRA_DIST): Add fnmatch_loop.c.
91384         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91385
91386         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91387         * lib/fnmatch.c: Update from diffutils-2.8.2.
91388         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91389         * lib/fnmatch.h: Remove file.
91390
91391 2002-06-21  Jim Meyering  <meyering@lucent.com>
91392
91393         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91394         * m4/mbrtowc.m4: Likewise.
91395
91396         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91397         * m4/mbswidth.m4: Reflect name change:
91398         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91399         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91400
91401         * m4/lib-link.m4: Update from gettext-0.11.2.
91402         * m4/gettext.m4: Likewise.
91403
91404         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91405         From Alfred M. Szmidt.
91406
91407 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91408
91409         * lib/file-type.h: Report an error if neither S_ISREG nor
91410         S_IFREG is defined, instead of using a test specific to glibc
91411         2.2.  This should be safe, since POSIX requires S_ISREG and
91412         Unix Version 7 had S_IFREG.  We don't need to check for
91413         <sys/types.h> since we don't use any symbols that it defines.
91414
91415 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91416
91417         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91418         $@-t, so that each temporary file name is unique and valid in the first
91419         8 characters, for operation under DOS.
91420
91421 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91422
91423         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91424
91425 2002-06-15  Jim Meyering  <meyering@lucent.com>
91426
91427         Work even with DJGPP 2.03, which lacks support for symlinks.
91428         From Richard Dawe.
91429         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91430         is defined.
91431         * lib/lchown.c (S_ISLNK): Likewise.
91432
91433 2002-06-15  Jim Meyering  <meyering@lucent.com>
91434
91435         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91436         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91437         have been included before this file.
91438
91439 2002-06-14  Jim Meyering  <meyering@lucent.com>
91440
91441         * lib/file-type.h: Use the version from diffutils-2.8.2.
91442         * lib/file-type.c: Likewise.
91443
91444 2002-06-07  Jim Meyering  <meyering@lucent.com>
91445
91446         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91447         They're needed at least for NetBSD 1.5.2.
91448         ($statxfs_includes): Include those same headers.
91449         ($statxfs_includes): Include sys/vfs.h if available.
91450         ($statxfs_includes): Likewise for sys/statvfs.h.
91451         Check for the following members in both structs statfs and statvfs:
91452         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91453
91454 2002-06-01  Jim Meyering  <meyering@lucent.com>
91455
91456         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91457         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91458
91459 2002-05-28  Jim Meyering  <meyering@lucent.com>
91460
91461         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91462         Reported by Volker Borchert.
91463
91464 2002-05-27  Jim Meyering  <meyering@lucent.com>
91465
91466         Fix a problem seen only on nonconforming systems whereby ls.c's
91467         use of localtime, and then of gettimeofday would cause trouble:
91468         the localtime call used to initialize rpl_gettimeofday's save
91469         mechanism would clobber ls's current local time information so
91470         that in any long listing the first file would always be listed
91471         with date 1970-01-01.  Analysis by Volker Borchert.
91472
91473         * lib/gettimeofday.c (localtime): Undefine.
91474         (rpl_localtime): New function.
91475
91476 2002-05-27  Jim Meyering  <meyering@lucent.com>
91477
91478         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91479         localtime.
91480
91481         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91482         use the replacement function; it wouldn't resolve at link time.
91483         Reported by Volker Borchert.
91484
91485 2002-05-22  Jim Meyering  <meyering@lucent.com>
91486
91487         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91488         file-type.h.
91489         * lib/file-type.h: New file.
91490         * lib/file-type.c (file_type): New file/function.  Extracted from
91491         diffutils.
91492
91493 2002-04-30  Jim Meyering  <meyering@lucent.com>
91494
91495         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91496
91497 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91498
91499         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91500
91501 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91502
91503         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91504         Do not check for alloca.h (no longer used) or stdbool.h (was never
91505         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91506
91507 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91508
91509         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91510
91511 2002-04-29  Jim Meyering  <meyering@lucent.com>
91512
91513         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91514         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91515         Use AC_FUNC_STRNLEN here instead.
91516
91517         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91518         With autoconf-2.53a, it's part of AC_PROG_CC.
91519
91520 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91521
91522         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91523         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91524
91525 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91526
91527         * lib/sig2str.h, lib/sig2str.c: New files.
91528         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91529
91530 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91531
91532         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91533         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91534         of 127, since 64 is the largest conceivable number for ancient
91535         nonstandard hosts.
91536         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91537
91538 2002-04-28  Jim Meyering  <meyering@lucent.com>
91539
91540         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91541
91542 2002-04-24  Jim Meyering  <meyering@lucent.com>
91543
91544         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91545         (jm_PREREQ): Use it.
91546
91547         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91548         mach/mach.h fcntl.h.
91549         Check for this function: setlocale.
91550
91551 2002-04-24  Jim Meyering  <meyering@lucent.com>
91552
91553         * lib/gettext.h: New file, from Gettext.
91554         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91555         (libfetish_a_SOURCES): Add gettext.h.
91556
91557 2002-04-16  Jim Meyering  <meyering@lucent.com>
91558
91559         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91560         ut_pid, ut_id, ut_exit.
91561
91562 2002-04-16  Jim Meyering  <meyering@lucent.com>
91563
91564         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91565         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91566         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91567
91568 2002-04-12  Jim Meyering  <meyering@lucent.com>
91569
91570         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91571         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91572         existence of the getmntinfo function.  Needed for Darwin 5.3.
91573
91574         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91575         This is necessary at least on Darwin 5.3.
91576
91577         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91578         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91579         strnlen.o in the library, and that makes some versions of ranlib
91580         object.
91581
91582 2002-04-12  Jim Meyering  <meyering@lucent.com>
91583
91584         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91585
91586 2002-04-09  Jim Meyering  <meyering@lucent.com>
91587
91588         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91589         to be more precise.  Rather than saying we're checking whether the
91590         function `works', say what we're testing.
91591         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91592         Reported by Bruno Haible.
91593
91594 2002-03-10  Jim Meyering  <meyering@lucent.com>
91595
91596         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91597         Suggestion from Santiago Vila.
91598
91599 2002-03-08  Jim Meyering  <meyering@lucent.com>
91600
91601         * lib/rename.c: Mention that this wrapper is needed also on
91602         mips-dec-ultrix4.4 systems.
91603
91604 2002-03-02  Jim Meyering  <meyering@lucent.com>
91605
91606         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91607         not HAVE_CLOCK_SETTIME.
91608
91609 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91610
91611         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91612         Check for clock_settime.
91613
91614 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91615
91616         * lib/nanosleep.h: Rename to....
91617         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91618
91619         * lib/gettime.c: New file.
91620         * lib/settime.c: New file.
91621         * lib/stime.c: Remove.
91622
91623         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91624         timespec.h.  Remove nanosleep.h.
91625
91626 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91627
91628         * m4/acl.m4: New file.
91629         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91630         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91631
91632 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91633
91634         * lib/acl.c, lib/acl.h: New files.
91635         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91636
91637 2002-02-24  Jim Meyering  <meyering@lucent.com>
91638
91639         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91640         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91641         cause trouble.  Reported by Nelson Beebe.
91642
91643 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91644
91645         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91646         compilers that don't know that xalloc_die never returns.
91647
91648 2002-02-20  Jim Meyering  <meyering@lucent.com>
91649
91650         * lib/getdate.c: Regenerate using bison-1.33.
91651
91652 2002-02-17  Jim Meyering  <meyering@lucent.com>
91653
91654         * config/config.guess (main): Don't use `head -1'; it's no longer
91655         portable. Use `sed 1q' instead.
91656
91657 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91658
91659         * m4/codeset.m4: Upgrade to gettext-0.11.
91660         * m4/gettext.m4: Upgrade to gettext-0.11.
91661         * m4/glibc21.m4: Upgrade to gettext-0.11.
91662         * m4/iconv.m4: Upgrade to gettext-0.11.
91663         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91664         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91665         * m4/lib-ld.m4: New file, from gettext-0.11.
91666         * m4/lib-link.m4: New file, from gettext-0.11.
91667         * m4/lib-prefix.m4: New file, from gettext-0.11.
91668         * m4/progtest.m4: Upgrade to gettext-0.11.
91669
91670 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91671
91672         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91673         (jm_PREREQ): Use it.
91674
91675 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91676
91677         * lib/posixver.c, lib/posixver.h: New files.
91678         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91679
91680 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91681             Bruno Haible  <bruno@clisp.org>
91682
91683         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91684         (fwrite_success_callback): New declaration.
91685         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91686         print_unicode_char. Call failure callback instead of error.
91687         (fwrite_success_callback): New function.
91688         (exit_failure_callback): New function.
91689         (fallback_failure_callback): New function.
91690         (print_unicode_char): Call unicode_to_mb.
91691
91692 2002-01-26  Jim Meyering  <meyering@lucent.com>
91693
91694         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91695         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91696
91697 2002-01-26  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91700
91701 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91702
91703         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91704
91705 2002-01-22  Jim Meyering  <meyering@lucent.com>
91706
91707         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91708         Otherwise, some versions of automake would omit the rule that makes
91709         Makefile from Makefile.in.
91710
91711 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91714         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91715         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91716         (memcoll): Set errno to zero if there is no error.
91717
91718         * lib/quotearg.c (quotearg_buffer_restyled):
91719         Fix bug with quoting buffers containing NUL when backslashing escapes.
91720         This bug was exposed by the other changes in this patch.
91721         (quotearg_n_options): New arg ARGSIZE.
91722         All callers changed.
91723         (quoting_options_from_style): New function.
91724         (quotearg_n_style): Use it.
91725         (quotearg_n_style_mem): New function.
91726
91727         * lib/quotearg.h (quotearg_n_style_mem): New function.
91728
91729 2002-01-19  Jim Meyering  <meyering@lucent.com>
91730
91731         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91732         Remove useless quotes: DF_PROG="df".
91733         * m4/strnlen.m4: New file.
91734
91735 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91736
91737         * lib/backupfile.c (ISDIGIT): Comment fix.
91738         * lib/getdate.y (ISDIGIT): Likewise.
91739         * lib/posixtm.c (ISDIGIT, year): Likewise.
91740         * lib/strverscmp.c (ISDIGIT): Likewise.
91741         * lib/userspec.c (ISDIGIT): Likewise.
91742
91743 2002-01-16  Jim Meyering  <meyering@lucent.com>
91744
91745         * lib/getdate.y: Add three semicolons, each just before a closing
91746         brace. Bison (as of version 1.31) no longer papers over that mistake.
91747
91748 2002-01-05  Jim Meyering  <meyering@lucent.com>
91749
91750         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91751
91752 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91753
91754         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91755         not silently exit merely because the output buffer happens to
91756         have nothing pending.
91757
91758 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91759
91760         See the big note in ../ChangeLog.
91761         * lib/human.c (suffixes): Prefer K to k for 1024.
91762         (generate_suffix_backwards): New function.
91763         (human_readable_inexact): Use it.
91764         * lib/xstrtol.c (__xstrtol): If there is no number but there
91765         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91766         Accept 'K' as well as 'k'.
91767
91768 2001-12-15  Jim Meyering  <meyering@lucent.com>
91769
91770         * lib/regex.h (__restrict_arr): Update from libc.
91771
91772         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91773         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91774         (STREQ): Define.
91775
91776 2001-12-14  Jim Meyering  <meyering@lucent.com>
91777
91778         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91779         Suggestion from Bruno Haible.
91780
91781 2001-12-10  Jim Meyering  <meyering@lucent.com>
91782
91783         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91784         xrealloc, Instead, include "xalloc.h".
91785         (initbuffer): Don't cast xmalloc return value to char*.
91786         (readline): Reword comment.
91787         Don't cast xrealloc return value to char*
91788         Return NULL, not 0.
91789
91790 2001-12-09  Jim Meyering  <meyering@lucent.com>
91791
91792         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91793         about `signed and unsigned type in conditional expression'.
91794         * lib/posixtm.c (posix_time_parse): Likewise.
91795
91796         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91797
91798         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91799         to avoid a pedantic warning.
91800
91801         * lib/getstr.c: Don't include assert.h.
91802         (getstr): Remove warning-evoking assertions.
91803         Return -1 if offset parameter is out of bounds.
91804         Change the type of a local from int to size_t.
91805
91806         * lib/strftime.c (my_strftime_localtime_r): Include this function
91807         definition in the `#if ! HAVE_TM_GMTOFF' block.
91808
91809         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91810         Include xalloc.h instead.
91811
91812 2001-12-02  Jim Meyering  <meyering@lucent.com>
91813
91814         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91815         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91816         included.
91817
91818         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91819         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91820
91821 2001-11-30  Akim Demaille  <akim@epita.fr>
91822
91823         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91824         before being defined.
91825
91826 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91827
91828         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91829         First arg is int, not unsigned.
91830         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91831         (SIZE_MAX, UINT_MAX): New macros.
91832         (quotearg_n_options): Abort if N is negative.
91833         Avoid overflow check on hosts where size_t is 64 bits and int
91834         is 32 bits, as overflow is impossible there.
91835         Fix off-by-one typo that caused unnecessary reallocation.
91836
91837 2001-11-27  Jim Meyering  <meyering@lucent.com>
91838
91839         * lib/tempname.c: Merge with version from libc.
91840         * lib/regex.c: Likewise.
91841
91842         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91843         systems for which STDC_HEADERS is 0, it was not included, resulting in
91844         a warning about an integer-to-pointer conversion problem with getenv.
91845         Reported by Volker Borchert.
91846
91847 2001-11-26  Jim Meyering  <meyering@lucent.com>
91848
91849         * lib/gtod.h: Remove file.
91850         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91851         * lib/gettimeofday.c: Don't include gtod.h.
91852         (GTOD_init): Remove function.
91853         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91854         Suggestion from Volker Borchert.
91855
91856 2001-11-23  Jim Meyering  <meyering@lucent.com>
91857
91858         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91859         it.
91860         * lib/hash.c (struct hash_table): Define it here instead.
91861
91862 2001-11-22  Jim Meyering  <meyering@lucent.com>
91863
91864         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91865
91866 2001-11-20  Jim Meyering  <meyering@lucent.com>
91867
91868         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91869         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91870
91871 2001-11-19  Jim Meyering  <meyering@lucent.com>
91872
91873         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91874         directory.  Use "conftestXXXXXX" as the template.
91875         Suggestion from Paul Eggert.
91876
91877         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91878         immediately, so the test doesn't mistakenly hit the max-open-files
91879         limit.
91880
91881 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91882
91883         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91884         (TEMPORARIES): New macro.
91885         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91886         removes an artificial limitation (e.g. HP-UX 10.20, where
91887         TMP_MAX is 17576).
91888
91889 2001-11-18  Jim Meyering  <meyering@lucent.com>
91890
91891         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91892
91893 2001-11-18  Jim Meyering  <meyering@lucent.com>
91894
91895         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91896         on SunOS 4.
91897
91898         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91899         files will be created before anything else.
91900
91901 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91902
91903         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91904         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91905
91906 2001-11-17  Jim Meyering  <meyering@lucent.com>
91907
91908         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91909         Prompted by a report from Bob Proulx.
91910
91911         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91912         Instead, require UTILS_FUNC_MKSTEMP.
91913
91914 2001-11-17  Jim Meyering  <meyering@lucent.com>
91915
91916         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91917         Now, that's done as part of AC_FUNC_STRTOD.
91918
91919 2001-11-17  Jim Meyering  <meyering@lucent.com>
91920
91921         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91922         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91923         rather than group writable.  Patch by Juan F. Codagnone.
91924
91925         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91926         xrealloc, Instead, include "xalloc.h".
91927
91928         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91929         Remove explicit declarations of xmalloc, xrealloc,
91930         and xstrdup.  Instead, include "xalloc.h".
91931
91932         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91933         unlocked-io.h.
91934         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91935         Likewise.
91936         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91937
91938         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91939         Reported by Padraig Brady.
91940
91941         * lib/mkstemp.c: #undef mkstemp.
91942         Include config.h.
91943         (rpl_mkstemp): Rename from mkstemp.
91944         Protoize.
91945
91946 2001-11-16  Jim Meyering  <meyering@lucent.com>
91947
91948         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91949         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91950         determine the amount of total physical memory, use pstat_getstatic.
91951         HPUX-11 doesn't define _SC_PHYS_PAGES.
91952         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91953         If sysconf couldn't be used to determine the amount of available
91954         physical memory, use both pstat_getstatic and pstat_getdynamic.
91955         Based on a patch from Bob Proulx.
91956
91957 2001-11-10  Jim Meyering  <meyering@lucent.com>
91958
91959         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91960         (jm_PREREQ): Use it.
91961
91962 2001-11-09  Jim Meyering  <meyering@lucent.com>
91963
91964         * m4/jm-macros.m4: Require autoconf-2.52f.
91965         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91966         Use these AC_-prefixed names, not the AM_-prefixed ones.
91967
91968         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91969
91970 2001-11-05  Jim Meyering  <meyering@lucent.com>
91971
91972         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91973
91974 2001-11-04  Jim Meyering  <meyering@lucent.com>
91975
91976         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91977         $DEFS.
91978
91979 2001-11-03  Jim Meyering  <meyering@lucent.com>
91980
91981         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91982         of AC_DEFUN.
91983
91984         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91985         know the name of the variable in the macro definition.
91986
91987 2001-11-03  Jim Meyering  <meyering@lucent.com>
91988
91989         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91990         in argmatch_to_argument call.
91991
91992         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91993         argument.
91994
91995         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91996         e.g., a fault due to an attempt to free a NULL pointer.
91997
91998 2001-11-01  Jim Meyering  <meyering@lucent.com>
91999
92000         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92001         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92002
92003 2001-11-01  Jim Meyering  <meyering@lucent.com>
92004
92005         * lib/dirfd.c, lib/dirfd.h: New files.
92006         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92007
92008         * lib/hash.c (hash_print) [TESTING]: Clean up.
92009
92010 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92011
92012         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92013         to avoid a warning if -Wall.
92014
92015 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92016
92017         * README: New file
92018         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92019         (per RMS's instructions, this is now the canonical source)
92020         * lgpl/, gpl/: New directories.
92021
92022 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92023
92024         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92025
92026 2001-10-21  Jim Meyering  <meyering@lucent.com>
92027
92028         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92029         this code would end up calling gettext even in packages built
92030         with --disable-nls.
92031         * lib/getopt.c (_): Likewise.
92032         * lib/regex.c (_): Likewise.
92033
92034 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92035
92036         * m4/error.m4 (jm_PREREQ_ERROR):
92037         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92038         AC_FUNC_STRERROR_R does that.
92039         Check for strerror declaration.
92040
92041         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92042         are supposed to have them these days.
92043         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92044         Merge changes from latest Autoconf CVS.
92045         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92046         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92047         POSIX decided to standardize on the int flavor of strerror_r.
92048
92049 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92050
92051         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92052         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92053         Use strerror_r that is only a macro, even if it is not a function.
92054         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92055         (private_strerror): Use prototypes, not old-style function definition.
92056         (print_errno_message): New function.
92057         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92058         char*-flavored one.
92059         (error_tail, error, error_at_line): Use it.
92060
92061 2001-10-11  Jim Meyering  <meyering@lucent.com>
92062
92063         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92064         and quote_n (1, ... to avoid clobbering a buffer.
92065
92066 2001-10-05  Jim Meyering  <meyering@lucent.com>
92067
92068         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92069         hash-pjw.h.
92070         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92071         * lib/hash-pjw.h: New file.
92072
92073 2001-09-30  Jim Meyering  <meyering@lucent.com>
92074
92075         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92076         `struct fsstat' has the `f_fstypename' member.
92077         Use that to define FS_TYPE, which is now used to make
92078         the getfsstat link test tighter.
92079
92080 2001-09-30  Jim Meyering  <meyering@lucent.com>
92081
92082         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92083         Include <sys/ucred.h>, for Apple Darwin.
92084         Include sys/mount.h and sys/fs_types.h only if available.
92085         (FS_TYPE): Define.
92086         (read_filesystem_list): Use FS_TYPE.
92087
92088 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92089
92090         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92091         a boolean context.
92092
92093 2001-09-29  Jim Meyering  <meyering@lucent.com>
92094
92095         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92096         [one-argument getmntent function]): Include stdio.h before mntent.h.
92097         SunOS 4.1.x needs it for the declaration of `FILE'.
92098         Patch by Volker Borchert.
92099
92100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92101         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92102         sys/fs_types.h, and make the link-test for getfsstat guard #include
92103         directives with appropriate #if HAVE_*_H tests so that we can
92104         detect getfsstat on Apple Darwin1.3.7 systems.
92105         Reported by Nelson Beebe.
92106         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92107
92108 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92109
92110         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92111         #defines strtoimax.  Also treat the other strto* functions
92112         like strtoimax.
92113
92114         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92115         Check for strtoul and strtoumax,
92116         as those declarations are made even in the signed case.
92117         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92118         Likewise, for strtol and strtoimax.
92119
92120 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92121
92122         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92123         #defines strtoimax.  Also treat the other strto* functions
92124         like strtoimax.
92125
92126         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92127         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92128         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92129
92130 2001-09-26  Jim Meyering  <meyering@lucent.com>
92131
92132         Most macros in unlocked-io.h had the wrong number of arguments.
92133         * lib/gen-uio: New script.
92134         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92135         * lib/unlocked-io.hin: Remove file.
92136         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92137         rather than trying to embed it here.
92138         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92139         Reported by Padraig Brady.
92140
92141 2001-09-25  Volker Borchert  <bt@teknon.de>
92142
92143         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92144         `result'.
92145
92146 2001-09-24  Jim Meyering  <meyering@lucent.com>
92147
92148         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92149
92150 2001-09-23  Jim Meyering  <meyering@lucent.com>
92151
92152         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92153         instead of the mere test for existence of mntent.h.  The latter
92154         would get a false-positive on AIX 3.4 systems.
92155         In the outer getmntent if-block, don't die if neither of the getmntent
92156         tests succeeds.  Instead, just fall through and continue with the
92157         remaining tests.
92158
92159 2001-09-23  Jim Meyering  <meyering@lucent.com>
92160
92161         * lib/mountlist.c: Remove useless parentheses in #if directives.
92162         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92163         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92164
92165 2001-09-22  Jim Meyering  <meyering@lucent.com>
92166
92167         * m4/gettext.m4: New file.  From gettext.
92168         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92169         * m4/progtest.m4: Likewise
92170         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92171         * m4/glibc21.m4: Likewise.
92172
92173         * m4/libintl.m4: Remove.  No longer used.
92174
92175 2001-09-22  Jim Meyering  <meyering@lucent.com>
92176
92177         * lib/localcharset.c: Update from latest gettext.
92178         * lib/config.charset: Likewise.
92179
92180 2001-09-20  Jim Meyering  <meyering@lucent.com>
92181
92182         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92183         strtoimax.
92184         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92185         strtoumax.
92186
92187 2001-09-20  Jim Meyering  <meyering@lucent.com>
92188
92189         * lib/xstrtol.c (strtoimax): Guard declaration with
92190         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92191         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92192         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92193         (strtoumax): Likewise, for completeness (it wasn't necessary).
92194
92195 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92196
92197         * lib/strtoimax.c (HAVE_LONG_LONG):
92198         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92199         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92200         to work around bug in IBM C compiler.
92201
92202 2001-09-17  Jim Meyering  <meyering@lucent.com>
92203
92204         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92205         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92206         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92207         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92208         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92209         whenever the right hand side need not be expanded by the shell.
92210
92211 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92212
92213         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92214         library.  It's not correct, as some older glibcs are buggy.
92215         fnmatch wasn't fixed until glibc 2.2.
92216
92217         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92218         special shell magic here.
92219
92220 2001-09-16  Jim Meyering  <meyering@lucent.com>
92221
92222         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92223         * m4/jm-macros.m4: Require it.
92224
92225 2001-09-16  Jim Meyering  <meyering@lucent.com>
92226
92227         * lib/mkdir.c: New file.
92228
92229 2001-09-15  Jim Meyering  <meyering@lucent.com>
92230
92231         * m4/jm-macros.m4: Check for help2man.
92232
92233 2001-09-11  Jim Meyering  <meyering@lucent.com>
92234
92235         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92236         The body, by Paul Eggert, was moved here from configure.in.
92237         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92238
92239 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92240
92241         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92242         (jm_PREREQ): Use it.
92243
92244 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92245
92246         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92247         Use ssize_t, not int, to store result of readlink.
92248         Check for ssize_t overflow as well as size_t overflow,
92249         as POSIX says the result of readlink is implementation-defined
92250         when ssize_t overflows.
92251         Remove unnecessary cast to char*.
92252         Use free+malloc instead of realloc, as the storage doesn't need
92253         to be preserved and it's clearer and can be more efficient that way.
92254         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92255         * lib/xreadlink.h (xreadlink): Update prototype.
92256
92257 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92258
92259         * lib/xgetcwd.c: Revert some of the previous change; intead,
92260         fix the HAVE_GETCWD_NULL code to behave more like the
92261         !HAVE_GETCWD_NULL code used to.
92262
92263         Include "xalloc.h".
92264         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92265         invoke xalloc_die.
92266
92267 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92268
92269         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92270         sys/param.h, as pathmax.h includes them.
92271
92272 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92273
92274         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92275         (jm_PREREQ_XGETCWD): New macro.
92276
92277         * m4/getcwd.m4: New file.
92278
92279 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92280
92281         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92282         like the HAVE_GETCWD_NULL code.
92283         Include pathmax.h if not HAVE_GETCWD.
92284         Do not include xalloc.h.
92285         (INITIAL_BUFFER_SIZE): New symbol.
92286         Do not use xmalloc / xrealloc, since the caller is responsible for
92287         handling errors.  Preserve errno around `free' during failure.
92288         Do not overrun buffer when using getwd.
92289
92290 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92291
92292         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92293         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92294         getcwd (NULL, 0).
92295
92296 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92297
92298         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92299         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92300         spotted by Jim Meyering.
92301
92302 2001-09-03  Jim Meyering  <meyering@lucent.com>
92303
92304         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92305         failure.
92306
92307 2001-09-02  Jim Meyering  <meyering@lucent.com>
92308
92309         * lib/error.c: Update from GNU libc.
92310
92311 2001-09-01  Jim Meyering  <meyering@lucent.com>
92312
92313         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92314         Used by df.
92315
92316 2001-09-01  Jim Meyering  <meyering@lucent.com>
92317
92318         * lib/xreadlink.c: New file.
92319         * lib/xreadlink.h: New file.
92320         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92321         xreadlink.h.
92322
92323         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92324         doesn't conflict with sparc Solaris 7's definition in
92325         /usr/include/sys/int_types.h.
92326
92327         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92328         files.
92329         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92330         and strncasecmp as r-values.  Unixware didn't have declarations.
92331
92332 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92333
92334         * lib/xstrtol.h: Add copyright notice.
92335         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92336         LONGINT_INVALID_SUFFIX_CHAR.
92337
92338 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92339
92340         * lib/xstrtol.c (strtoimax): New decl.
92341
92342 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92343
92344         * lib/xgetcwd.c: Don't include pathmax.h.
92345         Include stdlib.h and unistd.h if available.
92346         Include xalloc.h.
92347         (xmalloc, xstrdup, free): Remove decls.
92348         (xgetcwd): Don't assume sizes fit in unsigned.
92349         Check for overflow when computing sizes.
92350         Simplify reallocation code.
92351
92352 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92353
92354         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92355         a directory's st_size can have an arbitrary value, so the old
92356         usage could waste an arbitrary amount of memory.  All uses
92357         changed.
92358         * lib/savedir.h: Update prototype.
92359
92360 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92361
92362         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92363
92364         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92365         old strtoimax.c.
92366
92367         Also, make the following further changes to make this file's
92368         configuration more similar to that of strtol.c:
92369         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92370         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92371         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92372         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92373         changed to signed values.
92374
92375         And make the following changes as well:
92376         Fix copyright notice, as 1999 was missing.
92377         (verify): New macro.
92378         (strtoimax): Check sizes at compile-time, not run-time.
92379         Prefer strtol to strtoll if both work.
92380         (main): Remove; it was not that useful and was a pain to maintain.
92381
92382         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92383
92384 2001-08-31  Jim Meyering  <meyering@lucent.com>
92385
92386         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92387         Use an initial, malloc'd, buffer of length 128 rather than
92388         a statically allocated one of length 1024.
92389
92390 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92391
92392         Simplify code, partly by assuming autoconf 2.52 semantics.
92393
92394         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92395
92396         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92397         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92398         All uses removed.
92399         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92400         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92401         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92402         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92403         jm_AC_HEADER_INTTYPES_H.
92404         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92405
92406         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92407
92408         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92409         Quote first arg of AC_DEFUN.
92410         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92411         since they are needed to parse the include file even if we need
92412         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92413         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92414         but with opposite signedness.
92415
92416 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92417
92418         Merge 'exclude' changes from tar 1.13.22.
92419         This fixes one or two unlikely storage allocation overflow bugs,
92420         but doesn't change user-visible behavior otherwise.
92421
92422 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92423
92424         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92425         (jm_PREREQ_EXCLUDE): New macro.
92426
92427 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92428
92429         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92430         tm to be declared.
92431
92432 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92433
92434         * lib/hash.c: Remove '2001' from copyright notice.
92435
92436 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92437
92438         * lib/full-write.h: New file.
92439         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92440         * lib/full-write.c: Correct credits, as cccp.c no longer
92441         exists and anyway it was so heavily changed from the old cccp
92442         code as to be unrecognizable.  Include full-write.h.
92443         (full_write): Return size_t, with short writes meaning failure.
92444         All callers changed.  This fixes a bug with large buffers
92445         on 64-bit hosts.
92446         * lib/utime.c: Include full-write.h.
92447
92448 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92449
92450         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92451         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92452         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92453         Include if available.
92454         (<xalloc.h>): Include
92455         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92456         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92457         collide with FNM macros.
92458         (struct patopts): New struct.
92459         (struct exclude): Use it, as exclude patterns now come with options.
92460         (new_exclude): Support above changes.
92461         (new_exclude, add_exclude_file):
92462         Initial size must now be a power of two to simplify overflow checking.
92463         (free_exclude, fnmatch_no_wildcards): New function.
92464         (excluded_filename): No longer requires options arg, as the options
92465         are determined by add_exclude.  Now returns bool, not int.
92466         (excluded_filename, add_exclude):
92467         Add support for the fancy new exclusion options.
92468         (add_exclude, add_exclude_file): Now takes int options arg.
92469         Check for arithmetic overflow when computing sizes.
92470         (add_exclude_file): xrealloc might modify errno, so don't
92471         realloc until after errno might be used.
92472
92473         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92474         New macros.
92475         (free_exclude): New decl.
92476         (add_exclude, add_exclude_file): Now takes int options arg.
92477         (excluded_filename): No longer requires options arg, as the options
92478         are determined by add_exclude.  Now returns bool, not int.
92479
92480 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92481
92482         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92483
92484 2001-08-27  Jim Meyering  <meyering@lucent.com>
92485
92486         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92487
92488         * lib/version-etc.c (N_): Remove definition.
92489         Revert most of last change.
92490         Instead, simply don't mark the `Copyright...' string for translation.
92491         Based on advice from Paul Eggert.
92492
92493         * lib/strtoxmax.c: Tweak comment.
92494
92495 2001-08-26  Jim Meyering  <meyering@lucent.com>
92496
92497         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92498
92499         * m4/xstrtoimax.m4: New file.
92500         * m4/xstrtoumax.m4: Add comments explaining why we
92501         AC_REPLACE_FUNCS(strtol).
92502
92503 2001-08-26  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92506         of copyright with `%s' so translators don't get an untranslated
92507         message in 2002.
92508         (COPYRIGHT_YEAR): Define.
92509         (version_etc): Use fprintf rather than fputs.
92510         Suggestion from Ulrich Drepper.
92511
92512         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92513
92514         * lib/strtoll.c: New file, from GNU libc.
92515         * lib/xstrtoimax.c: New file.
92516
92517         * lib/xstrtol.h: Add xstrtoimax.
92518         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92519         * lib/strtoimax.c: New file.  Likewise, but first define
92520         STRTOUXMAX_SIGNED.
92521
92522         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92523         ...
92524         * lib/strtoxmax.c: ... then renamed to this.
92525
92526 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92527
92528         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92529         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92530         (jm_AC_TYPE_INTMAX_T): New macro.
92531         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92532
92533         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92534
92535         * m4/longlong.m4: Renamed from ulonglong.m4.
92536         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92537         * m4/uintmax_t.m4: Removed.
92538
92539 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92540
92541         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92542         Port to Solaris 8, where 'sed' requires a space after the 'r'
92543         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92544         Redirect output to $tmp just once.
92545
92546 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92547
92548         * lib/addext.c (<errno.h>): Include.
92549         (errno): Declare if not defined.
92550         (addext): Work correctly when pathconf returns -1 and leaves
92551         errno alone because there is no limit.  Also, work even if
92552         pathconf returns a value greater than SIZE_MAX.
92553
92554 2001-08-12  Jim Meyering  <meyering@lucent.com>
92555
92556         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92557         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92558         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92559         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92560         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92561         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92562         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92563         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92564         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92565         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92566         utime.m4, utimes.m4, xstrtoumax.m4:
92567         Quote the first argument in each use of AC_DEFUN.
92568
92569 2001-08-12  Jim Meyering  <meyering@lucent.com>
92570
92571         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92572         Simply `return getcwd (NULL, 0);'.
92573         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92574         Use 1300 as initial value for length, not PATH_MAX.
92575
92576         * lib/pathmax.h: Clean up cpp syntax.
92577
92578 2001-08-12  Jim Meyering  <meyering@lucent.com>
92579
92580         * lib/gettimeofday.c: New file.
92581         * lib/gtod.h: New file.
92582         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92583
92584 2001-08-05  Jim Meyering  <meyering@lucent.com>
92585
92586         * m4/jm-macros.m4: Require autoconf-2.52.
92587
92588 2001-08-04  Jim Meyering  <meyering@lucent.com>
92589
92590         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92591         stmt, to get in sync with glibc.
92592
92593 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92594
92595         The following changes are from gettext 0.10.39 as maintained by
92596         Bruno Haible.
92597
92598         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92599         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92600         with inverted sense.  All uses changed.
92601
92602         * lib/mbswidth.c: Don't include <limits.h>.
92603         Include <stdlib.h> and <string.h> unconditionally.
92604         (iswcntrl, mbsinit, ISCNTRL): New macros.
92605         (mbsnwidth): Use K&R style function declarations.
92606         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92607         can optimize it when MB_CUR_MAX == 1.
92608         The width of control characters is zero, not 1.
92609
92610 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92611
92612         The following changes are from gettext 0.10.39 as maintained by
92613         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92614
92615         * m4/codeset.m4: Upgrade to serial AM1.
92616         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92617         all uses changed.  Quote first arg of AC_DEFUN.
92618         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92619
92620         * m4/iconv.m4: Upgrade to serial AM2.
92621         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92622         Add --with-libconv-prefix.
92623         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92624         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92625         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92626         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92627         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92628
92629         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92630         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92631         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92632         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92633         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92634         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92635         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92636         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92637         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92638
92639         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92640         string.h any more.
92641
92642         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92643         not the default value.
92644
92645         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92646         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92647         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92648         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92649         Also check for iswcntrl, used for wcwidth fallback.
92650         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92651         to Autoconf 2.13.
92652
92653 2001-08-03  Jim Meyering  <meyering@lucent.com>
92654
92655         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92656         as it was in the original.  Reported by Paul Eggert.
92657
92658 2001-07-16  Jim Meyering  <meyering@lucent.com>
92659
92660         * m4/gettimeofday.m4: New file.
92661         Prompted by a report from Bernhard Baehr.
92662
92663 2001-07-15  Jim Meyering  <meyering@lucent.com>
92664
92665         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92666         stuff. Now it's in ../Makefile.cfg.
92667
92668 2001-07-15  Jim Meyering  <meyering@lucent.com>
92669
92670         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92671         (BUILT_SOURCES): Add unlocked-io.h.
92672         (io_functions): Define.
92673         (unlocked-io.h): New rule.
92674         (DISTCLEANFILES): Add unlocked-io.h.
92675         (all-local): Depend on unlocked-io.h, to ensure it is created.
92676
92677         * lib/unlocked-io.hin: New file
92678
92679         * lib/regex.c: Update from glibc.
92680
92681 2001-07-05  Jim Meyering  <meyering@lucent.com>
92682
92683         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92684         recommendation.
92685         (libfetish_a_SOURCES): Put all .h files here instead.
92686         Remove a thus-exposed (better checks in automake) duplicate and
92687         two unnecessary .h files.
92688
92689 2001-07-04  Jim Meyering  <meyering@lucent.com>
92690
92691         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92692         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92693         distcheck failure.
92694
92695 2001-07-02  Jim Meyering  <meyering@lucent.com>
92696
92697         The following changes were prompted by suggestions from Bruno Haible.
92698
92699         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92700         is now generated.
92701         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92702         definition of EXTRA_DIST.
92703         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92704         ensure that the generated file is created/updated whenever the list
92705         of $(unlocked_functions) is changed.
92706         (jm-glibc-io.m4): New rule.
92707         (unlocked-io.h): New rule -- currently unused.
92708
92709 2001-06-24  Jim Meyering  <meyering@lucent.com>
92710
92711         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92712         unmatched right bracket, rather than kludging it with an extra,
92713         falsely-matching quote in a comment.  Patch by Akim Demaille.
92714
92715 2001-06-11  Jim Meyering  <meyering@lucent.com>
92716
92717         * lib/regex.c: Update from GNU libc.
92718
92719 2001-05-27  Jim Meyering  <meyering@lucent.com>
92720
92721         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92722         Check for ut_type in struct utmp.
92723
92724 2001-05-27  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/readutmp.h (UT_TYPE): Define.
92727
92728 2001-05-24  Jim Meyering  <meyering@lucent.com>
92729
92730         * lib/argmatch.c: Include "quote.h".
92731         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92732         quote function.  Reported by Göran Uddeborg.
92733
92734 2001-05-22  Jim Meyering  <meyering@lucent.com>
92735
92736         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92737         now that we use the package-supplied version unconditionally.
92738         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92739
92740 2001-05-21  Jim Meyering  <meyering@lucent.com>
92741
92742         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92743         shell syntax errors.
92744
92745 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92746
92747         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92748
92749 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92750
92751         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92752         Don't bother to check library strftime, since
92753         we'll be using our own my_strftime function anyway.
92754         Define my_strftime instead of strftime.
92755
92756 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92757
92758         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92759         which is not yet declared.
92760
92761 2001-05-15  Jim Meyering  <meyering@lucent.com>
92762
92763         * m4/regex.m4: Use proper quoting so brackets appear in the test
92764         program.
92765         Reported by, and with help from, Bruno Haible.
92766
92767 2001-05-13  Jim Meyering  <meyering@lucent.com>
92768
92769         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92770         undefined.
92771
92772 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92773
92774         dirname code cleanup.  base_name now behaves more compatibly
92775         with POSIX basename when given file names that have trailing
92776         slashes, and similarly for dir_name.  Add new primitives
92777         base_len and dir_len.  Put the directory-name-related decls
92778         into dirname.h.
92779
92780         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92781         * lib/backupfile.c (base_name): Likewise.
92782         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92783         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92784         * lib/makepath.c (strip_trailing_slashes): Likewise.
92785         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92786         ISSLASH): Likewise.
92787         * lib/rename.c (strip_trailing_slashes): Likewise.
92788         * lib/same.c (base_name): Likewise.
92789         * lib/stripslash.c (ISSLASH): Likewise.
92790
92791         * lib/addext.c: Include <dirname.h> after size_t is defined.
92792         * lib/backupfile.c: Likewise.
92793
92794         * lib/addext.c (addext): Use base_len to trim redundant
92795         trailing slashes instead of doing it ourselves.
92796         But do not trim the last slash if it is not redundant.
92797
92798         * lib/backupfile.c (find_backup_file_name,
92799         max_backup_version): Use base_len instead of rolling it ourselves.
92800         Handle the case of "" and (on DOS) "C:" correctly.
92801
92802         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92803         needed. Include <string.h>, <dirname.h>.
92804         (base_name): Allow file names ending in slashes, other than names
92805         that are all slashes.  In this case, return the basename followed
92806         by the slashes.  This is more general, and can be used in places
92807         where the original base_name purposely had an assertion failure.
92808         (base_len): New function.
92809
92810         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92811         Do not include <assert.h>; no longer needed.
92812         Include xalloc.h.
92813         (memrchr): Remove decl.
92814         (dir_name_r): Remove.
92815         (dir_len): Renamed from dirlen.  All callers changed.
92816         Rewrite in terms of base_name, for simplicity and consistency.
92817         (dir_name): Never return NULL.  All callers changed.
92818         Do not include <stdlib.h> in test program; no longer needed.
92819         return 0; is fine for test program.
92820
92821         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92822         New macros.
92823         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92824
92825         * lib/path-concat.c (path_concat): Use base_len to compute
92826         base length, not strlen; this means we cannot rely on memcpy
92827         to null-terminate.
92828
92829         * lib/same.c (STREQ): Remove.
92830         (same_name): Handle the case where the basename ends in trailing '/'.
92831
92832         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92833         a slash was stripped.  Do not strip the last slash after a
92834         file system prefix.
92835
92836 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92837
92838         * lib/Makefile.am (libfetish_a_SOURCES):
92839         Add strftime.c, since we now compile it on all hosts.
92840
92841         * lib/strftime.c (my_strftime):
92842         Define to nstrftime if emacs, but only if my_strftime is not defined.
92843         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92844         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92845         Add one more extra argument: a nanoseconds value.
92846         All uses changed.
92847         (ns): New macro.
92848         (my_strftime function): Add %N format.
92849         (emacs_strftimeu): Renamed from emacs_strftime,
92850         with extra ut argument.
92851
92852 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92853
92854         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92855
92856 2001-04-21  Jim Meyering  <meyering@lucent.com>
92857
92858         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92859         doesn't interfere.
92860
92861 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92862
92863         * m4/ftruncate.m4: Check for chsize.
92864         Link with ftruncate.o unconditionally if ftruncate is missing.
92865         This was required when cross-compiling to i586-mingw32msvc.
92866
92867 2001-04-08  Jim Meyering  <meyering@lucent.com>
92868
92869         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92870         recomputed; that's necessary when the offset spans a DST transition.
92871         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92872
92873 2001-04-02  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/regex.h, regex.c: Update from GNU libc.
92876
92877 2001-03-24  Jim Meyering  <meyering@lucent.com>
92878
92879         * m4/jm-macros.m4: Require autoconf-2.49d.
92880
92881 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92882
92883         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92884
92885 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92886
92887         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92888
92889 2001-03-17  Jim Meyering  <meyering@lucent.com>
92890
92891         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92892         now that the version in autoconf is equivalent.
92893         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92894
92895         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92896         Suggestion from Akim Demaille.
92897
92898         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92899         (jm_PREREQ_TEMPNAME): New function.
92900
92901 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92902
92903         * lib/tempname.c (uint64_t): Define to uintmax_t if
92904         not defined, and if UINT64_MAX is not defined.
92905         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92906         Reported by John David Anglin.
92907
92908 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92909
92910         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92911         resolve alias if codeset is empty.
92912         * lib/config.charset (BeOS): Use wildcard syntax.
92913
92914 2001-03-13  Jim Meyering  <meyering@lucent.com>
92915
92916         * lib/path-concat.c (path_concat)
92917         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92918         concatenating e.g., `C:' and `foo'.
92919         From Bruno Haible.
92920
92921 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92922
92923         * lib/localcharset.c (locale_charset): Don't use
92924         setlocale(LC_CTYPE,NULL). Don't return NULL.
92925         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92926
92927 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92928
92929         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92930         support for DOS/DJGPP.
92931
92932 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92933
92934         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92935         lacks mkstemp.  Compile our own tempname.c if we compile our own
92936         mkstemp.c, as mkstemp relies on tempname.
92937
92938 2001-03-01  Jim Meyering  <meyering@lucent.com>
92939
92940         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92941         AH_VERBATIM really does output its argument verbatim.
92942
92943 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92944
92945         * lib/Makefile.am (libfetish_a_SOURCES):
92946         Add dup-safer.c, fopen-safer.c.
92947         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92948
92949         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92950         * lib/unistd-safer.h: New files.
92951
92952 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92953
92954         The mkstemp replacement is taken from glibc 2.2.2, with some
92955         portability fixes for use outside glibc, as follows:
92956
92957         * lib/tempname.c (struct_stat64): New macro.
92958         (direxists, __gen_tempname): Use it.
92959         This avoids a portability problem with Solaris 8.
92960
92961         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92962         (<stddef.h>, <stdint.h>, <string.h>):
92963         Include only if STDC_HEADERS || _LIBC.
92964         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92965         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92966         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92967         (__set_errno): Define this macro if <errno.h> doesn't.
92968         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92969         Define these macros if <stdio.h> doesn't.
92970         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92971         Define these macros if <sys/stat.h>
92972         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92973         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92974         __xstat64): Define if not _LIBC.
92975         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92976         (__gen_tempname): Invoke gettimeofday only if
92977         HAVE_GETTIMEOFDAY || _LIBC;
92978         otherwise, fall back on plain "time".
92979         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92980
92981         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92982
92983         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92984
92985 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92986
92987         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92988
92989 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92990
92991         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92992         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92993         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92994         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92995
92996 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92997
92998         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92999         Remove workaround macros for hosts that have mbrtowc but not
93000         mbstate_t, as we now insist on proper declarations for both
93001         before using mbrtowc.
93002
93003 2001-02-17  Jim Meyering  <meyering@lucent.com>
93004
93005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93006         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93007         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93008         UnixWare 7.1.1.
93009
93010         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93011         rather than AC_CACHE_VAL.
93012
93013 2001-02-17  Jim Meyering  <meyering@lucent.com>
93014
93015         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93016         around included file name.
93017
93018         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93019
93020         * lib/strftime.c: Update from GNU libc (the only changes were to
93021         comments).
93022
93023 2001-02-17  Jim Meyering  <meyering@lucent.com>
93024
93025         * lib/regex.c: Update from libc.
93026
93027 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93028
93029         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93030         clash.
93031
93032 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93033
93034         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93035         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93036         Reported by Mark Hounschell via Paul Eggert.
93037
93038 2001-02-07  Jim Meyering  <meyering@lucent.com>
93039
93040         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93041
93042 2001-02-05  Jim Meyering  <meyering@lucent.com>
93043
93044         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93045         it includes the patch required for `large file' support with at least
93046         HP-UX's 10.20 /bin/cc.
93047
93048 2001-02-03  Jim Meyering  <meyering@lucent.com>
93049
93050         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93051         AS_IF, now that it works once again (mysteriously).
93052         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93053
93054 2001-01-30  Jim Meyering  <meyering@lucent.com>
93055
93056         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93057         * m4/chown.m4: Rename conftestchown to conftest.chown.
93058         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93059         s/conftestdir2/conftest.d2/.
93060         * m4/utimes.m4: s/conftestdata/conftest.data/
93061         Inspired by Pavel Roskin's change in autoconf.
93062
93063 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93064
93065         * lib/config.charset: Update for FreeBSD 4.2.
93066
93067 2001-01-27  Jim Meyering  <meyering@lucent.com>
93068
93069         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93070         a use of AS_IF.
93071         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93072
93073 2001-01-26  Jim Meyering  <meyering@lucent.com>
93074
93075         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93076         quotearg.c includes it.
93077
93078 2001-01-26  Jim Meyering  <meyering@lucent.com>
93079
93080         * lib/quotearg.c: Include stddef.h.
93081         * lib/quote.c: Include stddef.h.
93082         Reported by Axel Kittenberger.
93083
93084         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93085         line in double quotes so that it evokes a better diagnostic.
93086         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93087         Reported by Axel Kittenberger.
93088
93089 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93090
93091         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93092         as if it was a `charset'.
93093
93094 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93095
93096         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93097         has const.
93098
93099 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93100
93101         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93102         to avoid a warning.  Add back 'const' to inptr.
93103
93104 2001-01-20  Jim Meyering  <meyering@lucent.com>
93105
93106         Be sure that headers are checked before used in code compiled
93107         for the type checks.
93108         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93109         In place of that, invoke jm_CHECK_ALL_TYPES.
93110         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93111         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93112         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93113         The check for ssize_t was mistakenly run before the test for unistd.h.
93114
93115         The configure-time check for stdbool.h was missing.
93116         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93117         (jm_PREREQ_HASH): New function.
93118
93119 2001-01-17  Jim Meyering  <meyering@lucent.com>
93120
93121         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93122         for autoconf-2.49c.
93123         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93124
93125 2001-01-16  Jim Meyering  <meyering@lucent.com>
93126
93127         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93128         From Bruno Haible.
93129
93130 2001-01-14  Jim Meyering  <meyering@lucent.com>
93131
93132         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93133         foo and bar.  Create conftestdir/ in the script, not in the C code.
93134         Remove directories in the script, not in the C code.
93135         Remove conftestdir{,2} before trying to create the directory.
93136         Make the entire configure script fail if the mkdir fails.
93137
93138 2001-01-14  Jim Meyering  <meyering@lucent.com>
93139
93140         * lib/rename.c: New file.  From Volker Borchert.
93141         Include stdlib.h, string.h or strings.h, and xalloc.h.
93142         Use strip_trailing_slashes rather than open-coding it.
93143
93144 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93145
93146         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93147
93148 2001-01-03  Jim Meyering  <meyering@lucent.com>
93149
93150         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93151         of local `inptr' to avoid warning with some system declarations of
93152         iconv.
93153
93154 2001-01-02  Volker Borchert  <bt@teknon.de>
93155
93156         * m4/rename.m4: New file.
93157         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93158
93159 2001-01-01  Jim Meyering  <meyering@lucent.com>
93160
93161         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93162         even on systems with utmpx.h.  It's necessary for the declaration of
93163         utmp's ut_user member.  Reported by Andreas Jaeger.
93164
93165         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93166         available. They are required for the declarations of getgrgid and
93167         getpwuid resp.
93168         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93169         Reported by Andreas Jaeger.
93170
93171 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93172
93173         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93174         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93175         so `make install' also works in VPATH builds.
93176
93177 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93178
93179         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93180         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93181         can be used in subdirectories.
93182
93183 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93184
93185         * lib/modechange.c: Do not assume that mode_t uses the
93186         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93187         the other-execute bit of FOO even if S_IXOTH != 1.
93188
93189         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93190         WOTH, XOTH, ALLM): New macros.
93191         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93192          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93193         Use them.
93194         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93195         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93196         (mode_compile):
93197         No need to use uintmax_t; unsigned long is long enough.
93198         Don't bother to get suffix since we don't use it.
93199
93200 2000-12-26  Jim Meyering  <meyering@lucent.com>
93201
93202         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93203         better with autoheader.
93204
93205 2000-12-24  Jim Meyering  <meyering@lucent.com>
93206
93207         * lib/hash.c (is_prime): Return explicit boolean values.
93208         (hash_get_first): Return NULL to appease Irix5.6's 89.
93209         Reported by Nelson Beebe.
93210
93211 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93212
93213         * lib/localcharset.c (locale_charset): Add support for Win32.
93214
93215 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93216
93217         * lib/physmem.h, lib/physmem.c: New files.
93218
93219         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93220         (noinst_HEADERS): Add physmem.h.
93221
93222         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93223         't' for compatibility with Solaris 8 sort.
93224
93225 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93226
93227         * lib/config.charset: Add support for BeOS.
93228
93229 2000-12-17  Jim Meyering  <meyering@lucent.com>
93230
93231         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93232         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93233
93234 2000-12-16  Jim Meyering  <meyering@lucent.com>
93235
93236         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93237         N and M) would have treated it like `chown N:N FILE'.
93238
93239         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93240
93241 2000-12-16  Jim Meyering  <meyering@lucent.com>
93242
93243         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93244         SHELLS_FILE to a file name that's useful on djgpp systems.
93245         Include stdlib.h.
93246         (ADDITIONAL_DEFAULT_SHELLS): Define.
93247         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93248         Based mostly on a patch from Prashant TR.
93249
93250 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93251
93252         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93253         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93254         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93255
93256 2000-12-08  Andreas Schwab  <schwab@suse.de>
93257
93258         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93259         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93260
93261 2000-12-07  Jim Meyering  <meyering@lucent.com>
93262
93263         * lib/stripslash.c (ISSLASH): Define.
93264         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93265         `/'.
93266         From Prashant TR.
93267
93268         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93269         (dir_name_r): Declare this function as static.
93270         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93271         manifest itself on a name containing a mix of slashes and
93272         backslashes.
93273         Make this function work with names starting with a DOS-style
93274         drive letter and colon prefix.
93275         (dir_name): Append `.' if necessary.
93276         Based mostly on patches from Prashant TR and Eli Zaretskii.
93277
93278         * lib/dirname.h (dir_name_r): Remove prototype.
93279
93280 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93281
93282         * m4/off_t-format.m4: Remove this file.
93283         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93284
93285 2000-12-06  Jim Meyering  <meyering@lucent.com>
93286
93287         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93288         replacement strtoull, we may well need the replacement strtoul, too.
93289         Check for declarations of strtoul and strtoull.
93290         Check for strtol.  Mainly as a cue to cause automake to include
93291         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93292         Check for limits.h -- strtol.c needs it.
93293
93294 2000-12-05  Jim Meyering  <meyering@lucent.com>
93295
93296         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93297
93298 2000-12-04  Jim Meyering  <meyering@lucent.com>
93299
93300         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93301         Also include memory.h, stdlib.h, unistd.h if appropriate.
93302         Reported by Andreas Jaeger (conflicting declaration of malloc).
93303
93304 2000-12-02  Jim Meyering  <meyering@lucent.com>
93305
93306         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93307         * m4/jm-macros.m4 (jm_MACROS): require it.
93308
93309 2000-12-02  Jim Meyering  <meyering@lucent.com>
93310
93311         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93312
93313 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93314
93315         * lib/memrchr.c: Include <config.h> before any system include file.
93316
93317 2000-11-30  Jim Meyering  <meyering@lucent.com>
93318
93319         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93320
93321 2000-11-30  Jim Meyering  <meyering@lucent.com>
93322
93323         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93324
93325 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93326
93327         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93328
93329 2000-11-26  Jim Meyering  <meyering@lucent.com>
93330
93331         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93332
93333 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93334
93335         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93336         size of (size_t) -1; it's not portable.
93337
93338 2000-11-17  Jim Meyering  <meyering@lucent.com>
93339
93340         * lib/strstr.c: Update from GNU libc.
93341
93342 2000-11-17  Akim Demaille  <akim@epita.fr>
93343
93344         * lib/obstack.h: Formatting changes.
93345         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93346         prevent type checking.
93347         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93348         cast the value to (void *): assigning a `foo *' to a `void *'
93349         variable is valid.
93350         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93351
93352 2000-11-16  Jim Meyering  <meyering@lucent.com>
93353
93354         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93355
93356 2000-11-11  Jim Meyering  <meyering@lucent.com>
93357
93358         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93359
93360 2000-11-10  Jim Meyering  <meyering@lucent.com>
93361
93362         * lib/obstack.h: Update from GNU libc.
93363         * lib/obstack.c: Likewise.
93364
93365 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93366
93367         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93368
93369 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93370
93371         * lib/getusershell.c (setusershell): Use rewind rather than
93372         fseek/fseeko, to avoid configuration hassles with fseeko.
93373         Don't bother opening SHELLS_FILE if shellstream is NULL;
93374         it's not necessary.
93375
93376 2000-11-05  Jim Meyering  <meyering@lucent.com>
93377
93378         * lib/makepath.h (make_dir): Declare.
93379         * lib/makepath.c (make_dir): Remove `static' attribute.
93380         Tweak a comment.
93381
93382 2000-11-04  Jim Meyering  <meyering@lucent.com>
93383
93384         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93385
93386 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93387
93388         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93389         last one in a bucket, advance to the next bucket.
93390
93391 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93392
93393         * lib/fnmatch.c: Do not comment out all the code if we are using
93394         the GNU C library, because in some cases we are replacing buggy
93395         code in the GNU C library itself.
93396
93397 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93398
93399         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93400         (regex_compile): Catch bogus \(\1\).
93401
93402 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93403
93404         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93405         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93406         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93407
93408 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93409
93410         * lib/error.h, getline.h, modechange.h:
93411         Remove "2000" from Copyright line, as the file hasn't been
93412         changed this year other than in the copyright notice.
93413
93414         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93415         was changed this year.
93416
93417 2000-10-29  Jim Meyering  <meyering@lucent.com>
93418
93419         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93420         renaming.
93421         * m4/ls-mntd-fs.m4: Likewise
93422
93423 2000-10-29  Jim Meyering  <meyering@lucent.com>
93424
93425         * lib/xstat.in: Fix grammar in comment.
93426
93427 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93428
93429         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93430         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93431         doesn't define __restrict_arr.
93432
93433 2000-10-28  Jim Meyering  <meyering@lucent.com>
93434
93435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93436         (jm_PREREQ_MEMCHR): New function.
93437
93438 2000-10-28  Jim Meyering  <meyering@lucent.com>
93439
93440         * lib/memchr.c: Update from libc.
93441         Adjust for portability:
93442         [HAVE_STDLIB_H]: Include stdlib.h.
93443         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93444         Undef __memchr, too.
93445         [!weak_alias]: Define __memchr to memchr.
93446
93447         * lib/regex.c: Update from libc.
93448         * lib/regex.h: Likewise.
93449         * lib/getopt1.c: Likewise.
93450         * lib/memcmp.c: Likewise.
93451
93452         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93453         Avoid using fseek, when possible -- it's broken by design.
93454         Patch by Ulrich Drepper.
93455
93456 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93457
93458         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93459         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93460         Giving in to popular pressure to shut up the compiler with casts.
93461
93462 2000-10-26  Jim Meyering  <meyering@lucent.com>
93463
93464         * lib/strftime.c: Update from libc.
93465
93466 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93467
93468         * regex.c: More `unsigned char' -> `re_char' changes.
93469         Also change several `int' into `re_wchar_t'.
93470         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93471         (PUSH_FAILURE_POINTER): Don't cast any more.
93472         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93473         We want GCC to complain, since this piece of code makes
93474         re_match non-reentrant, which *should* be fixed.
93475         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93476         (EXTEND_BUFFER): Use RETALLOC.
93477         (SET_LIST_BIT): Don't cast.
93478         (re_wchar_t): New type.
93479         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93480         that those two functions will always properly return.
93481         (IMMEDIATE_QUIT_CHECK): Cast to void.
93482         (analyse_first): Use recursion rather than an explicit stack.
93483         (re_compile_fastmap): Can't fail anymore.
93484         (re_search_2): Don't check re_compile_fastmap for failure.
93485         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93486         Now also sets the new value (passed in a new argument).
93487         (re_match_2_internal): Use it.
93488         Also, use a new var `reg' of type size_t when looping through regs
93489         rather than reuse the inappropriate `mcnt'.
93490
93491 2000-10-25  Jim Meyering  <meyering@lucent.com>
93492
93493         * lib/obstack.c: Update from libc.
93494
93495 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93496
93497         * regex.c (regex_compile): Change the way of handling a range from
93498         a char less than 256 to a char not less than 256.
93499
93500 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93501
93502         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93503         NT-Emacs only.
93504         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93505         so that re_search functions only quit when callers expect them to.
93506
93507 2000-10-23  Jim Meyering  <meyering@lucent.com>
93508
93509         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93510         wrong.  That set_locale call must not have any side effects.
93511         From Paul Eggert.
93512
93513 2000-10-22  Jim Meyering  <meyering@lucent.com>
93514
93515         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93516         [CYCLIC]: Remove now-unused definition.
93517
93518         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93519         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93520         Suggestion from Ulrich Drepper.
93521
93522 2000-10-21  Jim Meyering  <meyering@lucent.com>
93523
93524         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93525         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93526         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93527
93528 2000-10-21  Jim Meyering  <meyering@lucent.com>
93529
93530         * lib/dirname.c (memrchr): Declare if necessary.
93531         (dir_name): Remove the restriction that there be no
93532         trailing slashes.  Now, this code skips past them, effectively
93533         ignoring them.
93534         [TEST_DIRNAME] (main): New unit tests.
93535
93536         * lib/memrchr.c: New file from GNU libc.
93537         Undef __memrchr, too.
93538         [!weak_alias]: Define __memrchr to memrchr.
93539         Guard weak_alias use with `#ifdef weak_alias'.
93540
93541 2000-10-21  Jim Meyering  <meyering@lucent.com>
93542
93543         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93544         (dir_name): Use dir_name_r.
93545         * lib/dirname.h (dir_name_r): Declare it.
93546
93547 2000-10-17  Jim Meyering  <meyering@lucent.com>
93548
93549         * lib/quote.h (PARAMS): Define and use.
93550         Reported by Akim Demaille.
93551
93552         * lib/getopt.c: Update from libc.
93553
93554 2000-10-16  Jim Meyering  <meyering@lucent.com>
93555
93556         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93557         setlocale.
93558         From Jan Fedak.
93559
93560 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93561
93562         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93563
93564 2000-09-25  Jim Meyering  <meyering@lucent.com>
93565
93566         * lib/md5.h (rol): Define (from GnuPG).
93567
93568         * lib/sha.c: Give credit (GnuPG) where due.
93569         (M): Use rol rather than open-coding it.
93570         Add a FIXME comment.
93571
93572 2000-09-21  Jim Meyering  <meyering@lucent.com>
93573
93574         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93575         Reported by Michael Stone.
93576
93577 2000-09-20  Jim Meyering  <meyering@lucent.com>
93578
93579         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93580         (noinst_HEADERS): Add sha.h.
93581         Based on code from Scott G. Miller and from GnuPG.
93582
93583 2000-09-18  Jim Meyering  <meyering@lucent.com>
93584
93585         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93586         LIBS. Otherwise, everyone ends up linking with -lelf for some
93587         configurations.
93588         Reported by Mike Stone.
93589
93590 2000-09-15  Jim Meyering  <meyering@lucent.com>
93591
93592         * lib/regex.c: Update from libc.
93593
93594 2000-09-10  Jim Meyering  <meyering@lucent.com>
93595
93596         * lib/getopt.c (_getopt_internal): Update from glibc.
93597
93598 2000-09-09  Jim Meyering  <meyering@lucent.com>
93599
93600         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93601         think it should be used as a general replacement for isascii.
93602         * lib/fnmatch.c: Likewise.
93603         * lib/mbswidth.c: Likewise
93604         * lib/regex.c: Likewise.
93605
93606         Don't use atoi.
93607         * lib/userspec.c: Include sys/param.h and limits.h.
93608         Include xstrtol.h.
93609         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93610         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93611         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93612         UID, GID.  Check range.
93613
93614 2000-09-06  Jim Meyering  <meyering@lucent.com>
93615
93616         * lib/getopt.c (_getopt_internal): Update from glibc.
93617
93618 2000-08-30  Jim Meyering  <meyering@lucent.com>
93619
93620         * lib/strftime.c: Merge in changes from GNU libc.
93621
93622 2000-08-26  Jim Meyering  <meyering@lucent.com>
93623
93624         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93625         * m4/fpending.m4: New file.
93626
93627 2000-08-26  Jim Meyering  <meyering@lucent.com>
93628
93629         * lib/closeout.c: Include "__fpending.h".
93630         (close_stdout_status): Return right away if there's nothing to flush.
93631
93632         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93633         * lib/__fpending.c: New file.
93634         * lib/__fpending.h: New file.
93635
93636 2000-08-20  Jim Meyering  <meyering@lucent.com>
93637
93638         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93639         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93640         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93641
93642 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93643
93644         Improve fileutils installation on systems where running
93645         programs (like install) can't be unlinked.
93646         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93647         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93648
93649 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93650
93651         Standardize on "memory exhausted" instead of "Memory exhausted"
93652         or "virtual memory exhausted".
93653         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93654         "virtual memory exhausted".
93655         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93656         our own message.
93657         * lib/userspec.c (parse_user_spec): Likewise.
93658         * lib/bumpalloc.h: comment fix
93659         * lib/same.c, userspec.c: Include xalloc.h.
93660
93661         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93662         not char *const and pointing to a constant array.
93663         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93664         (xrealloc): Comment fix.
93665
93666         * lib/userspec.c (parse_user_spec):
93667         Don't translate a message until just before returning,
93668         to avoid unnecessary translation.
93669
93670 2000-08-07  Jim Meyering  <meyering@lucent.com>
93671
93672         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93673         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93674         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93675         getgroups.c, gethostname.c, getopt.h, group-member.c,
93676         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93677         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93678         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93679         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93680         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93681         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93682         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93683         yesno.c: Back out Copyright date changes for each file with no change
93684         this year.  This eases coordination with other programs using the same
93685         source code modules.  From Paul Eggert.
93686
93687 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93688
93689         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93690         not char, for compatibility with glibc 2.1.3 strftime.c.
93691
93692 2000-08-03  Greg McGary  <greg@mcgary.org>
93693
93694         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93695         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93696         (EXTEND_BUFFER): Use them.
93697
93698 2000-08-01  Jim Meyering  <meyering@lucent.com>
93699
93700         * lib/dirname.c (ISSLASH): Define.
93701         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93702         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93703         both `\' and `/' may be use as path separators.
93704         Based on a patch from Prashant TR.
93705
93706 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93707
93708         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93709         slot vector a constant, since it might get modified.
93710
93711 2000-07-31  Jim Meyering  <meyering@lucent.com>
93712
93713         * lib/xmalloc.c: Use `virtual memory exhausted', not
93714         `Memory exhausted'.
93715         * lib/obstack.c (print_and_abort): Likewise.
93716
93717 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93718
93719         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93720         buffer, so that the caller can always quote one small
93721         component of a "memory exhausted" message in slot 0.
93722         From a suggestion by Jim Meyering.
93723
93724 2000-07-30  Jim Meyering  <meyering@lucent.com>
93725
93726         * lib/makepath.c (make_path): Quote the other instance, too.
93727
93728         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93729         (STATIC_BUF_SIZE): Define.
93730         (quotearg_n_options): Use only statically allocated storage when
93731         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93732         than STATIC_BUF_SIZE.
93733
93734 2000-07-29  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93737         * lib/dirname.c (dir_name): Likewise.
93738
93739         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93740         `/'.
93741
93742         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93743         (dir_name): Assert that there are no trailing slashes.
93744
93745 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93746
93747         * lib/mbswidth.h (mbswidth): Add a flags argument.
93748         (mbswidth): New declaration.
93749         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93750         * lib/mbswidth.c (mbswidth): Add a flags argument.
93751         (mbsnwidth): New function.
93752
93753 2000-07-24  Jim Meyering  <meyering@lucent.com>
93754
93755         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93756
93757 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93758
93759         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93760
93761 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93762
93763         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93764         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93765         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93766         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93767         invoke multibyte primitives.
93768
93769 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93770
93771         * lib/quotearg.c:
93772         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93773         so that mbstate_t is always defined.
93774
93775         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93776         be 1 in at least one GCC installation, and this configuration
93777         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93778         performance on hosts that have mbrtowc but have only unibyte
93779         locales, but I assume these hosts are rare.
93780
93781 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93782
93783         * lib/mbswidth.c (_XOPEN_SOURCE):
93784         Don't define; this causes problems on Solaris 7.
93785         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93786
93787 2000-07-23  Jim Meyering  <meyering@lucent.com>
93788
93789         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93790         too: getgrgid, getpwuid, getuid.
93791
93792 2000-07-23  Jim Meyering  <meyering@lucent.com>
93793
93794         * lib/basename.c (base_name): Add an assertion.
93795
93796 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93797
93798         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93799         shadow its mbsinit function.
93800
93801 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93802
93803         * lib/mbswidth.h: New file.
93804         * lib/mbswidth.c: New file.
93805         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93806         (noinst_HEADERS): Add mbswidth.h.
93807
93808 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93809
93810         * lib/config.charset: Add support for FreeBSD. Improve support for
93811         HP-UX and IRIX 6.
93812
93813 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93814
93815         * m4/mbswidth.m4: New file.
93816         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93817
93818 2000-07-15  Jim Meyering  <meyering@lucent.com>
93819
93820         * lib/makepath.c: Include quote.h.
93821         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93822         corresponding argument in a `quote (...)' call.
93823         Give better diagnostics.
93824
93825         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93826         (noinst_HEADERS): Add quote.h.
93827
93828         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93829         from tar's src/misc.c.
93830         * lib/quote.h: New file.  Prototypes for same.
93831
93832 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93833
93834         From a suggestion by Bruno Haible.
93835         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93836         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93837         to decide whether to define the BeOS workaround macro;
93838         this adjusts to the change to AC_MBSTATE_T.
93839
93840 2000-07-14  Jim Meyering  <meyering@lucent.com>
93841
93842         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93843         jm_AC_TYPE_UINTMAX_T.
93844
93845 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93846
93847         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93848
93849         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93850         quotearg_buffer_restyled): Add support for
93851         clocale_quoting_style.  Undo previous change to
93852         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93853         and "{RIGHT QUOTATION MARK}" msgids.
93854
93855 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93856
93857         From a suggestion by Bruno Haible.
93858         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93859         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93860         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93861         and mbstate_t, to a single-part test that simply defines mbstate_t.
93862         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93863         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93864
93865 2000-07-10  Jim Meyering  <meyering@lucent.com>
93866
93867         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93868
93869         * m4/gnu-source.m4: Output to confdefs.h directly.
93870         Suggestion from Akim Demaille.
93871
93872 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93873
93874         The old behavior of quoting `like this' doesn't look good with
93875         newer, ISO-style fonts.  See:
93876         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93877
93878         Instead, quote "like this" by default.  Let the translator
93879         tailor the locale-specific quoting behavior by providing
93880         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93881
93882         * lib/quotearg.c (N_): New macro.
93883         (gettext_default): New function.
93884         (quotearg_buffer_restyled): Use
93885         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93886         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93887
93888 2000-07-09  Jim Meyering  <meyering@lucent.com>
93889
93890         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93891         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93892
93893         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93895
93896 2000-07-09  Jim Meyering  <meyering@lucent.com>
93897
93898         * lib/Most files: Update copyright dates to include 2000.
93899
93900 2000-07-08  Jim Meyering  <meyering@lucent.com>
93901
93902         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93903         if not defined.
93904         (xgethostname): Remove now-unnecessary #ifdef.
93905         Move declaration of `err' into loop where it's used.
93906
93907 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93908         and Bruno Haible  <haible@clisp.cons.org>
93909
93910         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93911         only if the test for an object-type mbstate_t fails.  This
93912         prevents us from mistakenly reporting that mbstate_t is a
93913         system object type after we "#define mbstate_t int" to work
93914         around its lack.
93915
93916 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93917         and Bruno Haible  <haible@clisp.cons.org>
93918
93919         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93920
93921 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93922
93923         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93924         to strerror_r.
93925         Include <ctype.h> for use of isalpha.
93926
93927 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93928
93929         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93930         by allocating a larger buffer. Test the gethostname return value for
93931         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93932         returns an error and ENAMETOOLONG isn't defined.
93933
93934 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93935
93936         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93937         dimension.
93938
93939 2000-07-04  Jim Meyering  <meyering@lucent.com>
93940
93941         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93942         of the deprecated AC_CHECKING.
93943
93944 2000-07-04  Jim Meyering  <meyering@lucent.com>
93945
93946         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93947         Reported by Bruno Haible.
93948
93949 2000-07-04  Jim Meyering  <meyering@lucent.com>
93950
93951         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93952         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93953         lacks mbrtowc.
93954
93955 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93956
93957         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93958         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93959
93960 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93961         and Bruno Haible  <haible@clisp.cons.org>
93962
93963         * lib/quotearg.c (mbrtowc):
93964         Assign to *pwc, and return 1 only if result is nonzero.
93965         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93966
93967 2000-07-03  Jim Meyering  <meyering@lucent.com>
93968
93969         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93970
93971 2000-07-03  Jim Meyering  <meyering@lucent.com>
93972
93973         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93974         This is necessary to get a definition of e.g., UTMP_FILE on
93975         HP-UX 10.20.
93976         From Bob Proulx.
93977
93978 2000-07-02  Jim Meyering  <meyering@lucent.com>
93979
93980         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93981
93982         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93983         AC_LIBOBJ(function_name).
93984         * m4/chown.m4: Likewise.
93985         * m4/fnmatch.m4: Likewise.
93986         * m4/ftruncate.m4: Likewise.
93987         * m4/getgroups.m4: Likewise.
93988         * m4/getline.m4: Likewise.
93989         * m4/group-member.m4: Likewise.
93990         * m4/jm-macros.m4: Likewise.
93991         * m4/lstat.m4: Likewise.
93992         * m4/malloc.m4: Likewise.
93993         * m4/memcmp.m4: Likewise.
93994         * m4/nanosleep.m4: Likewise.
93995         * m4/putenv.m4: Likewise.
93996         * m4/realloc.m4: Likewise.
93997         * m4/regex.m4: Likewise.
93998         * m4/stat.m4: Likewise.
93999         * m4/strftime.m4: Likewise.
94000
94001 2000-07-02  Jim Meyering  <meyering@lucent.com>
94002
94003         * lib/quotearg.c (mbstate_t): Don't define here.
94004
94005 2000-07-02  Jim Meyering  <meyering@lucent.com>
94006
94007         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94008
94009 2000-07-01  Jim Meyering  <meyering@lucent.com>
94010
94011         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94012
94013 2000-07-01  Jim Meyering  <meyering@lucent.com>
94014
94015         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94016         problem.
94017
94018 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94019
94020         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94021         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94022
94023 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94024
94025         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94026         per change in ../m4/ls-mntd-fs.m4.
94027         (read_filesystem_list): Ignore symbolic links.
94028
94029 2000-06-29  Jim Meyering  <meyering@lucent.com>
94030
94031         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94032         for declaration of strcmp.
94033
94034         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94035
94036         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94037         Avoid warning by casting result to `char *' to remove `const'.
94038
94039 2000-06-28  Jim Meyering  <meyering@lucent.com>
94040
94041         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94042         included by quotearg.c, for which we perform this test.  From
94043         Bruno Haible.
94044
94045 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94046
94047         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94048         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94049         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94050
94051 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94052
94053         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94054
94055 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94056
94057         savedir now sets errno on failure and invokes xmalloc to get memory.
94058         Fix a couple of other minor bugs while we're at it.
94059
94060         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94061         (NAMLEN): Remove macro.
94062         (malloc, realloc): Remove decls.
94063         (stpcpy): Likewise.
94064         ("xalloc.h"): Include.
94065         (NAME_SIZE_DEFAULT): New macro.
94066         (savedir): Use xmalloc / xrealloc to allocate memory.
94067         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94068         Skip "" directory entries.
94069         Use strlen to calculate directory entry length, since the old method
94070         is rarely used these days and isn't worth supporting.
94071         Don't use a pointer after freeing it.
94072         Check for integer overflow when calculating allocation size.
94073         Use memcpy to copy entries, instead of stpcpy.
94074         Set errno properly when returning NULL.
94075         Check for readdir error.
94076
94077 2000-06-26  Jim Meyering  <meyering@lucent.com>
94078
94079         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94080
94081 2000-06-25  Jim Meyering  <meyering@lucent.com>
94082
94083         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94084         Linux header bug when _XOPEN_SOURCE is defined to 500.
94085
94086 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94087
94088         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94089         deficiency.
94090
94091 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94092
94093         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94094         Include xalloc.h.
94095         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94096
94097 2000-06-24  Jim Meyering  <meyering@lucent.com>
94098
94099         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94100         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94101         for which strerror does return char*, but which lacks a conveniently
94102         accessible declaration of the function.  If the compile-test says
94103         strerror_r doesn't work, then resort to a `run'-test that works on
94104         BeOS and segfaults on DEC Unix.
94105
94106 2000-06-24  Jim Meyering  <meyering@lucent.com>
94107
94108         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94109
94110 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94111
94112         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94113         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94114
94115 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94116
94117         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94118         (mbrtowc, mbstate_t): Define substitutes if
94119         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94120         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94121         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94122
94123 2000-06-23  Jim Meyering  <meyering@lucent.com>
94124
94125         * m4/afs.m4: Add missing AC_MSG_RESULT.
94126         Reported by Bruno Haible.
94127
94128         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94129         Suggestion from Bruno Haible.
94130
94131 2000-06-23  Jim Meyering  <meyering@lucent.com>
94132
94133         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94134
94135 2000-06-21  Jim Meyering  <meyering@lucent.com>
94136
94137         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94138
94139 2000-06-21  Jim Meyering  <meyering@lucent.com>
94140
94141         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94142         (noinst_HEADERS): Add getstr.h.
94143
94144         * lib/getline.c (getstr): Move into a separate file.
94145         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94146         the following changes: new parameter, delim2; both delim[12]
94147         parameters have type `int', not `char'.  The latter would lose
94148         with 8-bit delimiters.
94149         * lib/getstr.h: New file.
94150
94151 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94152
94153         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94154         than 1024, return a memory chunk of least possible size, instead
94155         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94156         Use free/xmalloc instead of xrealloc to avoid copying for very long
94157         paths.
94158
94159 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94160
94161         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94162         the empty string.
94163
94164 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94165
94166         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94167         address, not strdup.  Include <stdlib.h> and don't declare free().
94168
94169 2000-06-19  Jim Meyering  <meyering@lucent.com>
94170
94171         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94172
94173 2000-06-18  Jim Meyering  <meyering@lucent.com>
94174
94175         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94176
94177         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94178         `checking whether...' message to be consistent with that of the
94179         lstat test.
94180
94181 2000-06-18  Jim Meyering  <meyering@lucent.com>
94182
94183         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94184         Besides, these days every porting target provides a mkdir function.
94185
94186         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94187         needed. (this snippet comes from src/system.h).
94188
94189 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94190
94191         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94192
94193 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94194
94195         * lib/human.c (adjust_value): New function.
94196         (human_readable_inexact): Apply rounding style even when
94197         printing approximate values.
94198
94199 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94200
94201         * lib/human.c (human_readable_inexact): Allow an input block
94202         size that is not a multiple of the output block size, and vice versa.
94203         Reported by Piergiorgio Sartor.
94204
94205 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94206
94207         * lib/getdate.y (get_date): Apply relative times after time
94208         zone indicator, not before.  Reported by Todd A. Jacobs.
94209
94210 2000-06-13  Jim Meyering  <meyering@lucent.com>
94211
94212         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94213
94214         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94215
94216 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94217
94218         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94219
94220 2000-06-12  Jim Meyering  <meyering@lucent.com>
94221
94222         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94223         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94224         optional argument.
94225         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94226         the optional argument, `lib'.
94227
94228 2000-06-08  Jim Meyering  <meyering@lucent.com>
94229
94230         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94231
94232 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94233
94234         Rewrite largefile configuration so that we don't need to run
94235         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94236         AC_CANONICAL_HOST in configure.in -- jmm]
94237
94238         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94239         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94240         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94241         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94242         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94243         All uses changed.
94244         Instead of inspecting the output of getconf, try to compile the
94245         test program without and with the macro definition.
94246         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94247         for getconf.  Instead, check for the needed flags by compiling
94248         test programs.
94249
94250 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94251
94252         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94253
94254 2000-06-04  Jim Meyering  <meyering@lucent.com>
94255
94256         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94257         SunOS 4.1.4 for which gid_t is an unsigned type.
94258
94259 2000-06-03  Jim Meyering  <meyering@lucent.com>
94260
94261         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94262         now that autoconf requires that.
94263
94264         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94265         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94266         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94267
94268 2000-06-03  Jim Meyering  <meyering@lucent.com>
94269
94270         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94271
94272 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94273
94274         * m4/glibc21.m4: New file.
94275         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94276
94277 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94278
94279         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94280         newer, don't install charset.alias.
94281         * lib/config.charset: Change the Linux/glibc rules so they become empty
94282         on glibc-2.1 or newer.
94283
94284 2000-06-02  Jim Meyering  <meyering@lucent.com>
94285
94286         * lib/mountlist.c: Back out last change.  Instead, do this...
94287         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94288         me_dummy member using the same `ignore'-testing code.
94289         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94290         fs_type strings.
94291         From Mark D. Roth.
94292
94293 2000-05-29  Jim Meyering  <meyering@lucent.com>
94294
94295         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94296         mounts with the `ignore' attribute.  Based on a patch from
94297         Mark D. Roth.
94298
94299 2000-05-28  Jim Meyering  <meyering@lucent.com>
94300
94301         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94302         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94303         * m4/stat.m4: Likewise.
94304         * m4/lstat.m4: Likewise.
94305         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94306
94307         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94308         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94309
94310 2000-05-26  Jim Meyering  <meyering@lucent.com>
94311
94312         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94313
94314 2000-05-24  Jim Meyering  <meyering@lucent.com>
94315
94316         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94317         autoconf requires that.
94318         * m4/lib-check.m4: Likewise.
94319         * m4/jm-macros.m4: Likewise.
94320         * m4/strftime.m4: Likewise.
94321
94322         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94323         AC_CHECK_DECLS, now that autoconf requires that.
94324
94325 2000-05-22  Jim Meyering  <meyering@lucent.com>
94326
94327         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94328         * m4/lstat.m4: Likewise.
94329
94330 2000-05-22  Jim Meyering  <meyering@lucent.com>
94331
94332         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94333
94334 2000-05-20  Jim Meyering  <meyering@lucent.com>
94335
94336         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94337         (jm_PREREQ): Use it.
94338
94339 2000-05-18  Jim Meyering  <meyering@lucent.com>
94340
94341         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94342         back, too, since it may have been modified by allocate_entry.
94343         (hash_delete): Rewrite to use neither the assignment operator
94344         nor the comma operator in an if-expression.
94345
94346 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94347
94348         * lib/closeout.c:
94349         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94350         Remove; no longer needed.
94351         "quotearg.h": Add include.
94352         (file_name): Do not bother to explicitly initialize to NULL; it's less
94353         efficient on some hosts.
94354         (close_stdout_status): Remove test as to whether stdout was already
94355         closed; it breaks for the case "echo x | sort >&-".
94356         Quote file name colons.
94357         Do not assume that _("write error") lacks format strings.
94358
94359 2000-05-15  Jim Meyering  <meyering@lucent.com>
94360
94361         * lib/version-etc.c (version_etc_copyright): Update the copyright
94362         string used in all --version output.
94363
94364 2000-05-14  Jim Meyering  <meyering@lucent.com>
94365
94366         * lib/closeout.c (close_stdout_set_file_name): New function.
94367         (close_stdout_status): Use new file-scoped global.
94368         Return right away if fstat says the stdout file descriptor is invalid.
94369         * lib/closeout.h (close_stdout_set_file_name): Declare.
94370
94371 2000-05-10  Jim Meyering  <meyering@lucent.com>
94372
94373         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94374         (close_stdout_set_status): New function.
94375         * lib/closeout.h (close_stdout_set_status): Declare.
94376
94377 2000-05-09  Jim Meyering  <meyering@lucent.com>
94378
94379         * m4/gettext.m4: Rename this...
94380         * m4/libintl.m4: ...to this.
94381
94382 2000-05-08  Jim Meyering  <meyering@lucent.com>
94383
94384         * lib/long-options.c: Don't include closeout.h.
94385         (parse_long_options): Don't call close_stdout for --version.
94386
94387 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94388
94389         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94390         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94391         2.1.3 bug.  This avoids a clash when files like regex.c define
94392         _GNU_SOURCE.
94393
94394 2000-05-06  Jim Meyering  <meyering@lucent.com>
94395
94396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94397         (AC_REPLACE_FUNCS): Add strnlen.
94398
94399         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94400         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94401
94402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94403         AC_SEARCH_LIBS call for nanosleep.
94404         (LIB_NANOSLEEP): Set and AC_SUBST.
94405
94406 2000-05-06  Jim Meyering  <meyering@lucent.com>
94407
94408         * lib/strnlen.c: Undefine __strnlen and strnlen.
94409         [!weak_alias]: Define __strnlen to strnlen.
94410
94411         * lib/atexit.c: New file, from libiberty.
94412
94413 2000-05-06  Jim Meyering  <meyering@lucent.com>
94414
94415         * lib/closeout.c (close_stdout_status): Also check for errors on the
94416         stderr stream.
94417
94418 2000-05-05  Jim Meyering  <meyering@lucent.com>
94419
94420         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94421         AC_SEARCH_LIBS call for clock_gettime.
94422         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94423
94424         * m4/search-libs.m4: Update from autoconf.
94425
94426         su doesn't work on Solaris 2.6.
94427         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94428         <shadow.h>.  Reported by Dragos Harabor.
94429
94430 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94431
94432         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94433         memcpy instead of xmalloc, xrealloc, path_concat.
94434         (locale_charset): Treat empty environment variables as absent.
94435         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94436
94437 2000-05-04  Jim Meyering  <meyering@lucent.com>
94438
94439         * lib/getopt.c: Update from glibc.
94440         * lib/obstack.c: Likewise.
94441         * lib/obstack.h: Likewise.
94442         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94443         file
94444
94445         * lib/regex.h: Likewise.
94446         * lib/strndup.c: Likewise.
94447         * lib/strnlen.c: New file, from glibc.
94448
94449 2000-05-03  Jim Meyering  <meyering@lucent.com>
94450
94451         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94452
94453 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94454
94455         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94456         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94457         compile-time test, rather than inspecting host and OS, to
94458         decide whether to define _LARGEFILE_SOURCE.
94459
94460 2000-05-01  Jim Meyering  <meyering@lucent.com>
94461
94462         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94463
94464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94465         Based on a patch from Bruno Haible.
94466
94467 2000-05-01  Jim Meyering  <meyering@lucent.com>
94468
94469         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94470
94471 2000-04-29  Jim Meyering  <meyering@lucent.com>
94472
94473         * lib/path-concat.c: Declare strdup only if it's not defined.
94474         * lib/canon-host.c: Likewise.
94475
94476 2000-04-28  Jim Meyering  <meyering@lucent.com>
94477
94478         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94479         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94480         is included first, then limits.h is included by locale.h by libintl.h.
94481         From John David Anglin.
94482
94483 2000-04-25  Jim Meyering  <meyering@lucent.com>
94484
94485         * lib/makepath.c (S_IRWXUGO): Define.
94486         (make_path): Always perform explicit chmod if MODE specifies any
94487         of the `special' permission bits.  Prompted by a bug report against
94488         install from Mate Wierdl and Joost van Baal.
94489
94490 2000-04-18  Jim Meyering  <meyering@lucent.com>
94491
94492         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94493         (jm_PREREQ): Use it.
94494
94495 2000-04-18  Jim Meyering  <meyering@lucent.com>
94496
94497         * lib/README: New file.
94498
94499         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94500         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94501
94502 2000-04-17  Jim Meyering  <meyering@lucent.com>
94503
94504         Get it right :-)
94505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94506         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94507         Suggestion from Akim Demaille.
94508
94509 2000-04-17  Jim Meyering  <meyering@lucent.com>
94510
94511         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94512         the definition of it to rpl_strftime also defined-away the system's
94513         declaration.
94514
94515 2000-04-15  Jim Meyering  <meyering@lucent.com>
94516
94517         Use `C' to denote so-called `contiguous' files, the same way
94518         that tar does.
94519         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94520         (ftypelet): Use S_ISCTG.
94521         From Michael Deutschmann.
94522
94523 2000-04-14  Jim Meyering  <meyering@lucent.com>
94524
94525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94526         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94527         clobbered.
94528
94529 2000-04-14  Jim Meyering  <meyering@lucent.com>
94530
94531         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94532
94533 2000-04-13  Jim Meyering  <meyering@lucent.com>
94534
94535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94536         AH_VERBATIM to insert required #ifndef into config.h.in.
94537         Suggestion from Akim Demaille.
94538
94539 2000-04-12  Jim Meyering  <meyering@lucent.com>
94540
94541         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94542         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94543         Christian Krackowizer.
94544
94545         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94546         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94547         (AC_SYS_LARGEFILE): Require.
94548         (AM_C_PROTOTYPES): Require.
94549
94550 2000-04-08  Jim Meyering  <meyering@lucent.com>
94551
94552         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94553         names don't conflict.  Reported by Eli Zaretskii.
94554
94555 2000-04-07  Jim Meyering  <meyering@lucent.com>
94556
94557         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94558         sys/types.h, to work around system header problems on AIX 3.2.5.
94559         From Bruno Haible.
94560
94561 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94562
94563         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94564         bug.  Deal with the different error behavior of Irix iconv.
94565
94566 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94567
94568         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94569         IRIX if the installer said otherwise.
94570
94571 2000-04-05  Jim Meyering  <meyering@lucent.com>
94572
94573         Portability tweaks required for ultrix4.3.
94574         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94575         (jm_CHECK_DECLS): Add getutent to the list of functions.
94576         (_jm_DECL_HEADERS): Add utmpx.h.
94577         From John David Anglin.
94578
94579         * m4/strftime.m4: Back out the 2000-04-02 change.
94580         Instead of that change, simply undefine putenv in the test program.
94581
94582 2000-04-05  Jim Meyering  <meyering@lucent.com>
94583
94584         Portability tweaks required for ultrix4.3.
94585         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94586         getutent.
94587         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94588         * lib/canon-host.c: Declare strdup.
94589         * lib/path-concat.c: Likewise.
94590         From John David Anglin.
94591
94592 2000-04-04  Jim Meyering  <meyering@lucent.com>
94593
94594         Be more DOS 8.3-friendly.
94595         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94596         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94597         * lib/Makefile.am: Reflect renaming.
94598         Reported by Eli Zaretskii.
94599
94600         Use a temporary file name that won't clash with `charset.alias'
94601         in the DOS 8.3 name space.
94602         * lib/Makefile.am (charset_tmp): Define.
94603         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94604         (uninstall-local): Likewise.
94605         Reported by Eli Zaretskii.
94606
94607 2000-04-03  Jim Meyering  <meyering@lucent.com>
94608
94609         * m4/gettext.m4: Fix typo in comment.
94610
94611         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94612         textutils/configure.in).  Suggestion from Paul Eggert.
94613         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94614
94615 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94616
94617         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94618         variable in the shell rather than using putenv, which isn't
94619         portable.  This avoids the configure-time inter-test dependency
94620         on the potentially-renamed putenv function.
94621
94622 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94623
94624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94625         before checking struct stat.st_blksize, so that
94626         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94627
94628 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94629
94630         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94631         since strftime.c uses HAVE_STRFTIME to decide whether to use
94632         the underlying strftime.
94633
94634 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94635
94636         * lib/time/strftime.c (my_strftime): Make sure we call the system
94637         strftime, not ourselves, when invoking the underlying strftime.
94638
94639 2000-03-24  Jim Meyering  <meyering@lucent.com>
94640
94641         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94642         (charset_alias): Define.
94643         (install-exec-local): Factor out common code.
94644         (uninstall-local): Split lines longer than 80.
94645         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94646         (SUFFIXES): Define.
94647         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94648         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94649
94650 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94651
94652         * lib/config.charset: Output a line containing "Packages using this
94653         file".
94654         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94655         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94656         ref-del.sed): New rules.
94657
94658 2000-03-17  Jim Meyering  <meyering@lucent.com>
94659
94660         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94661         Otherwise, include <strings.h>
94662
94663 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94664
94665         * lib/unicodeio.c (utf8_wctomb): New function.
94666         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94667         format instead of in UCS-4 with platform dependent endianness.
94668
94669 2000-03-10  Jim Meyering  <meyering@lucent.com>
94670
94671         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94672         From Marco Franzen.
94673
94674 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94675
94676         * lib/savedir.c (savedir): Work even if directory size is
94677         negative; this can happen with some screwy NFS configurations.
94678
94679 2000-03-06  Jim Meyering  <meyering@lucent.com>
94680
94681         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94682         if it's NULL (because we ran out of memory).  From Bruno Haible.
94683
94684 2000-03-05  Jim Meyering  <meyering@lucent.com>
94685
94686         * lib/localcharset.c ("path-concat.h"): Include.
94687         (get_charset_aliases): Use path_concat instead of ANSI string
94688         concatenation.
94689
94690         * lib/unicodeio.h (PARAMS): Define.
94691         Use it to guard prototype.
94692
94693 2000-03-04  Jim Meyering  <meyering@lucent.com>
94694
94695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94696         for lib/localcharset.c.
94697
94698 2000-03-04  Jim Meyering  <meyering@lucent.com>
94699
94700         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94701         installing into it.
94702         (uninstall-local): Uncomment this rule so `make distcheck' works
94703         once again.
94704
94705         * lib/unicodeio.c (<errno.h>): Include it.
94706         (errno): Declare if not defined.
94707
94708         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94709
94710         * lib/config.charset: New version, incorporating remarks from a linux
94711         i18n mailing list.  From Bruno Haible.
94712
94713 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94714
94715         * m4/codeset.m4: New file.
94716         * m4/iconv.m4: New file.
94717         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94718
94719 2000-03-03  Jim Meyering  <meyering@lucent.com>
94720
94721         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94722
94723 2000-03-02  Jim Meyering  <meyering@lucent.com>
94724
94725         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94726         the messages come out on separate lines.
94727
94728         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94729         rather than jm_CHECK_DECLARATIONS.
94730         * m4/decl.m4: Remove now-unused file.
94731
94732         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94733         geteuid.
94734
94735 2000-03-02  Jim Meyering  <meyering@lucent.com>
94736
94737         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94738
94739 2000-03-01  Jim Meyering  <meyering@lucent.com>
94740
94741         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94742         * lib/unicodeio.c: Likewise.
94743
94744 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94745
94746         * lib/config.charset: New file.
94747         * lib/localcharset.c: New file.
94748         * lib/unicodeio.h, lib/unicodeio.c: New files.
94749         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94750         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94751         (noinst_HEADERS): Add unicodeio.h.
94752         (all-local, install-exec-local, charset.alias): New targets.
94753
94754 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94755
94756         * lib/quotearg.c (ALERT_CHAR): New macro.
94757         (quotearg_buffer_restyled): Use it.
94758
94759 2000-02-27  Jim Meyering  <meyering@lucent.com>
94760
94761         * m4/check-decl.m4: Add getenv to the list.
94762
94763 2000-02-27  Jim Meyering  <meyering@lucent.com>
94764
94765         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94766         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94767
94768         * lib/backupfile.c: Guard inclusion of stdlib.h with
94769         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94770         Declare malloc if needed.
94771
94772         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94773         `#ifndef HAVE_DECL..'
94774         now that autoconf always defines the HAVE_DECL_ symbols.
94775         * lib/human.c: Likewise.
94776         * lib/same.c: Likewise.
94777         * lib/strtoumax.c: Likewise.
94778
94779         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94780         declaration check was not run.
94781         * lib/hash.c: Likewise.
94782         * lib/human.c: Likewise.
94783         * lib/same.c: Likewise.
94784         * lib/strtoumax.c: Likewise.
94785
94786         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94787         `.', then first look up the entire `.'-containing string as a login
94788         name.
94789
94790 2000-02-23  Jim Meyering  <meyering@lucent.com>
94791
94792         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94793         in place of my hack.
94794
94795 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94796
94797         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94798         (textint): New typedef.
94799         (parser_control): Member year changed from int to textint.
94800         All uses changed.
94801         (YYSTYPE): Removed; replaced by %union with int and textint members.
94802         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94803         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94804         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94805         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94806         (date, number, to_year): Use width of number in digits, not its value,
94807         to determine whether it's a 2-digit year, or a 2-digit time.
94808         (yylex): Store number of digits of numeric tokens.
94809         Reported by John Kendall.
94810
94811         (parser_control): Changed from struct parser_control to typedef (for
94812         consistency).  All uses changed.
94813
94814         (tID): Removed; not used.
94815         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94816
94817 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94818
94819         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94820         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94821
94822 2000-02-12  Jim Meyering  <meyering@lucent.com>
94823
94824         * lib/userspec.c (ISDIGIT): Define it.
94825         (isdigit): Remove definition.
94826         (is_number): Use ISDIGIT, not isdigit.
94827         <libintl.h>: Include.
94828         (_ and N_): Define.
94829         (parse_user_spec): Mark translatable strings.
94830
94831 2000-02-10  Jim Meyering  <meyering@lucent.com>
94832
94833         With these changes, nanosleep.[ch] are finally enough like the other
94834         lib/* replacement files to compile on a few more losing systems.
94835
94836         * lib/nanosleep.h: Don't include config.h.
94837         Remove prototype from declaration of nanosleep.
94838         (PARAMS): Remove now-unneeded definition.
94839         * lib/nanosleep.c: #undef nanosleep.
94840         (rpl_nanosleep): Rename from nanosleep.
94841
94842 2000-02-10  Jim Meyering  <meyering@lucent.com>
94843
94844         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94845         gnu_nanosleep to rpl_nanosleep.
94846
94847 2000-02-09  Jim Meyering  <meyering@lucent.com>
94848
94849         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94850         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94851
94852 2000-02-08  Akim Demaille  <akim@epita.fr>
94853
94854         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94855         `[' and `]' and remove uses of `changequote'.
94856         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94857         (AC_SYS_LARGEFILE): Likewise.
94858         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94859         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94860         of changequote.
94861         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94862         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94863         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94864         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94865
94866 2000-02-05  Jim Meyering  <meyering@lucent.com>
94867
94868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94869         Remove explicit use of AC_HEADER_TIME.  It is required by
94870         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94871         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94872         in autoconf whereby the expansion of the latter ended up preceding
94873         the expansion of its prerequisite, AC_HEADER_TIME.
94874         Reported by Volker Borchert.
94875
94876 2000-02-03  Jim Meyering  <meyering@lucent.com>
94877
94878         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94879
94880 2000-02-03  Jim Meyering  <meyering@lucent.com>
94881
94882         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94883         rather than with `#if HAVE_UTMPNAME'.
94884
94885 2000-02-02  Jim Meyering  <meyering@lucent.com>
94886
94887         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94888         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94889         Reported by Eli Zaretskii.
94890
94891 2000-02-01  Jim Meyering  <meyering@lucent.com>
94892
94893         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94894
94895 2000-01-31  Jim Meyering  <meyering@lucent.com>
94896
94897         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94898         functions.  Add the time.h and sys/time.h headers along with the
94899         AC_REQUIRE'ment of AC_HEADER_TIME.
94900
94901 2000-01-31  Jim Meyering  <meyering@lucent.com>
94902
94903         * lib/nanosleep.h (nanosleep): Guard declaration with
94904         `#if ! HAVE_DECL_NANOSLEEP'.
94905         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94906         the declaration in that vendor's sys/timers.h.
94907         Reported by Christian Krackowizer.
94908
94909         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94910         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94911         (ISPRINT): Likewise.
94912         Reported by Tom Tromey.
94913
94914 2000-01-30  Jim Meyering  <meyering@lucent.com>
94915
94916         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94917
94918         * m4/prereq.m4 (utmp_includes): Define.
94919         Check for ut_user and ut_name members in both struct utmpx
94920         and struct utmp.
94921
94922 2000-01-30  Jim Meyering  <meyering@lucent.com>
94923
94924         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94925         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94926         header files where only utmpx.ut_user is declared.
94927
94928         * lib/readutmp.h (UT_USER): Define.
94929
94930 2000-01-29  Jim Meyering  <meyering@lucent.com>
94931
94932         * m4/lib-check.m4: New file containing library-related checks from
94933         fileutils and sh-utils (textutils had none).
94934
94935 2000-01-28  Jim Meyering  <meyering@lucent.com>
94936
94937         * m4/perl.m4: Change format of warning message to look more like that
94938         from the missing script.  Suggestion from François Pinard.
94939
94940 2000-01-25  Jim Meyering  <meyering@lucent.com>
94941
94942         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94943         well as time.h in the compile check.
94944         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94945         Fix typo in cross-compiling case: s/yes/no/.
94946
94947 2000-01-23  Jim Meyering  <meyering@lucent.com>
94948
94949         * m4/jm-macros.m4: Move df-related tests here from
94950         fileutils/configure.in
94951
94952         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94953         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94954
94955         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94956         s/space/ac_fsusage_space/.
94957         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94958
94959         * m4/ftruncate.m4: New file (derived from part of
94960         fileutils/configure.in).
94961         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94962         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94963
94964         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94965         AC_SUBST these here, rather than just in sh-util/configure.in, so
94966         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94967         all the same.
94968         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94969         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94970         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94971         (AC_SUBST(POW_LIBM)): Likewise.
94972         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94973
94974 2000-01-23  Jim Meyering  <meyering@lucent.com>
94975
94976         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94977         obstack.c.
94978
94979 2000-01-22  Jim Meyering  <meyering@lucent.com>
94980
94981         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94982
94983         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94984
94985         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94986         configure.in
94987         (AC_CHECK_HEADERS): Likewise for sh-utils.
94988         (AC_CHECK_HEADERS): Likewise for textutils.
94989         Merge the three lists of headers.
94990
94991         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94992         from fileutils' configure.in.
94993
94994         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94995         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94996         check-decl.m4.
94997
94998         * m4/check-decl.m4: Use #if rather than #ifdef.
94999         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95000         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95001         (_jm_DECL_HEADERS): Define new function.
95002         (jm_CHECK_DECLARATIONS): Require it.
95003
95004 2000-01-22  Jim Meyering  <meyering@lucent.com>
95005
95006         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95007         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95008         Required for some AIX systems.  Reported by Christian Krackowizer.
95009         [TESTING] (main): New function.
95010
95011         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95012         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95013         letters.
95014
95015         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95016         iswprint.
95017
95018         * lib/strverscmp.c (ISDIGIT): Define.
95019         (strverscmp): Use ISDIGIT, not isdigit.
95020
95021 2000-01-19  Jim Meyering  <meyering@lucent.com>
95022
95023         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95024         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95025         defines `struct timespec' in <sys/time.h>
95026
95027         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95028         Thanks to Akim for explaining.
95029
95030 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95031
95032         * lib/nanosleep.c (nanosleep):
95033         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95034         POSIX.1 doesn't require SA_INTERRUPT and some systems
95035         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95036         it's been part of POSIX.1 since day 1 (in 1988).
95037
95038 2000-01-17  Jim Meyering  <meyering@lucent.com>
95039
95040         * lib/interlock: Remove unused file.  Reported by François Pinard.
95041
95042 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95043
95044         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95045         alert, backslash, formfeed, and vertical tab unnecessarily in
95046         shell quoting style.
95047
95048 2000-01-16  Jim Meyering  <meyering@lucent.com>
95049
95050         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95051         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95052         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95053         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95054
95055 2000-01-16  Jim Meyering  <meyering@lucent.com>
95056
95057         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95058         because the latter didn't work.
95059
95060 2000-01-15  Jim Meyering  <meyering@lucent.com>
95061
95062         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95063         (AC_REPLACE_FUNCS): Add memcpy and memset.
95064         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95065         Add strpbrk.
95066         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95067
95068 2000-01-12  Jim Meyering  <meyering@lucent.com>
95069
95070         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95071         (jm_PREREQ): Use it.
95072         (jm_PREREQ_READUTMP): New macro.
95073         (jm_PREREQ): Use it.
95074
95075 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95076
95077         Quote multibyte characters correctly.
95078         * m4/c-bs-a.m4: New file.
95079         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95080         (jm_PREREQ): Use it.
95081
95082 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95083
95084         * m4/uintmax_t.m4: Port to autoconf 2.13.
95085
95086 2000-01-08  Jim Meyering  <meyering@ascend.com>
95087
95088         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95089         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95090
95091 2000-01-04  Jim Meyering  <meyering@ascend.com>
95092
95093         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95094         jm_STRUCT_DIRENT_D_TYPE.
95095         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95096         jm_STRUCT_DIRENT_D_INO.
95097         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95098         jm_STRUCT_UTIMBUF.
95099         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95100         renamings.
95101         * m4/utime.m4: Likewise.
95102
95103         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95104         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95105
95106 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95107
95108         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95109         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95110
95111 2000-01-02  Jim Meyering  <meyering@ascend.com>
95112
95113         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95114         remember if this is necessary.
95115
95116 1999-12-26  Jim Meyering  <meyering@ascend.com>
95117
95118         * m4/jm-macros.m4: Use it here.
95119         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95120
95121 1999-12-23  Jim Meyering  <meyering@ascend.com>
95122
95123         * m4/jm-macros.m4: Check for clock_gettime (moved from
95124         fileutils/configure.in)
95125         Check for gettimeofday.
95126
95127 1999-12-20  Jim Meyering  <meyering@ascend.com>
95128
95129         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95130         autoconf-2.14a-1999-12-20.
95131
95132 1999-12-19  Jim Meyering  <meyering@ascend.com>
95133
95134         * m4/lstat-slash.m4: New file.
95135         * m4/jm-macros.m4: Use the new macro:
95136         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95137
95138 1999-12-07  Jim Meyering  <meyering@ascend.com>
95139
95140         * m4/perl.m4: Require that File::Compare be available, too.
95141         Too many systems seem to lack it.
95142
95143         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95144         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95145
95146 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95147
95148         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95149         problem with the QNX 4.25 shell, which doesn't propagate exit
95150         status of failed commands inside shell assignments.
95151
95152 1999-11-17  Jim Meyering  <meyering@ascend.com>
95153
95154         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95155
95156 1999-11-07  Jim Meyering  <meyering@ascend.com>
95157
95158         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95159
95160 1999-11-06  Jim Meyering  <meyering@ascend.com>
95161
95162         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95163         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95164
95165 1999-11-05  Jim Meyering  <meyering@ascend.com>
95166
95167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95168         configure.in of textutils, fileutils, and sh-utils into this one
95169         (shared between those packages) file.
95170         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95171         AC_STRUCT_ST_BLKSIZE.
95172
95173 1999-11-03  Jim Meyering  <meyering@ascend.com>
95174
95175         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95176         of AC_CHECK_TYPE checks includes unistd.h.
95177         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95178         Suggestion from Akim Demaille.
95179
95180 1999-10-30  Jim Meyering  <meyering@ascend.com>
95181
95182         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95183         m4-quoted string.
95184         * m4/ls-mntd-fs.m4: Likewise.
95185         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95186         * m4/jm-winsz1.m4: Likewise.
95187
95188         * m4/const.m4: Remove file, since the fix made it into the experimental
95189         version of autoconf.
95190         * m4/mktime.m4: Likewise.
95191
95192         * m4/check-type.m4: Remove file, now that the latest version of
95193         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95194
95195         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95196         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95197         AC_CHECK_TYPE.
95198
95199 1999-10-04  Jim Meyering  <meyering@ascend.com>
95200
95201         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95202
95203 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95204
95205         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95206         2.95.1 bug with HP-UX 10.20.
95207
95208 1999-09-17  Jim Meyering  <meyering@ascend.com>
95209
95210         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95211         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95212         due to missing strdup (against sh-utils-2.0).
95213
95214 1999-08-29  Jim Meyering  <meyering@ascend.com>
95215
95216         * m4/jm-macros.m4: Require jm_BISON.
95217         * m4/bison.m4: New file.
95218
95219 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95220
95221         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95222         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95223
95224 1999-08-05  Jim Meyering  <meyering@ascend.com>
95225
95226         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95227         to avoid conflicts with `conftest' on 8+3 filesystems.
95228         Suggestion from Eli Zaretskii.
95229
95230 1999-08-04  Jim Meyering  <meyering@ascend.com>
95231
95232         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95233         fileutils and sh-utils (textutils's getline test was inadequate).
95234         (AM_FUNC_GETLINE): Run this test.
95235         (AC_CHECK_FUNCS): Check for getdelim.
95236         Reported by Bob Proulx.
95237
95238 1999-08-02  Jim Meyering  <meyering@ascend.com>
95239
95240         * m4/jm-macros.m4: Add a comment.
95241
95242 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95243
95244         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95245         <inttypes.h> defines strtoumax as a macro (and not as a
95246         function).
95247
95248 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95249
95250         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95251         that we can shift, multiply and divide unsigned long long
95252         values; Ultrix cc can't do it.
95253
95254 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95255
95256         * m4/mktime.m4: New file, which is a preview of what should appear
95257         in the next public autoconf release.
95258
95259 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95260
95261         * m4/lfs.m4: Remove this file.
95262         * m4/largefile.m4: New file.  It contains the old contents of
95263         lfs.m4, except that all names with prefix AC_LFS have been
95264         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95265         compatible with future autoconf versions.  Also, some minor m4
95266         quoting problems have been fixed.
95267
95268 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95269
95270         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95271         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95272         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95273         and simplify the shell code.
95274
95275 1999-08-01  Jim Meyering  <meyering@ascend.com>
95276
95277         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95278         m4.
95279
95280 1999-07-20  Jim Meyering  <meyering@ascend.com>
95281
95282         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95283
95284 1999-07-15  Jim Meyering  <meyering@ascend.com>
95285
95286         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95287
95288 1999-05-22  Jim Meyering  <meyering@ascend.com>
95289
95290         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95291
95292 1999-05-20  Jim Meyering  <meyering@ascend.com>
95293
95294         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95295         Add a colon after each `then' in case $4 is empty.
95296
95297 1999-05-16  Jim Meyering  <meyering@ascend.com>
95298
95299         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95300
95301 1999-05-10  Jim Meyering  <meyering@ascend.com>
95302
95303         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95304
95305         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95306         AC_FUNC_MKTIME.
95307
95308 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95309
95310         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95311
95312 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95313
95314         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95315         not CPPFLAGS, so that linking works correctly in IRIX.
95316
95317 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95318
95319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95320
95321 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95322
95323         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95324         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95325         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95326         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95327         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95328
95329         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95330
95331 1999-04-20  Jim Meyering  <meyering@ascend.com>
95332
95333         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95334         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95335         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95336
95337 1999-04-18  Jim Meyering  <meyering@ascend.com>
95338
95339         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95340         * m4/jm-macros.m4: Use it.
95341
95342 1999-04-06  Jim Meyering  <meyering@ascend.com>
95343
95344         * m4/strftime.m4: Remove test for %f.
95345
95346 1999-03-29  Jim Meyering  <meyering@ascend.com>
95347
95348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95349         superset of the AC_TYPE_* checks in the textutils, fileutils,
95350         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95351         AC_TYPE_PID_T.
95352
95353 1999-03-28  Jim Meyering  <meyering@ascend.com>
95354
95355         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95356         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95357         replaced e.g., in the *.sh files of the sh-utils.
95358
95359 1999-03-20  Jim Meyering  <meyering@ascend.com>
95360
95361         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95362         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95363         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95364
95365 1999-03-19  Jim Meyering  <meyering@ascend.com>
95366
95367         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95368
95369 1999-03-12  Jim Meyering  <meyering@ascend.com>
95370
95371         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95372
95373 1999-03-07  Jim Meyering  <meyering@ascend.com>
95374
95375         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95376         declared.
95377
95378 1999-02-17  Jim Meyering  <meyering@ascend.com>
95379
95380         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95381         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95382
95383 1999-02-07  Jim Meyering  <meyering@ascend.com>
95384
95385         * m4/group-member.m4: New file -- extracted from sh-utils'
95386         configure.in.
95387
95388         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95389         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95390
95391 1999-02-06  Jim Meyering  <meyering@ascend.com>
95392
95393         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95394         * m4/fnmatch.m4: Likewise.
95395         * m4/getgroups.m4: Likewise.
95396         * m4/lstat.m4: Likewise.
95397         * m4/malloc.m4: Likewise.
95398         * m4/putenv.m4: Likewise.
95399         * m4/realloc.m4: Likewise.
95400         * m4/regex.m4: Likewise.
95401         * m4/stat.m4: Likewise.
95402         * m4/strftime.m4: Likewise.
95403         Suggestion from Alain Magloire.
95404
95405         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95406         * m4/fnmatch.m4: Likewise.
95407         * m4/getgroups.m4: Likewise.
95408         * m4/getline.m4: Likewise.
95409         * m4/lstat.m4: Likewise.
95410         * m4/malloc.m4: Likewise.
95411         * m4/memcmp.m4: Likewise.
95412         * m4/putenv.m4: Likewise.
95413         * m4/realloc.m4: Likewise.
95414         * m4/regex.m4: Likewise.
95415         * m4/stat.m4: Likewise.
95416         * m4/strftime.m4: Likewise.
95417         Suggestion from Alain Magloire.
95418
95419         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95420         an argument.
95421
95422         * m4/regex.m4: Add a run-time Test for proper operation of
95423         re_compile_pattern.
95424
95425 1999-01-31  Jim Meyering  <meyering@ascend.com>
95426
95427         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95428
95429 1999-01-30  Jim Meyering  <meyering@ascend.com>
95430
95431         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95432
95433         * m4/jm-mktime.m4: Make this a wrapper around the official
95434         AM_FUNC_MKTIME rather than my private copy, now that the official one
95435         is up to date.
95436         * m4/mktime.m4: Remove file.
95437
95438         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95439         * m4/uptime.m4: Likewise.
95440         * m4/uintmax_t.m4: Likewise.
95441
95442 1999-01-28  Jim Meyering  <meyering@ascend.com>
95443
95444         * m4/jm-macros.m4: Use jm_AFS.
95445         * m4/afs.m4: New file (from fileutils' configure.in).
95446
95447         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95448         * m4/chown.m4: Likewise.
95449         * m4/d-ino.m4: Likewise.
95450         * m4/d-type.m4: Likewise.
95451         * m4/fnmatch.m4: Likewise.
95452         * m4/getgroups.m4: Likewise.
95453         * m4/gettext.m4: Likewise.
95454         * m4/jm-mktime.m4: Likewise.
95455         * m4/jm-winsz2.m4: Likewise.
95456         * m4/lcmessage.m4: Likewise.
95457         * m4/ls-mntd-fs.m4: Likewise.
95458         * m4/malloc.m4: Likewise.
95459         * m4/memcmp.m4: Likewise.
95460         * m4/putenv.m4: Likewise.
95461         * m4/realloc.m4: Likewise.
95462         * m4/st_mtim.m4: Likewise.
95463         * m4/strftime.m4: Likewise.
95464
95465 1999-01-16  Jim Meyering  <meyering@ascend.com>
95466
95467         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95468         (ARGMATCH_DIE_DECL): Define.
95469
95470 1999-01-12  Jim Meyering  <meyering@ascend.com>
95471
95472         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95473         Reported by Lars Hecking.
95474
95475 1999-01-10  Jim Meyering  <meyering@ascend.com>
95476
95477         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95478         gross kludge.
95479         * m4/inttypes_h.m4: Likewise.
95480         * m4/lstat.m4: Likewise.
95481         * m4/malloc.m4: Likewise.
95482         * m4/readdir.m4: Likewise.
95483         * m4/realloc.m4: Likewise.
95484         * m4/st_dm_mode.m4: Likewise.
95485         * m4/stat.m4: Likewise.
95486         * m4/utimbuf.m4: Likewise.
95487         * m4/utimes.m4: Likewise.
95488
95489         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95490         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95491         comments in config.h.in are meaningful.
95492
95493         * m4/jm-macros.m4: Require autoconf-2.13 here.
95494
95495         * m4/regex.m4: By default, don't use the included regex.c on systems
95496         with glibc 2.  Suggestion from Uli Drepper.
95497
95498 1999-01-02  Jim Meyering  <meyering@ascend.com>
95499
95500         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95501
95502 1998-12-18  Jim Meyering  <meyering@ascend.com>
95503
95504         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95505         Based on a suggestion from Lars Hecking.
95506
95507 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95508
95509         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95510
95511 1998-11-16  Jim Meyering  <meyering@ascend.com>
95512
95513         * m4/lfs.m4: Double-quote the `uname...` expression.
95514
95515 1998-11-14  Jim Meyering  <meyering@ascend.com>
95516
95517         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95518         * m4/stat.m4: Likewise.
95519
95520 1998-11-03  Jim Meyering  <meyering@ascend.com>
95521
95522         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95523         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95524
95525 1998-10-18  Jim Meyering  <meyering@ascend.com>
95526
95527         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95528
95529 1998-10-17  Jim Meyering  <meyering@ascend.com>
95530
95531         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95532         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95533         calls for those previously hard-coded headers.  Instead, take a new
95534         parameter.
95535         (jm_CHECK_DECLARATIONS): Reflect interface change.
95536         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95537         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95538
95539         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95540
95541 1998-10-14  Jim Meyering  <meyering@ascend.com>
95542
95543         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95544         instead of "TZ=America/Vancouver".  From Paul Eggert.
95545
95546 1998-10-11  Jim Meyering  <meyering@ascend.com>
95547
95548         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95549         This adds a test for a recently added compatibility fix for mktime.c.
95550         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95551
95552 1998-09-27  Jim Meyering  <meyering@ascend.com>
95553
95554         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95555
95556         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95557         ../configure.in, including a change from Gordon Matzigkeit to allow
95558         cross-compiling for the Hurd.
95559
95560         * m4/glibc.m4: New file/macro to test for the GNU C Library
95561         versions 1 and 2.  From Gordon Matzigkeit.
95562         Indent.
95563
95564 1998-09-21  Jim Meyering  <meyering@ascend.com>
95565
95566         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95567
95568 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95569
95570         Port nanosecond-resolution times to UnixWare 2.1.2 and
95571         pedantic Solaris 2.6.
95572
95573         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95574         AC_STRUCT_ST_MTIM.
95575         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95576         Generate name of ns member, instead of just 1 or undef.
95577         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95578
95579 1998-08-15  Jim Meyering  <meyering@ascend.com>
95580
95581         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95582         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95583         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95584         instead of jm_TYPE_SSIZE_T.
95585
95586 1998-08-12  Jim Meyering  <meyering@ascend.com>
95587
95588         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95589
95590 1998-08-02  Jim Meyering  <meyering@ascend.com>
95591
95592         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95593         in acconfig.h manually.
95594
95595 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95596
95597         * m4/st_mtim.m4: New file.
95598
95599 1998-07-28  Jim Meyering  <meyering@ascend.com>
95600
95601         * m4/utimes.m4: Undef stat.
95602
95603 1998-07-25  Jim Meyering  <meyering@ascend.com>
95604
95605         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95606         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95607
95608 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95609
95610         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95611         uid and gid actually remain unchanged.
95612
95613 1998-07-07  Jim Meyering  <meyering@ascend.com>
95614
95615         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95616
95617 1998-07-04  Jim Meyering  <meyering@ascend.com>
95618
95619         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95620         to prove that this macro can be used in packages without regex.c.
95621
95622 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95623
95624         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95625         is to be used.
95626
95627 1998-07-03  Jim Meyering  <meyering@ascend.com>
95628
95629         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95630
95631         * m4/gettext.m4: New file -- from gettext-0.10.35.
95632         * m4/lcmessage.m4: Likewise.
95633         * m4/progtest.m4: Likewise.
95634
95635         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95636         * m4/jm-macros.m4: Require the new macro.
95637
95638 1998-06-29  Jim Meyering  <meyering@ascend.com>
95639
95640         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95641         for the definition of NGROUPS (used in a system header included
95642         by sys/mount.h).
95643
95644 1998-06-28  Jim Meyering  <meyering@ascend.com>
95645
95646         * m4/ls-mntd-fs.m4: New file.
95647         * m4/fstypename.m4: New file.
95648
95649         * m4/jm-macros.m4: Require the new macro.
95650         * m4/jm-glibc-io.m4: New file.
95651
95652 1998-05-19  Jim Meyering  <meyering@ascend.com>
95653
95654         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95655         * m4/lchown.m4: New file.
95656
95657         * m4/Makefile.am.in: New file.
95658         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95659
95660 1998-05-14  Jim Meyering  <meyering@ascend.com>
95661
95662         * m4/Makefile.am (EXTRA_DIST): Add them.
95663         * m4/jm-macros.m4: New file.
95664         * m4/utimbuf.m4: New file.
95665
95666 1998-05-12  Jim Meyering  <meyering@ascend.com>
95667
95668         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95669
95670 1998-05-11  Jim Meyering  <meyering@ascend.com>
95671
95672         * m4/isc-posix.m4: New file.
95673
95674 1998-05-10  Jim Meyering  <meyering@ascend.com>
95675
95676         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95677
95678 1998-05-09  Jim Meyering  <meyering@ascend.com>
95679
95680         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95681         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95682         with automake.
95683
95684         * m4/ssize_t.m4: New file.
95685         * m4/mktime.m4: Remove file -- the new automake has this now.
95686
95687 1998-04-26  Jim Meyering  <meyering@ascend.com>
95688
95689         * m4/assert.m4: New file.
95690         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95691
95692 1998-04-05  Jim Meyering  <meyering@ascend.com>
95693
95694         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95695         (jm_PREREQ): Use it here.
95696
95697 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95698
95699         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95700         in acconfig.h.
95701
95702 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95703
95704         * m4/prereq.m4: New file.
95705         * m4/error.m4: New file.
95706         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95707
95708 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95709
95710         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95711         cache-check for the same variable -- that defeated the purpose of
95712         the test; the test program was never run.  This was a problem only
95713         on systems with losing getline functions -- HP-UX 10.20 is one.
95714         Reported by Bjorn Helgaas.
95715
95716 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95717
95718         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95719
95720 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95721
95722         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95723
95724         * m4/const.m4: New file.  Use an initializer in this declaration
95725         typedef int charset[2]; const charset x;
95726         Reported by Bob Glickstein.
95727
95728 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95729
95730         * m4/chown.m4: Fix reversed types on -1 args to chown.
95731         From Kaveh Ghazi.
95732
95733 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95734
95735         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95736         Add lseek and memchr.
95737
95738         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95739         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95740         have a 20-character limit on names.
95741
95742 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95743
95744         * m4/inttypes_h.m4: New file.
95745         * m4/uintmax_t.m4: New file.
95746         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95747
95748
95749         -----
95750
95751         Local Variables:
95752         coding: utf-8
95753         End:
95754
95755         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95756
95757         Copying and distribution of this file, with or without
95758         modification, are permitted provided the copyright notice
95759         and this notice are preserved.